https://github.com/balhoff/ubergraph-viz
Example workflow for rendering SPARQL query results from Ubergraph using obographviz
https://github.com/balhoff/ubergraph-viz
obofoundry
Last synced: 5 months ago
JSON representation
Example workflow for rendering SPARQL query results from Ubergraph using obographviz
- Host: GitHub
- URL: https://github.com/balhoff/ubergraph-viz
- Owner: balhoff
- License: mit
- Created: 2021-11-02T20:57:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-05T01:25:34.000Z (over 4 years ago)
- Last Synced: 2025-05-22T22:15:05.412Z (about 1 year ago)
- Topics: obofoundry
- Language: Makefile
- Homepage:
- Size: 530 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ubergraph-viz
Example workflow for rendering SPARQL query results from Ubergraph using obographviz
## Requirements
You will need the following tools on your `PATH` (or use the docker script, see below):
- `og2dot`—https://github.com/cmungall/obographviz
- `dot`—https://graphviz.org
- `jq`—https://stedolan.github.io/jq/
- `curl`
- `make`
## 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`.

### Running via docker
If you have docker on your system, all the needed tools are available in the docker image accessed via the `run.sh` script
```
./run.sh make two-hop-neighborhood.pdf
```
## Styling
Change the styling by editing [ubergraph-style.json](../../blob/master/style/ubergraph-style.json).
Color names are defined here: https://graphviz.org/doc/info/colors.html.