On 5/30/10 9:04 PM, Hugh Williams wrote:
Hi Nathan,

Would inserting via the Virtuoso SPARQL endpoint suffice, as detailed at:

        
http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtRDFInsert#SPARQL%20Insert%20via%20/sparql%20endpoint

Nathan,

Interim (without an explicit URL pattern for HTTP PUT or PATCH operation).

Resource URL: <http://xyz.rdf>
Content: One or more triples (any RDF family format)

Goal: get the content into a Virtuoso Quad Store.

Actions (assuming the Sponger VAD is installed and role SPARQL_UPDATE is enabled for "sparql" account) using GET:

1. http://<cname-of-virtuoso-host>/about/{representation}/{resource-url}


Effect (irrespective of {representation}):

1. Named Graph IRI: <http://xyz.rdf>, is created within Quad Store
2. Contents of resource "xyz.rdf" are inserted into Graph IRI: <xyz.rdf> .

Verification via /sparql endpoint of Virtuoso instance:

select distinct * from <http://xyz.rdf> where {?s ?p ?o} .


How do I replace the content of Graph IRI: <http://xyz.rdf> ?

Simply do one of the following:

iSQL interface: sparl clear graph <http://xyz.rdf>

SPARQL Endpoint:

define get:soft "replace"

select distinct * from <http://xyz.rdf> where {?s ?p ?o} .


Tip:
executing the following via /sparq, with or without the: define get:soft "replace", pragma also delivers the desired effect:

select distinct * from <http://xyz.rdf> where {?s ?p ?o}



Kingsley
Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
Twitter: http://twitter.com/OpenLink

On 30 May 2010, at 21:55, 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?

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?

Best,

Nathan

------------------------------------------------------------------------------

_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

------------------------------------------------------------------------------

_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Reply via email to