public class RelatedObjectsHelper extends Object
Constructor and Description |
---|
RelatedObjectsHelper() |
Modifier and Type | Method and Description |
---|---|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
filterAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> inputAxioms,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
List<String> axiomSelectors,
List<String> baseNamespaces,
boolean partial,
boolean namedOnly)
Filter a set of OWLAxioms based on the provided arguments.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
filterAxiomsByAxiomType(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes,
boolean partial,
boolean namedOnly)
Given a set of OWLAxioms, a set of OWLObjects, a set of OWLAxiom Classes, a partial boolean,
and a named-only boolean, return a set of OWLAxioms based on OWLAxiom type.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
filterCompleteAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> inputAxioms,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes,
boolean namedOnly)
Given a st of axioms, a set of objects, and a set of axiom types, return a set of axioms where
all the objects in those axioms are in the set of objects.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
filterExternalAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms,
List<String> baseNamespaces)
Given a list of base namespaces and a set of axioms, return only the axioms that DO NOT have a
subject in the base namespaces.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
filterInternalAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms,
List<String> baseNamespaces)
Given a list of base namespaces and a set of axioms, return only the axioms that have a subject
in the base namespaces.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
filterPartialAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> inputAxioms,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes,
boolean namedOnly)
Given a set of axioms, a set of objects, and a set of axiom types, return a set of axioms where
at least one object in those axioms is also in the set of objects.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
filterTautologicalAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms,
boolean structural)
Given a set of OWLAxioms and a structural boolean, filter for tautological axioms, i.e., those
that would be true in any ontology.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
getAnnotationAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given an ontology and a set of objects, return the annotation axioms for all objects.
|
protected static Set<org.semanticweb.owlapi.model.OWLAnnotation> |
getAnnotations(org.semanticweb.owlapi.model.OWLOntology ontology,
IOHelper ioHelper,
String annotation)
Given an IOHelper and an annotation as CURIE=..., return the OWLAnnotation object(s).
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
getAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes,
boolean partial,
boolean signature)
Deprecated.
|
static Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> |
getAxiomValues(String axiomSelector)
Given a string axiom selector, return the OWLAxiom Class type(s) or null.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
getCompleteAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes)
Given an ontology, a set of objects, and a set of axiom types, return a set of axioms where all
the objects in those axioms are in the set of objects.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
getCompleteAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes,
boolean namedOnly)
Given an ontology, a set of objects, and a set of axiom types, return a set of axioms where all
the objects in those axioms are in the set of objects.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
getPartialAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes)
Given an ontology, a set of objects, and a set of axiom types, return a set of axioms where at
least one object in those axioms is also in the set of objects.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
getPartialAxioms(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes,
boolean namedOnly)
Given an ontology, a set of objects, and a set of axiom types, return a set of axioms where at
least one object in those axioms is also in the set of objects.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
select(org.semanticweb.owlapi.model.OWLOntology ontology,
IOHelper ioHelper,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
List<String> selectors)
Given an ontology, a set of objects, and a list of selector strings, return the objects related
to the set of OWLObjects based on the set of selectors.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
select(org.semanticweb.owlapi.model.OWLOntology ontology,
IOHelper ioHelper,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
String selector)
Given an ontology, a set of objects, and a selector, return the related objects related to the
set of OWL objects based on the selector.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectAncestors(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given an ontology and a set of objects, return all ancestors (recursively) of those objects.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectAnnotationProperties(Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given a set of objects, return a set of annotation properties from the starting set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectAnonymous(Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given a set of objects, return a set of anonymous objects from the starting set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectChildren(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given an ontology and a set of objects, return the children of the starting set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectClasses(Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given a set of objects, return a set of OWLClasses from the starting set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectComplement(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given an ontology and a set of objects, return all objects contained in the ontology that are
NOT in the starting set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectCURIE(IOHelper ioHelper,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
String selector)
Given an IOHelper, a set of objects, and a selector string for CURIE pattern, return a set of
objects matching that CURIE pattern.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectDataProperties(Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given a set of objects, return a set of OWLDataProperties from the starting set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectDescendants(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given an ontology and a set of objects, return all descendants (recursively) of those objects.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectDomains(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given an ontology and a set of objects, return all domains of any properties in the set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectEquivalents(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given an ontology and a set of objects, return all equivalent objects of the starting set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectGroups(org.semanticweb.owlapi.model.OWLOntology ontology,
IOHelper ioHelper,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
List<List<String>> selectorGroups)
Given an ontology, a set of objects, and a list of select groups (as lists), return the objects
related to the set of OWLObjects based on each set of selectors.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectIndividuals(Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given a set of objects, return a set of OWLIndividuals from the starting set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectInstances(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given an ontology and a set of objects, select all the instances of the classes in the set of
objects.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectIRI(Set<org.semanticweb.owlapi.model.OWLObject> objects,
String selector)
Given a set of objects, and a selector string (IRI pattern in angle brackets), select all the
objects that have an IRI matching that pattern.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectNamed(Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given a set of objects, return a set of named objects from the starting set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectObjectProperties(Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given a set of objects, return a set of OWLObjectProperties from the starting set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectParents(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given an ontology and a set of objects, return the parent objects of all objects in the set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectPattern(org.semanticweb.owlapi.model.OWLOntology ontology,
IOHelper ioHelper,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
String annotationPattern)
Given an ontology, a set of objects, and a pattern to match annotations to, return a set of
objects that are annotated with the matching annotation.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectProperties(Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given a set of objects, return a set of all OWLProperties from the starting set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectRanges(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given an ontology and a set of objects, return all ranges of any properties in the set.
|
static Set<org.semanticweb.owlapi.model.OWLObject> |
selectTypes(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects)
Given an ontology and a set of objects, return a set of all the types of the individuals in
that set.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
spanGaps(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects) |
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
spanGaps(org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLObject> objects,
boolean excludeAnonymous)
Given an ontology and a set of objects, construct a set of subClassOf axioms that span the gaps
between classes to maintain a hierarchy.
|
public static Set<org.semanticweb.owlapi.model.OWLAxiom> getAnnotationAxioms(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
ontology
- OWLOntology to get annotations fromobjects
- OWLObjects to get annotations ofpublic static Set<org.semanticweb.owlapi.model.OWLAxiom> filterAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> inputAxioms, Set<org.semanticweb.owlapi.model.OWLObject> objects, List<String> axiomSelectors, List<String> baseNamespaces, boolean partial, boolean namedOnly) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
inputAxioms
- Set of OWLAxioms to filterobjects
- Set of OWLObjects to get axioms foraxiomSelectors
- List of string selectors for types of axiomsbaseNamespaces
- List of string base namespaces used for internal/external selectionspartial
- if true, get any axiom containing at least one OWLObject from objectsnamedOnly
- if true, ignore anonymous OWLObjects in axiomsorg.semanticweb.owlapi.model.OWLOntologyCreationException
- on issue creating empty ontology for tautology checkerpublic static Set<org.semanticweb.owlapi.model.OWLAxiom> filterAxiomsByAxiomType(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms, Set<org.semanticweb.owlapi.model.OWLObject> objects, Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes, boolean partial, boolean namedOnly)
axioms
- set of OWLAxioms to filterobjects
- set of OWLObjects to get axioms foraxiomTypes
- set of OWLAxiom Classes that determines what type of axioms will be selectedpartial
- if true, include all axioms that use at least one OWLObject from objectsnamedOnly
- if true, ignore anonymous OWLObjects used in axiomspublic static Set<org.semanticweb.owlapi.model.OWLAxiom> filterCompleteAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> inputAxioms, Set<org.semanticweb.owlapi.model.OWLObject> objects, Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes, boolean namedOnly)
inputAxioms
- Set of OWLAxioms to filterobjects
- Set of objects to match in axiomsaxiomTypes
- OWLAxiom types to returnnamedOnly
- when true, consider only named OWLObjectspublic static Set<org.semanticweb.owlapi.model.OWLAxiom> filterExternalAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms, List<String> baseNamespaces)
axioms
- set of OWLAxiomsbaseNamespaces
- list of base namespacespublic static Set<org.semanticweb.owlapi.model.OWLAxiom> filterInternalAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms, List<String> baseNamespaces)
axioms
- set of OWLAxiomsbaseNamespaces
- list of base namespacespublic static Set<org.semanticweb.owlapi.model.OWLAxiom> filterPartialAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> inputAxioms, Set<org.semanticweb.owlapi.model.OWLObject> objects, Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes, boolean namedOnly)
inputAxioms
- Set of OWLAxioms to filterobjects
- Set of OWLObjects to match in axiomsaxiomTypes
- OWLAxiom types to returnnamedOnly
- when true, only consider named OWLObjectspublic static Set<org.semanticweb.owlapi.model.OWLAxiom> filterTautologicalAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms, boolean structural) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
axioms
- set of OWLAxioms to filterstructural
- if true, only filter for structural tautological axioms based on a hard-coded
set of patterns (e.g., X subClassOf owl:Thing, owl:Nothing subClassOf X, X subClassOf X)org.semanticweb.owlapi.model.OWLOntologyCreationException
- on issue creating empty ontology for tautology checker@Deprecated public static Set<org.semanticweb.owlapi.model.OWLAxiom> getAxioms(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects, Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes, boolean partial, boolean signature)
filterAxiomsByAxiomType(Set, Set, Set, boolean, boolean)
ontology
- OWLOntology to get axioms fromobjects
- OWLObjects to get axioms aboutaxiomTypes
- Set of OWLAxiom Classes that are the types of OWLAxioms to returnpartial
- if true, return any OWLAxiom that has at least one OWLObject from objectssignature
- if true, ignore anonymous OWLObjects in axiomspublic static Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> getAxiomValues(String axiomSelector)
axiomSelector
- string option to get the OWLAxiom Class type or types forpublic static Set<org.semanticweb.owlapi.model.OWLAxiom> getCompleteAxioms(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects, Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes)
filterCompleteAxioms(Set,
Set, Set, boolean)
.ontology
- OWLOntology to get axioms fromobjects
- Set of objects to match in axiomsaxiomTypes
- OWLAxiom types to returnpublic static Set<org.semanticweb.owlapi.model.OWLAxiom> getCompleteAxioms(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects, Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes, boolean namedOnly)
filterCompleteAxioms(Set,
Set, Set, boolean)
.ontology
- OWLOntology to get axioms fromobjects
- Set of objects to match in axiomsaxiomTypes
- OWLAxiom types to returnnamedOnly
- when true, consider only named OWLObjectspublic static Set<org.semanticweb.owlapi.model.OWLAxiom> getPartialAxioms(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects, Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes)
filterPartialAxioms(Set, Set, Set, boolean)
.ontology
- OWLOntology to get axioms fromobjects
- Set of objects to match in axiomsaxiomTypes
- OWLAxiom types to returnpublic static Set<org.semanticweb.owlapi.model.OWLAxiom> getPartialAxioms(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects, Set<Class<? extends org.semanticweb.owlapi.model.OWLAxiom>> axiomTypes, boolean namedOnly)
filterPartialAxioms(Set, Set, Set, boolean)
.ontology
- OWLOntology to get axioms fromobjects
- Set of objects to match in axiomsaxiomTypes
- OWLAxiom types to returnnamedOnly
- when true, only consider named OWLObjectspublic static Set<org.semanticweb.owlapi.model.OWLObject> selectGroups(org.semanticweb.owlapi.model.OWLOntology ontology, IOHelper ioHelper, Set<org.semanticweb.owlapi.model.OWLObject> objects, List<List<String>> selectorGroups) throws Exception
ontology
- OWLOntology to get related objects fromioHelper
- IOHelper to use for prefixesobjects
- Set of objects to start withselectorGroups
- types of related objects to returnException
- on annotation pattern issuepublic static Set<org.semanticweb.owlapi.model.OWLObject> select(org.semanticweb.owlapi.model.OWLOntology ontology, IOHelper ioHelper, Set<org.semanticweb.owlapi.model.OWLObject> objects, List<String> selectors) throws Exception
ontology
- OWLOntology to get related objects fromioHelper
- IOHelper to use for prefixesobjects
- Set of objects to start withselectors
- types of related objects to returnException
- on annotation pattern issuepublic static Set<org.semanticweb.owlapi.model.OWLObject> select(org.semanticweb.owlapi.model.OWLOntology ontology, IOHelper ioHelper, Set<org.semanticweb.owlapi.model.OWLObject> objects, String selector) throws Exception
ontology
- OWLOntology to get related objects fromioHelper
- IOHelper to use for prefixesobjects
- Set of objects to start withselector
- type of related objects to returnException
- on annotation pattern issuepublic static Set<org.semanticweb.owlapi.model.OWLObject> selectAncestors(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
ontology
- OWLOntology to retrieve ancestors fromobjects
- OWLObjects to retrieve ancestors ofpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectAnnotationProperties(Set<org.semanticweb.owlapi.model.OWLObject> objects)
objects
- Set of OWLObjects to filterpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectAnonymous(Set<org.semanticweb.owlapi.model.OWLObject> objects)
objects
- Set of OWLObjects to filterpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectChildren(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
ontology
- OWLOntology to retrieve children fromobjects
- Set of OWLObjects to get children ofpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectClasses(Set<org.semanticweb.owlapi.model.OWLObject> objects)
objects
- Set of OWLObjects to filterpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectComplement(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
ontology
- OWLOntology to retrieve complement objects fromobjects
- Set of OWLObjects to get the complement ofpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectCURIE(IOHelper ioHelper, Set<org.semanticweb.owlapi.model.OWLObject> objects, String selector)
ioHelper
- the IOHelper to resolve namesobjects
- the set of objects to filterselector
- the CURIE selector stringpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectDataProperties(Set<org.semanticweb.owlapi.model.OWLObject> objects)
objects
- Set of OWLObjects to filterpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectDescendants(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
ontology
- OWLOntology to retrieve descendants fromobjects
- Set of OWLObjects to get descendants ofpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectDomains(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
ontology
- OWLOntology to retrieve domains fromobjects
- OWLObjects to retrieve domains ofpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectEquivalents(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
ontology
- OWLOntology to retrieve equivalents fromobjects
- Set of OWLObjects to get equivalents ofpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectIndividuals(Set<org.semanticweb.owlapi.model.OWLObject> objects)
objects
- Set of OWLObjects to filterpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectInstances(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
ontology
- OWLOntology to retrieve instances fromobjects
- Set of OWLObjects to get instances ofpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectIRI(Set<org.semanticweb.owlapi.model.OWLObject> objects, String selector)
objects
- Set of OWLObjects to look throughselector
- IRI pattern to match (enclosed in angle brackets, using ? or * wildcards)public static Set<org.semanticweb.owlapi.model.OWLObject> selectNamed(Set<org.semanticweb.owlapi.model.OWLObject> objects)
objects
- Set of OWLObjects to filterpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectObjectProperties(Set<org.semanticweb.owlapi.model.OWLObject> objects)
objects
- Set of OWLObjects to filterpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectParents(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
ontology
- OWLOntology to retrieve parents fromobjects
- set of OWLObjects to get parents ofpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectPattern(org.semanticweb.owlapi.model.OWLOntology ontology, IOHelper ioHelper, Set<org.semanticweb.owlapi.model.OWLObject> objects, String annotationPattern) throws Exception
ontology
- OWLOntology to get annotations fromioHelper
- IOHelper to use for prefixesobjects
- Set of OWLObjects to filterannotationPattern
- annotation to filter OWLObjects onException
- on issue getting literal annotationspublic static Set<org.semanticweb.owlapi.model.OWLObject> selectProperties(Set<org.semanticweb.owlapi.model.OWLObject> objects)
objects
- Set of OWLObjects to filter OWLProperties ofpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectRanges(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
ontology
- OWLOntology to retrieve ranges fromobjects
- OWLObjects to retrieve ranges ofpublic static Set<org.semanticweb.owlapi.model.OWLObject> selectTypes(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
ontology
- OWLOntology to retrieve types fromobjects
- Set of OWLObjects to get the types ofpublic static Set<org.semanticweb.owlapi.model.OWLAxiom> spanGaps(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects)
public static Set<org.semanticweb.owlapi.model.OWLAxiom> spanGaps(org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLObject> objects, boolean excludeAnonymous)
ontology
- input OWLOntologyobjects
- set of Objects to build hierarchyexcludeAnonymous
- when true, span across anonymous nodesprotected static Set<org.semanticweb.owlapi.model.OWLAnnotation> getAnnotations(org.semanticweb.owlapi.model.OWLOntology ontology, IOHelper ioHelper, String annotation) throws Exception
ontology
- OWLOntology to get annotations fromioHelper
- IOHelper to get IRIannotation
- String inputException
- on issue getting literal annotationCopyright © 2015–2020. All rights reserved.