<docbook><section><title>VirtTipsAndTricksGuideImportOntology</title><title> How to Import Ontology into Virtuoso?</title> How to Import Ontology into Virtuoso?
<para>The following guide describes how to import a given ontology file (for ex.
 <ulink url="http://example.org/ontology.owl)">http://example.org/ontology.owl)</ulink> into Virtuoso.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2">Import the Ontology Data</bridgehead>
 Assume one wants to import in Virtuoso the cert ontology  <ulink url="http://www.w3.org/ns/auth/cert">http://www.w3.org/ns/auth/cert</ulink># : <orderedlist spacing="compact"><listitem>Using the Conductor UI at http://&lt;cname&gt;/conductor -&gt; Database -&gt; Interactive SQL or from the ISQL command line, execute the following statement: <programlisting>SPARQL LOAD &lt;http://www.w3.org/ns/auth/cert#&gt;;
</programlisting><figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im1.png" /></figure> <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im2.png" /></figure> </listitem>
<listitem>Next execute the statement: <programlisting>SPARQL
DEFINE get:soft &quot;replace&quot; 
SELECT DISTINCT * 
FROM &lt;http://www.w3.org/ns/auth/cert#&gt; 
WHERE 
  {
    ?s ?p ?o
  }
</programlisting><figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im3.png" /></figure> <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im4.png" /></figure></listitem>
</orderedlist><bridgehead class="http://www.w3.org/1999/xhtml:h2">View the Imported Data Using FCT Browser</bridgehead>
<orderedlist spacing="compact"><listitem>Make sure you have installed the <ulink url="https://virtuoso.openlinksw.com/download/">Virtuoso Faceted Browser VAD package</ulink>.
</listitem>
<listitem>Go to <ulink url="http://http://&lt;cname&gt;/fct">http://http://&lt;cname&gt;/fct</ulink> <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im10.png" /></figure> </listitem>
<listitem>Go to &quot;Entity URI lookup&quot; <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im11.png" /></figure> </listitem>
<listitem>Enter the ontology url: <ulink url="http://www.w3.org/ns/auth/cert">http://www.w3.org/ns/auth/cert</ulink># .
 Select the provided file location: <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im12.png" /></figure> </listitem>
<listitem>Click &quot;Describe&quot;.
   1.The <ulink url="http://uriburner.com/describe/?url=http%3A%2F%2Fwww.w3.org%2Fns%2Fauth%2Fcert%23">main ontology</ulink> retrieved data should be presented: <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im13.png" /></figure> <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im16.png" /></figure> <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im17.png" /></figure> <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im18.png" /></figure> <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im19.png" /></figure> </listitem>
<listitem>You may want to proceed further exploring the retrieved data by viewing the  is isDefinedBy of : <emphasis><ulink url="http://uriburner.com/describe/?url=http%3A%2F%2Fwww.w3.org%2Fns%2Fauth%2Fcert%23Certificate">Certificate</ulink></emphasis> </listitem>
<listitem>Should be presented certificate definitions within the ontology: <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im20.png" /></figure> <figure><graphic fileref="VirtTipsAndTricksGuideImportOntology/im21.png" /></figure></listitem>
</orderedlist><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2">Related</bridgehead>
<itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="VirtTipsAndTricksGuide">Virtuoso Tips and Tricks Collection</ulink> </listitem>
<listitem><ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtFacetBrowserInstallConfig">Virtuoso Faceted Browser Installation and configuration</ulink> </listitem>
<listitem><ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtuosoFacetsWebService">Virtuoso Facets Web Service</ulink> </listitem>
<listitem><ulink url="http://ode.openlinksw.com/">The OpenLink Data Explorer Extension</ulink> </listitem>
<listitem><ulink url="http://docs.openlinksw.com/virtuoso/rdfsparql.html">Virtuoso Documentation</ulink></listitem>
</itemizedlist></section></docbook>