Skip to content

Commit ba849d1

Browse files
committed
patterns
1 parent c5ac4ff commit ba849d1

File tree

7 files changed

+753
-173
lines changed

7 files changed

+753
-173
lines changed

docs/D2/incipit-pattern.d2

Lines changed: 1 addition & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,7 @@
11
# direction: down | right | up | left
22
direction: up
33

4-
5-
###### STYLE
6-
7-
classes: {
8-
cto: {
9-
style {
10-
fill: "#ff7675"
11-
stroke: "#d63031"
12-
shadow: true
13-
border-radius: 8
14-
font-size: 28
15-
}
16-
}
17-
18-
schema: {
19-
style {
20-
fill: "#fab1a0"
21-
stroke: "#e17055"
22-
shadow: true
23-
border-radius: 8
24-
font-size: 28
25-
}
26-
}
27-
28-
nfdicore: {
29-
style {
30-
fill: "#81ecec"
31-
stroke: "#00cec9"
32-
shadow: true
33-
border-radius: 8
34-
font-size: 28
35-
}
36-
}
37-
38-
iao: {
39-
style {
40-
fill: "#ffeaa7"
41-
stroke: "#fdcb6e"
42-
shadow: true
43-
border-radius: 8
44-
font-size: 28
45-
}
46-
}
47-
48-
bfo: {
49-
style {
50-
fill: "#74b9ff"
51-
stroke: "#0984e3"
52-
shadow: true
53-
border-radius: 8
54-
font-size: 28
55-
}
56-
}
57-
58-
literal:{
59-
style {
60-
stroke-dash: 4
61-
stroke: "#2d3436"
62-
font-size: 28
63-
}
64-
}
65-
66-
entity:{
67-
style {
68-
font-size: 28
69-
}
70-
}
71-
72-
edge_type: {
73-
style: {
74-
stroke-dash: 2
75-
stroke: "#636e72"
76-
font-size: 28
77-
}
78-
}
79-
80-
edge_subclass: {
81-
style: {
82-
stroke-dash: 4
83-
stroke: "#636e72"
84-
font-size: 28
85-
}
86-
}
87-
88-
edge_other: {
89-
style: {
90-
stroke: "#636e72"
91-
font-size: 28
92-
}
93-
}
94-
95-
96-
}
4+
...@"style.d2"
975

986
###### CLASSES
997

