All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.swrlapi.drools.owl.axioms.NDPAA Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package org.swrlapi.drools.owl.axioms;

import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.dataflow.qual.SideEffectFree;
import org.semanticweb.owlapi.model.OWLNegativeDataPropertyAssertionAxiom;
import org.swrlapi.drools.extractors.DroolsOWLAxiomExtractor;
import org.swrlapi.drools.owl.core.DroolsTernaryObject;
import org.swrlapi.drools.owl.individuals.I;
import org.swrlapi.drools.owl.literals.L;
import org.swrlapi.exceptions.TargetSWRLRuleEngineException;

/**
 * This class represents an OWL negative data property assertion axiom in Drools.
 *
 * @see org.semanticweb.owlapi.model.OWLNegativeDataPropertyAssertionAxiom
 */
public class NDPAA extends DroolsTernaryObject implements A
{
  private static final long serialVersionUID = 1L;

  public NDPAA(@NonNull String subjectName, @NonNull String propertyID, @NonNull L object)
  {
    super(new I(subjectName), propertyID, object);
  }

  public NDPAA(@NonNull I subject, @NonNull String propertyID, @NonNull L object)
  {
    super(subject, propertyID, object);
  }

  @NonNull public I gets()
  {
    return getT1();
  }

  @NonNull public String getpid()
  {
    return getT2();
  }

  @NonNull public L geto()
  {
    return getT3();
  }

  @NonNull @Override public OWLNegativeDataPropertyAssertionAxiom extract(@NonNull DroolsOWLAxiomExtractor converter)
    throws TargetSWRLRuleEngineException
  {
    return converter.extract(this);
  }

  @Override public void visit(@NonNull AVisitor visitor)
  {
    visitor.visit(this);
  }

  @NonNull @SideEffectFree @Override public String toString()
  {
    return "NDPAA" + super.toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy