vos_query | R Documentation |
Run a SPARQL query
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
vos_start()
, vos_connect()
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.