• Topic
  • Discussion
  • VOS.VirtTipsAndTricksGuideImportOntology(Last) -- Owiki? , 2018-04-13 12:08:50 Edit owiki 2018-04-13 07:08:50

    How to Import Ontology into Virtuoso?

    The following guide describes how to import a given ontology file (for ex. http://example.org/ontology.owl) into Virtuoso.

    Import the Ontology Data

    Assume one wants to import in Virtuoso the cert ontology http://www.w3.org/ns/auth/cert# :
    1. Using the Conductor UI at http://<cname>/conductor -> Database -> Interactive SQL or from the ISQL command line, execute the following statement:

      SPARQL LOAD <http://www.w3.org/ns/auth/cert#>;

    2. Next execute the statement:

      SPARQL DEFINE get:soft "replace" SELECT DISTINCT * FROM <http://www.w3.org/ns/auth/cert#> WHERE { ?s ?p ?o }

    View the Imported Data Using FCT Browser

    1. Make sure you have installed the Virtuoso Faceted Browser VAD package.
    2. Go to http://http://<cname>/fct

    3. Go to "Entity URI lookup"

    4. Enter the ontology url: http://www.w3.org/ns/auth/cert# . Select the provided file location:

    5. Click "Describe". 1.The main ontology retrieved data should be presented:

    6. You may want to proceed further exploring the retrieved data by viewing the is isDefinedBy of : Certificate
    7. Should be presented certificate definitions within the ontology: