%META:TOPICPARENT{name="VirtTipsAndTricksIsPropertyOfSyntaxInTurtle"}%
---+ Load Turtle Example Resource using Command Line Turtle Loader
%TOC%
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 [[https://virtuoso.openlinksw.com/download/][conductor_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 Call the [[http://docs.openlinksw.com/virtuoso/fn_ttlp.html][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.
1 View the inserted triples by executing the following statements:
SQL> set blobs on;
SQL> SPARQL
DEFINE output:format "TTL"
CONSTRUCT { ?s ?p ?o }
FROM
WHERE
{
?s ?p ?o
};
fmtaggret-TTL
LONG VARCHAR
_______________________________________________________________________________
@prefix foaf: .
@prefix ns1: .
ns1:Alice foaf:name "Alice" .
@prefix wdrs: .
ns1:Alice wdrs:describedby ;
foaf:age 38 ;
foaf:near ns1:London ;
ns1:child ns1:Bob ,
ns1:Charlie .
@prefix rdfs: .
ns1:child rdfs:label "Child Property or Attribute" .
@prefix owl: .
@prefix ns5: .
ns1:child owl:equivalentProperty ns5:childOf ;
wdrs:describedby .
ns1:Edna ns1:child ns1:Alice .
ns1:Fred ns1:child ns1:Alice .
@prefix dbpedia: .
ns1:London owl:sameAs dbpedia:London ;
rdfs:label "London" ;
wdrs:describedby .
@prefix rdf: .
rdf:type foaf:Document .
@prefix dc: .
dc:title "Linked Data Deployment using an Amazon S3 Bucket and a Turtle
content based Document" .
@prefix ns9: .
foaf:maker ns9:this ;
foaf:topic ns1:Alice ,
ns1:child ,
ns1:London .
@prefix ns10: .
_:vb140754 ns10:title "My life" ;
ns10:date "1999" ;
ns10:creator ns1:Alice .
1 Rows. -- 94 msec.
SQL>
---+++Related
* See extended [[VirtRDFGraphsSecurity][fine-grained scenarios]] using RDF GRAPH Security.
* Load Turtle resource(s) using:
* [[VirtTipsAndTricksIsPropertyOfSyntaxInTurtleLOAD][SPARQL 1.1 LOAD FEATURE]];
* [[VirtTipsAndTricksIsPropertyOfSyntaxInTurtleConductor][Conductor]];
* [[VirtTipsAndTricksIsPropertyOfSyntaxInTurtleSponger][Sponger]];
* [[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]]
* [[VirtSponger][Virtuoso Sponger]]