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