public class OWLModelImpl extends RDFSModelImpl implements OWLModel, OWLReasoner
| Modifier and Type | Class and Description |
|---|---|
protected class |
OWLModelImpl.ARTLiteralIteratorImpl |
protected class |
OWLModelImpl.ARTResourceIteratorImpl |
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
baseRep| Constructor and Description |
|---|
OWLModelImpl(BaseRDFTripleModel baseRep) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotationProperty(String propertyURI,
ARTURIResource superProperty,
ARTResource... graphs)
/* ADD/REMOVE METHODS ***
|
void |
addClass(String uri,
ARTResource... contexts)
This method has a different behavior depending on the level of the vocabulary used by the repository
implementation.
|
void |
addComplementOf(String BnodeID,
ARTResource description,
ARTResource... graphs)
Add an anonymous class as the complement of the specified resource to
graphs |
void |
addDatatypeProperty(String propertyURI,
ARTURIResource superProperty,
ARTResource... graphs)
adds a datatype property with uri =
propertyURI |
void |
addEnumeratedClass(String classURI,
ArrayList<ARTNode> resources,
ARTResource... graphs)
Add an enumerated class with an identifier (a URI reference) to graphs
graphs |
void |
addEquivalentClass(String classURI,
ARTResource equivalentClass,
ARTResource... graphs)
Add a named equivalent class of the specified resource to
graphs |
void |
addImportStatement(String baseURI,
ARTResource... contexts)
adds an import statement to the given ontology graphs.
|
void |
addIntersectionOf(String BnodeID,
ArrayList<ARTResource> descriptions,
ARTResource... graphs)
Add an anonymous class as intersection of a set of resources to
graphs |
void |
addObjectProperty(String propertyURI,
ARTURIResource superProperty,
ARTResource... graphs)
adds an object property with uri =
propertyURI |
void |
addOneOf(String BnodeID,
ArrayList<ARTNode> resources,
ARTResource... graphs)
Add an anonymous enumerated class to graphs
graphs |
void |
addOneOfDataRange(String BnodeID,
ArrayList<ARTLiteral> resources,
ARTResource... graphs)
Add a datarange to graphs
graphs |
void |
addOntologyProperty(String propertyURI,
ARTURIResource superProperty,
ARTResource... graphs)
adds an ontology property with uri =
propertyURI |
void |
addRestrictionOnCardinalityCardinality(String BnodeID,
ARTURIResource property,
String literal,
ARTResource... graphs)
Add an anonymous class as a restriction on the cardinality of property to
graphs |
void |
addRestrictionOnCardinalityMaxCardinality(String BnodeID,
ARTURIResource property,
String literal,
ARTResource... graphs)
Add an anonymous class as a restriction on the maximum cardinality of property to
graphs |
void |
addRestrictionOnCardinalityMinCardinality(String BnodeID,
ARTURIResource property,
String literal,
ARTResource... graphs)
Add an anonymous class as a restriction on the minimum cardinality of property to
graphs |
void |
addRestrictionOnPropertyAllValuesFrom(String BnodeID,
ARTURIResource property,
ARTResource resource,
ARTResource... graphs)
Add an anonymous class as a restriction on range (All Values) of a property to
graphs |
void |
addRestrictionOnPropertyHasValue(String BnodeID,
ARTURIResource property,
ARTNode resourceOrLiteral,
ARTResource... graphs)
Add an anonymous class as a restriction on range (Has Value) of a property to
graphs |
void |
addRestrictionOnPropertySomeValuesFrom(String BnodeID,
ARTURIResource property,
ARTResource resource,
ARTResource... graphs)
Add an anonymous class as a restriction on range (Some Values) of a property to
graphs |
void |
addSubClassOf(String classURI,
ARTResource subClass,
ARTResource... graphs)
Add an named subclass of the specified resource to
graphs |
void |
addUnionOf(String BnodeID,
ArrayList<ARTResource> descriptions,
ARTResource... graphs)
Add an anonymous class as union of a set of resources to
graphs |
void |
addValuesToDatarange(ARTResource dataRange,
Iterator<ARTLiteral> literals,
ARTResource... graphs)
it adds a list of literal values (using an iterator over RDF ARTLiteral) to an existing datarange
|
void |
addValueToDatarange(ARTResource dataRange,
ARTLiteral lit,
ARTResource... graphs)
it adds a literal value to an existing datarange
|
void |
deleteIndividual(ARTResource res,
ARTResource... graphs)
deletes an owl:Individual (optimized wrt
RDFModel#deleteResource(ARTResource, ARTResource...)) |
ARTURIResource |
getInverseProperty(ARTURIResource objectProperty,
boolean inferred,
ARTResource... graphs)
returns the inverse property of
objectProperty. |
ManchesterClassInterface |
getManchClassFromBNode(ARTBNode bnode,
OWLModel owlModel,
ARTResource graphs) |
String |
getManchExprFromBNode(ARTBNode bnode,
boolean getPrefixName,
OWLModel owlModel,
ARTResource graphs) |
protected boolean |
hasInversePropertyBoundConcept(ARTResource resource,
ARTURIResource property,
ARTURIResource inverseProperty,
ARTResource object,
boolean inferred,
ARTResource... graphs)
this method is invoked by this OWLModel implementation when one needs to known exactly if a triple is
available through inference on property which has an inverse.
|
protected boolean |
hasSymmetricPropertyBoundConcept(ARTResource resource,
ARTURIResource property,
ARTResource object,
boolean inferred,
ARTResource... graphs)
this method is invoked by this OWLModel implementation when one needs to known exactly if a triple is
available through inference on property which is symmetric.
|
protected boolean |
hasTransitiveInversePropertyBoundConcept(ARTResource resource,
ARTURIResource nonTransitiveProperty,
ARTURIResource nonTransitiveInverseProperty,
ARTURIResource transitiveExtensionProperty,
ARTURIResource transitiveExtensionInverseProperty,
ARTResource object,
boolean inferred,
ARTResource... graphs) |
protected boolean |
hasTransitivePropertyBoundConcept(ARTResource resource,
ARTURIResource property,
ARTResource object,
boolean inferred,
ARTResource... graphs)
this method is invoked by this OWLModel implementation when one needs to known exactly if a triple is
available through inference on a transitive property.
|
protected boolean |
hasTransitivePropertyBoundConcept(ARTResource resource,
ARTURIResource nonTransitiveProperty,
ARTURIResource transitiveExtensionProperty,
ARTResource object,
boolean inferred,
ARTResource... graphs)
|
boolean |
hasValueInDatarange(ARTResource dataRange,
ARTLiteral lit,
ARTResource... graphs)
check if the selected datarange has a particular literal as value
|
void |
instantiateAnnotationProperty(ARTResource subject,
ARTURIResource property,
String value,
String lang,
ARTResource... contexts)
creates a triple for the given
subject, predicate and object, which is
described by its label (value) and language (lang)Arguments are already constrained considering the type of property which is being instantiated |
void |
instantiateDatatypeProperty(ARTResource subject,
ARTURIResource predicate,
String literalString,
ARTResource... contexts)
TRIPLE INSTANTIATION METHODS ***
|
void |
instantiateObjectProperty(ARTResource subject,
ARTURIResource predicate,
ARTResource object,
ARTResource... contexts)
creates a triple for the given
subject, predicate and objectArguments are already constrained considering the type of property which is being instantiated |
boolean |
isAnnotationProperty(ARTURIResource prop,
ARTResource... contexts)
BOOLEAN METHODS ***
|
boolean |
isClass(ARTResource cls,
ARTResource... graphs)
/* BOOLEAN METHODS ***
|
boolean |
isDataRange(ARTResource range,
ARTResource... graphs)
checks if the resource (which has been probably returned has the range of a datatype property, is a
DataRange)
|
boolean |
isDatatypeProperty(ARTURIResource prop,
ARTResource... contexts)
checks that prop is an Datatype property
|
boolean |
isFunctionalProperty(ARTURIResource property,
ARTResource... contexts)
checks that prop is a Functional property
|
boolean |
isInverseFunctionalProperty(ARTURIResource property,
ARTResource... contexts)
checks that prop is an InverseFunctional property
|
boolean |
isObjectProperty(ARTURIResource property,
ARTResource... contexts)
checks that prop is an Object property
|
boolean |
isOntology(ARTURIResource uri,
ARTResource... contexts)
checks that resource
uri is an Ontology |
boolean |
isOntologyProperty(ARTURIResource prop,
ARTResource... graphs)
checks that prop is an Ontology property
|
boolean |
isSymmetricProperty(ARTURIResource property,
ARTResource... contexts)
checks that prop is a Symmetric property
|
boolean |
isTransitiveProperty(ARTURIResource property,
ARTResource... contexts)
checks that prop is a Transitive property
|
ARTURIResourceIterator |
listAnnotationProperties(boolean inferred,
ARTResource... graphs)
returns an iterator over Annotation properties available from graphs
graphs |
ARTResourceIterator |
listClasses(boolean inferred,
ARTResource... graphs)
list all the classes in the current Model (in graphs:
graphs). |
ARTURIResourceIterator |
listDatatypeProperties(boolean inferred,
ARTResource... graphs)
returns an iterator over datatype properties available from graphs
graphs |
protected ARTResourceIterator |
listInversePropertyBoundConcepts(ARTResource resource,
ARTURIResource property,
ARTURIResource inverseProperty,
boolean inferred,
ARTResource... graphs)
method which is invoked by this OWLModel implementation when the complete set of results from a
property which has an inverse has to be obtained.
|
ARTURIResourceIterator |
listNamedClasses(boolean inferred,
ARTResource... graphs)
LIST/GET METHODS ***
|
ARTURIResourceIterator |
listObjectProperties(boolean inferred,
ARTResource... graphs)
returns an iterator over object properties available from graphs
graphs |
ARTURIResourceIterator |
listOntologyImports(ARTURIResource ontology,
ARTResource... contexts)
list all ontologies imported by ontology
ontology (defined in graphs graphs |
ARTURIResourceIterator |
listOntologyProperties(boolean inferred,
ARTResource... graphs)
returns an iterator over Ontology properties available from graphs
graphs |
protected ARTResourceIterator |
listSymmetricPropertyBoundConcepts(ARTResource resource,
ARTURIResource property,
boolean inferred,
ARTResource... graphs)
method which is invoked by this OWLModel implementation when the complete set of results from a
property which is symmetric has to be obtained.
|
protected ARTResourceIterator |
listTransitiveInversePropertyBoundConcepts(ARTResource resource,
ARTURIResource nonTransitiveProperty,
ARTURIResource nonTransitiveInverseProperty,
ARTURIResource transitiveExtensionProperty,
ARTURIResource transitiveExtensionInverseProperty,
boolean inferred,
ARTResource... graphs) |
protected ARTResourceIterator |
listTransitivePropertyBoundConcepts(ARTResource resource,
ARTURIResource nonTransitiveProperty,
ARTURIResource transitiveExtensionProperty,
boolean inferred,
ARTResource... graphs)
|
protected ARTResourceIterator |
listTransitivePropertyBoundConcepts(ARTResource resource,
ARTURIResource property,
boolean inferred,
ARTResource... graphs)
method which is invoked by this OWLModel implementation when the complete set of results from a
transitive property has to be obtained.
|
ARTLiteralIterator |
listValuesOfSubjDTypePropertyPair(ARTResource instance,
ARTURIResource property,
boolean inferred,
ARTResource... contexts)
returns an iterator over the list of values bound to individual
individual through
datatype/annotation property property both parameters need to be instantiated |
ARTResourceIterator |
listValuesOfSubjObjPropertyPair(ARTResource individual,
ARTURIResource property,
boolean inferred,
ARTResource... contexts)
returns an iterator over the list of values bound to individual
individual through object
property property both parameters need to be instantiated |
ARTLiteralIterator |
parseDataRange(ARTResource dataRange,
ARTResource... graphs)
returns an iterator over the list of values allowed by this datarange
|
ARTNode |
parseManchesterExpr(ManchesterClassInterface mci,
List<ARTStatement> statList) |
void |
recursiveBNodeExploration(HashSet<ARTResource> set,
ARTResource resource,
ARTURIResource prop,
ARTResource... graphs)
recursively explore (that is, runs along the transitive closure of) a property and fills the set
set with all the objects which are blank node of his property |
void |
removeImportStatement(ARTURIResource URI,
ARTResource... contexts)
removes an import statement from graphs
graphs |
void |
removeValueFromDatarange(ARTResource dataRange,
ARTLiteral lit,
ARTResource... graphs)
remove a ARTLiteral value from the desired datarange
|
void |
renameIndividual(ARTURIResource oldIndividual,
String newURI,
ARTResource... graphs)
renames an owl:Individual (optimized wrt
RDFModel#renameResource(ARTURIResource, String) as an
owl:Individual cannot appear as predicate of a triple) |
ARTURIResource |
retrieveClass(String uri,
ARTResource... contexts)
/* RETRIEVE METHODS ***
|
String |
setDataRange(ARTURIResource property,
RDFIterator<ARTLiteral> dataRangeIterator,
ARTResource... graphs)
given an iterator over RDF nodes, instantiates a set of triples realizing the datarange composed of
elements in the iterator, assigned as range of property
property |
boolean |
supportsInverseProperties() |
boolean |
supportsOWLThingMaterialization()
OWL REASONING METHODS ***
|
boolean |
supportsSymmetricProperties() |
boolean |
supportsTransitiveProperties() |
addComment, addLabel, addPropertyDomain, addPropertyRange, addSuperClass, addSuperProperty, deleteClass, hasSuperProperty, listComments, listLabels, listNamedResources, listPropertiesForDomainClass, listPropertiesForRangeClass, listPropertyDomains, listPropertyRanges, listSubClasses, listSubProperties, listSuperClasses, listSuperProperties, listURISuperClasses, removeComment, removeLabel, removePropertyDomain, removePropertyRange, removeSuperClass, removeSuperProperty, renameClass, supportsClassIdentification, supportsSubClassOfClosure, supportsSubPropertyMaterialization, supportsSubPropertyOfClosureaddInstance, addProperty, addRDF, addRDF, addStatement, addTriple, addType, clearRDF, close, createBNode, createBNode, createBooleanQuery, createBooleanQuery, createBooleanQuery, createBooleanQuery, createGraphQuery, createGraphQuery, createGraphQuery, createGraphQuery, createLiteral, createLiteral, createLiteral, createQuery, createQuery, createQuery, createQuery, createStatement, createTupleQuery, createTupleQuery, createTupleQuery, createTupleQuery, createUpdate, createUpdateQuery, createUpdateQuery, createUpdateQuery, createURIResource, deleteProperty, deleteResource, deleteStatement, deleteTriple, existsResource, expandQName, getBaseURI, getDefaultNamespace, getNamespacePrefixMapping, getNSForPrefix, getPrefixForNS, getQName, hasStatement, hasTriple, hasType, instantiatePropertyWithPlainLiteral, instantiatePropertyWithPlainLiteral, instantiatePropertyWithResource, instantiatePropertyWithTypedLiteral, isLocallyDefined, isProperty, listInstances, listNamedGraphs, listNamedInstances, listNamespaces, listPredicatesOfSubjObjPair, listProperties, listStatements, listSubjectsOfPredObjPair, listTypes, listValuesOfSubjPredPair, removeNsPrefixMapping, removeType, renameProperty, renameResource, retrieveBNode, retrieveURIResource, setBaseURI, setDefaultNamespace, setNsPrefix, writeRDF, writeRDF, writeRDF, writeRDFclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddComment, addLabel, addPropertyDomain, addPropertyRange, addSuperClass, addSuperProperty, deleteClass, hasSuperProperty, listComments, listLabels, listNamedResources, listPropertiesForDomainClass, listPropertiesForRangeClass, listPropertyDomains, listPropertyRanges, listSubClasses, listSubProperties, listSuperClasses, listSuperProperties, listURISuperClasses, removeComment, removeLabel, removePropertyDomain, removePropertyRange, removeSuperClass, removeSuperProperty, renameClassaddInstance, addProperty, addType, deleteProperty, deleteResource, existsResource, hasType, instantiatePropertyWithPlainLiteral, instantiatePropertyWithPlainLiteral, instantiatePropertyWithResource, instantiatePropertyWithTypedLiteral, isLocallyDefined, isProperty, listInstances, listNamedInstances, listProperties, listTypes, removeType, renameProperty, renameResource, retrieveBNode, retrieveURIResourceaddRDF, addRDF, addStatement, addTriple, clearRDF, close, deleteStatement, deleteTriple, getBaseURI, getDefaultNamespace, hasStatement, hasTriple, listNamedGraphs, listNamespaces, listPredicatesOfSubjObjPair, listStatements, listSubjectsOfPredObjPair, listValuesOfSubjPredPair, setBaseURI, setDefaultNamespace, writeRDF, writeRDFexpandQName, getNamespacePrefixMapping, getNSForPrefix, getPrefixForNS, getQName, removeNsPrefixMapping, setNsPrefixcreateBNode, createBNode, createLiteral, createLiteral, createLiteral, createStatement, createURIResourcewriteRDF, writeRDFcreateBooleanQuery, createBooleanQuery, createBooleanQuery, createGraphQuery, createGraphQuery, createGraphQuery, createQuery, createQuery, createQuery, createTupleQuery, createTupleQuery, createTupleQuery, createUpdateQuery, createUpdateQuery, createUpdateQuerycreateBooleanQuery, createGraphQuery, createQuery, createTupleQuery, createUpdatesupportsClassIdentification, supportsSubClassOfClosure, supportsSubPropertyMaterialization, supportsSubPropertyOfClosurepublic OWLModelImpl(BaseRDFTripleModel baseRep)
public void addAnnotationProperty(String propertyURI, ARTURIResource superProperty, ARTResource... graphs) throws ModelUpdateException
addAnnotationProperty in interface OWLModelModelUpdateExceptionpublic void addDatatypeProperty(String propertyURI, ARTURIResource superProperty, ARTResource... graphs) throws ModelUpdateException
OWLModelpropertyURIaddDatatypeProperty in interface OWLModelModelUpdateExceptionpublic void addObjectProperty(String propertyURI, ARTURIResource superProperty, ARTResource... graphs) throws ModelUpdateException
OWLModelpropertyURIaddObjectProperty in interface OWLModelModelUpdateExceptionpublic void addOntologyProperty(String propertyURI, ARTURIResource superProperty, ARTResource... graphs) throws ModelUpdateException
OWLModelpropertyURIaddOntologyProperty in interface OWLModelModelUpdateExceptionpublic void addImportStatement(String baseURI, ARTResource... contexts) throws ModelUpdateException
OWLModeladdImportStatement in interface OWLModelbaseURI - the baseURI of the ontology being importedModelUpdateExceptionpublic void addClass(String uri, ARTResource... contexts) throws ModelUpdateException
RDFSModeladdClass in interface RDFSModeladdClass in class RDFSModelImpluri - URI string of the class being createdModelUpdateExceptionpublic void removeImportStatement(ARTURIResource URI, ARTResource... contexts) throws ModelUpdateException
OWLModelgraphsremoveImportStatement in interface OWLModelURI - the baseURI of the ontology being importedModelUpdateExceptionpublic void addValuesToDatarange(ARTResource dataRange, Iterator<ARTLiteral> literals, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
OWLModeladdValuesToDatarange in interface OWLModelModelAccessExceptionModelUpdateExceptionpublic void addValueToDatarange(ARTResource dataRange, ARTLiteral lit, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
OWLModeladdValueToDatarange in interface OWLModelModelAccessExceptionModelUpdateExceptionpublic void removeValueFromDatarange(ARTResource dataRange, ARTLiteral lit, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
OWLModelremoveValueFromDatarange in interface OWLModelModelAccessExceptionModelUpdateExceptionpublic void instantiateDatatypeProperty(ARTResource subject, ARTURIResource predicate, String literalString, ARTResource... contexts) throws ModelUpdateException
instantiateDatatypeProperty in interface OWLModelModelUpdateExceptionpublic void instantiateObjectProperty(ARTResource subject, ARTURIResource predicate, ARTResource object, ARTResource... contexts) throws ModelUpdateException
OWLModelsubject, predicate and objectinstantiateObjectProperty in interface OWLModelModelUpdateExceptionpublic void instantiateAnnotationProperty(ARTResource subject, ARTURIResource property, String value, String lang, ARTResource... contexts) throws ModelUpdateException
OWLModelsubject, predicate and object, which is
described by its label (value) and language (lang)instantiateAnnotationProperty in interface OWLModelModelUpdateExceptionpublic String setDataRange(ARTURIResource property, RDFIterator<ARTLiteral> dataRangeIterator, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
OWLModelpropertysetDataRange in interface OWLModelModelAccessExceptionModelUpdateExceptionpublic boolean isAnnotationProperty(ARTURIResource prop, ARTResource... contexts) throws ModelAccessException
isAnnotationProperty in interface OWLModelModelAccessExceptionpublic boolean isDatatypeProperty(ARTURIResource prop, ARTResource... contexts) throws ModelAccessException
OWLModelisDatatypeProperty in interface OWLModelModelAccessExceptionpublic boolean isOntologyProperty(ARTURIResource prop, ARTResource... graphs) throws ModelAccessException
OWLModelisOntologyProperty in interface OWLModelModelAccessExceptionpublic boolean isFunctionalProperty(ARTURIResource property, ARTResource... contexts) throws ModelAccessException
OWLModelisFunctionalProperty in interface OWLModelModelAccessExceptionpublic boolean isInverseFunctionalProperty(ARTURIResource property, ARTResource... contexts) throws ModelAccessException
OWLModelisInverseFunctionalProperty in interface OWLModelModelAccessExceptionpublic boolean isObjectProperty(ARTURIResource property, ARTResource... contexts) throws ModelAccessException
OWLModelisObjectProperty in interface OWLModelModelAccessExceptionpublic boolean isSymmetricProperty(ARTURIResource property, ARTResource... contexts) throws ModelAccessException
OWLModelisSymmetricProperty in interface OWLModelModelAccessExceptionpublic boolean isTransitiveProperty(ARTURIResource property, ARTResource... contexts) throws ModelAccessException
OWLModelisTransitiveProperty in interface OWLModelModelAccessExceptionpublic boolean isDataRange(ARTResource range, ARTResource... graphs) throws ModelAccessException
OWLModelisDataRange in interface OWLModelModelAccessExceptionpublic boolean isOntology(ARTURIResource uri, ARTResource... contexts) throws ModelAccessException
OWLModeluri is an OntologyisOntology in interface OWLModelModelAccessExceptionpublic boolean hasValueInDatarange(ARTResource dataRange, ARTLiteral lit, ARTResource... graphs) throws ModelAccessException
OWLModelhasValueInDatarange in interface OWLModelModelAccessExceptionpublic ARTURIResourceIterator listNamedClasses(boolean inferred, ARTResource... graphs) throws ModelAccessException
listNamedClasses in interface RDFSModellistNamedClasses in class RDFSModelImplModelAccessExceptionpublic ARTResourceIterator listClasses(boolean inferred, ARTResource... graphs) throws ModelAccessException
RDFSModelgraphs). If this model is also an
RDFSReasoner which RDFSReasoner.supportsSubClassOfClosure(), the returned URIs are all
rdf instances of RDFS.CLASS. If negative case, the returned URIs are those specified as
subjects of triples present in the given graphs where the predicate is RDF.TYPE or
RDFS.SUBCLASSOF.listClasses in interface RDFSModellistClasses in class RDFSModelImplModelAccessExceptionpublic ARTURIResourceIterator listAnnotationProperties(boolean inferred, ARTResource... graphs) throws ModelAccessException
OWLModelgraphslistAnnotationProperties in interface OWLModelModelAccessExceptionpublic ARTURIResourceIterator listDatatypeProperties(boolean inferred, ARTResource... graphs) throws ModelAccessException
OWLModelgraphslistDatatypeProperties in interface OWLModelModelAccessExceptionpublic ARTURIResourceIterator listObjectProperties(boolean inferred, ARTResource... graphs) throws ModelAccessException
OWLModelgraphslistObjectProperties in interface OWLModelModelAccessExceptionpublic ARTURIResourceIterator listOntologyProperties(boolean inferred, ARTResource... graphs) throws ModelAccessException
OWLModelgraphslistOntologyProperties in interface OWLModelModelAccessExceptionpublic ARTURIResource getInverseProperty(ARTURIResource objectProperty, boolean inferred, ARTResource... graphs) throws ModelAccessException
OWLModelobjectProperty. If more than one inverse is defined, the
first declared one is returned (all other properties are equivalentProperties then). If no declaration
is available, null is returned.getInverseProperty in interface OWLModelModelAccessExceptionpublic ARTURIResourceIterator listOntologyImports(ARTURIResource ontology, ARTResource... contexts) throws ModelAccessException
OWLModelontology (defined in graphs graphslistOntologyImports in interface OWLModelModelAccessExceptionpublic ARTLiteralIterator listValuesOfSubjDTypePropertyPair(ARTResource instance, ARTURIResource property, boolean inferred, ARTResource... contexts) throws ModelAccessException
OWLModelindividual through
datatype/annotation property property both parameters need to be instantiatedlistValuesOfSubjDTypePropertyPair in interface OWLModelModelAccessExceptionpublic ARTResourceIterator listValuesOfSubjObjPropertyPair(ARTResource individual, ARTURIResource property, boolean inferred, ARTResource... contexts) throws ModelAccessException
OWLModelindividual through object
property property both parameters need to be instantiatedlistValuesOfSubjObjPropertyPair in interface OWLModelModelAccessExceptionpublic ARTURIResource retrieveClass(String uri, ARTResource... contexts) throws ModelAccessException
RDFSModelImplretrieveClass in interface RDFSModelretrieveClass in class RDFSModelImplModelAccessExceptionpublic ARTLiteralIterator parseDataRange(ARTResource dataRange, ARTResource... graphs) throws ModelAccessException
OWLModelparseDataRange in interface OWLModelModelAccessExceptionpublic boolean isClass(ARTResource cls, ARTResource... graphs) throws ModelAccessException
RDFSModelImplisClass in interface RDFSModelisClass in class RDFSModelImplModelAccessExceptionpublic void deleteIndividual(ARTResource res, ARTResource... graphs) throws ModelUpdateException
OWLModelRDFModel#deleteResource(ARTResource, ARTResource...))
as an owl:Individual cannot appear as predicate of a triple)deleteIndividual in interface OWLModelModelUpdateExceptionpublic void renameIndividual(ARTURIResource oldIndividual, String newURI, ARTResource... graphs) throws ModelUpdateException
OWLModelRDFModel#renameResource(ARTURIResource, String) as an
owl:Individual cannot appear as predicate of a triple)renameIndividual in interface OWLModelModelUpdateExceptionpublic boolean supportsOWLThingMaterialization()
supportsOWLThingMaterialization in interface OWLReasonerpublic boolean supportsInverseProperties()
supportsInverseProperties in interface OWLReasonerpublic boolean supportsTransitiveProperties()
supportsTransitiveProperties in interface OWLReasonerpublic boolean supportsSymmetricProperties()
supportsSymmetricProperties in interface OWLReasonerprotected boolean hasInversePropertyBoundConcept(ARTResource resource, ARTURIResource property, ARTURIResource inverseProperty, ARTResource object, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource - property - inverseProperty - object - inferred - graphs - ModelAccessExceptionprotected boolean hasSymmetricPropertyBoundConcept(ARTResource resource, ARTURIResource property, ARTResource object, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource - property - object - inferred - graphs - ModelAccessExceptionprotected boolean hasTransitivePropertyBoundConcept(ARTResource resource, ARTURIResource property, ARTResource object, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource - property - object - inferred - graphs - ModelAccessExceptionprotected boolean hasTransitivePropertyBoundConcept(ARTResource resource, ARTURIResource nonTransitiveProperty, ARTURIResource transitiveExtensionProperty, ARTResource object, boolean inferred, ARTResource... graphs) throws ModelAccessException
hasTransitivePropertyBoundConcept(ARTResource, ARTURIResource, ARTResource, boolean, ARTResource...)
though the transitive property is the transitive extension of a non-transitive property.resource - nonTransitiveProperty - transitiveExtensionProperty - object - inferred - graphs - ModelAccessExceptionprotected boolean hasTransitiveInversePropertyBoundConcept(ARTResource resource, ARTURIResource nonTransitiveProperty, ARTURIResource nonTransitiveInverseProperty, ARTURIResource transitiveExtensionProperty, ARTURIResource transitiveExtensionInverseProperty, ARTResource object, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource - nonTransitiveProperty - nonTransitiveInverseProperty - inverse property of property nonTransitivePropertytransitiveExtensionProperty - transitive extension of property nonTransitivePropertytransitiveExtensionInverseProperty - transitive extension of property nonTransitiveInversePropertyobject - inferred - graphs - ModelAccessExceptionprotected ARTResourceIterator listInversePropertyBoundConcepts(ARTResource resource, ARTURIResource property, ARTURIResource inverseProperty, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource - property - inverseProperty - graphs - ModelAccessExceptionprotected ARTResourceIterator listSymmetricPropertyBoundConcepts(ARTResource resource, ARTURIResource property, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource - property - graphs - ModelAccessExceptionprotected ARTResourceIterator listTransitivePropertyBoundConcepts(ARTResource resource, ARTURIResource property, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource - property - graphs - ModelAccessExceptionprotected ARTResourceIterator listTransitivePropertyBoundConcepts(ARTResource resource, ARTURIResource nonTransitiveProperty, ARTURIResource transitiveExtensionProperty, boolean inferred, ARTResource... graphs) throws ModelAccessException
listTransitivePropertyBoundConcepts(ARTResource, ARTURIResource, ARTURIResource, boolean, ARTResource...)
though the transitive property is the transitive extension of a non-transitive property.resource - nonTransitiveProperty - transitiveExtensionProperty - transitive extension of property propertygraphs - ModelAccessExceptionprotected ARTResourceIterator listTransitiveInversePropertyBoundConcepts(ARTResource resource, ARTURIResource nonTransitiveProperty, ARTURIResource nonTransitiveInverseProperty, ARTURIResource transitiveExtensionProperty, ARTURIResource transitiveExtensionInverseProperty, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource - nonTransitiveProperty - transitiveExtensionProperty - transitive extension of property propertygraphs - ModelAccessExceptionpublic void addEnumeratedClass(String classURI, ArrayList<ARTNode> resources, ARTResource... graphs) throws ModelUpdateException
graphsaddEnumeratedClass in interface OWLModelclassURI - resources - graphs - ModelUpdateExceptionpublic void addOneOf(String BnodeID, ArrayList<ARTNode> resources, ARTResource... graphs) throws ModelUpdateException
graphsaddOneOf in interface OWLModelid - resources - graphs - ModelUpdateExceptionpublic void addOneOfDataRange(String BnodeID, ArrayList<ARTLiteral> resources, ARTResource... graphs) throws ModelUpdateException
graphsaddOneOfDataRange in interface OWLModelid - resources - graphs - ModelUpdateExceptionpublic void addRestrictionOnPropertyAllValuesFrom(String BnodeID, ARTURIResource property, ARTResource resource, ARTResource... graphs) throws ModelUpdateException
graphsaddRestrictionOnPropertyAllValuesFrom in interface OWLModelID - property - resource - graphs - ModelUpdateExceptionpublic void addRestrictionOnPropertySomeValuesFrom(String BnodeID, ARTURIResource property, ARTResource resource, ARTResource... graphs) throws ModelUpdateException
graphsaddRestrictionOnPropertySomeValuesFrom in interface OWLModelID - property - resource - graphs - ModelUpdateExceptionpublic void addRestrictionOnPropertyHasValue(String BnodeID, ARTURIResource property, ARTNode resourceOrLiteral, ARTResource... graphs) throws ModelUpdateException
graphsaddRestrictionOnPropertyHasValue in interface OWLModelID - property - resourceOrLiteral - graphs - ModelUpdateExceptionpublic void addRestrictionOnCardinalityMinCardinality(String BnodeID, ARTURIResource property, String literal, ARTResource... graphs) throws ModelUpdateException
graphsaddRestrictionOnCardinalityMinCardinality in interface OWLModelID - property - literal - graphs - ModelUpdateExceptionpublic void addRestrictionOnCardinalityMaxCardinality(String BnodeID, ARTURIResource property, String literal, ARTResource... graphs) throws ModelUpdateException
graphsaddRestrictionOnCardinalityMaxCardinality in interface OWLModelID - property - literal - graphs - ModelUpdateExceptionpublic void addRestrictionOnCardinalityCardinality(String BnodeID, ARTURIResource property, String literal, ARTResource... graphs) throws ModelUpdateException
graphsaddRestrictionOnCardinalityCardinality in interface OWLModelID - property - literal - graphs - ModelUpdateExceptionpublic void addIntersectionOf(String BnodeID, ArrayList<ARTResource> descriptions, ARTResource... graphs) throws ModelUpdateException
graphsaddIntersectionOf in interface OWLModelID - descriptions - graphs - ModelUpdateExceptionpublic void addComplementOf(String BnodeID, ARTResource description, ARTResource... graphs) throws ModelUpdateException
graphsaddComplementOf in interface OWLModelID - description - graphs - ModelUpdateExceptionpublic void addUnionOf(String BnodeID, ArrayList<ARTResource> descriptions, ARTResource... graphs) throws ModelUpdateException
graphsaddUnionOf in interface OWLModelID - descriptions - graphs - ModelUpdateExceptionpublic void addEquivalentClass(String classURI, ARTResource equivalentClass, ARTResource... graphs) throws ModelUpdateException
graphsaddEquivalentClass in interface OWLModelStringURI - equivalentClass - graphs - ModelUpdateExceptionpublic void addSubClassOf(String classURI, ARTResource subClass, ARTResource... graphs) throws ModelUpdateException
graphsaddSubClassOf in interface OWLModelStringURI - subClass - graphs - ModelUpdateExceptionpublic void recursiveBNodeExploration(HashSet<ARTResource> set, ARTResource resource, ARTURIResource prop, ARTResource... graphs) throws ModelAccessException
set with all the objects which are blank node of his propertyrecursiveBNodeExploration in interface OWLModelset - resource - prop - graphs - ModelAccessExceptionpublic ARTNode parseManchesterExpr(ManchesterClassInterface mci, List<ARTStatement> statList)
parseManchesterExpr in interface OWLModelpublic String getManchExprFromBNode(ARTBNode bnode, boolean getPrefixName, OWLModel owlModel, ARTResource graphs) throws ModelAccessException
getManchExprFromBNode in interface OWLModelModelAccessExceptionpublic ManchesterClassInterface getManchClassFromBNode(ARTBNode bnode, OWLModel owlModel, ARTResource graphs) throws ModelAccessException
getManchClassFromBNode in interface OWLModelModelAccessExceptionCopyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.