%META:TOPICPARENT{name="VirtTipsAndTricksIsPropertyOfSyntaxInTurtle"}% ---+ Load Turtle Example Resource using SPARQL 1.1 LOAD FEATURE %TOC% The following example demonstrates how to retrieve triples from remote Turtle resource using the SPARQL 1.1. LOAD Feature. ---+++Prerequisites The following packages should be installed: 1 [[https://virtuoso.openlinksw.com/download/][conductor_dav.vad]] package. 1 [[https://virtuoso.openlinksw.com/download/][ods_framework_dav.vad]] package. 1 [[https://virtuoso.openlinksw.com/download/][cartridges_dav.vad]] package. ---+++Steps 1 Assume the following [[https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl][https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl]] public turtle resource. 1 [[http://ods.openlinksw.com/dataspace/dav/wiki/ODS/ODSGenerateX509Certificate][Generate an X.509 Certificate hosted WebID]]. 1 [[VirtSPARQLSSL][Create SPARQL-WebID based Endpoint]]. 1 Go to http://<cname>:<port>/conductor, where <cname>:<port> are replaced by your local server values. 1 Log in as user "dba" or another user with DBA privileges 1 Go to Linked Data -> Access Controls -> SPARQL-WebID : %BR%%BR%%BR%%BR% 1 In the shown form: 1 Enter for Web ID for ex.: http://id.myopenlink.net/dataspace/person/demo#this 1 Select "SPARQL Role": "UPDATE". 1 Leave "Use existing User account:" to "none" so to be created a new SQL User associated with the new WebID ACL: %BR%%BR%%BR%%BR% 1 Click the "Register" button. 1 As result the WebID Protocol ACL will be created and will be associated with the new create SQL Account SPUID1: %BR%%BR%%BR%%BR% 1 Go to the SPARQL+WebID endpoint https://<cname>:<port>/sparql-webid 1 When challenged for authentication select the user's certificate generated from above: %BR%%BR%%BR%%BR% 1 The protected SPARQL-WebID Endpoint UI should be presented: %BR%%BR%%BR%%BR% 1 To verify the Logged In Identity, execute the following query: select (bif:get_user()) {} %BR%%BR%%BR%%BR% %BR%%BR%%BR%%BR% 1 Click back and in order to load triples from our remote example resource, execute the following statement: load %BR%%BR%%BR%%BR% %BR%%BR%%BR%%BR% 1 Check the inserted triples by executing the following query: SELECT * FROM WHERE { ?s ?p ?o } %BR%%BR%%BR%%BR% %BR%%BR%%BR%%BR% ---+++Related * See extended [[VirtRDFGraphsSecurity][fine-grained scenarios]] using RDF GRAPH Security. * Load Turtle resource(s) using: * [[VirtTipsAndTricksIsPropertyOfSyntaxInTurtleConductor][Conductor]]; * [[VirtTipsAndTricksIsPropertyOfSyntaxInTurtleSponger][Sponger]]; * [[VirtTipsAndTricksIsPropertyOfSyntaxInTurtleCMD][Command Line Turtle Loader]]; * [[VirtTipsAndTricksIsPropertyOfSyntaxInTurtle][Using {is property of} for inverse relations in Turtle]] * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]] * [[http://docs.openlinksw.com/virtuoso/rdfsparql.html][Virtuoso Documentation]]