*Deprecated* This material is for historical purposes only See https://wiki.duraspace.org/display/VIVODOC/All+Documentation for current documentation
*Deprecated* See https://wiki.duraspace.org/display/VIVODOC/All+Documentation for current documentation
This page describes how the data models were initialized before release 1.6. The principal changes are these:
Compare to the Initialization section in the parent page.
When VIVO starts up, OntModel
objects are created to represent the various data models. The configuration models are created from the datasource connection, usually to a MySQL database. The content models are created using the new RDFService layer. By default this also uses the datasource connection, but it can be configured to use any SPARQL endpoint for its data.
Some of the smaller models are "memory-mapped" for faster access. This means that they are loaded entirely into memory at startup. Any changes made to the memory image will be replicated in the original model.
The data in each model persists in the application datasource (usually a MySQL database), or in the RDFService. Also, data from disk files may be loaded into the models. This may occur:
depending on the particular model.
For purposes of initialization, VIVO is considered to be starting for the first time if the Application metadata model contains no statements, or if the RDFService detects that its SDB-based datastore has not been initialized.
Function: Describes the configuration of VIVO at this site. Many of the configuration options are obsolete.
Name: http://vitro.mannlib.cornell.edu/default/vitro-kb-applicationMetadata
Source: the application Datasource (MySQL database) (memory-mapped)
If this is the first startup, read the files in /WEB-INF/init-data (without subdirectories)
Also if this is the first startup, read the files in /WEB-INF/ontologies/user/applicationMetadata
Contains login credentials and assigned roles for VIVO users.
Name: http://vitro.mannlib.cornell.edu/default/vitro-kb-userAccounts
Source: the application Datasource (MySQL database) (memory-mapped)
If this model is empty, read the files in /WEB-INF/ontologies/auth (without subdirectories). Ordinarily there are no such files. This feature is useful when running acceptance tests.
This is the ABox for the display model, and contains the RDF statements that define managed pages, custom short views, and other items.
Name: http://vitro.mannlib.cornell.edu/default/vitro-kb-displayMetadata
Source: the application Datasource (MySQL database) (memory-mapped)
If this model is empty, read the files in /WEB-INF/ontologies/app/ (without subdirectories)
Every time, read the files in /WEB-INF/ontologies/app/loadedAtStartup
The TBox for the display model.
Name: http://vitro.mannlib.cornell.edu/default/vitro-kb-displayMetadataTBOX
Source: the application Datasource (MySQL database) (memory-mapped)
Every time, read /WEB-INF/ontologies/app/menuload/displayTBOX.n3 (note that existing statements are not cleared, except through the GUI)
Name: http://vitro.mannlib.cornell.edu/default/vitro-kb-displayMetadata-displayModel
Source: the application Datasource (MySQL database) (memory-mapped)
Every time, read /WEB-INF/ontologies/app/menuload/displayDisplay.n3 (note that existing statements are not cleared, except through the GUI)
Name: http://vitro.mannlib.cornell.edu/default/vitro-kb-2
Source: named graph from the RDFService
If first setup, read the files in /WEB-INF/ontologies/user/abox (without subdirectories)
Every time, read the files in /WEB-INF/filegraph/abox, and create named models in the RDFService. Add them as sub-models to the base ABox. If these files are changed or deleted, update the RDFService accordingly.
Name: http://vitro.mannlib.cornell.edu/default/asserted-tbox
Source: named graph from the RDFService (memory-mapped)
If first setup, read the files in /WEB-INF/ontologies/user/tbox (without subdirectories)
Every time, read the files in /WEB-INF/filegraph/tbox, and create named models in the RDFService. Add them as sub-models to the base TBox. If these files are changed or deleted, update the RDFService accordingly.
Source: a combination of base ABox and base TBox
Name: http://vitro.mannlib.cornell.edu/default/vitro-kb-inf
Source: named graph from the RDFService
Name: http://vitro.mannlib.cornell.edu/default/inferred-tbox
Source: named graph from the RDFService (memory-mapped)
Source: a combination of inference ABox and inference TBox
Source: a combination of base ABox and inference ABox
Source: a combination of base TBox and inference TBox
Source: a combination of union ABox and union TBox