|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectonto.sesame.Memory
public class Memory
Represents Sesame repository wrapped with some usefull operations
Field Summary | |
---|---|
(package private) java.lang.String |
base
|
Config |
config
|
private static org.apache.log4j.Logger |
log
|
java.lang.String |
RDQL_USING
RDQL_USING is used in RDQL queries where we can write <ont:something> or <rdf:something> instead of full embet ontology uri or RDF uri |
java.lang.String |
SeRDQL_USING
SeRDQL_USING is used in SeRDQL queries |
(package private) org.openrdf.sesame.repository.SesameRepository |
sesameRepository
|
Constructor Summary | |
---|---|
Memory(java.lang.String _propertyFile,
java.lang.String _name)
|
|
Memory(java.lang.String _propertyFile,
java.lang.String _name,
boolean clean)
|
Method Summary | |
---|---|
java.lang.String |
getBase()
|
java.util.Set<Property> |
getClassProperties(java.lang.String classURI)
Returns Set of class properties Objects in sets are of onto.elements.Property class |
java.lang.String |
getIndividualType(java.lang.String individualURI)
Returns individual class (first one found) |
java.util.Set<java.lang.String> |
getIndividualTypes(java.lang.String individualURI)
Returns Set of individual types |
java.lang.String |
getNS(java.lang.String key)
Returns Namespace for given key defined in config file, in property file it search for NS_[KEY] |
org.openrdf.sesame.repository.SesameRepository |
getRepository()
|
private void |
init(java.lang.String _propertyFile,
java.lang.String _name)
|
(package private) void |
openRepository()
|
java.lang.String |
translateNS(java.lang.String shortNS)
Translate short NS e.g. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Config config
private static org.apache.log4j.Logger log
public java.lang.String RDQL_USING
public java.lang.String SeRDQL_USING
java.lang.String base
org.openrdf.sesame.repository.SesameRepository sesameRepository
Constructor Detail |
---|
public Memory(java.lang.String _propertyFile, java.lang.String _name, boolean clean)
public Memory(java.lang.String _propertyFile, java.lang.String _name)
Method Detail |
---|
private void init(java.lang.String _propertyFile, java.lang.String _name)
void openRepository()
public org.openrdf.sesame.repository.SesameRepository getRepository()
public java.lang.String getBase()
public java.lang.String getNS(java.lang.String key)
key
- namespace reference keypublic java.lang.String translateNS(java.lang.String shortNS)
shortNS
-
public java.util.Set<Property> getClassProperties(java.lang.String classURI)
classURI
- name of ontology class - it can be full or local name. If local fulll URI is added from getBase() methodpublic java.util.Set<java.lang.String> getIndividualTypes(java.lang.String individualURI)
individualURI
- name of ontology individual - it can be full or local name. If local full URI is added from getBase() methodpublic java.lang.String getIndividualType(java.lang.String individualURI)
individualURI
- name of ontology individual - it can be full or local name. If local full URI is added from getBase() method
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |