Kingsley Idehen wrote:
Nathan wrote:
Hi,

What's the simplest way to get the contents of an RDF document in to a specified graph in the quad store?
If you accept the Resource URL as its Named Graph IRI then just use the sponger. Basically, just enable the pragma: define get:soft "replace" option should you want to make an explicit replace rather than leaving the Sponger's cache invalidation to kick-in (when you next access the Graph).

Thus, you simply SPARQL against an RDF Resource URL or use one of the patterns listed at: http://uriburner.com (which is just a Virtuoso Sponger Instance that basically get populated when users Sponger various non RDF resources).
Up till now I've been using HTTP PUT to a configured rdf_sink folder, however I find now that I *do not* want the duplicate set of data - ideally I just need to PUT a serialized chunk of RDF to a location and have triples end up in the specified graph, any simple way?

Otherwise use SPARUL explicitly.

Thus far I've had problems with doing SPARUL when using long xml fragments & have had to avoid for the past few months.. until today I did some extended debugging and found I had a schoolboy error in my Sparql Client where it was resetting to GET after every request instead of POST! (which is needed for the larger sets of triples). Thus, negated.

I should probably apologise for the noise (sorry lol); at the same time though I would like to put in a feature request to allow you to 'sink' via PUT) or 'sponge' rdf in to a single specified named graph rather than the default resource based graph - nothing urgent though.

Best,

Nathan

Reply via email to