onto.jena
Class Config

java.lang.Object
  extended by onto.jena.Config

public class Config
extends java.lang.Object

Configuration for jena Memory

Version:
0.3
Author:
Michal Laclavik

Field Summary
 java.lang.String BASE
          BASE resurns memory ontology uri without "#" at the end same string with # can be returned by Memory.getBase() method
 java.util.Properties config
          Properties file
 boolean CREATE_MODEL
          If True it creates model in RDB (MySQL) when memory is started
We need to set this True only first time when running memory or if we want to recreate model from OWL files in case of recreating we need to set REMOVE_MODEL True as well in order to remove old model first OWl files which contains of Ontology definition and Ontology individuals (Instances) are defined in Ontology Config see: SOURCE_FILE, INDIVIDUALS_FILE
private static org.apache.log4j.Logger ctgr
           
 java.lang.String DATA_LOAD_DIR
          All files in this directory will be loaded to memory - used mainly for data instances - when resources are saved file appear in this folder
This can be loaded when Memory Config CREATE_MODEL is set True
 java.lang.String DB_PASSWD
          user's password
 java.lang.String DB_TYPE
          DB type - usualy MySQL
 java.lang.String DB_URL
          url of database for example "jdbc:mysql://[host]/[database]"
 java.lang.String DB_USER
          database user which has access to specified DB
 java.lang.String DBDRIVER_CLASS
          location of jdbc driver class
 boolean MEM_MODEL
          If True it reades model from FILE defined in ontology config properties and holds model in memory instead of MySQL database it is faster but not very good solution.
 java.lang.String ONTO_LOAD_DIR
          All files in this directory will be loaded to memory - used mainly for ontology definitions
This can be loaded when Memory Config CREATE_MODEL is set True
 java.lang.String OUTPUT_FILE
          Output file defines path to OWL file where content of OM can we write when calling method memory2owl()
 boolean REMOVE_MODEL
          If True it removes model from RDB (MySQL) when memory is started
 
Constructor Summary
Config(java.lang.String propertyFile)
          Operators file name.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctgr

private static org.apache.log4j.Logger ctgr

config

public java.util.Properties config
Properties file


DB_URL

public java.lang.String DB_URL
url of database for example "jdbc:mysql://[host]/[database]"


DB_USER

public java.lang.String DB_USER
database user which has access to specified DB


DB_PASSWD

public java.lang.String DB_PASSWD
user's password


DB_TYPE

public java.lang.String DB_TYPE
DB type - usualy MySQL


DBDRIVER_CLASS

public java.lang.String DBDRIVER_CLASS
location of jdbc driver class


CREATE_MODEL

public boolean CREATE_MODEL
If True it creates model in RDB (MySQL) when memory is started
We need to set this True only first time when running memory or if we want to recreate model from OWL files in case of recreating we need to set REMOVE_MODEL True as well in order to remove old model first OWl files which contains of Ontology definition and Ontology individuals (Instances) are defined in Ontology Config see: SOURCE_FILE, INDIVIDUALS_FILE


REMOVE_MODEL

public boolean REMOVE_MODEL
If True it removes model from RDB (MySQL) when memory is started


MEM_MODEL

public boolean MEM_MODEL
If True it reades model from FILE defined in ontology config properties and holds model in memory instead of MySQL database it is faster but not very good solution. When set to true REMOVE_MODEL and CREATE_MODEL is not valid see: SOURCE_FILE, INDIVIDUALS_FILE


BASE

public java.lang.String BASE
BASE resurns memory ontology uri without "#" at the end same string with # can be returned by Memory.getBase() method


ONTO_LOAD_DIR

public java.lang.String ONTO_LOAD_DIR
All files in this directory will be loaded to memory - used mainly for ontology definitions
This can be loaded when Memory Config CREATE_MODEL is set True


DATA_LOAD_DIR

public java.lang.String DATA_LOAD_DIR
All files in this directory will be loaded to memory - used mainly for data instances - when resources are saved file appear in this folder
This can be loaded when Memory Config CREATE_MODEL is set True


OUTPUT_FILE

public java.lang.String OUTPUT_FILE
Output file defines path to OWL file where content of OM can we write when calling method memory2owl()

Constructor Detail

Config

public Config(java.lang.String propertyFile)
Operators file name.