Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 7 additions & 8 deletions src/generate_single_stub_dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# We would appreciate acknowledgement if the software is used.

__version__ = "0.0.1"
__version__ = "0.0.2"

import argparse
import hashlib
Expand Down Expand Up @@ -248,27 +248,26 @@ def main() -> None:
"""
)
for triple in sorted(filtered_triples):
edge_label = {
N_HAS_FACET_AT_CLASS_LEVEL: "",
NS_RDF.type: "∈",
NS_RDFS.subClassOf: "⊂",
}[triple[1]]
edge_style = {
NS_RDF.type: "dashed",
}.get(triple[1], "solid")
head_arrow = {
NS_RDFS.subClassOf: "onormal",
N_HAS_FACET_AT_CLASS_LEVEL: "dot",
}.get(triple[1], "normal")
head_label = {
N_HAS_FACET_AT_CLASS_LEVEL: "0..1",
}.get(triple[1], "")
out_fh.write(
"""\
\t%s -> %s [arrowhead="%s" headlabel="%s" label="%s"];
\t%s -> %s [arrowhead="%s" headlabel="%s" style="%s"];
"""
% (
iri_to_gv_node_id(triple[0]),
iri_to_gv_node_id(triple[2]),
head_arrow,
head_label,
edge_label,
edge_style,
)
)

Expand Down
48 changes: 22 additions & 26 deletions templates/case-investigation/Attorney/Attorney.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 18 additions & 21 deletions templates/case-investigation/Authorization/Authorization.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading