org.semanticweb.owlapi.model.OWLInverseObjectPropertiesAxiom Java Examples
The following examples show how to use
org.semanticweb.owlapi.model.OWLInverseObjectPropertiesAxiom.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractElkObjectConverter.java From elk-reasoner with Apache License 2.0 | 5 votes |
@Override public OWLInverseObjectPropertiesAxiom visit( ElkInverseObjectPropertiesAxiom axiom) { return owlFactory_.getOWLInverseObjectPropertiesAxiom( convert(axiom.getFirstObjectPropertyExpression()), convert(axiom.getSecondObjectPropertyExpression())); }
Example #2
Source File: AbstractOwlAxiomConverterVisitor.java From elk-reasoner with Apache License 2.0 | 5 votes |
@Override public T visit(OWLInverseObjectPropertiesAxiom axiom) { throw new IllegalArgumentException( OWLInverseObjectPropertiesAxiom.class.getSimpleName() + " cannot be converted to " + getTargetClass().getSimpleName()); }
Example #3
Source File: OWLGraphWrapperEdges.java From owltools with BSD 3-Clause "New" or "Revised" License | 5 votes |
private boolean isInverseOfPair(OWLObjectProperty p1, OWLObjectProperty p2) { for (OWLOntology ont : getAllOntologies()) { for (OWLInverseObjectPropertiesAxiom a : ont.getInverseObjectPropertyAxioms(p1)) { if (a.getFirstProperty().equals(p2) || a.getSecondProperty().equals(p2)) { return true; } } } return false; }
Example #4
Source File: OwlConverter.java From elk-reasoner with Apache License 2.0 | 4 votes |
@SuppressWarnings("static-method") public ElkInverseObjectPropertiesAxiom convert( OWLInverseObjectPropertiesAxiom owlInverseObjectPropertiesAxiom) { return new ElkInverseObjectPropertiesAxiomWrap<OWLInverseObjectPropertiesAxiom>( owlInverseObjectPropertiesAxiom); }
Example #5
Source File: OwlAxiomConverterVisitor.java From elk-reasoner with Apache License 2.0 | 4 votes |
@Override public ElkAxiom visit( OWLInverseObjectPropertiesAxiom owlInverseObjectPropertiesAxiom) { return CONVERTER.convert(owlInverseObjectPropertiesAxiom); }
Example #6
Source File: OwlObjectPropertyAxiomConverterVisitor.java From elk-reasoner with Apache License 2.0 | 4 votes |
@Override public ElkObjectPropertyAxiom visit( OWLInverseObjectPropertiesAxiom owlInverseObjectPropertiesAxiom) { return CONVERTER.convert(owlInverseObjectPropertiesAxiom); }
Example #7
Source File: FailingOwlAxiomVisitor.java From elk-reasoner with Apache License 2.0 | 4 votes |
@Override public void visit(OWLInverseObjectPropertiesAxiom axiom) { defaultVisit(axiom); }
Example #8
Source File: AxiomAnnotationTools.java From owltools with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public OWLAxiom visit(OWLInverseObjectPropertiesAxiom axiom) { return factory.getOWLInverseObjectPropertiesAxiom(axiom.getFirstProperty(), axiom.getSecondProperty(), annotations); }
Example #9
Source File: CardinalityContraintsTools.java From owltools with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void visit(OWLInverseObjectPropertiesAxiom axiom) { }