<docbook><section><title>VirtGoogleVocab</title><bridgehead class="http://www.w3.org/1999/xhtml:h2">Virtuoso Mapping Ontology for Google</bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h3">What</bridgehead>
<para>Virtuoso offers mapping ontology for Google.
 The Virtuoso hosted version:  <ulink url="http://www.openlinksw.com/schemas/external/googlevocab">http://www.openlinksw.com/schemas/external/googlevocab</ulink>#</para>
<para>It receives redirects from <ulink url="http://purl.org/NET/googlevocab">http://purl.org/NET/googlevocab</ulink># .</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3">Why</bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h3">How</bridgehead>
<para>The mapping can be initialize executing the sql file and uploading the ontology file as shown in the list below:</para>
<orderedlist spacing="compact"><listitem><ulink url="VirtGoogleVocab/www.sql">Re-write rules creation</ulink> </listitem>
<listitem><ulink url="VirtGoogleVocab/googlevoc_v4.n3">Google Vocabulary Ontology</ulink> </listitem>
<listitem><ulink url="VirtGoogleVocab/googlevoc.rdf">Google Vocabulary rdf</ulink></listitem>
</orderedlist><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h4">Deploying Google Mapping Vocabulary using Conductor UI:</bridgehead>
<para>The following step-by-step guide will lead you trough the process of Deploying Google Mapping Vocabulary using Conductor UI:</para>
<orderedlist spacing="compact"><listitem>Go to http://&lt;cname&gt;:port/conductor </listitem>
<listitem>Log in as dba user</listitem>
</orderedlist><para>Upload the ontology file:</para>
<para>Go to Web Application Server -&gt; Content Management</para>
<para> <figure><graphic fileref="VirtGoogleVocab/cn4.png" /></figure></para>
<orderedlist spacing="compact"><listitem>Create folder schemas ( if does not exist already): </listitem>
<listitem>Click the button &quot;New folder&quot; </listitem>
<listitem>In the shown form: <orderedlist spacing="compact"><listitem>Enter Folder name: schemas </listitem>
<listitem>Change Owner to dav </listitem>
<listitem>Change Free Text Indexing to Recursively </listitem>
<listitem>Click the &quot;Create&quot; button.
</listitem>
<listitem>As result the folder &quot;schemas&quot; will be created.</listitem>
</orderedlist></listitem>
</orderedlist><para>Go to path /DAV/schemas</para>
<figure><graphic fileref="VirtGoogleVocab/cn5.png" /></figure><orderedlist spacing="compact"><listitem>Click the &quot;Upload&quot; button.
</listitem>
<listitem>In the shown form: <orderedlist spacing="compact"><listitem>Change Destination to RDF Store </listitem>
<listitem>For File click the Browse button and select the googlevoc.n3 file </listitem>
<listitem>Enter for RDF IRI for ex.: <ulink url="http://www.openlinksw.com/schemas/external/googlevocab">http://www.openlinksw.com/schemas/external/googlevocab</ulink># </listitem>
<listitem>Click the upload button</listitem>
</orderedlist></listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn6.png" /></figure><para>As result the file will be uploaded.</para>
<para>Let&#39;s check the RDF data:</para>
<orderedlist spacing="compact"><listitem>Go to http://&lt;cname&gt;:port/sparql </listitem>
<listitem>Enter the Graph IRI, for ex.
 <ulink url="http://www.openlinksw.com/schemas/external/googlevocab">http://www.openlinksw.com/schemas/external/googlevocab</ulink># </listitem>
<listitem>Enter the following query: <programlisting>select *
where {?s ?p ?o}
</programlisting></listitem>
<listitem>Click the &quot;Run Query&quot; button.
</listitem>
<listitem>As result the RDF data for the given graph will be shown:</listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn7.png" /></figure><para>Create the virtual folder:</para>
<orderedlist spacing="compact"><listitem>Go to Web Application Server -&gt; Virtual Domains &amp; Directories </listitem>
<listitem>For defined http host, for ex.
 www.
 openlinksw.com expand the Interface blue folder icon:</listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn1.png" /></figure><orderedlist spacing="compact"><listitem>Click New Directory </listitem>
