virtuoso (version 0.1.5)

vos_query: Run a SPARQL query

Description

Run a SPARQL query

Usage

vos_query(con, query)

Arguments

con

a ODBC connection to Virtuoso, from vos_connect()

query

a SPARQL query statement

Value

a data.frame containing the results of the query

Details

SPARQL is a graph query language similar in syntax SQL, but allows the use of variables to walk through graph nodes.

References

See Also

vos_start(), vos_connect()

Examples

Run this code
# NOT RUN {
vos_status()
# }
# NOT RUN {
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")
}
# }

Run the code above in your browser using DataLab