org.semanticweb.owlapi.model.OWLAnnotationPropertyRangeAxiom Java Examples
The following examples show how to use
org.semanticweb.owlapi.model.OWLAnnotationPropertyRangeAxiom.
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: AbstractConverter.java From OWL2VOWL with MIT License | 6 votes |
private void processAnnotationProperties(OWLOntology ontology, VowlData vowlData) { for (OWLAnnotationProperty owlAnnotationProperty : ontology.annotationPropertiesInSignature(Imports.INCLUDED) .collect(Collectors.toSet())) { for (OWLAnnotationAxiom owlAnnotationAxiom : ontology.axioms(owlAnnotationProperty, Imports.INCLUDED) .collect(Collectors.toSet())) { try { String subject = owlAnnotationProperty.getIRI().toString(); String property = "http://visualdataweb.org/ontologies/gizmo-core#assertionDatatypeValue"; OWLAnnotationPropertyRangeAxiom ra = (OWLAnnotationPropertyRangeAxiom) owlAnnotationAxiom; String value = ra.getRange().toString(); vowlData.addBaseConstructorAnnotation(subject, property, value); } catch (Exception e) { // not interesting } } } }
Example #2
Source File: AbstractOwlAxiomConverterVisitor.java From elk-reasoner with Apache License 2.0 | 5 votes |
@Override public T visit(OWLAnnotationPropertyRangeAxiom axiom) { throw new IllegalArgumentException( OWLAnnotationPropertyRangeAxiom.class.getSimpleName() + " cannot be converted to " + getTargetClass().getSimpleName()); }
Example #3
Source File: AbstractElkObjectConverter.java From elk-reasoner with Apache License 2.0 | 4 votes |
@Override public OWLAnnotationPropertyRangeAxiom visit( ElkAnnotationPropertyRangeAxiom axiom) { return owlFactory_.getOWLAnnotationPropertyRangeAxiom( convert(axiom.getProperty()), convert(axiom.getRange())); }
Example #4
Source File: OwlAnnotationAxiomConverterVisitor.java From elk-reasoner with Apache License 2.0 | 4 votes |
@Override public ElkAnnotationAxiom visit(OWLAnnotationPropertyRangeAxiom owlAnnotationPropertyRange) { return new ElkAnnotationPropertyRangeAxiomWrap<OWLAnnotationPropertyRangeAxiom>(owlAnnotationPropertyRange); }
Example #5
Source File: OwlAxiomConverterVisitor.java From elk-reasoner with Apache License 2.0 | 4 votes |
@Override public ElkAxiom visit( OWLAnnotationPropertyRangeAxiom owlAnnotationPropertyRange) { return CONVERTER.convert(owlAnnotationPropertyRange); }
Example #6
Source File: FailingOwlAxiomVisitor.java From elk-reasoner with Apache License 2.0 | 4 votes |
@Override public void visit(OWLAnnotationPropertyRangeAxiom axiom) { defaultVisit(axiom); }
Example #7
Source File: AxiomAnnotationTools.java From owltools with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public OWLAxiom visit(OWLAnnotationPropertyRangeAxiom axiom) { return factory.getOWLAnnotationPropertyRangeAxiom(axiom.getProperty(), axiom.getRange(), annotations); }
Example #8
Source File: CardinalityContraintsTools.java From owltools with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void visit(OWLAnnotationPropertyRangeAxiom axiom) { }