Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

A simple ontology and RDF visualization tool.

License

Notifications You must be signed in to change notification settings

GSS-Cogs/ontology-visualization

 
 

Repository files navigation

# GSS-Cogs fork os ontology-visualizer

Installation

git clone https://github.com/GSS-Cogs/ontology-visualization.git
./install.sh

Usage

% visualise_rdf <sparql_query_file> <img_type>
# e.g.
% visualise_rdf Get\ Most\ Dataset\ Metadata.sparql svg

The script will automatically execute the <sparql_query_file> and output a graph of type <img_type>. An output image file named <sparql_query_file>.<img_type> will be created, e.g. 'Get Most Dataset Metadata.sparql.svg'.

N.B.

Valid <img_type> inputs include svg and png.

The <sparql_query_file> MUST use the CONSTRUCT {} WHERE {} SPARQL syntax to construct valid RDF which represents what is to be visualised.

Overriding Prefixes

% visualise_rdf <sparql_query_file> <img_type> -n prefix1=http://some.uri,prefix2=http://some.other.uri

This allows you to specify exactly which prefixes you want to use to shorten URIs which are too long in your visualisation.

About

A simple ontology and RDF visualization tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.9%
  • Shell 3.4%
  • Dockerfile 1.7%