vos_query {virtuoso} | 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_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")
}