Closed cboettig closed 6 years ago
Should be sufficient to use a SPARQL query for this; e.g.
sparql <-'
SELECT ?subject ?predicate ?object
WHERE { ?subject ?predicate ?object . }
'
doc <- system.file("extdata", "dc.rdf", package="redland")
rdf <- rdf_parse(doc)
rdf_query(rdf, sparql)
prefixes and column names could of course be adjusted as desired.
Sometimes convenient to return triples as a data frame.