protected static boolean isUnsupportedExtensionAxiom(OWLAxiom axiom) { return axiom instanceof OWLSubObjectPropertyOfAxiom || axiom instanceof OWLTransitiveObjectPropertyAxiom || axiom instanceof OWLSubPropertyChainOfAxiom || axiom instanceof OWLFunctionalObjectPropertyAxiom || axiom instanceof OWLInverseFunctionalObjectPropertyAxiom || axiom instanceof SWRLRule; }
@Override public T visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { throw new IllegalArgumentException( OWLInverseFunctionalObjectPropertyAxiom.class.getSimpleName() + " cannot be converted to " + getTargetClass().getSimpleName()); }
/** * true if c is inverse functional in the graph * * @param c * @return boolean */ public boolean getIsInverseFunctional(OWLObjectProperty c) { for(OWLOntology ont : getAllOntologies()) { Set<OWLInverseFunctionalObjectPropertyAxiom> ax = ont.getInverseFunctionalObjectPropertyAxioms(c); if (ax.isEmpty() == false) { return true; } } return false; }
@Override public Set<ComplexIntegerAxiom> visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); OWLObjectProperty property = asOWLObjectProperty(axiom.getProperty()); IntegerObjectProperty propExpr = getDataTypeFactory().createObjectProperty(translateObjectProperty(property)); ComplexIntegerAxiom ret = getAxiomFactory().createInverseFunctionalObjectPropertyAxiom(propExpr, translateAnnotations(axiom.getAnnotations())); return Collections.singleton(ret); }
@Override public OWLInverseFunctionalObjectPropertyAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLInverseFunctionalObjectPropertyAxiomImpl(getProperty(), NO_ANNOTATIONS); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } return obj instanceof OWLInverseFunctionalObjectPropertyAxiom; }
public void visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { notSupported(axiom); }
public void visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { m_classExpressionInclusionsAsDisjunctions.add(new OWLClassExpression[] { m_factory.getOWLObjectMaxCardinality(1,axiom.getProperty().getSimplified().getInverseProperty()) }); m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(axiom.getProperty().getNamedProperty()); }
public Boolean visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { return reasoner.isInverseFunctional(axiom.getProperty()); }
public void visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { }
@Override public OWLInverseFunctionalObjectPropertyAxiom visit( ElkInverseFunctionalObjectPropertyAxiom axiom) { return owlFactory_.getOWLInverseFunctionalObjectPropertyAxiom( convert(axiom.getProperty())); }
@SuppressWarnings("static-method") public ElkInverseFunctionalObjectPropertyAxiom convert( OWLInverseFunctionalObjectPropertyAxiom owlInverseFunctionalObjectPropertyAxiom) { return new ElkInverseFunctionalObjectPropertyAxiomWrap<OWLInverseFunctionalObjectPropertyAxiom>( owlInverseFunctionalObjectPropertyAxiom); }
@Override public ElkAxiom visit( OWLInverseFunctionalObjectPropertyAxiom owlInverseFunctionalObjectPropertyAxiom) { return CONVERTER.convert(owlInverseFunctionalObjectPropertyAxiom); }
@Override public ElkObjectPropertyAxiom visit( OWLInverseFunctionalObjectPropertyAxiom owlInverseFunctionalObjectPropertyAxiom) { return CONVERTER.convert(owlInverseFunctionalObjectPropertyAxiom); }
@Override public void visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { defaultVisit(axiom); }
@Override public OWLAxiom visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { return factory.getOWLInverseFunctionalObjectPropertyAxiom(axiom.getProperty(), annotations); }
@Override public void visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { }
@Override public Boolean visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { return true; }
@Override public Boolean visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { return false; }
@Override public Boolean visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); return add( this.df.getOWLInverseFunctionalObjectPropertyAxiom(axiom.getProperty(), reg(axiom.getAnnotations()))); }
@Override public Boolean visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLInverseFunctionalObjectPropertyAxiom(axiom.getProperty(), empty())); }
@Override public void visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { ignoreOwlAxiom("InverseFunctionalObjectProperty", axiom); }
@Override public void visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { axiom.asOWLSubClassOfAxiom().accept(this); }
@Override public O visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { return doDefault(axiom); }
@Override public void visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { type = AXIOM_TYPE_INDEX_BASE + axiom.getAxiomType().getIndex(); }
@Override public OWLAxiom visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { return axiom; }
@Override public void visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { hashCode = primes[18]; hashCode = hashCode * MULT + axiom.getProperty().hashCode(); hashCode = hashCode * MULT + axiom.getAnnotations().hashCode(); }
@Override public void visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { handleDefault(axiom); }
@Override public OWLInverseFunctionalObjectPropertyAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLInverseFunctionalObjectPropertyAxiomImpl(getProperty(), mergeAnnos(annotations)); }
@Override public void visit(@Nonnull OWLInverseFunctionalObjectPropertyAxiom axiom) { axiom.getProperty().accept(this); processAxiomAnnotations(axiom); }
public Object visit(OWLInverseFunctionalObjectPropertyAxiom axiom) { profileViolations.add(new UseOfIllegalAxiom(getCurrentOntology(), axiom)); return null; }
public void visit(OWLInverseFunctionalObjectPropertyAxiom arg0) { unusedAxiom(arg0); }
@Override protected OWLInverseFunctionalObjectPropertyAxiom createAxiom(OWLObjectPropertyExpression propertyExpression, Set<OWLAnnotation> annotations, OWLDataFactory dataFactory) { return dataFactory.getOWLInverseFunctionalObjectPropertyAxiom(propertyExpression, annotations); }
public void visit(OWLInverseFunctionalObjectPropertyAxiom arg0) { }