ropensci / rdflib

:package: High level wrapper around the redland package for common rdf applications
https://docs.ropensci.org/rdflib
Other
57 stars 9 forks source link

Virtuoso Backend #17

Closed nicholsn closed 6 years ago

nicholsn commented 6 years ago

First off, this is awesome - I've used the python rdflib package for some time and was surprised to see that the only R packages for working with semantic models were rrdf with an rjava dependency, a somewhat low level redland interface, and the SPARQL package. This rdflib package will hopefully be a game changer for using rdf in data science workflows.

Have you had a chance to check out other storage backends supported by redland? In particular, the support for virtuoso looked interesting: http://librdf.org/docs/api/redland-storage-module-virtuoso.html

Or possibly something like the SPARQLStore backend : https://github.com/RDFLib/rdflib/blob/master/examples/sparqlstore_example.py

The idea of a dplyr or dbplyr style sparql interface sounded pretty cool too.

cboettig commented 6 years ago

@nicholsn Thanks for the kind words! Yeah, I would definitely be interested in being able to work with other backends. This should work, but I think we have some fiddling to do at the redland level first.

https://github.com/ropensci/redland-bindings/issues/61 👀

nicholsn commented 6 years ago

sounds good, I'll take a look

cboettig commented 6 years ago

@nicholsn Okay, got this working now. Check out the test examples shown at the circle-ci badge, which show include tests of the virtuoso backend. Will require that redland C library is built with virtuoso support; which seems not to be the case if you just install librdf0-dev from debian.

Hope to add more documentation for this soon.