{"id":29042078,"url":"https://github.com/usc-isi-i2/ontology-visualization","last_synced_at":"2025-08-12T06:07:28.678Z","repository":{"id":37595267,"uuid":"144198995","full_name":"usc-isi-i2/ontology-visualization","owner":"usc-isi-i2","description":"A simple ontology and RDF visualization tool.","archived":false,"fork":false,"pushed_at":"2022-09-20T13:39:05.000Z","size":28,"stargazers_count":130,"open_issues_count":15,"forks_count":46,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-18T11:58:44.175Z","etag":null,"topics":["ontology","ontology-visualization","rdf","semantic","triples","visualization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usc-isi-i2.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-09T20:11:54.000Z","updated_at":"2025-01-31T14:57:27.000Z","dependencies_parsed_at":"2023-01-17T15:46:58.037Z","dependency_job_id":null,"html_url":"https://github.com/usc-isi-i2/ontology-visualization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/usc-isi-i2/ontology-visualization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usc-isi-i2%2Fontology-visualization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usc-isi-i2%2Fontology-visualization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usc-isi-i2%2Fontology-visualization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usc-isi-i2%2Fontology-visualization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usc-isi-i2","download_url":"https://codeload.github.com/usc-isi-i2/ontology-visualization/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usc-isi-i2%2Fontology-visualization/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262090282,"owners_count":23257126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ontology","ontology-visualization","rdf","semantic","triples","visualization"],"created_at":"2025-06-26T15:06:43.538Z","updated_at":"2025-06-26T15:06:44.718Z","avatar_url":"https://github.com/usc-isi-i2.png","language":"Python","funding_links":[],"categories":["Visualization","Misc"],"sub_categories":["BBedit","Visualisation"],"readme":"#+TITLE: Ontology Visualization\n\n* Example\n#+BEGIN_SRC bash\n  ./ontology_viz.py -o test.dot test.ttl -O ontology.ttl\n  dot -Tpng -o test.png test.dot\n#+END_SRC\n\n- Use ~-o~ to indicate the path of output file\n- Use ~-O~ to indicate the input ontology (Optional).\n- Use ~-C~ to indicate the configuration file (Optional).\n  - ~max_label_length~: config the max length of labels. If the text exceeds the length, exceeded part will be replaced with \"...\". Default value is ~0~.\n  - ~blacklist~: config the predicate that you don't want to see in the graph.\n  - ~class_inference_in_object~: config the predicate that can inference the object is a ~Class~, even if the class doesn't defined in the ontology.\n  - ~label_property~: config the predicate that used for labeling nodes, if such a label exists, it will display inside the node.\n  - ~tooltip_property~: config the predicate that contains the tooltip texts.\n  - ~bnode_regex~: a list of regexes, if an uri matches, then it will be dispaly as a blank node without its uri nor label. It can be useful if you have a lot of reifications.\n  - ~colors~: config the colors of nodes\n    - ~class~, ~literal~, ~instance~ can accept HEX value(e.g. ~\"#ff0000\"~ ), MATLAB style(e.g. ~\"r\"~ ), and color name (e.g. ~\"red\"~ ).\n    #+BEGIN_SRC json\n      \"colors\": {\n        \"class\": \"#ff0000\",\n        \"literal\": \"r\",\n        \"instance\": \"red\",\n      }\n    #+END_SRC\n    - ~instance~ can also accept a dict value to specify the color of each class instance. And use ~\"default\"~ to to set color for undefined instances.\n    #+BEGIN_SRC json\n      \"instance\": {\n        \"https://tac.nist.gov/tracks/SM-KBP/2018/ontologies/SeedlingOntology#Facility\": \"#a6cee3\",\n        \"default\": \"#ffff99\"\n      }\n    #+END_SRC\n\n    - ~filled~: config whether fill the node, default value: ~true~.\n- Classes defined in the ontology will be omitted in the output graph. This action can be switched with argument ~-V~.\n\n** Useful Graphviz flags\n\n- ~-K~ to specify which [[https://graphviz.gitlab.io/_pages/pdf/dot.1.pdf][layout algorithm]] to use. E.g. ~-Kneato~ and ~-Ksfdp~ . Notice that inorder to use ~sfdp~ layout algorithm, you will need to build your graphviz with [[http://gts.sourceforge.net][GTS]].\n- ~-T~ to specify the [[https://graphviz.gitlab.io/_pages/doc/info/output.html][output format]].\n- ~-G~ to set a [[https://graphviz.gitlab.io/_pages/doc/info/attrs.html][graph attribute]]. E.g. ~-Goverlap=prism~\n\n* Requirements\nIn order to use this tool, you'll need to make sure you have [[https://github.com/RDFLib/rdflib][rdflib]] installed.\n\nIn order to convert =dot= into =png= or =svg= image, you will need [[https://www.graphviz.org][Graphviz]].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusc-isi-i2%2Fontology-visualization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusc-isi-i2%2Fontology-visualization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusc-isi-i2%2Fontology-visualization/lists"}