Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To run a SPARQL query, navigate to Site Admin > Sparql query.  You will see a page similar to the one below.  Note that the text is in various colors.  VIVO uses the YASQE editor for SPARQL.  You can read more about its features at their web site . See http://yasqe.yasgui.org/  At the top of the Query window are SPARQL prefix declarations for VIVO.  These provides abbreviations for various URLs you use in your SPARQL queries.  For more on SPARQL, see Learning SPARQL.  http://learningsparql.com   Below the prefix declarations is the actual SPARQL query.  

The query in the figure above asks for a sorted list of the entities in VIVO that have type Relationship.  RS_TEXT has been selected as an output format.  This will display in a browser window.  Note that you can select CSV, or TSV.  These will download to your computer.  You may also select RS_XML and RS_JSON – these will also display in your browser window.

Using SPARQL to manage data

What about ASK and DESCRIBE?

These are supported in VIVO.  If you find a use for these, please let us know.

Additional SPARQL Resources

...