org.swrlapi.drools.owl.axioms.DDPA Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swrlapi-drools-engine Show documentation
Show all versions of swrlapi-drools-engine Show documentation
Drools implementation of SWRLAPI-based SWRL rule engine
package org.swrlapi.drools.owl.axioms;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.dataflow.qual.SideEffectFree;
import org.semanticweb.owlapi.model.OWLDataPropertyDomainAxiom;
import org.swrlapi.drools.extractors.DroolsOWLAxiomExtractor;
import org.swrlapi.drools.owl.core.DroolsBinaryObject;
import org.swrlapi.exceptions.TargetSWRLRuleEngineException;
/**
* Class representing an OWL domain data property axiom in Drools.
*
* @see org.semanticweb.owlapi.model.OWLDataPropertyDomainAxiom
*/
public class DDPA extends DroolsBinaryObject implements A
{
private static final long serialVersionUID = 1L;
public DDPA(@NonNull String propertyID, @NonNull String domainID)
{
super(propertyID, domainID);
}
@NonNull public String getpid()
{
return getT1();
}
@NonNull public String getdid()
{
return getT2();
}
@NonNull @Override public OWLDataPropertyDomainAxiom extract(@NonNull DroolsOWLAxiomExtractor extractor)
throws TargetSWRLRuleEngineException
{
return extractor.extract(this);
}
@Override public void visit(@NonNull AVisitor visitor)
{
visitor.visit(this);
}
@SideEffectFree @NonNull @Override public String toString()
{
return "DDPA(" + getpid() + ", " + getdid() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy