Load Turtle Example Resource using Command Line Turtle Loader

The following example demonstrates how to retrieve triples from remote Turtle resource using the Command Line Turtle Loader.

Prerequisites

The following packages should be installed:

  1. conductor_dav.vad package
  2. cartridges_dav.vad package

Steps

  1. Assume the following https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl public turtle resource.
  2. Call the Virtuoso DB.DBA.TTLP function from ISQL as follows:

    SQL> DB.DBA.TTLP ( http_get('https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl'), 'http://mytest.com', 'http://mytest.com' ); Done. -- 1 msec.

  3. View the inserted triples by executing the following statements:

    SQL> set blobs on; SQL> SPARQL DEFINE output:format "TTL" CONSTRUCT { ?s ?p ?o } FROM <http://mytest.com> WHERE { ?s ?p ?o }; fmtaggret-TTL LONG VARCHAR _______________________________________________________________________________ @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix ns1: <https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl#> . ns1:Alice foaf:name "Alice" . @prefix wdrs: <http://www.w3.org/2007/05/powder-s#> . ns1:Alice wdrs:describedby <https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl> ; foaf:age 38 ; foaf:near ns1:London ; ns1:child ns1:Bob , ns1:Charlie . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . ns1:child rdfs:label "Child Property or Attribute" . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix ns5: <http://purl.org/vocab/relationship/> . ns1:child owl:equivalentProperty ns5:childOf ; wdrs:describedby <https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl> . ns1:Edna ns1:child ns1:Alice . ns1:Fred ns1:child ns1:Alice . @prefix dbpedia: <http://dbpedia.org/resource/> . ns1:London owl:sameAs dbpedia:London ; rdfs:label "London" ; wdrs:describedby <https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . <https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl> rdf:type foaf:Document . @prefix dc: <http://purl.org/dc/elements/1.1/> . <https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl> dc:title "Linked Data Deployment using an Amazon S3 Bucket and a Turtle content based Document" . @prefix ns9: <http://kingsley.idehen.net/dataspace/person/kidehen#> . <https://s3.amazonaws.com/webid-sandbox/Enhanced-Turtle-Example.ttl> foaf:maker ns9:this ; foaf:topic ns1:Alice , ns1:child , ns1:London . @prefix ns10: <http://purl.org/dc/terms/> . _:vb140754 ns10:title "My life" ; ns10:date "1999" ; ns10:creator ns1:Alice . 1 Rows. -- 94 msec. SQL>

Related