Package org.semanticweb.owlapi.util
Class NamedConjunctChecker
java.lang.Object
org.semanticweb.owlapi.util.NamedConjunctChecker
A utility class which checks if a class expression has a named conjunct or a specific named
conjunct.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNamedConjuncts
(OWLClassExpression classExpression) Gets the named conjuncts for the specified expression.boolean
hasNamedConjunct
(OWLClassExpression classExpression) Checks whether the specified expression has a named conjunct.boolean
isNamedConjunct
(OWLClass conj, OWLClassExpression classExpression)
-
Constructor Details
-
NamedConjunctChecker
public NamedConjunctChecker()
-
-
Method Details
-
isNamedConjunct
- Parameters:
conj
- The conjunct to check forclassExpression
- The expression to be checked- Returns:
- true if a named class is a conjunct in a given class expression. For class expressions which aren't named classes or object intersections this method will always return false.
-
hasNamedConjunct
Checks whether the specified expression has a named conjunct. For For class expressions which aren't named classes or object intersections this method will always return false.- Parameters:
classExpression
- The expression to be checked.- Returns:
true
if the expression is in fact a named class (OWLClass
) or if the expression is an intersection that has a named operand (included nested intersections), otherwisefalse
-
getNamedConjuncts
Gets the named conjuncts for the specified expression.- Parameters:
classExpression
- The expression whose conjuncts are to be retrieved.- Returns:
- A set containing the named conjuncts of the specified expression. If the expression is not a named class or an intersection then the set will definitely be empty.
-