public static OWLSubAnnotationPropertyOfAxiom SubAnnotationPropertyOf( OWLAnnotationProperty subProperty, OWLAnnotationProperty superProperty) { return DF.getOWLSubAnnotationPropertyOfAxiom(subProperty, superProperty); }
public static OWLSubAnnotationPropertyOfAxiom SubAnnotationPropertyOf( OWLAnnotationProperty subProperty, OWLAnnotationProperty superProperty) { return DF.getOWLSubAnnotationPropertyOfAxiom(subProperty, superProperty); }
public static OWLSubAnnotationPropertyOfAxiom SubAnnotationPropertyOf( OWLAnnotationProperty subProperty, OWLAnnotationProperty superProperty) { return DF.getOWLSubAnnotationPropertyOfAxiom(subProperty, superProperty); }
@Override public OWLAxiom createAxiom(OWLAnnotationProperty s, OWLAnnotationProperty o, Set<OWLAnnotation> anns) { return dataFactory.getOWLSubAnnotationPropertyOfAxiom(s, o, anns); }
@Nonnull @Override public Optional<OWLAxiom> visit(@Nonnull OWLAnnotationProperty property) { return strategy.getDeprecatedAnnotationPropertyParentIri() .map(parent -> dataFactory.getOWLSubAnnotationPropertyOfAxiom(property, dataFactory.getOWLAnnotationProperty(parent))); }
@Override public Object read(OWLInputStream in) throws IOException { OWLAnnotationProperty subProperty = (OWLAnnotationProperty) in.read(); OWLAnnotationProperty superProperty = (OWLAnnotationProperty) in.read(); return in.getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(subProperty, superProperty); }
@Override public OWLSubAnnotationPropertyOfAxiom buildObject() { return df .getOWLSubAnnotationPropertyOfAxiom(verifyNotNull(getSub()), verifyNotNull(getSup()), annotations); } }
@Override public OWLSubAnnotationPropertyOfAxiom buildObject() { return df .getOWLSubAnnotationPropertyOfAxiom(verifyNotNull(getSub()), verifyNotNull(getSup()), annotations); } }
@Override public OWLSubAnnotationPropertyOfAxiom visit( ElkSubAnnotationPropertyOfAxiom axiom) { return owlFactory_.getOWLSubAnnotationPropertyOfAxiom( convert(axiom.getSubAnnotationProperty()), convert(axiom.getSuperAnnotationProperty())); }
@Override public OWLSubAnnotationPropertyOfAxiom visit(OWLSubAnnotationPropertyOfAxiom axiom) { return df.getOWLSubAnnotationPropertyOfAxiom(get(axiom.getSubProperty()), get(axiom.getSuperProperty()), anns( axiom)); }
@Override public OWLSubAnnotationPropertyOfAxiom visit(OWLSubAnnotationPropertyOfAxiom ax) { return df.getOWLSubAnnotationPropertyOfAxiom(t(ax.getSubProperty()), t(ax.getSuperProperty()), a(ax)); }
public void visit(OWLSubAnnotationPropertyOfAxiom axiom) { axiom.getSubProperty().accept(this); OWLAnnotationProperty sub = (OWLAnnotationProperty) obj; axiom.getSuperProperty().accept(this); OWLAnnotationProperty sup = (OWLAnnotationProperty) obj; obj = dataFactory.getOWLSubAnnotationPropertyOfAxiom(sub, sup, duplicateAxiomAnnotations(axiom)); }
@Override public OWLSubAnnotationPropertyOfAxiom visit(OWLSubAnnotationPropertyOfAxiom ax) { return df.getOWLSubAnnotationPropertyOfAxiom(t(ax.getSubProperty()), t(ax.getSuperProperty()), a(ax)); }
final public OWLSubAnnotationPropertyOfAxiom SubAnnotationPropertyOf() throws ParseException {OWLAnnotationProperty subProp; OWLAnnotationProperty superProperty; Set<OWLAnnotation> axiomAnnos; jj_consume_token(SUBANNOTATIONPROPERTYOF); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); subProp = AnnotationPropertyIRI(); superProperty = AnnotationPropertyIRI(); jj_consume_token(CLOSEPAR); return df.getOWLSubAnnotationPropertyOfAxiom(subProp, superProperty, axiomAnnos); }
@Override public Object visit(OWLSubAnnotationPropertyOfAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLSubAnnotationPropertyOfAxiom(t(axiom.getSubProperty()), t(axiom .getSuperProperty()), t(axiom.annotations()))); }
@Override public Object visit(OWLSubAnnotationPropertyOfAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLSubAnnotationPropertyOfAxiom(t(axiom.getSubProperty()), t(axiom .getSuperProperty()), t(axiom.annotations()))); }
@Override protected OWLAxiom createAxiom() throws OWLXMLParserException { if(subProperty == null) { throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "AnnotationProperty for sub property"); } if(superProperty == null) { throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "AnnotationProperty for super property"); } return getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(subProperty, superProperty, getAnnotations()); } }
@Test public void testOWLAPILoader2() throws OWLOntologyCreationException, OWLOntologyChangeException { final Set<OWLAxiom> axioms = new HashSet<>(); axioms.add(manager.getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(op1, op2)); axioms.add(manager.getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(op2, op3)); axioms.add(manager.getOWLDataFactory().getOWLAnnotationAssertionAxiom(op1, oi.getIRI(), oo1)); final OWLOntology ontology = manager.createOntology(axioms); final OpenlletReasoner reasoner = OpenlletReasonerFactory.getInstance().createReasoner(ontology); assertEquals(reasoner.getAnnotationPropertyValues(oi, op1), reasoner.getAnnotationPropertyValues(oi, op3)); }
private void initialiseAnnotationPropertyFrameSections() { //@formatter:off initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotationProperty>(x -> parseAnnotationProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubAnnotationPropertyOfAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), DOMAIN, (s, o, anns) -> df.getOWLAnnotationPropertyDomainAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), RANGE, (s, o, anns) -> df.getOWLAnnotationPropertyRangeAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), annotationPropertyFrameSections); //@formatter:on }
private void initialiseAnnotationPropertyFrameSections() { //@formatter:off initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotationProperty>(x -> parseAnnotationProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubAnnotationPropertyOfAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), DOMAIN, (s, o, anns) -> df.getOWLAnnotationPropertyDomainAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), RANGE, (s, o, anns) -> df.getOWLAnnotationPropertyRangeAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), annotationPropertyFrameSections); //@formatter:on }