public void visit(OWLFunctionalObjectPropertyAxiom axiom) { // ic.addAll(processParticipationConstraint(f.getOWLThing(), f // .getOWLObjectMaxCardinality(1, axiom.getProperty()))); // processParticipationConstraint(f.getOWLThing(), f // .getOWLObjectMaxCardinality(1, axiom.getProperty())); notSupported(axiom); }
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(OWLFunctionalObjectPropertyAxiom axiom) { throw new IllegalArgumentException( OWLFunctionalObjectPropertyAxiom.class.getSimpleName() + " cannot be converted to " + getTargetClass().getSimpleName()); }
/** * true if c is functional in the graph * * @param c * @return boolean */ public boolean getIsFunctional(OWLObjectProperty c) { for(OWLOntology ont : getAllOntologies()) { Set<OWLFunctionalObjectPropertyAxiom> ax = ont.getFunctionalObjectPropertyAxioms(c); if (ax.isEmpty() == false) { return true; } } return false; }
@Override public Set<ComplexIntegerAxiom> visit(OWLFunctionalObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); OWLObjectProperty property = asOWLObjectProperty(axiom.getProperty()); IntegerObjectPropertyExpression propExpr = this.getDataTypeFactory() .createObjectProperty(translateObjectProperty(property)); ComplexIntegerAxiom ret = getAxiomFactory().createFunctionalObjectPropertyAxiom(propExpr, translateAnnotations(axiom.getAnnotations())); return Collections.singleton(ret); }
@Nonnull @Override public OWLFunctionalObjectPropertyAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLFunctionalObjectPropertyAxiomImpl(getProperty(), NO_ANNOTATIONS); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } return obj instanceof OWLFunctionalObjectPropertyAxiom; }
public void visit(OWLFunctionalObjectPropertyAxiom axiom) { m_classExpressionInclusionsAsDisjunctions.add(new OWLClassExpression[] { m_factory.getOWLObjectMaxCardinality(1,axiom.getProperty().getSimplified()) }); m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(axiom.getProperty().getNamedProperty()); }
public Boolean visit(OWLFunctionalObjectPropertyAxiom axiom) { return reasoner.isFunctional(axiom.getProperty()); }
public void visit(OWLFunctionalObjectPropertyAxiom axiom) { }
@Override public OWLFunctionalObjectPropertyAxiom visit( ElkFunctionalObjectPropertyAxiom axiom) { return owlFactory_.getOWLFunctionalObjectPropertyAxiom( convert(axiom.getProperty())); }
@SuppressWarnings("static-method") public ElkFunctionalObjectPropertyAxiom convert( OWLFunctionalObjectPropertyAxiom owlFunctionalObjectPropertyAxiom) { return new ElkFunctionalObjectPropertyAxiomWrap<OWLFunctionalObjectPropertyAxiom>( owlFunctionalObjectPropertyAxiom); }
@Override public ElkAxiom visit( OWLFunctionalObjectPropertyAxiom owlFunctionalObjectPropertyAxiom) { return CONVERTER.convert(owlFunctionalObjectPropertyAxiom); }
@Override public ElkObjectPropertyAxiom visit( OWLFunctionalObjectPropertyAxiom owlFunctionalObjectPropertyAxiom) { return CONVERTER.convert(owlFunctionalObjectPropertyAxiom); }
@Override public void visit(OWLFunctionalObjectPropertyAxiom axiom) { defaultVisit(axiom); }
@Override public OWLAxiom visit(OWLFunctionalObjectPropertyAxiom axiom) { return factory.getOWLFunctionalObjectPropertyAxiom(axiom.getProperty(), annotations); }
@Override public void visit(OWLFunctionalObjectPropertyAxiom axiom) { }
public void visit(OWLFunctionalObjectPropertyAxiom arg0) { throw new IllegalStateException("OWLFunctionalObjectPropertyAxiom should have been normalized (rewritten) already."); }
@Override public Boolean visit(OWLFunctionalObjectPropertyAxiom axiom) { return true; }
@Override public Boolean visit(OWLFunctionalObjectPropertyAxiom axiom) { return false; }
@Override public Boolean visit(OWLFunctionalObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLFunctionalObjectPropertyAxiom(axiom.getProperty(), reg(axiom.getAnnotations()))); }
@Override public Boolean visit(OWLFunctionalObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLFunctionalObjectPropertyAxiom(axiom.getProperty(), empty())); }
@Override public void visit(OWLFunctionalObjectPropertyAxiom axiom) { ignoreOwlAxiom("FunctionalObjectProperty", axiom); }
@Override public void visit(OWLFunctionalObjectPropertyAxiom axiom) { axiom.asOWLSubClassOfAxiom().accept(this); }
@Override public O visit(OWLFunctionalObjectPropertyAxiom axiom) { return doDefault(axiom); }
@Override public void visit(OWLFunctionalObjectPropertyAxiom axiom) { type = AXIOM_TYPE_INDEX_BASE + axiom.getAxiomType().getIndex(); }
@Override public OWLAxiom visit(OWLFunctionalObjectPropertyAxiom axiom) { return axiom; }
@Override public void visit(OWLFunctionalObjectPropertyAxiom axiom) { hashCode = primes[17]; hashCode = hashCode * MULT + axiom.getProperty().hashCode(); hashCode = hashCode * MULT + axiom.getAnnotations().hashCode(); }
@Override public void visit(OWLFunctionalObjectPropertyAxiom axiom) { handleDefault(axiom); }
@Override public void visit(@Nonnull OWLFunctionalObjectPropertyAxiom axiom) { axiom.getProperty().accept(this); processAxiomAnnotations(axiom); }
@Override public OWLFunctionalObjectPropertyAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLFunctionalObjectPropertyAxiomImpl(getProperty(), mergeAnnos(annotations)); }
public Object visit(OWLFunctionalObjectPropertyAxiom axiom) { profileViolations.add(new UseOfIllegalAxiom(getCurrentOntology(), axiom)); return null; }
public void visit(OWLFunctionalObjectPropertyAxiom arg0) { unusedAxiom(arg0); }
@Override protected OWLFunctionalObjectPropertyAxiom createAxiom(OWLObjectPropertyExpression propertyExpression, Set<OWLAnnotation> annotations, OWLDataFactory dataFactory) { return dataFactory.getOWLFunctionalObjectPropertyAxiom(propertyExpression, annotations); }