Load Turtle Example Resource using SPARQL 1.1 LOAD FEATURE

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. conductor_dav.vad package.
  2. ods_framework_dav.vad package.
  3. cartridges_dav.vad package.

Steps

  1. Assume the following https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl public turtle resource.
  2. Generate an X.509 Certificate hosted WebID.
  3. Create SPARQL-WebID based Endpoint.
  4. Go to http://<cname>:<port>/conductor, where <cname>:<port> are replaced by your local server values.
  5. Log in as user "dba" or another user with DBA privileges
  6. Go to Linked Data -> Access Controls -> SPARQL-WebID? :



  7. In the shown form:
    1. Enter for Web ID for ex.:

      http://id.myopenlink.net/dataspace/person/demo#this

    2. Select "SPARQL Role": "UPDATE".
    3. Leave "Use existing User account:" to "none" so to be created a new SQL User associated with the new WebID? ACL:



  8. Click the "Register" button.
  9. As result the WebID? Protocol ACL will be created and will be associated with the new create SQL Account SPUID1:



  10. Go to the SPARQL+WebID? endpoint https://<cname>:<port>/sparql-webid
  11. When challenged for authentication select the user's certificate generated from above:



  12. The protected SPARQL-WebID? Endpoint UI should be presented:



  13. To verify the Logged In Identity, execute the following query:

    select (bif:get_user()) {}









  14. Click back and in order to load triples from our remote example resource, execute the following statement:

    load <https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl>









  15. Check the inserted triples by executing the following query:

    SELECT * FROM <https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl> WHERE { ?s ?p ?o }









Related