Skip to content

Commit 1072728

Browse files
committed
changed png and mermaid
1 parent 5226710 commit 1072728

3 files changed

Lines changed: 56 additions & 43 deletions

File tree

documentation/user-guides/design-patterns/Design Pattern 1/facility location/README.md

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,29 @@ Visual model through mermaid and png.
2222
*Note: Entity types and location hierarchies shown are illustrative examples. This pattern applies to any material entities and site taxonomies relevant to your domain.*
2323
```mermaid
2424
flowchart BT
25-
A@{ label: "<font color=\"#000000\">Facility 1</font>" } -- LocatedIn<br>BFO:0000171 --> B@{ label: "<font color=\"#000000\">City 1</font>" }
26-
B -- LocatedIn<br>BFO:0000171 --> C@{ label: "<font color=\"#000000\">State 1</font>" }
25+
A@{ label: "<font color=\"#000000\">Facility 1</font>" } -- LocatedIn<br>BFO_0000171 --> B@{ label: "<font color=\"#000000\">City 1</font>" }
26+
B -- LocatedIn<br>BFO_0000171 --> C@{ label: "<font color=\"#000000\">State 1</font>" }
2727
A -- rdf:type --> D@{ label: "<span style=\"color:black\"><b>Facility<br>ont00000192</b></span><br>" }
2828
B -- rdf:type --> E@{ label: "<span style=\"color:black\"><b>Site<br>BFO_0000029</b></span><br>" }
2929
C -- rdf:type --> E
30-
A -. rdfs:label .-> F["Building 1"]
31-
B -. rdfs:label .-> G["NY City"]
32-
C -. rdfs:label .-> H["NY State"]
30+
A -. rdfs:label .-> F["<i>&quot;Building 1&quot;</i>"]
31+
B -. rdfs:label .-> G["<i>&quot;NY City&quot;</i>"]
32+
C -. rdfs:label .-> H["<i>&quot;NY State&quot;</i>"]
3333
3434
subgraph Legend[" "]
3535
direction LR
36-
AA{Individual}
37-
BB[Class]
38-
CC[data]
39-
AA --> |relation| CC
36+
LL[ ] --> |relation| LL2[ ]
37+
LD[ ] -.-> |data property| LD2[ ]
38+
AA["Individual"]
39+
BB["<b>Class</b>"]
40+
CC["<i>&quot;literal&quot;</i>"]
4041
end
4142
4243
A ~~~ Legend
4344
44-
A@{ shape: diam}
45-
B@{ shape: diam}
46-
C@{ shape: diam}
45+
A@{ shape: rect}
46+
B@{ shape: rect}
47+
C@{ shape: rect}
4748
D@{ shape: rect}
4849
E@{ shape: rect}
4950
F@{ shape: rect}
@@ -54,15 +55,21 @@ flowchart BT
5455
C:::purple
5556
D:::yellow
5657
E:::yellow
57-
F:::white
58-
G:::white
59-
H:::white
60-
classDef yellow fill:#ffe680
61-
classDef purple fill:#dbc9ef
62-
classDef white fill:#FFFFFF
63-
class BB yellow
64-
class AA purple
65-
class CC white
58+
F:::literal
59+
G:::literal
60+
H:::literal
61+
AA:::purple
62+
BB:::yellow
63+
CC:::literal
64+
LL:::invisible
65+
LL2:::invisible
66+
LD:::invisible
67+
LD2:::invisible
68+
classDef yellow fill:#ffe680,color:#7a6000,stroke:#c8a800
69+
classDef purple fill:#dbc9ef,color:#000000,stroke:#9b7fc7
70+
classDef literal fill:none,stroke:none,color:#555555,font-style:italic
71+
classDef invisible fill:none,stroke:none,color:none,width:0px
72+
6673
```
6774

6875
# File Structure
Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
flowchart BT
2-
A@{ label: "<font color=\"#000000\">Facility 1</font>" } -- LocatedIn<br>BFO:0000171 --> B@{ label: "<font color=\"#000000\">City 1</font>" }
3-
B -- LocatedIn<br>BFO:0000171 --> C@{ label: "<font color=\"#000000\">State 1</font>" }
2+
A@{ label: "<font color=\"#000000\">Facility 1</font>" } -- LocatedIn<br>BFO_0000171 --> B@{ label: "<font color=\"#000000\">City 1</font>" }
3+
B -- LocatedIn<br>BFO_0000171 --> C@{ label: "<font color=\"#000000\">State 1</font>" }
44
A -- rdf:type --> D@{ label: "<span style=\"color:black\"><b>Facility<br>ont00000192</b></span><br>" }
55
B -- rdf:type --> E@{ label: "<span style=\"color:black\"><b>Site<br>BFO_0000029</b></span><br>" }
66
C -- rdf:type --> E
7-
A -. rdfs:label .-> F["Building 1"]
8-
B -. rdfs:label .-> G["NY City"]
9-
C -. rdfs:label .-> H["NY State"]
7+
A -. rdfs:label .-> F["<i>&quot;Building 1&quot;</i>"]
8+
B -. rdfs:label .-> G["<i>&quot;NY City&quot;</i>"]
9+
C -. rdfs:label .-> H["<i>&quot;NY State&quot;</i>"]
1010

1111
subgraph Legend[" "]
1212
direction LR
13-
AA{Individual}
14-
BB[Class]
15-
CC[data]
16-
AA --> |relation| CC
13+
LL[ ] --> |relation| LL2[ ]
14+
LD[ ] -.-> |data property| LD2[ ]
15+
AA["Individual"]
16+
BB["<b>Class</b>"]
17+
CC["<i>&quot;literal&quot;</i>"]
1718
end
1819

1920
A ~~~ Legend
2021

21-
A@{ shape: diam}
22-
B@{ shape: diam}
23-
C@{ shape: diam}
22+
A@{ shape: rect}
23+
B@{ shape: rect}
24+
C@{ shape: rect}
2425
D@{ shape: rect}
2526
E@{ shape: rect}
2627
F@{ shape: rect}
@@ -31,13 +32,18 @@ flowchart BT
3132
C:::purple
3233
D:::yellow
3334
E:::yellow
34-
F:::white
35-
G:::white
36-
H:::white
37-
classDef yellow fill:#ffe680
38-
classDef purple fill:#dbc9ef
39-
classDef white fill:#FFFFFF
40-
class BB yellow
41-
class AA purple
42-
class CC white
43-
35+
F:::literal
36+
G:::literal
37+
H:::literal
38+
AA:::purple
39+
BB:::yellow
40+
CC:::literal
41+
LL:::invisible
42+
LL2:::invisible
43+
LD:::invisible
44+
LD2:::invisible
45+
classDef yellow fill:#ffe680,color:#7a6000,stroke:#c8a800
46+
classDef purple fill:#dbc9ef,color:#000000,stroke:#9b7fc7
47+
classDef literal fill:none,stroke:none,color:#555555,font-style:italic
48+
classDef invisible fill:none,stroke:none,color:none,width:0px
49+
-100 KB
Loading

0 commit comments

Comments
 (0)