Attributes | Values |
---|
type
| |
Date Created
| |
Date Modified
| |
label
| - VirtTipsAndTricksIsPropertyOfSyntaxInTurtleCMD
|
maker
| |
Title
| - VirtTipsAndTricksIsPropertyOfSyntaxInTurtleCMD
|
isDescribedUsing
| |
has creator
| |
content
| - %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 [[http://s3.amazonaws.com/opldownload/uda/vad-packages/6.4/virtuoso/conductor_dav.vad][conductor_dav.vad]] package.
1 [[http://s3.amazonaws.com/opldownload/uda/vad-packages/6.4/virtuoso/cartridges_dav.vad][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:
<verbatim>
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.
</verbatim>
1 View the inserted triples by executing the following statements:
<verbatim>
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>
</verbatim>
---+++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]]
|
id
| - 96bf0117547482e5add3042c28fc2e68
|
link
| |
has container
| |
http://rdfs.org/si...ices#has_services
| |
atom:title
| - VirtTipsAndTricksIsPropertyOfSyntaxInTurtleCMD
|
links to
| |
atom:source
| |
atom:author
| |
atom:published
| |
atom:updated
| |
topic
| |
is made
of | |
is container of
of | |
is link
of | |
is http://rdfs.org/si...vices#services_of
of | |
is links to
of | |
is creator of
of | |
is atom:entry
of | |
is atom:contains
of | |