Learn R Programming

roxigraph (version 0.1.0)

sparql_query: Execute a SPARQL Query

Description

Executes a SPARQL query against the RDF store.

Usage

sparql_query(store, query)

Value

For SELECT queries, a data.frame with results. For ASK queries, a logical. For CONSTRUCT/DESCRIBE queries, a data.frame with subject, predicate, object columns.

Arguments

store

An RDF store handle

query

A SPARQL query string

Examples

Run this code
store <- rdf_store()
rdf_load(store, '  "hello" .', format = "ntriples")
sparql_query(store, "SELECT * WHERE { ?s ?p ?o }")

Run the code above in your browser using DataLab