org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom Java Examples
The following examples show how to use
org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom.
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: AbstractOwlAxiomConverterVisitor.java From elk-reasoner with Apache License 2.0 | 5 votes |
@Override public T visit(OWLReflexiveObjectPropertyAxiom axiom) { throw new IllegalArgumentException( OWLReflexiveObjectPropertyAxiom.class.getSimpleName() + " cannot be converted to " + getTargetClass().getSimpleName()); }
Example #2
Source File: OWLGraphWrapperExtended.java From owltools with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * true if c is reflexive in the graph * * @param c * @return boolean */ public boolean getIsReflexive(OWLObjectProperty c) { for(OWLOntology ont : getAllOntologies()) { Set<OWLReflexiveObjectPropertyAxiom> ax = ont.getReflexiveObjectPropertyAxioms(c); if (ax.isEmpty() == false) { return true; } } return false; }
Example #3
Source File: NormalizedOWLQLTbox.java From quetzal with Eclipse Public License 2.0 | 5 votes |
public Set<OWLObjectProperty> getReflexiveProperties() { if (reflexiveProps == null) { reflexiveProps = new HashSet<OWLObjectProperty>(); for (OWLReflexiveObjectPropertyAxiom ax: normalizedOntology.getAxioms(AxiomType.REFLEXIVE_OBJECT_PROPERTY)) { reflexiveProps.add(ax.getProperty().getNamedProperty()); } } return reflexiveProps; }
Example #4
Source File: AbstractElkObjectConverter.java From elk-reasoner with Apache License 2.0 | 4 votes |
@Override public OWLReflexiveObjectPropertyAxiom visit( ElkReflexiveObjectPropertyAxiom axiom) { return owlFactory_.getOWLReflexiveObjectPropertyAxiom( convert(axiom.getProperty())); }
Example #5
Source File: OwlConverter.java From elk-reasoner with Apache License 2.0 | 4 votes |
@SuppressWarnings("static-method") public ElkReflexiveObjectPropertyAxiom convert( OWLReflexiveObjectPropertyAxiom owlReflexiveObjectPropertyAxiom) { return new ElkReflexiveObjectPropertyAxiomWrap<OWLReflexiveObjectPropertyAxiom>( owlReflexiveObjectPropertyAxiom); }
Example #6
Source File: OwlAxiomConverterVisitor.java From elk-reasoner with Apache License 2.0 | 4 votes |
@Override public ElkAxiom visit( OWLReflexiveObjectPropertyAxiom owlReflexiveObjectPropertyAxiom) { return CONVERTER.convert(owlReflexiveObjectPropertyAxiom); }
Example #7
Source File: OwlObjectPropertyAxiomConverterVisitor.java From elk-reasoner with Apache License 2.0 | 4 votes |
@Override public ElkObjectPropertyAxiom visit( OWLReflexiveObjectPropertyAxiom owlReflexiveObjectPropertyAxiom) { return CONVERTER.convert(owlReflexiveObjectPropertyAxiom); }
Example #8
Source File: FailingOwlAxiomVisitor.java From elk-reasoner with Apache License 2.0 | 4 votes |
@Override public void visit(OWLReflexiveObjectPropertyAxiom axiom) { defaultVisit(axiom); }
Example #9
Source File: AxiomAnnotationTools.java From owltools with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public OWLAxiom visit(OWLReflexiveObjectPropertyAxiom axiom) { return factory.getOWLReflexiveObjectPropertyAxiom(axiom.getProperty(), annotations); }
Example #10
Source File: CardinalityContraintsTools.java From owltools with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void visit(OWLReflexiveObjectPropertyAxiom axiom) { }