org.eclipse.higgins.idas.cp.jena2
Interface IJenaContext

All Superinterfaces:
org.eclipse.higgins.idas.api.IContext, org.eclipse.higgins.idas.api.IHasAttributes
All Known Implementing Classes:
Context, FileContext, JDBCContext

public interface IJenaContext
extends org.eclipse.higgins.idas.api.IContext


Method Summary
 void begin()
           
 void commit()
           
 com.hp.hpl.jena.ontology.DatatypeProperty getDatatypeProperty(String uri)
           
 com.hp.hpl.jena.ontology.OntModel getModel()
          return jena ontology model of the context
 String getNS()
          return namespace of context
 com.hp.hpl.jena.ontology.ObjectProperty getObjectProperty(String uri)
           
 com.hp.hpl.jena.ontology.OntClass getOntClass(String uri)
           
 com.hp.hpl.jena.ontology.OntProperty getOntProperty(String uri)
           
 String getSchemaURI()
           
 void init(Properties props)
           
 boolean isTransactionSupported()
           
 void registerChangedSubject(Entity subj)
          When some Entity was changed (its attribute/value/metadata was added/removed/changed) it should be registered using this method to be validated before saving the context by .
 void rollback()
           
 void setValidationMode(boolean performValidation)
           
 void unregisterChangedSubject(Entity subj)
          When some Entity was removed it should be also removed from changed subjects list to prevent validation of non-existent subject
 
Methods inherited from interface org.eclipse.higgins.idas.api.IContext
addEntity, addEntity, applyUpdates, buildAttribute, buildAttributeAssertion, buildAuthNAttributesMaterials, buildComplexAttrValue, buildEntityIDAssertion, buildEntityTypeAssertion, buildFilter, buildSimpleAttrValue, cancelUpdates, close, exportData, getContextID, getContextModel, getEntities, getEntities, getEntities, getEntity, getEntity, getSchema, importData, isOpen, open, open, reopen, setComponentSetting, setComponentSetting, setSchema, verifyEntityAttributes
 
Methods inherited from interface org.eclipse.higgins.idas.api.IHasAttributes
addAttribute, addAttribute, equals, getAttribute, getAttributes, getSingleValuedAttribute, removeAttribute, removeAttributeValue, removeAttributeValue
 

Method Detail

getModel

com.hp.hpl.jena.ontology.OntModel getModel()
                                           throws org.eclipse.higgins.idas.api.IdASException
return jena ontology model of the context

Throws:
org.eclipse.higgins.idas.api.IdASException - If the context is not open or its ontology model is not initialized

getNS

String getNS()
return namespace of context


getDatatypeProperty

com.hp.hpl.jena.ontology.DatatypeProperty getDatatypeProperty(String uri)
                                                              throws org.eclipse.higgins.idas.api.IdASException
Parameters:
uri -
Returns:
Throws:
org.eclipse.higgins.idas.api.IdASException

getObjectProperty

com.hp.hpl.jena.ontology.ObjectProperty getObjectProperty(String uri)
                                                          throws org.eclipse.higgins.idas.api.IdASException
Parameters:
uri -
Returns:
Throws:
org.eclipse.higgins.idas.api.IdASException

getOntProperty

com.hp.hpl.jena.ontology.OntProperty getOntProperty(String uri)
                                                    throws org.eclipse.higgins.idas.api.IdASException
Parameters:
uri -
Returns:
Throws:
org.eclipse.higgins.idas.api.IdASException

getOntClass

com.hp.hpl.jena.ontology.OntClass getOntClass(String uri)
                                              throws org.eclipse.higgins.idas.api.IdASException
Parameters:
uri -
Returns:
Throws:
org.eclipse.higgins.idas.api.IdASException

init

void init(Properties props)
          throws org.eclipse.higgins.idas.api.IdASException
Parameters:
props -
Throws:
org.eclipse.higgins.idas.api.IdASException

begin

void begin()
           throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

commit

void commit()
            throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

rollback

void rollback()
              throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

isTransactionSupported

boolean isTransactionSupported()
                               throws org.eclipse.higgins.idas.api.IdASException
Returns:
Throws:
org.eclipse.higgins.idas.api.IdASException

getSchemaURI

String getSchemaURI()
                    throws org.eclipse.higgins.idas.api.IdASException
Returns:
schema URI that will be used as imported ontology
Throws:
org.eclipse.higgins.idas.api.IdASException

registerChangedSubject

void registerChangedSubject(Entity subj)
When some Entity was changed (its attribute/value/metadata was added/removed/changed) it should be registered using this method to be validated before saving the context by .

Parameters:
subj -

unregisterChangedSubject

void unregisterChangedSubject(Entity subj)
When some Entity was removed it should be also removed from changed subjects list to prevent validation of non-existent subject

Parameters:
subj -

setValidationMode

void setValidationMode(boolean performValidation)
Parameters:
performValidation - if true then all changed subjects should be validated before saving of the context. Default value is true. In case of JDBC Context, if RDBMS does not support transactions, validation will not be performed