We are working on importing profile information from social networks. I have been looking at the RDFx module, because it includes ARC2 as a data store.
We want to have imported data available as triples. At first we created a content type to hold the imported information, but this requires fixing down the format and information imported in advance, in order to define the content types. In Drupal 6 the Feeds module worked with the Data module to import arbitrary data into a separate table. I was wondering if you think it would be possible to do something similar, but inserting the data into a triple store? I had a look at the RDFx module, but I couldn't see how this would be possible.
I'm thinking that I would write a simple Feeds Processor plugin, to use instead of the node processor plugin, but I can't see how to use the RDFx API to store the data. Can anyone point me in the right direction? Thanks!
Comments
The SPARQL module includes
The SPARQL module includes the SPARQL Endpoint module, which sets up a local ARC store. However, I don't think there are any helpers for managing arbitrary data like with the D6 RDF module. If you're writing a Feeds processor, you'll probably need to work with ARC directly...
$store = sparql_get_store('site_endpoint');Drupal 7 does not have this
Drupal 7 does not have this capability yet, but it is very welcome if you want to work on it. I second Miles and encourage you to look at the SPARQL module, and I'd recommend looking at
sparql_get_store()in particular, which can give you access to a custom ARC2 RDF store (it will create it if it does not yet exists in the database). It returns an ARC2 store object which you can use to run your read/write queries. You can also turn this store into a SPARQL endpoint as well if you need, that's optional.