docs/D2/person-pattern.d2

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
# direction: down | right | up | left
2+
direction: up
3+
4+
...@"style.d2"
5+
6+
###### CLASSES
7+
8+
# CTO
9+
cto_SourceItem.class: cto
10+
11+
# NFDIcore
12+
nfdicore_Person.class: nfdicore
13+
nfdicore_Identifier.class: nfdicore
14+
nfdicore_RISM-Identifier.class: nfdicore
15+
16+
# IAO / BFO ladder on the right
17+
iao_CentrallyRegisteredIdentifier.class: iao
18+
iao_InformationContentEntity.class: iao
19+
bfo_GenericallyDependentContinuant.class: bfo
20+
#bfo_Continuant.class: bfo
21+
bfo_IndependentContinuant.class: bfo
22+
23+
###### NODES
24+
25+
cto_SourceItem {
26+
label: Source Item \n cto:CTO_0001005
27+
link: https://nfdi.fiz-karlsruhe.de/4culture/ontology/\#CTO_0001005
28+
}
29+
30+
nfdicore_Person {
31+
label: person \n nfdicore:NFDI_0000004
32+
link: https://nfdi.fiz-karlsruhe.de/ontology/\#NFDI_0000004
33+
}
34+
35+
nfdicore_RISM-Identifier {
36+
label: rism identifier \n nfdicore:NFDI_0001016
37+
link: https://nfdi.fiz-karlsruhe.de/ontology/\#NFDI_0001016
38+
}
39+
40+
nfdicore_Identifier {
41+
label: identifier \n nfdicore:NFDI_0000015
42+
link: https://nfdi.fiz-karlsruhe.de/ontology/\#NFDI_0000015
43+
}
44+
45+
iao_CentrallyRegisteredIdentifier {
46+
label: centrally registered identifier \n iao:IAO_0020029
47+
link: http://purl.obolibrary.org/obo/IAO_0020029
48+
}
49+
50+
iao_InformationContentEntity {
51+
label: information content entity \n iao:IAO_0000030
52+
link: http://purl.obolibrary.org/obo/IAO_0000030
53+
}
54+
55+
bfo_GenericallyDependentContinuant {
56+
label: generically dependent continuant \n bfo:BFO_0000031
57+
link: http://purl.obolibrary.org/obo/BFO_0000031
58+
}
59+
60+
#bfo_Continuant {
61+
# label: continuant \n bfo:BFO_0000002
62+
# link: http://purl.obolibrary.org/obo/BFO_0000002
63+
#}
64+
65+
bfo_IndependentContinuant {
66+
label: independent continuant \n bfo:BFO_0000004
67+
link: http://purl.obolibrary.org/obo/BFO_0000004
68+
}
69+
70+
###### EDGES
71+
72+
# Taxonomy breadcrumbs for identifiers
73+
nfdicore_Identifier -> iao_CentrallyRegisteredIdentifier: {
74+
label: rdfs:subClassOf
75+
class: edge_subclass
76+
}
77+
78+
iao_CentrallyRegisteredIdentifier -> iao_InformationContentEntity: {
79+
label: rdfs:subClassOf
80+
class: edge_subclass
81+
}
82+
83+
iao_InformationContentEntity -> bfo_GenericallyDependentContinuant: {
84+
label: rdfs:subClassOf
85+
class: edge_subclass
86+
}
87+
88+
#bfo_GenericallyDependentContinuant -> bfo_Continuant: {
89+
# label: rdfs:subClassOf
90+
# class: edge_subclass
91+
#}
92+
93+
# Person breadcrumb to BFO
94+
nfdicore_Person -> bfo_IndependentContinuant: {
95+
label: rdfs:subClassOf
96+
class: edge_subclass
97+
}
98+
99+
#bfo_IndependentContinuant -> bfo_Continuant: {
100+
# label: rdfs:subClassOf
101+
# class: edge_subclass
102+
# }
103+
104+
nfdicore_RISM-Identifier -> nfdicore_Identifier: {
105+
label: rdfs:subClassOf
106+
class: edge_subclass
107+
}
108+
109+
# Optional exemplar nodes
110+
ARK_PERSON.class: entity
111+
ARK_PERSON {
112+
label: ARK ID \n Schumann, Robert
113+
}
114+
115+
RISM_URI.class: entity
116+
RISM_URI {
117+
label: <https://rism.online/people/131206>
118+
link: https://rism.online/people/131206
119+
}
120+
121+
SI {
122+
label: <https://rism.online/sources/201001959>
123+
}
124+
SI.class: entity
125+
126+
# Instance edges
127+
ARK_PERSON -> nfdicore_Person: {
128+
label: rdf:type
129+
class: edge_other
130+
}
131+
132+
ARK_PERSON -> RISM_URI: {
133+
label: has external identifier \n nfdicore:NFDI_0001006
134+
class: edge_other
135+
}
136+
137+
RISM_URI -> nfdicore_RISM-Identifier: {
138+
label: rdf:type
139+
class: edge_other
140+
}
141+
142+
SI -> cto_SourceItem: {
143+
label: rdf:type
144+
class: edge_type
145+
}
146+
147+
SI -> ARK_PERSON {
148+
label: cto:has related person
149+
class: edge_other
150+
}
151+
152+
cto_SourceItem -> iao_InformationContentEntity {
153+
label: rdfs:subClassOf
154+
class: edge_subclass
155+
}
156+

docs/D2/style.d2

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# style.d2
2+
3+
classes: {
4+
cto: {
5+
style {
6+
fill: "#ff7675"
7+
stroke: "#d63031"
8+
shadow: true
9+
border-radius: 8
10+
font-size: 28
11+
}
12+
}
13+
14+
schema: {
15+
style {
16+
fill: "#fab1a0"
17+
stroke: "#e17055"
18+
shadow: true
19+
border-radius: 8
20+
font-size: 28
21+
}
22+
}
23+
24+
nfdicore: {
25+
style {
26+
fill: "#81ecec"
27+
stroke: "#00cec9"
28+
shadow: true
29+
border-radius: 8
30+
font-size: 28
31+
}
32+
}
33+
34+
iao: {
35+
style {
36+
fill: "#ffeaa7"
37+
stroke: "#fdcb6e"
38+
shadow: true
39+
border-radius: 8
40+
font-size: 28
41+
}
42+
}
43+
44+
bfo: {
45+
style {
46+
fill: "#74b9ff"
47+
stroke: "#0984e3"
48+
shadow: true
49+
border-radius: 8
50+
font-size: 28
51+
}
52+
}
53+
54+
literal:{
55+
style {
56+
stroke-dash: 4
57+
stroke: "#2d3436"
58+
font-size: 28
59+
}
60+
}
61+
62+
entity:{
63+
style {
64+
font-size: 28
65+
}
66+
}
67+
68+
edge_type: {
69+
style: {
70+
stroke-dash: 2
71+
stroke: "#636e72"
72+
font-size: 28
73+
}
74+
}
75+
76+
edge_subclass: {
77+
style: {
78+
stroke-dash: 4
79+
stroke: "#636e72"
80+
font-size: 28
81+
}
82+
}
83+
84+
edge_other: {
85+
style: {
86+
stroke: "#636e72"
87+
font-size: 28
88+
}
89+
}
90+
91+
92+
}

0 commit comments

Comments
 (0)