When a new user is created, a new WebDAV folder with name
rdf_sink is automatically created in the user's home directory.
rdf_sink folder has two special properties -
WebDAV property names are prefixed with
virt:, and these are not shown as resource/collection properties in the ODS Briefcase; they can only be seen in the Conductor.
The properties of other DET folders are prefixed in the same way.
virt:rdf_graphcontains the name of the graph into which triples parsed from the uploaded files will be loaded.
virt:rdf_spongerholds the upload method.
|on||The content of every file uploaded to that folder will be added to the RDF store using the Sponger method.|
|off||The content of only files with special MIME types will be added to RDF store.|
After the first upload into the folder, a new file is created with a name based on the RDF graph name. This file is dynamic, and contains all uploaded triples.
Resources stored to the
rdf_sink folder don't have any special properties.
A user may see the properties of this folder through the Conductor UI, using the Properties button found to the right of the folder name. That page will include two WebDAV properties, for instance --
Users may change these values as other WebDAV properties.
When a Virtuoso DB is upgraded from a version which lacked the RDF Sink feature, to a version which includes it --
rdf_sinkfolder in the home directory of existing users.
rdf_sinkfolder is created too.
How does it work?
rdf_sinkfolder, it is parsed for RDF data, which is then stored in 2 graphs:
rdf_sinkfolder, containing RDF data from all files stored there;
Accept:header, then the parsed content of the file is returned from the private graph in accepted type.
demo uploads an RDF file to the
rdf_sink folder at
demouser's Briefcase instance home page.
TimBLcard.rdf") to the
http___demo.openlinksw.com_DAV_home_demo_rdf_sink_.RDF" DET file is created.
virt:rdf_graphproperty for the
Suppose there is myfoaf.rdf file with the following content:
<rdf:RDF xmlns="http://www.example/jose/foaf.rdf#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:log="http://www.w3.org/2000/10/swap/log#" xmlns:myfoaf="http://www.example/jose/foaf.rdf#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <foaf:Person rdf:about="http://www.example/jose/foaf.rdf#jose"> <foaf:homepage rdf:resource="http://www.example/jose/"/> <foaf:knows rdf:resource="http://www.example/jose/foaf.rdf#juan"/> <foaf:name>Jose Jimen~ez</foaf:name> <foaf:nick>Jo</foaf:nick> <foaf:workplaceHomepage rdf:resource="http://www.corp.example/"/> </foaf:Person> <foaf:Person rdf:about="http://www.example/jose/foaf.rdf#juan"> <foaf:mbox rdf:resource="mailto:email@example.com"/> </foaf:Person> <foaf:Person rdf:about="http://www.example/jose/foaf.rdf#julia"> <foaf:mbox rdf:resource="mailto:firstname.lastname@example.org"/> </foaf:Person> <rdf:Description rdf:about="http://www.example/jose/foaf.rdf#kendall"> <foaf:knows rdf:resource="http://www.example/jose/foaf.rdf#edd"/> </rdf:Description> </rdf:RDF>
Now let's upload the
myfoaf.rdf file to destination server
demo.openlinksw.com, for user
File: myfoaf.rdf Destination Server: demo.openlinksw.com curl -T myfoaf.rdf http://demo.openlinksw.com/DAV/home/demo/rdf_sink/myfoaf.rdf -u demo:demo <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML> <HEAD> <TITLE>201 Created</TITLE> </HEAD> <BODY> <H1>Created</H1> Resource /DAV/home/demo/rdf_sink/ myfoaf.rdf has been created. </BODY> </HTML>