VIVO Documentation
Page History
Table of Contents |
---|
Overview
VIVO stores its information in graphs – named collections of triples. Graphs keep data organized by kind, and provide the opportunity for different access rights and management practices to be applied at the graph level. All graphs are available to the VIVO SPARQL query interface. When using SPARQL to query the VIVO data, one does not need to know the graph the data is contained in. Triples in all graphs are available to the query. When updating data in VIVO using CONSTRUCT or UPDATE, knowledge of the graph may be necessary.
Here we show how to list the graphs in a VIVO, and provide a reference for the purpose of each graph.
Listing the graphs used by VIVO
...
Code Block | ||
---|---|---|
| ||
SELECT ?g WHERE { GRAPH ?g { ?s ?p ?o . } } GROUP BY ?g ORDER BY ?g |
To list the triples in a specific graph, use the query below, substituting the name of the graph you wish to list. Caution: listing the triples in larger graphs may take significant time.
Code Block | ||
---|---|---|
| ||
SELECT ?s ?p ?o
WHERE
{
GRAPH <http://vitro.mannlib.cornell.edu/filegraph/tbox/sameAs.n3> {
?s ?p ?o .
}
} |
The graphs used by VIVO