Skip to content

obophenotype/CCF_graphs

Repository files navigation

ubergraph-viz

Example workflow for rendering SPARQL query results from Ubergraph using obographviz

Requirements

You will need the following tools on your PATH:

Queries

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.

Running

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.

Styling

Change the styling by editing ubergraph-style.json. Color names are defined here: https://graphviz.org/doc/info/colors.html.