Skip to content

Commit ef89a2b

Browse files
committed
adding graphviz
1 parent 79b7cf0 commit ef89a2b

File tree

4 files changed

+61
-3
lines changed

4 files changed

+61
-3
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Schema (Graphviz)
2+
3+
```dot
4+
digraph KG {
5+
rankdir=LR;
6+
node [shape=box, fontsize=10];
7+
8+
# Classes
9+
SERP [label="aql:SERP\n(dct:Collection)"];
10+
RB [label="aql:ResultBlock\n(schema:CreativeWork, schema:ListItem)"];
11+
WRB [label="aql:WebSearchResultBlock ⊑ aql:ResultBlock"];
12+
SRB [label="aql:SpecialContentResultBlock ⊑ aql:ResultBlock"];
13+
RES [label="aql:Result\n(schema:WebPage)"];
14+
CAP [label="aql:Capture\n(schema:WebPage)"];
15+
PRO [label="aql:Provider\n(schema:Service)"];
16+
ARC [label="aql:Archive\n(schema:ArchiveOrganization)"];
17+
18+
# Core relations
19+
SERP -> RB [label="schema:hasPart"];
20+
RB -> SERP [label="schema:isPartOf"];
21+
RB -> RAW [label="aql:rawContent"];
22+
RB -> XPATH [label="aql:xPath"];
23+
RB -> RANK [label="aql:rank"];
24+
RB -> TTL [label="schema:title (opt)"];
25+
RB -> ABS [label="schema:abstract"];
26+
27+
WRB -> RB [label="rdfs:subClassOf"];
28+
SRB -> RB [label="rdfs:subClassOf"];
29+
30+
SERP -> PRO [label="schema:provider"];
31+
SERP -> ARC [label="schema:archivedAt"];
32+
SERP -> CAP [label="schema:isBasedOn"];
33+
34+
CAP -> RES [label="schema:mainEntity"];
35+
RES -> CAP [label="schema:isBasedOn"];
36+
37+
# Provider details
38+
PRO -> PD [label="aql:domain / hostname"];
39+
PRO -> PP [label="aql:urlPathPrefix / path"];
40+
PRO -> PWD [label="aql:wikiDataURL"];
41+
42+
# Capture details
43+
CAP -> DTC [label="schema:dateCreated"];
44+
CAP -> OURL [label="schema:url (orig)"];
45+
CAP -> HSC [label="http:statusCodeNumber"];
46+
CAP -> MIME [label="schema:encodingFormat"];
47+
CAP -> MVU [label="aql:mementoAPIViewerURL"];
48+
CAP -> MRU [label="aql:mementoAPIRawURL"];
49+
50+
# Archive details
51+
ARC -> AMB [label="aql:mementoAPIBaseURL"];
52+
ARC -> ACB [label="aql:cdxAPIBaseURL"];
53+
ARC -> AWD [label="aql:wikiDataURL"];
54+
}
55+
```
File renamed without changes.

knowledge_graph/mkdocs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ plugins:
88
- search
99
- include-markdown
1010
- mermaid2
11-
- search
1211
markdown_extensions:
1312
- admonition
13+
- mkdocs_graphviz
1414
- toc:
1515
permalink: true
1616
- pymdownx.superfences:
1717
custom_fences:
1818
- name: mermaid
1919
class: mermaid
2020
format: !!python/name:pymdownx.superfences.fence_div_format
21+
22+
2123
- pymdownx.details
2224

2325
extra_javascript:
@@ -31,6 +33,7 @@ nav:
3133
- Home: index.md
3234
- Knowledge Graph:
3335
- Overview: kg/overview.md
34-
- Schema (Mermaid): kg/schema.md
36+
- Static Mermaid: kg/mermaid.md
37+
- Static Graphviz: kg/graphviz.md
3538
- SHACL Shapes: kg/shapes.md
36-
- Interactive: kg/interactive.md
39+
- Cytoscape Interactive: kg/cytoscape.md

0 commit comments

Comments
 (0)