Example workflow for rendering SPARQL query results from Ubergraph using obographviz
You will need the following tools on your PATH
:
og2dot
—https://github.com/cmungall/obographvizdot
—https://graphviz.orgjq
—https://stedolan.github.io/jq/curl
make
Add SPARQL queries to the sparql
folder, using file extension .rq
.
Each query should be a SELECT query which projects these variables: ?s
, ?slabel
, ?p
, ?plabel
, ?o
, ?olabel
.
Run a make
target based on the name of the SPARQL query to run, replacing .rq
with .pdf
, e.g.: make two-hop-neighborhood.pdf
.
Change the styling by editing ubergraph-style.json. Color names are defined here: https://graphviz.org/doc/info/colors.html.