<listitem>In the shown form select type: <ulink url="WebDAV">WebDAV</ulink> doman and click the &quot;Next&quot; button.</listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn2.png" /></figure><orderedlist spacing="compact"><listitem>In the Virtual Directory creation form: <orderedlist spacing="compact"><listitem>Enter Path: /schemas/external/googlevocab </listitem>
<listitem>leave checked &quot;Physical path is a <ulink url="WebDAV">WebDAV</ulink> repository&quot; </listitem>
<listitem>Enter Physical path: /DAV/schemas/googlevoc.n3 </listitem>
<listitem>Click the &quot;Save Changes&quot; button</listitem>
</orderedlist></listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn3.png" /></figure><para>As result the Virtual Directory will be created and shown in the list of virtual directories for the selected host.</para>
<para>Create re-write rules for the created virtual folder from above:</para>
<orderedlist spacing="compact"><listitem>Click the URL-rewrite link for the created &quot;/schemas/external/googlevocab&quot; virtual directory </listitem>
<listitem>As result will be shown the URL rewriting rules form:</listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn8.png" /></figure><para>Add first rule:</para>
<orderedlist spacing="compact"><listitem>Change &quot;Destination Path format&quot; to: <programlisting>/rdfdesc/description.vsp?g=http%3A%2F%2Fwww.openlinksw.com%2Fschemas%2Fexternal%2Fgooglevocab%2F$U1&amp;p=googlevoc
</programlisting> <figure><graphic fileref="VirtGoogleVocab/cn9.png" /></figure></listitem>
</orderedlist><orderedlist spacing="compact"><listitem>Click the &quot;Add&quot; button.
</listitem>
<listitem>As result the rule will be created:</listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn10.png" /></figure><para>Now let&#39;s create the second rule:</para>
<orderedlist spacing="compact"><listitem>Change &quot;Rule matching&quot; to &quot;Last matching&quot; </listitem>
<listitem>Enter for &quot;Request Path pattern&quot;: <programlisting>/schemas/external/googlevocab/([^\.]*)$ 
</programlisting></listitem>
<listitem>Enter for &quot;Accept Header Request pattern&quot;: application/rdf.xml </listitem>
<listitem>Enter for &quot;Destination Path format&quot;: <programlisting>/schemas/external/googlevocab/$U1.xml
</programlisting></listitem>
<listitem>Change &quot;HTTP Response Code&quot; to: 303</listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn11.png" /></figure><orderedlist spacing="compact"><listitem>Click the &quot;Add&quot; button.
</listitem>
<listitem>As result the rule will be created:</listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn12.png" /></figure><para>Now let&#39;s create the third rule:</para>
<orderedlist spacing="compact"><listitem>Change &quot;Rule matching&quot; to &quot;Last matching&quot; </listitem>
<listitem>Enter for &quot;Request Path pattern&quot;: <programlisting>/schemas/external/googlevocab/([^\.]*)$
</programlisting></listitem>
<listitem>Enter for &quot;Accept Header Request pattern&quot;: text/rdf.n3 </listitem>
<listitem>Enter for &quot;Destination Path format&quot;: <programlisting>/schemas/external/googlevocab/$U1.n3
</programlisting></listitem>
<listitem>Change &quot;HTTP Response Code&quot; to: 303</listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn13.png" /></figure><orderedlist spacing="compact"><listitem>Click the &quot;Add&quot; button.
</listitem>
<listitem>As result the rule will be created:</listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn14.png" /></figure><para>Now let&#39;s create the forth rule:</para>
<orderedlist spacing="compact"><listitem>Change &quot;Rule matching&quot; to &quot;Last matching&quot; </listitem>
<listitem>Enter for &quot;Request Path pattern&quot;: <programlisting>/schemas/external/googlevocab/([^\.]*)\.(rdf|xml|n3)$
</programlisting></listitem>
<listitem>Enter for &quot;Accept Header Request pattern&quot;: (text/rdf.n3)|(application/rdf.xml) </listitem>
<listitem>Enter for &quot;Destination Path format&quot;: <programlisting>/sparql?query=describe%20%3Chttp%3A%2F%2Fwww.openlinksw.com%2Fschemas%2Fexternal%2Fgooglevocab%2F$U1%3E&amp;format=$accept
</programlisting> <figure><graphic fileref="VirtGoogleVocab/cn15.png" /></figure></listitem>
</orderedlist><orderedlist spacing="compact"><listitem>Click the &quot;Add&quot; button.
</listitem>
<listitem>As result the rule will be created</listitem>
</orderedlist><figure><graphic fileref="VirtGoogleVocab/cn16.png" /></figure><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3">Examples</bridgehead>
<itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="VirtGoogleVocabExamples">View Sample Curl Examples</ulink>.</listitem>
</itemizedlist><bridgehead class="http://www.w3.org/1999/xhtml:h3">References</bridgehead>
<itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="http://rdf.data-vocabulary.org/">Google Vocabulary</ulink> </listitem>
</itemizedlist></section></docbook>