Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

VIVO provides the capability to add ontologies and use them to describe your data and for query.  You can add your own, or pre-existing ontologies.  In each case, the ontology to be added will appear in the VIVO Ontology list and can be usedList along with ontologies provided with VIVO.

Using the Web Interface

Create an Ontology

To create an ontology from the web interface, follow the steps in Create, Assign, and Use an Institutional Internal Class.  These instructions show how to create an ontology using the web interface, and add a class, the Institutional Class to the ontology.  Once your ontology is created, you can add an Institutional Class as described, additional classes, data properties and Object properties.  You may create as many additional ontologies as you need.

Load an Existing Ontology

You can add an ontology from a file into VIVO is to use using the Add/Remove RDF Data feature shown on the Site Admin page.  This loads an ontology directly into the triple store.  The disadvantage is that all additional ontologies and local edits are loaded into a single graph.  This can make it cumbersome to update individual ontologies to reflect edits made outside of VIVO.  

Loading from Filegraphs

There is another mechanism for incorporating ontologies into VIVO.  This involves "filegraphs," and is how the VIVO -ISF ontology is included with the software.  Filegraphs are RDF documents stored in the VIVO home directory.  Each filegraph corresponds to a single named graph in the triple store.  Every time Tomcat starts, VIVO checks each of these graphs to ensure that its contents exactly match the triples found in the corresponding file.  If the file has changed, VIVO makes the necessary modifications to the corresponding named graph in the triple store.  If a filegraph is removed from its directory, its graph in the triple store will be deleted the next time Tomcat starts.

Example

Code Block
vitrovivo.home/
    rdf/
        tbox/
            filegraph/
                agentvivo.owl
                appControls-temp.n3
                bfo-bridge.owl
                bfoontologies.owl
                ...
                myOntology.owl
                ...

Adding myOntology.owl to the directory as shown above will automatically create the corresponding named graph in the triple store after Tomcat is restarted:

...

Modifying or removing the myOntology.owl file in the filegraph directory and restarting Tomcat will automatically update remove the ontology VIVOnamed graph.

Namespace Prefixes

Additional ontologies, whether directly imported via 'Add/Remove RDF data' or implemented as filegraphs, are listed in the ontology list ('Site Admin > Ontology list'). While the ontologies name and namespace are automatically added to the list, the prefix is not. Instead, the note '(not yet specified)' appears. This behavior occurs even if the prefix is correctly specified in the RDF file.

...