|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object onto.jena.Config
public class Config
Configuration for jena Memory
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 |
---|
private static org.apache.log4j.Logger ctgr
public java.util.Properties config
public java.lang.String DB_URL
public java.lang.String DB_USER
public java.lang.String DB_PASSWD
public java.lang.String DB_TYPE
public java.lang.String DBDRIVER_CLASS
public boolean CREATE_MODEL
SOURCE_FILE
,
INDIVIDUALS_FILE
public boolean REMOVE_MODEL
public boolean MEM_MODEL
SOURCE_FILE
,
INDIVIDUALS_FILE
public java.lang.String BASE
Memory.getBase()
method
public java.lang.String ONTO_LOAD_DIR
CREATE_MODEL
is set True
public java.lang.String DATA_LOAD_DIR
CREATE_MODEL
is set True
public java.lang.String OUTPUT_FILE
memory2owl()
Constructor Detail |
---|
public Config(java.lang.String propertyFile)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |