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 object Arguments 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, supportsSubPropertyOfClosure
addInstance, 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, writeRDF
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
addInstance, addProperty, addType, deleteProperty, deleteResource, existsResource, hasType, instantiatePropertyWithPlainLiteral, instantiatePropertyWithPlainLiteral, instantiatePropertyWithResource, instantiatePropertyWithTypedLiteral, isLocallyDefined, isProperty, listInstances, listNamedInstances, listProperties, listTypes, removeType, renameProperty, renameResource, retrieveBNode, retrieveURIResource
addRDF, addRDF, addStatement, addTriple, clearRDF, close, deleteStatement, deleteTriple, getBaseURI, getDefaultNamespace, hasStatement, hasTriple, listNamedGraphs, listNamespaces, listPredicatesOfSubjObjPair, listStatements, listSubjectsOfPredObjPair, listValuesOfSubjPredPair, setBaseURI, setDefaultNamespace, writeRDF, writeRDF
expandQName, getNamespacePrefixMapping, getNSForPrefix, getPrefixForNS, getQName, removeNsPrefixMapping, setNsPrefix
createBNode, createBNode, createLiteral, createLiteral, createLiteral, createStatement, createURIResource
writeRDF, writeRDF
createBooleanQuery, createBooleanQuery, createBooleanQuery, createGraphQuery, createGraphQuery, createGraphQuery, createQuery, createQuery, createQuery, createTupleQuery, createTupleQuery, createTupleQuery, createUpdateQuery, createUpdateQuery, createUpdateQuery
createBooleanQuery, createGraphQuery, createQuery, createTupleQuery, createUpdate
supportsClassIdentification, supportsSubClassOfClosure, supportsSubPropertyMaterialization, supportsSubPropertyOfClosure
public OWLModelImpl(BaseRDFTripleModel baseRep)
public void addAnnotationProperty(String propertyURI, ARTURIResource superProperty, ARTResource... graphs) throws ModelUpdateException
addAnnotationProperty
in interface OWLModel
ModelUpdateException
public void addDatatypeProperty(String propertyURI, ARTURIResource superProperty, ARTResource... graphs) throws ModelUpdateException
OWLModel
propertyURI
addDatatypeProperty
in interface OWLModel
ModelUpdateException
public void addObjectProperty(String propertyURI, ARTURIResource superProperty, ARTResource... graphs) throws ModelUpdateException
OWLModel
propertyURI
addObjectProperty
in interface OWLModel
ModelUpdateException
public void addOntologyProperty(String propertyURI, ARTURIResource superProperty, ARTResource... graphs) throws ModelUpdateException
OWLModel
propertyURI
addOntologyProperty
in interface OWLModel
ModelUpdateException
public void addImportStatement(String baseURI, ARTResource... contexts) throws ModelUpdateException
OWLModel
addImportStatement
in interface OWLModel
baseURI
- the baseURI of the ontology being importedModelUpdateException
public void addClass(String uri, ARTResource... contexts) throws ModelUpdateException
RDFSModel
addClass
in interface RDFSModel
addClass
in class RDFSModelImpl
uri
- URI string of the class being createdModelUpdateException
public void removeImportStatement(ARTURIResource URI, ARTResource... contexts) throws ModelUpdateException
OWLModel
graphs
removeImportStatement
in interface OWLModel
URI
- the baseURI of the ontology being importedModelUpdateException
public void addValuesToDatarange(ARTResource dataRange, Iterator<ARTLiteral> literals, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
OWLModel
addValuesToDatarange
in interface OWLModel
ModelAccessException
ModelUpdateException
public void addValueToDatarange(ARTResource dataRange, ARTLiteral lit, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
OWLModel
addValueToDatarange
in interface OWLModel
ModelAccessException
ModelUpdateException
public void removeValueFromDatarange(ARTResource dataRange, ARTLiteral lit, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
OWLModel
removeValueFromDatarange
in interface OWLModel
ModelAccessException
ModelUpdateException
public void instantiateDatatypeProperty(ARTResource subject, ARTURIResource predicate, String literalString, ARTResource... contexts) throws ModelUpdateException
instantiateDatatypeProperty
in interface OWLModel
ModelUpdateException
public void instantiateObjectProperty(ARTResource subject, ARTURIResource predicate, ARTResource object, ARTResource... contexts) throws ModelUpdateException
OWLModel
subject
, predicate
and object
instantiateObjectProperty
in interface OWLModel
ModelUpdateException
public void instantiateAnnotationProperty(ARTResource subject, ARTURIResource property, String value, String lang, ARTResource... contexts) throws ModelUpdateException
OWLModel
subject
, predicate
and object, which is
described by its label (value
) and language (lang
)instantiateAnnotationProperty
in interface OWLModel
ModelUpdateException
public String setDataRange(ARTURIResource property, RDFIterator<ARTLiteral> dataRangeIterator, ARTResource... graphs) throws ModelAccessException, ModelUpdateException
OWLModel
property
setDataRange
in interface OWLModel
ModelAccessException
ModelUpdateException
public boolean isAnnotationProperty(ARTURIResource prop, ARTResource... contexts) throws ModelAccessException
isAnnotationProperty
in interface OWLModel
ModelAccessException
public boolean isDatatypeProperty(ARTURIResource prop, ARTResource... contexts) throws ModelAccessException
OWLModel
isDatatypeProperty
in interface OWLModel
ModelAccessException
public boolean isOntologyProperty(ARTURIResource prop, ARTResource... graphs) throws ModelAccessException
OWLModel
isOntologyProperty
in interface OWLModel
ModelAccessException
public boolean isFunctionalProperty(ARTURIResource property, ARTResource... contexts) throws ModelAccessException
OWLModel
isFunctionalProperty
in interface OWLModel
ModelAccessException
public boolean isInverseFunctionalProperty(ARTURIResource property, ARTResource... contexts) throws ModelAccessException
OWLModel
isInverseFunctionalProperty
in interface OWLModel
ModelAccessException
public boolean isObjectProperty(ARTURIResource property, ARTResource... contexts) throws ModelAccessException
OWLModel
isObjectProperty
in interface OWLModel
ModelAccessException
public boolean isSymmetricProperty(ARTURIResource property, ARTResource... contexts) throws ModelAccessException
OWLModel
isSymmetricProperty
in interface OWLModel
ModelAccessException
public boolean isTransitiveProperty(ARTURIResource property, ARTResource... contexts) throws ModelAccessException
OWLModel
isTransitiveProperty
in interface OWLModel
ModelAccessException
public boolean isDataRange(ARTResource range, ARTResource... graphs) throws ModelAccessException
OWLModel
isDataRange
in interface OWLModel
ModelAccessException
public boolean isOntology(ARTURIResource uri, ARTResource... contexts) throws ModelAccessException
OWLModel
uri
is an OntologyisOntology
in interface OWLModel
ModelAccessException
public boolean hasValueInDatarange(ARTResource dataRange, ARTLiteral lit, ARTResource... graphs) throws ModelAccessException
OWLModel
hasValueInDatarange
in interface OWLModel
ModelAccessException
public ARTURIResourceIterator listNamedClasses(boolean inferred, ARTResource... graphs) throws ModelAccessException
listNamedClasses
in interface RDFSModel
listNamedClasses
in class RDFSModelImpl
ModelAccessException
public ARTResourceIterator listClasses(boolean inferred, ARTResource... graphs) throws ModelAccessException
RDFSModel
graphs
). 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 RDFSModel
listClasses
in class RDFSModelImpl
ModelAccessException
public ARTURIResourceIterator listAnnotationProperties(boolean inferred, ARTResource... graphs) throws ModelAccessException
OWLModel
graphs
listAnnotationProperties
in interface OWLModel
ModelAccessException
public ARTURIResourceIterator listDatatypeProperties(boolean inferred, ARTResource... graphs) throws ModelAccessException
OWLModel
graphs
listDatatypeProperties
in interface OWLModel
ModelAccessException
public ARTURIResourceIterator listObjectProperties(boolean inferred, ARTResource... graphs) throws ModelAccessException
OWLModel
graphs
listObjectProperties
in interface OWLModel
ModelAccessException
public ARTURIResourceIterator listOntologyProperties(boolean inferred, ARTResource... graphs) throws ModelAccessException
OWLModel
graphs
listOntologyProperties
in interface OWLModel
ModelAccessException
public ARTURIResource getInverseProperty(ARTURIResource objectProperty, boolean inferred, ARTResource... graphs) throws ModelAccessException
OWLModel
objectProperty
. 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 OWLModel
ModelAccessException
public ARTURIResourceIterator listOntologyImports(ARTURIResource ontology, ARTResource... contexts) throws ModelAccessException
OWLModel
ontology
(defined in graphs graphs
listOntologyImports
in interface OWLModel
ModelAccessException
public ARTLiteralIterator listValuesOfSubjDTypePropertyPair(ARTResource instance, ARTURIResource property, boolean inferred, ARTResource... contexts) throws ModelAccessException
OWLModel
individual
through
datatype/annotation property property
both parameters need to be instantiatedlistValuesOfSubjDTypePropertyPair
in interface OWLModel
ModelAccessException
public ARTResourceIterator listValuesOfSubjObjPropertyPair(ARTResource individual, ARTURIResource property, boolean inferred, ARTResource... contexts) throws ModelAccessException
OWLModel
individual
through object
property property
both parameters need to be instantiatedlistValuesOfSubjObjPropertyPair
in interface OWLModel
ModelAccessException
public ARTURIResource retrieveClass(String uri, ARTResource... contexts) throws ModelAccessException
RDFSModelImpl
retrieveClass
in interface RDFSModel
retrieveClass
in class RDFSModelImpl
ModelAccessException
public ARTLiteralIterator parseDataRange(ARTResource dataRange, ARTResource... graphs) throws ModelAccessException
OWLModel
parseDataRange
in interface OWLModel
ModelAccessException
public boolean isClass(ARTResource cls, ARTResource... graphs) throws ModelAccessException
RDFSModelImpl
isClass
in interface RDFSModel
isClass
in class RDFSModelImpl
ModelAccessException
public void deleteIndividual(ARTResource res, ARTResource... graphs) throws ModelUpdateException
OWLModel
RDFModel#deleteResource(ARTResource, ARTResource...))
as an owl:Individual cannot appear as predicate of a triple)deleteIndividual
in interface OWLModel
ModelUpdateException
public void renameIndividual(ARTURIResource oldIndividual, String newURI, ARTResource... graphs) throws ModelUpdateException
OWLModel
RDFModel#renameResource(ARTURIResource, String)
as an
owl:Individual cannot appear as predicate of a triple)renameIndividual
in interface OWLModel
ModelUpdateException
public boolean supportsOWLThingMaterialization()
supportsOWLThingMaterialization
in interface OWLReasoner
public boolean supportsInverseProperties()
supportsInverseProperties
in interface OWLReasoner
public boolean supportsTransitiveProperties()
supportsTransitiveProperties
in interface OWLReasoner
public boolean supportsSymmetricProperties()
supportsSymmetricProperties
in interface OWLReasoner
protected boolean hasInversePropertyBoundConcept(ARTResource resource, ARTURIResource property, ARTURIResource inverseProperty, ARTResource object, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource
- property
- inverseProperty
- object
- inferred
- graphs
- ModelAccessException
protected boolean hasSymmetricPropertyBoundConcept(ARTResource resource, ARTURIResource property, ARTResource object, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource
- property
- object
- inferred
- graphs
- ModelAccessException
protected boolean hasTransitivePropertyBoundConcept(ARTResource resource, ARTURIResource property, ARTResource object, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource
- property
- object
- inferred
- graphs
- ModelAccessException
protected 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
- ModelAccessException
protected 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 nonTransitiveProperty
transitiveExtensionProperty
- transitive extension of property nonTransitiveProperty
transitiveExtensionInverseProperty
- transitive extension of property nonTransitiveInverseProperty
object
- inferred
- graphs
- ModelAccessException
protected ARTResourceIterator listInversePropertyBoundConcepts(ARTResource resource, ARTURIResource property, ARTURIResource inverseProperty, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource
- property
- inverseProperty
- graphs
- ModelAccessException
protected ARTResourceIterator listSymmetricPropertyBoundConcepts(ARTResource resource, ARTURIResource property, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource
- property
- graphs
- ModelAccessException
protected ARTResourceIterator listTransitivePropertyBoundConcepts(ARTResource resource, ARTURIResource property, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource
- property
- graphs
- ModelAccessException
protected 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 property
graphs
- ModelAccessException
protected 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 property
graphs
- ModelAccessException
public void addEnumeratedClass(String classURI, ArrayList<ARTNode> resources, ARTResource... graphs) throws ModelUpdateException
graphs
addEnumeratedClass
in interface OWLModel
classURI
- resources
- graphs
- ModelUpdateException
public void addOneOf(String BnodeID, ArrayList<ARTNode> resources, ARTResource... graphs) throws ModelUpdateException
graphs
addOneOf
in interface OWLModel
id
- resources
- graphs
- ModelUpdateException
public void addOneOfDataRange(String BnodeID, ArrayList<ARTLiteral> resources, ARTResource... graphs) throws ModelUpdateException
graphs
addOneOfDataRange
in interface OWLModel
id
- resources
- graphs
- ModelUpdateException
public void addRestrictionOnPropertyAllValuesFrom(String BnodeID, ARTURIResource property, ARTResource resource, ARTResource... graphs) throws ModelUpdateException
graphs
addRestrictionOnPropertyAllValuesFrom
in interface OWLModel
ID
- property
- resource
- graphs
- ModelUpdateException
public void addRestrictionOnPropertySomeValuesFrom(String BnodeID, ARTURIResource property, ARTResource resource, ARTResource... graphs) throws ModelUpdateException
graphs
addRestrictionOnPropertySomeValuesFrom
in interface OWLModel
ID
- property
- resource
- graphs
- ModelUpdateException
public void addRestrictionOnPropertyHasValue(String BnodeID, ARTURIResource property, ARTNode resourceOrLiteral, ARTResource... graphs) throws ModelUpdateException
graphs
addRestrictionOnPropertyHasValue
in interface OWLModel
ID
- property
- resourceOrLiteral
- graphs
- ModelUpdateException
public void addRestrictionOnCardinalityMinCardinality(String BnodeID, ARTURIResource property, String literal, ARTResource... graphs) throws ModelUpdateException
graphs
addRestrictionOnCardinalityMinCardinality
in interface OWLModel
ID
- property
- literal
- graphs
- ModelUpdateException
public void addRestrictionOnCardinalityMaxCardinality(String BnodeID, ARTURIResource property, String literal, ARTResource... graphs) throws ModelUpdateException
graphs
addRestrictionOnCardinalityMaxCardinality
in interface OWLModel
ID
- property
- literal
- graphs
- ModelUpdateException
public void addRestrictionOnCardinalityCardinality(String BnodeID, ARTURIResource property, String literal, ARTResource... graphs) throws ModelUpdateException
graphs
addRestrictionOnCardinalityCardinality
in interface OWLModel
ID
- property
- literal
- graphs
- ModelUpdateException
public void addIntersectionOf(String BnodeID, ArrayList<ARTResource> descriptions, ARTResource... graphs) throws ModelUpdateException
graphs
addIntersectionOf
in interface OWLModel
ID
- descriptions
- graphs
- ModelUpdateException
public void addComplementOf(String BnodeID, ARTResource description, ARTResource... graphs) throws ModelUpdateException
graphs
addComplementOf
in interface OWLModel
ID
- description
- graphs
- ModelUpdateException
public void addUnionOf(String BnodeID, ArrayList<ARTResource> descriptions, ARTResource... graphs) throws ModelUpdateException
graphs
addUnionOf
in interface OWLModel
ID
- descriptions
- graphs
- ModelUpdateException
public void addEquivalentClass(String classURI, ARTResource equivalentClass, ARTResource... graphs) throws ModelUpdateException
graphs
addEquivalentClass
in interface OWLModel
StringURI
- equivalentClass
- graphs
- ModelUpdateException
public void addSubClassOf(String classURI, ARTResource subClass, ARTResource... graphs) throws ModelUpdateException
graphs
addSubClassOf
in interface OWLModel
StringURI
- subClass
- graphs
- ModelUpdateException
public 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 OWLModel
set
- resource
- prop
- graphs
- ModelAccessException
public ARTNode parseManchesterExpr(ManchesterClassInterface mci, List<ARTStatement> statList)
parseManchesterExpr
in interface OWLModel
public String getManchExprFromBNode(ARTBNode bnode, boolean getPrefixName, OWLModel owlModel, ARTResource graphs) throws ModelAccessException
getManchExprFromBNode
in interface OWLModel
ModelAccessException
public ManchesterClassInterface getManchClassFromBNode(ARTBNode bnode, OWLModel owlModel, ARTResource graphs) throws ModelAccessException
getManchClassFromBNode
in interface OWLModel
ModelAccessException
Copyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.