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

All Superinterfaces:
org.eclipse.higgins.idas.api.IContext
All Known Implementing Classes:
Context

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(DigitalSubject subj)
          When some DigitalSubject 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(DigitalSubject subj)
          When some DigitalSubject 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
addRelationship, addSubject, addSubject, applyUpdates, buildAttribute, buildAttributeAssertion, buildAuthNAttributesMaterials, buildComplexAttrValue, buildCUIDAssertion, buildFilter, buildMetadataAssertion, buildRelationship, buildSimpleAttrValue, buildTypeAssertion, cancelUpdates, close, exportData, getContextModel, getContextRef, getModel, getRelationships, getSchema, getSubject, getSubject, getSubjects, getSubjects, importData, isOpen, open, setSchema, verifySubjectAttributes
 

Method Detail

getModel

public 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

public String getNS()
return namespace of context


getDatatypeProperty

public 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

public 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

public 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

public 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

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

begin

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

commit

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

rollback

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

isTransactionSupported

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

getSchemaURI

public 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

public void registerChangedSubject(DigitalSubject subj)
When some DigitalSubject 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

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

Parameters:
subj -

setValidationMode

public 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