Skip to content

Commit 72e3d91

Browse files
committed
D2 incipit pattern
1 parent 913e362 commit 72e3d91

File tree

2 files changed

+221
-1
lines changed

2 files changed

+221
-1
lines changed

docs/D2/incipit-pattern.d2

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
# direction: down | right | up | left
2+
direction: up
3+
4+
5+
###### STYLE
6+
7+
classes: {
8+
cto: {
9+
style {
10+
fill: "#ff7675"
11+
stroke: "#d63031"
12+
shadow: true
13+
border-radius: 8
14+
}
15+
}
16+
17+
schema: {
18+
style {
19+
fill: "#fab1a0"
20+
stroke: "#e17055"
21+
shadow: true
22+
border-radius: 8
23+
}
24+
}
25+
26+
nfdicore: {
27+
style {
28+
fill: "#81ecec"
29+
stroke: "#00cec9"
30+
shadow: true
31+
border-radius: 8
32+
}
33+
}
34+
35+
iao: {
36+
style {
37+
fill: "#ffeaa7"
38+
stroke: "#fdcb6e"
39+
shadow: true
40+
border-radius: 8
41+
}
42+
}
43+
44+
bfo: {
45+
style {
46+
fill: "#74b9ff"
47+
stroke: "#0984e3"
48+
shadow: true
49+
border-radius: 8
50+
}
51+
}
52+
53+
edge_type: {
54+
style: {
55+
stroke-dash: 2
56+
stroke: "#636e72"
57+
}
58+
}
59+
60+
edge_subclass: {
61+
style: {
62+
stroke-dash: 4
63+
stroke: "#636e72"
64+
}
65+
}
66+
67+
literal:{
68+
style {
69+
stroke-dash: 4
70+
stroke: "#2d3436"
71+
}
72+
}
73+
74+
75+
}
76+
77+
###### CLASSES
78+
79+
#CTO
80+
cto_SourceItem.class: cto
81+
cto_SourceItem {
82+
label: Source Item \n cto:CTO_0001005
83+
link: https://nfdi.fiz-karlsruhe.de/4culture/ontology/#CTO_0001005
84+
}
85+
86+
cto_Incipit.class: cto
87+
cto_Incipit {
88+
label: Incipit \n cto:CTO_0001024
89+
link: https://nfdi.fiz-karlsruhe.de/4culture/ontology/#CTO_0001024
90+
}
91+
92+
# Schema
93+
schema_DataFeed.class: schema
94+
schema_DataFeed {
95+
label: schema:DataFeed
96+
}
97+
98+
# BFO
99+
bfo_IC.class: bfo
100+
bfo_IC {
101+
label: Independent Continuant \n bfo:BFO_0000004
102+
}
103+
104+
#NFDIcore
105+
nfdicore_Organization.class: nfdicore
106+
nfdicore_Organization {
107+
label: Organization \n nfdicore:NFDI_0000003
108+
}
109+
110+
nfdicore_Identifier.class: nfdicore
111+
nfdicore_Identifier {
112+
label: Identifier \n nfdicore:NFDI_0000015
113+
}
114+
115+
#IAO
116+
iao_ICE.class: iao
117+
iao_ICE {
118+
label: Information Content Entity \n iao:IAO_0000030
119+
}
120+
121+
122+
###### INSTANCES
123+
124+
ORG: RISM Online
125+
ORG.class: Individual
126+
SI: <https://rism.online/sources/201001959>
127+
SI.class: Individual
128+
SI.style.animated: true
129+
INC: Incipit \n <https://rism.online/sources/201001959/incipits/1.1.1>
130+
INC.class: Individual
131+
INC.style.animated: true
132+
FEED: E5313
133+
FEED.class: Individual
134+
135+
###### LITERALS
136+
137+
PAT.class: literal
138+
PAT {
139+
label: A''C/'B''D'BA/2G4BA/G-B''D/G4-2-/
140+
}
141+
142+
KEY.class: literal
143+
KEY {
144+
label: G
145+
}
146+
147+
CLEF.class: literal
148+
CLEF {
149+
label: C-1
150+
}
151+
152+
KS.class: literal
153+
KS {
154+
label: xF
155+
}
156+
157+
TS.class: literal
158+
TS {
159+
label: C/
160+
}
161+
162+
###### PROPERTIES
163+
164+
# rdf:type
165+
SI -> cto_SourceItem: {
166+
label: rdf:type
167+
class: edge_type
168+
}
169+
INC -> cto_Incipit: {
170+
label: rdf:type
171+
class: edge_type
172+
}
173+
174+
ORG -> nfdicore_Organization: {
175+
label: rdf:type
176+
class: edge_type
177+
}
178+
179+
FEED -> schema_DataFeed: {
180+
label: rdf:type
181+
class: edge_type
182+
}
183+
184+
185+
# SubClass relationships
186+
cto_SourceItem -> iao_ICE: {
187+
label: rdfs:subClassOf
188+
class: edge_subclass
189+
}
190+
191+
cto_Incipit -> nfdicore_Identifier: {
192+
label: rdfs:subClassOf
193+
class: edge_subclass
194+
}
195+
196+
nfdicore_Identifier -> iao_ICE: {
197+
label: rdfs:subClassOf
198+
class: edge_subclass
199+
}
200+
201+
schema_DataFeed -> iao_ICE: {
202+
label: rdfs:subClassOf
203+
class: edge_subclass
204+
}
205+
206+
nfdicore_Organization -> bfo_IC: {
207+
label: rdfs:subClassOf
208+
class: edge_subclass
209+
}
210+
211+
212+
# Other relations
213+
SI -> INC: has incipit \n cto:CTO_0001065
214+
SI -> ORG: published by \n nfdicore:NFDI_0000191
215+
SI -> FEED: is referenced in \n cto:CTO_0001006
216+
INC -> PAT: has incipit pattern \n cto:CTO_0001063
217+
INC -> KS: has key signature \n cto:CTO_0001062
218+
INC -> KEY: has key \n cto: \n CTO_0001064
219+
INC -> CLEF: cto: \n CTO_0001061 \n has clef
220+
INC -> TS: cto: \n CTO_ \n 0001060 \n has incipit \n time signature

docs/domain-examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ stateDiagram
8989

9090
```d2
9191
92-
x -> x
92+
!include D2/incipit-pattern.d2
9393
9494
```

0 commit comments

Comments
 (0)