public class SWRLRuleImpl extends OWLLogicalAxiomImpl implements SWRLRule
Constructor and Description |
---|
SWRLRuleImpl(Collection<? extends SWRLAtom> body,
Collection<? extends SWRLAtom> head) |
SWRLRuleImpl(Collection<? extends SWRLAtom> body,
Collection<? extends SWRLAtom> head,
Collection<OWLAnnotation> annotations) |
Modifier and Type | Method and Description |
---|---|
Stream<SWRLAtom> |
body() |
List<SWRLAtom> |
bodyList() |
Stream<OWLClassExpression> |
classAtomPredicates()
Gets the predicates of class atoms.
|
boolean |
containsAnonymousClassExpressions()
Determines if this rule uses anonymous class expressions in class atoms.
|
boolean |
equals(Object obj) |
<T extends OWLAxiom> |
getAnnotatedAxiom(Stream<OWLAnnotation> anns)
Gets a copy of this axiom that is annotated with the specified annotations.
|
SWRLRule |
getAxiomWithoutAnnotations()
Gets an axiom that is structurally equivalent to this axiom without annotations.
|
SWRLRule |
getSimplified()
If this rule contains atoms that have predicates that are inverse object properties, then
this method creates and returns a rule where the arguments of these atoms are flipped over
and the predicate is the inverse (simplified) property.
|
int |
hashCode() |
Stream<SWRLAtom> |
head() |
List<SWRLAtom> |
headList() |
Stream<SWRLVariable> |
variables() |
annotations, annotationsAsList, getNNF, isAnnotated
annotationPropertiesInSignature, anonymousIndividuals, classesInSignature, compareTo, containsEntityInSignature, dataPropertiesInSignature, datatypesInSignature, individualsInSignature, nestedClassExpressions, objectPropertiesInSignature, signature, toString
accept, accept, accept, accept, accept, accept, components, componentsAnnotationsFirst, componentsWithoutAnnotations, getAxiomType, getBody, getClassAtomPredicates, getHead, getVariables, hashIndex, initHashCode
isLogicalAxiom
equalsIgnoreAnnotations, getAnnotatedAxiom, getAnnotatedAxiom, getAnnotatedAxiom, getAnnotatedAxiom, getAxiomWithoutAnnotations, getAxiomWithoutAnnotations, getNNF, isAnnotated, isAnnotationAxiom, isAxiom, isIndividual, isOfType, isOfType, isOfType, typeIndex
getNestedClassExpressions, hashIteration, hasSharedStructure, isAnonymousExpression, isBottomEntity, isIRI, isOntology, isTopEntity, nestedClassExpressions
compareTo
getSignature, signature, unsortedSignature
containsEntityInSignature
anonymousIndividuals, getAnonymousIndividuals
classesInSignature, getClassesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
getIndividualsInSignature, individualsInSignature
datatypesInSignature, getDatatypesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
isAnonymous, isNamed
annotations, annotations, annotations, annotationsAsList, getAnnotations, getAnnotations
addAnonymousIndividualsToSet, addSignatureEntitiesToSet
public SWRLRuleImpl(Collection<? extends SWRLAtom> body, Collection<? extends SWRLAtom> head, Collection<OWLAnnotation> annotations)
body
- rule bodyhead
- rule headannotations
- annotations on the axiompublic SWRLRuleImpl(Collection<? extends SWRLAtom> body, Collection<? extends SWRLAtom> head)
body
- rule bodyhead
- rule headpublic SWRLRule getAxiomWithoutAnnotations()
OWLAxiom
getAxiomWithoutAnnotations
in interface OWLAxiom
getAxiomWithoutAnnotations
in interface SWRLRule
public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns)
OWLAxiom
getAnnotatedAxiom
in interface OWLAxiom
T
- typeanns
- The annotations that will be added to existing annotations to annotate the
copy of this axiomOWLAxiom#getAnnotations()
method.public Stream<SWRLVariable> variables()
public boolean containsAnonymousClassExpressions()
SWRLRule
containsAnonymousClassExpressions
in interface SWRLRule
true
if this rule contains anonymous class expression in class atoms,
otherwise false
.public Stream<OWLClassExpression> classAtomPredicates()
SWRLRule
classAtomPredicates
in interface SWRLRule
public SWRLRule getSimplified()
SWRLRule
getSimplified
in interface SWRLRule
public boolean equals(@Nullable Object obj)
equals
in class OWLObjectImpl
public int hashCode()
hashCode
in class OWLObjectImpl
Copyright © 2020 The University of Manchester. All rights reserved.