public class OWLGraphWrapperExtended extends OWLGraphWrapperBasic
OWLOntology
objects. This includes methods, to extract OBO-style
information from the OWL representation.OWLGraphWrapper
,
OWLGraphWrapperBasic
sourceOntology, supportOntologySet
Modifier | Constructor and Description |
---|---|
protected |
OWLGraphWrapperExtended(org.semanticweb.owlapi.model.OWLOntology ontology) |
protected |
OWLGraphWrapperExtended(String iri) |
Modifier and Type | Method and Description |
---|---|
Map<String,org.semanticweb.owlapi.model.OWLObject> |
getAllOWLObjectsByAltId()
Find all corresponding
OWLObject s with an OBO-style alternate identifier. |
Set<String> |
getAllUsedSubsets()
fetches all subset names that are used
|
List<String> |
getAltIds(org.semanticweb.owlapi.model.OWLObject c)
It returns the values of the alt_id tag
|
org.semanticweb.owlapi.model.OWLAnnotationProperty |
getAnnotationProperty(String tag)
It translates a oboformat tag into an OWL annotation property
|
String |
getAnnotationPropertyValue(org.semanticweb.owlapi.model.OWLObject c,
List<String> tags)
Get the annotation property value for a tag.
|
String |
getAnnotationPropertyValue(org.semanticweb.owlapi.model.OWLObject c,
String tag)
Get the annotation property value for a tag.
|
List<String> |
getAnnotationPropertyValues(org.semanticweb.owlapi.model.OWLObject c,
List<String> tags)
Get the annotation property values for a tag.
|
List<String> |
getAnnotationPropertyValues(org.semanticweb.owlapi.model.OWLObject c,
String tag)
Get the annotation property values for a tag.
|
String |
getAnnotationValue(org.semanticweb.owlapi.model.OWLObject c,
org.semanticweb.owlapi.model.OWLAnnotationProperty lap)
fetches the value of a single-valued annotation property for an OWLObject
|
List<String> |
getAnnotationValues(org.semanticweb.owlapi.model.OWLObject c,
org.semanticweb.owlapi.model.OWLAnnotationProperty lap)
gets the values of all annotation assertions to an OWLObject for a particular annotation property
|
boolean |
getBuiltin(org.semanticweb.owlapi.model.OWLObject c)
Deprecated.
|
String |
getComment(org.semanticweb.owlapi.model.OWLObject c)
gets the value of rdfs:comment for an OWLObject
|
String |
getComment(org.semanticweb.owlapi.model.OWLObject c,
List<String> sargs)
gets the value of rdfs:comment for an OWLObject
|
List<String> |
getComments(org.semanticweb.owlapi.model.OWLObject c)
gets all values of rdfs:comment for an OWLObject
|
List<String> |
getComments(org.semanticweb.owlapi.model.OWLObject c,
List<String> sargs)
gets all values of rdfs:comment for an OWLObject
|
List<String> |
getConsider(org.semanticweb.owlapi.model.OWLObject c)
It returns the values of the consider tag.
|
String |
getCreatedBy(org.semanticweb.owlapi.model.OWLObject c)
It returns the value of the created_by tag
|
String |
getDef(org.semanticweb.owlapi.model.OWLObject c)
Gets the textual definition of an OWLObject
|
String |
getDef(org.semanticweb.owlapi.model.OWLObject c,
List<String> sargs)
Gets the textual definition of an OWLObject
|
List<String> |
getDefXref(org.semanticweb.owlapi.model.OWLObject c)
Get the definition xrefs (IAO_0000115)
|
List<String> |
getDefXref(org.semanticweb.owlapi.model.OWLObject c,
List<String> sargs)
Get the definition xrefs (IAO_0000115)
|
String |
getDomain(org.semanticweb.owlapi.model.OWLObjectProperty prop)
It returns the (first) value of the domain tag
|
String |
getIdentifier(org.semanticweb.owlapi.model.IRI iriId)
gets the OBO-style ID of the specified object.
|
String |
getIdentifier(org.semanticweb.owlapi.model.OWLObject owlObject)
gets the OBO-style ID of the specified object.
|
String |
getIdentifier(org.semanticweb.owlapi.model.OWLObject owlObject,
boolean useShorthand)
Gets the OBO-style ID of the specified object.
|
String |
getIdentifier(org.semanticweb.owlapi.model.OWLObject owlObject,
List<String> sargs)
Same as
getIdentifier(OWLObject) but a different profile to support the FlexLoader. |
org.semanticweb.owlapi.model.IRI |
getIRIByIdentifier(String id) |
org.semanticweb.owlapi.model.IRI |
getIRIByIdentifier(String id,
boolean isAutoResolve) |
org.semanticweb.owlapi.model.IRI |
getIRIByLabel(String label)
fetches an OWL IRI by rdfs:label
|
org.semanticweb.owlapi.model.IRI |
getIRIByLabel(String label,
boolean isEnforceUnivocal)
fetches an OWL IRI by rdfs:label, optionally testing for uniqueness
|
boolean |
getIsAnonymous(org.semanticweb.owlapi.model.OWLObject c)
Deprecated.
|
boolean |
getIsAntiSymmetric(org.semanticweb.owlapi.model.OWLObject c)
It returns the value of the is_anti_symmetric tag or IAO_0000427 annotation
|
boolean |
getIsCyclic(org.semanticweb.owlapi.model.OWLObject c)
It returns the value of the is_cyclic tag
|
boolean |
getIsFunctional(org.semanticweb.owlapi.model.OWLObjectProperty c)
true if c is functional in the graph
|
boolean |
getIsInverseFunctional(org.semanticweb.owlapi.model.OWLObjectProperty c)
true if c is inverse functional in the graph
|
boolean |
getIsMetaTag(org.semanticweb.owlapi.model.OWLObject c)
It returns the value of the is_metadata_tag tag.
|
boolean |
getIsObsolete(org.semanticweb.owlapi.model.OWLObject c)
It returns the value of the is-obsolete tag.
|
String |
getIsObsoleteBinaryString(org.semanticweb.owlapi.model.OWLObject c,
List<String> sargs)
It returns the value of the is-obsolete tag.
|
boolean |
getIsReflexive(org.semanticweb.owlapi.model.OWLObjectProperty c)
true if c is reflexive in the graph
|
boolean |
getIsSymmetric(org.semanticweb.owlapi.model.OWLObjectProperty c)
true if c is symmetric in the graph
|
boolean |
getIsTransitive(org.semanticweb.owlapi.model.OWLObjectProperty c)
true if c is transitive in the graph
|
String |
getLabel(org.semanticweb.owlapi.model.OWLObject c)
fetches the rdfs:label for an OWLObject
|
String |
getLabel(org.semanticweb.owlapi.model.OWLObject c,
List<String> sargs)
fetches the rdfs:label for an OWLObject
|
String |
getLabelOrDisplayId(org.semanticweb.owlapi.model.OWLObject c) |
String |
getNamespace(org.semanticweb.owlapi.model.OWLObject c)
It returns the value of the OBO-namespace tag
|
String |
getNamespace(org.semanticweb.owlapi.model.OWLObject c,
List<String> sargs)
It returns the value of the OBO-namespace tag.
|
org.semanticweb.owlapi.model.OWLObject |
getObjectByAltId(String altId) |
String |
getOntologyId()
gets the OBO-style ID of the source ontology IRI.
|
org.semanticweb.owlapi.model.OWLAnnotationProperty |
getOWLAnnotationProperty(org.semanticweb.owlapi.model.IRI iri) |
org.semanticweb.owlapi.model.OWLClass |
getOWLClass(org.semanticweb.owlapi.model.IRI iri)
Returns an OWLClass given an IRI
|
org.semanticweb.owlapi.model.OWLClass |
getOWLClass(org.semanticweb.owlapi.model.OWLObject x) |
org.semanticweb.owlapi.model.OWLClass |
getOWLClass(String s)
Returns an OWLClass given an IRI string
|
org.semanticweb.owlapi.model.OWLClass |
getOWLClassByIdentifier(String id)
Given an OBO-style ID, return the corresponding OWLClass, if it is declared - otherwise null
|
org.semanticweb.owlapi.model.OWLClass |
getOWLClassByIdentifier(String id,
boolean isAutoResolve)
As
getOWLClassByIdentifier(String) but include pre-resolution step
using altId map. |
org.semanticweb.owlapi.model.OWLClass |
getOWLClassByIdentifierNoAltIds(String id)
Given an OBO-style ID, return the corresponding OWLClass, if it is declared and not an alt_id - otherwise null
|
Set<org.semanticweb.owlapi.model.OWLClass> |
getOWLClassesInSubset(String subset)
given a subset name, find all OWLClasses assigned to that subset
|
org.semanticweb.owlapi.model.OWLNamedIndividual |
getOWLIndividual(org.semanticweb.owlapi.model.IRI iri)
Returns an OWLNamedIndividual with this IRI if it has been declared
in the source or support ontologies.
|
org.semanticweb.owlapi.model.OWLNamedIndividual |
getOWLIndividual(String s) |
org.semanticweb.owlapi.model.OWLNamedIndividual |
getOWLIndividualByIdentifier(String id)
Given an OBO-style ID, return the corresponding OWLNamedIndividual, if it is declared - otherwise null
|
org.semanticweb.owlapi.model.OWLObject |
getOWLObject(org.semanticweb.owlapi.model.IRI s)
Returns the OWLObject with this IRI
|
org.semanticweb.owlapi.model.OWLObject |
getOWLObject(String s)
Returns the OWLObject with this IRI
(where IRI is specified as a string - e.g http://purl.obolibrary.org/obo/GO_0008150)
|
org.semanticweb.owlapi.model.OWLObject |
getOWLObjectByAltId(String altIds)
Find the corresponding
OWLObject for a given OBO-style alternate identifier. |
org.semanticweb.owlapi.model.OWLObject |
getOWLObjectByIdentifier(String id)
Given an OBO-style ID, return the corresponding OWLObject, if it is declared - otherwise null
|
org.semanticweb.owlapi.model.OWLObject |
getOWLObjectByLabel(String label)
fetches an OWL Object by rdfs:label
|
org.semanticweb.owlapi.model.OWLObjectProperty |
getOWLObjectProperty(org.semanticweb.owlapi.model.IRI iri) |
org.semanticweb.owlapi.model.OWLObjectProperty |
getOWLObjectProperty(String iri)
Returns the OWLObjectProperty with this IRI
|
org.semanticweb.owlapi.model.OWLObjectProperty |
getOWLObjectPropertyByIdentifier(String id)
Given an OBO-style ID, return the corresponding OWLObjectProperty, if it is declared - otherwise null
|
Map<String,org.semanticweb.owlapi.model.OWLObject> |
getOWLObjectsByAltId(Set<String> altIds)
Find the corresponding
OWLObject s for a given set of OBO-style alternate identifiers. |
Set<org.semanticweb.owlapi.model.OWLObject> |
getOWLObjectsInSubset(String subset)
given a subset name, find all OWLObjects (typically OWLClasses) assigned to that subset
|
String |
getRange(org.semanticweb.owlapi.model.OWLObjectProperty prop)
It returns the (first) value of the range tag
|
List<String> |
getReplacedBy(org.semanticweb.owlapi.model.OWLObject c)
It returns the values of the replaced_by tag or IAO_0100001 annotation.
|
List<String> |
getSubsets(org.semanticweb.owlapi.model.OWLObject c)
Returns the values of the subset tag for a given OWLObject
|
List<String> |
getSubsets(org.semanticweb.owlapi.model.OWLObject c,
List<String> sargs)
It returns the value of the subset tag.
|
Map<String,String> |
getVersions()
Retrieve the version information of all ontologies.
|
List<String> |
getXref(org.semanticweb.owlapi.model.OWLObject c)
get the values of of the obo xref tag
|
List<String> |
getXref(org.semanticweb.owlapi.model.OWLObject c,
List<String> sargs)
get the values of of the obo xref tag
|
boolean |
isObsolete(org.semanticweb.owlapi.model.OWLObject c)
tests if an OWLObject has been declared obsolete in the graph.
|
addImport, addImportsFromSupportOntologies, addSupportOntologiesFromImportsClosure, addSupportOntologiesFromImportsClosure, addSupportOntology, getAllOntologies, getAllOWLClasses, getAllOWLObjects, getAllOWLSubClassOfAxiomsForSubClass, getAllOWLSubClassOfAxiomsForSuperClass, getDataFactory, getManager, getSourceOntology, getSupportOntologySet, mergeImportClosure, mergeImportClosure, mergeOntology, mergeOntology, mergeSpecificImport, mergeSupportOntology, mergeSupportOntology, mergeSupportOntology, mergeSupportOntology, remakeOntologiesFromImportsClosure, remakeOntologiesFromImportsClosure, removeSupportOntology, setSourceOntology, setSupportOntologySet
protected OWLGraphWrapperExtended(org.semanticweb.owlapi.model.OWLOntology ontology)
protected OWLGraphWrapperExtended(String iri) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public String getLabel(org.semanticweb.owlapi.model.OWLObject c)
assumes zero or one rdfs:label
c
- public String getLabel(org.semanticweb.owlapi.model.OWLObject c, List<String> sargs)
This is a curried FlexLoader s-expression version of getLabel(OWLObject)
.
c
- sargs
- getLabel(OWLObject)
public String getLabelOrDisplayId(org.semanticweb.owlapi.model.OWLObject c)
public boolean isObsolete(org.semanticweb.owlapi.model.OWLObject c)
c
- public String getComment(org.semanticweb.owlapi.model.OWLObject c)
c
- public String getComment(org.semanticweb.owlapi.model.OWLObject c, List<String> sargs)
This is a curried FlexLoader s-expression version of getComment(OWLObject)
.
c
- sargs
- getComment(OWLObject)
public List<String> getComments(org.semanticweb.owlapi.model.OWLObject c)
c
- public List<String> getComments(org.semanticweb.owlapi.model.OWLObject c, List<String> sargs)
This is a curried FlexLoader s-expression version of getComments(OWLObject)
.
c
- sargs
- getComment(OWLObject)
public String getAnnotationValue(org.semanticweb.owlapi.model.OWLObject c, org.semanticweb.owlapi.model.OWLAnnotationProperty lap)
TODO: provide a flag that determines behavior in the case of >1 value
c
- lap
- public List<String> getAnnotationValues(org.semanticweb.owlapi.model.OWLObject c, org.semanticweb.owlapi.model.OWLAnnotationProperty lap)
c
- lap
- public String getDef(org.semanticweb.owlapi.model.OWLObject c)
assumes zero or one def
It returns the definition text (encoded as def in obo format and IAO_0000115 annotation property in OWL format) of a class
c
- public String getDef(org.semanticweb.owlapi.model.OWLObject c, List<String> sargs)
This is a curried FlexLoader s-expression version of getDef(OWLObject)
.
c
- sargs
- getDef(OWLObject)
public boolean getIsMetaTag(org.semanticweb.owlapi.model.OWLObject c)
c
- could OWLClass or OWLObjectPropertypublic List<String> getSubsets(org.semanticweb.owlapi.model.OWLObject c)
c
- could OWLClass or OWLObjectPropertypublic List<String> getSubsets(org.semanticweb.owlapi.model.OWLObject c, List<String> sargs)
This is a curried FlexLoader s-expression version of getSubsets(OWLObject)
.
c
- could OWLClass or OWLObjectPropertysargs
- getSubsets(OWLObject)
public Set<String> getAllUsedSubsets()
public Set<org.semanticweb.owlapi.model.OWLObject> getOWLObjectsInSubset(String subset)
subset
- OWLObject
public Set<org.semanticweb.owlapi.model.OWLClass> getOWLClassesInSubset(String subset)
subset
- OWLClass
public String getDomain(org.semanticweb.owlapi.model.OWLObjectProperty prop)
prop
- public String getRange(org.semanticweb.owlapi.model.OWLObjectProperty prop)
prop
- public List<String> getReplacedBy(org.semanticweb.owlapi.model.OWLObject c)
c
- could OWLClass or OWLObjectPropertypublic List<String> getConsider(org.semanticweb.owlapi.model.OWLObject c)
c
- could OWLClass or OWLObjectPropertypublic boolean getIsObsolete(org.semanticweb.owlapi.model.OWLObject c)
c
- could OWLClass or OWLObjectPropertypublic String getIsObsoleteBinaryString(org.semanticweb.owlapi.model.OWLObject c, List<String> sargs)
The odd signature is for use with FlexLoader.
c
- could OWLClass or OWLObjectPropertysargs
- (unsused)public String getAnnotationPropertyValue(org.semanticweb.owlapi.model.OWLObject c, String tag)
c
- tag
- getAnnotationPropertyValues(OWLObject c, String tag)
public String getAnnotationPropertyValue(org.semanticweb.owlapi.model.OWLObject c, List<String> tags)
This is a curried FlexLoader s-expression version of getAnnotationPropertyValue(OWLObject, String)
.
Currently, this function will only accept an argument of length 1.
c
- tags
- getAnnotationPropertyValues(OWLObject c, String tag)
public List<String> getAnnotationPropertyValues(org.semanticweb.owlapi.model.OWLObject c, String tag)
c
- tag
- getAnnotationPropertyValue(OWLObject c, String tag)
public List<String> getAnnotationPropertyValues(org.semanticweb.owlapi.model.OWLObject c, List<String> tags)
This is a curried FlexLoader s-expression version of getAnnotationPropertyValues(OWLObject, String)
.
Currently, this function will only accept an argument of length 1.
c
- tags
- getAnnotationPropertyValues(OWLObject c, String tag)
public List<String> getAltIds(org.semanticweb.owlapi.model.OWLObject c)
c
- public org.semanticweb.owlapi.model.OWLObject getObjectByAltId(String altId)
altId
- @Deprecated public boolean getBuiltin(org.semanticweb.owlapi.model.OWLObject c)
c
- @Deprecated public boolean getIsAnonymous(org.semanticweb.owlapi.model.OWLObject c)
c
- public org.semanticweb.owlapi.model.OWLAnnotationProperty getAnnotationProperty(String tag)
tag
- OWLAnnotationProperty
public String getNamespace(org.semanticweb.owlapi.model.OWLObject c)
Example: if the OWLObject is the GO class GO:0008150, this would return "biological_process"
c
- public String getNamespace(org.semanticweb.owlapi.model.OWLObject c, List<String> sargs)
This is a curried FlexLoader s-expression version of getNamespace(OWLObject)
.
c
- sargs
- getNamespace(OWLObject)
public String getCreatedBy(org.semanticweb.owlapi.model.OWLObject c)
c
- public boolean getIsAntiSymmetric(org.semanticweb.owlapi.model.OWLObject c)
c
- public boolean getIsCyclic(org.semanticweb.owlapi.model.OWLObject c)
c
- public boolean getIsTransitive(org.semanticweb.owlapi.model.OWLObjectProperty c)
c
- public boolean getIsFunctional(org.semanticweb.owlapi.model.OWLObjectProperty c)
c
- public boolean getIsInverseFunctional(org.semanticweb.owlapi.model.OWLObjectProperty c)
c
- public boolean getIsReflexive(org.semanticweb.owlapi.model.OWLObjectProperty c)
c
- public boolean getIsSymmetric(org.semanticweb.owlapi.model.OWLObjectProperty c)
c
- public List<String> getXref(org.semanticweb.owlapi.model.OWLObject c)
c
- public List<String> getXref(org.semanticweb.owlapi.model.OWLObject c, List<String> sargs)
This is a curried FlexLoader s-expression version of getXref(OWLObject)
.
c
- sargs
- getXref(OWLObject)
public List<String> getDefXref(org.semanticweb.owlapi.model.OWLObject c)
c
- public List<String> getDefXref(org.semanticweb.owlapi.model.OWLObject c, List<String> sargs)
This is a curried FlexLoader s-expression version of getDefXref(OWLObject)
.
c
- sargs
- getDefXref(OWLObject)
public String getIdentifier(org.semanticweb.owlapi.model.OWLObject owlObject)
owlObject
- public String getIdentifier(org.semanticweb.owlapi.model.OWLObject owlObject, boolean useShorthand)
owlObject
- useShorthand
- public String getIdentifier(org.semanticweb.owlapi.model.OWLObject owlObject, List<String> sargs)
getIdentifier(OWLObject)
but a different profile to support the FlexLoader.
The s-expressions arguments go unused.
owlObject
- sargs
- (unused)getIdentifier(OWLObject)
public String getIdentifier(org.semanticweb.owlapi.model.IRI iriId)
iriId
- public org.semanticweb.owlapi.model.IRI getIRIByIdentifier(String id)
public org.semanticweb.owlapi.model.IRI getIRIByIdentifier(String id, boolean isAutoResolve)
public org.semanticweb.owlapi.model.OWLObject getOWLObjectByIdentifier(String id)
id
- - e.g. GO:0008150public org.semanticweb.owlapi.model.OWLObjectProperty getOWLObjectPropertyByIdentifier(String id)
id
- - e.g. GO:0008150public org.semanticweb.owlapi.model.OWLNamedIndividual getOWLIndividualByIdentifier(String id)
id
- - e.g. GO:0008150public org.semanticweb.owlapi.model.OWLClass getOWLClassByIdentifier(String id)
id
- - e.g. GO:0008150public org.semanticweb.owlapi.model.OWLClass getOWLClassByIdentifierNoAltIds(String id)
id
- public org.semanticweb.owlapi.model.OWLClass getOWLClassByIdentifier(String id, boolean isAutoResolve)
getOWLClassByIdentifier(String)
but include pre-resolution step
using altId map.
Currently this additional boolean option is obo-format specific; in OBO,
when a class A is merged into B, the OBO-ID of A is preserved with an hasAlternateId
annotation on the IRI of B. Using this method, with isAutoResolve=true, a query for
the OBO ID of A will return class B.
In future, analogous options will be added to IRI-based access to classes.id
- isAutoResolve
- public org.semanticweb.owlapi.model.OWLObject getOWLObjectByLabel(String label)
if there is >1 match, return the first one encountered
label
- public org.semanticweb.owlapi.model.IRI getIRIByLabel(String label)
label
- public org.semanticweb.owlapi.model.IRI getIRIByLabel(String label, boolean isEnforceUnivocal) throws SharedLabelException
TODO: index labels. This currently scans all labels in the ontology, which is expensive
label
- isEnforceUnivocal
- SharedLabelException
- if >1 IRI shares input labelpublic org.semanticweb.owlapi.model.OWLObject getOWLObjectByAltId(String altIds)
OWLObject
for a given OBO-style alternate identifier.
WARNING: This methods scans all object annotations in all ontologies. This is an expensive method.
If there are multiple altIds use getOWLObjectsByAltId(Set)
for more efficient retrieval.
Also consider loading all altId-mappings using getAllOWLObjectsByAltId()
.
altIds
- OWLObject
or nullgetOWLObjectsByAltId(Set)
,
getAllOWLObjectsByAltId()
public Map<String,org.semanticweb.owlapi.model.OWLObject> getOWLObjectsByAltId(Set<String> altIds)
OWLObject
s for a given set of OBO-style alternate identifiers.
WARNING: This methods scans all object annotations in all ontologies. This is an expensive method.
Consider loading all altId-mappings using getAllOWLObjectsByAltId()
.
altIds
- getAllOWLObjectsByAltId()
public Map<String,org.semanticweb.owlapi.model.OWLObject> getAllOWLObjectsByAltId()
OWLObject
s with an OBO-style alternate identifier.
WARNING: This methods scans all object annotations in all ontologies. This is an expensive method.
public org.semanticweb.owlapi.model.OWLClass getOWLClass(String s)
the class must be declared in either the source ontology, or in a support ontology, otherwise null is returned
s
- IRI stringOWLClass
public org.semanticweb.owlapi.model.OWLClass getOWLClass(org.semanticweb.owlapi.model.IRI iri)
the class must be declared in either the source ontology, or in a support ontology, otherwise null is returned
iri
- OWLClass
public org.semanticweb.owlapi.model.OWLClass getOWLClass(org.semanticweb.owlapi.model.OWLObject x)
x
- OWLClass
public org.semanticweb.owlapi.model.OWLNamedIndividual getOWLIndividual(org.semanticweb.owlapi.model.IRI iri)
iri
- OWLNamedIndividual
public org.semanticweb.owlapi.model.OWLNamedIndividual getOWLIndividual(String s)
s
- OWLNamedIndividual
getOWLIndividual(IRI)
public org.semanticweb.owlapi.model.OWLObjectProperty getOWLObjectProperty(String iri)
Must have been declared in one of the ontologies
iri
- OWLObjectProperty
public org.semanticweb.owlapi.model.OWLObjectProperty getOWLObjectProperty(org.semanticweb.owlapi.model.IRI iri)
public org.semanticweb.owlapi.model.OWLAnnotationProperty getOWLAnnotationProperty(org.semanticweb.owlapi.model.IRI iri)
public org.semanticweb.owlapi.model.OWLObject getOWLObject(String s)
s
- IRI stringOWLObject
getOWLObject(IRI iri)
public org.semanticweb.owlapi.model.OWLObject getOWLObject(org.semanticweb.owlapi.model.IRI s)
Must have been declared in one of the ontologies
Currently OWLObject must be one of OWLClass, OWLObjectProperty or OWLNamedIndividual
If the ontology employs punning and there different entities with the same IRI, then the order of precedence is OWLClass then OWLObjectProperty then OWLNamedIndividual
s
- entity IRIOWLObject
public String getOntologyId()
Copyright © 2010–2016. All rights reserved.