Description Usage Arguments Details Value References See Also Examples
Run a SPARQL query
1 | vos_query(con, query)
|
con |
a ODBC connection to Virtuoso, from |
query |
a SPARQL query statement |
SPARQL is a graph query language similar in syntax SQL, but allows the use of variables to walk through graph nodes.
a data.frame
containing the results of the query
1 2 3 4 5 6 7 8 9 | vos_status()
if(has_virtuoso()){
vos_start()
con <- vos_connect()
# show first 4 triples in the database
DBI::dbGetQuery(con, "SPARQL SELECT * WHERE { ?s ?p ?o } LIMIT 4")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.