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

org.swrlapi.drools.owl.axioms.SCA 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.OWLSubClassOfAxiom;
import org.swrlapi.drools.extractors.DroolsOWLAxiomExtractor;
import org.swrlapi.drools.owl.core.DroolsBinaryObject;
import org.swrlapi.exceptions.TargetSWRLRuleEngineException;

/**
 * Class representing an OWL subclass axiom in Drools.
 *
 * @see org.semanticweb.owlapi.model.OWLSubClassOfAxiom
 */
public class SCA extends DroolsBinaryObject implements A
{
  private static final long serialVersionUID = 1L;

  public SCA(@NonNull String class1ID, @NonNull String class2ID)
  {
    super(class1ID, class2ID);
  }

  @NonNull public String getsubcid()
  {
    return getT1();
  }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy