@Override public OWLAxiom createAxiom(OWLAnnotationProperty s, IRI o, Set<OWLAnnotation> anns) { return dataFactory.getOWLAnnotationPropertyRangeAxiom(s, o, anns); }
@Override public Object read(OWLInputStream in) throws IOException { OWLAnnotationProperty p = (OWLAnnotationProperty) in.read(); IRI range = (IRI) in.read(); return in.getOWLDataFactory().getOWLAnnotationPropertyRangeAxiom(p, range); }
private void translateAsAnnotationPropertyRange(IRI s, IRI p, IRI o) { OWLAnnotationProperty prop = df.getOWLAnnotationProperty(s); add(df.getOWLAnnotationPropertyRangeAxiom(prop, o, anns())); consume(s, p, o); }
private void translateAsAnnotationPropertyRange(IRI s, IRI p, IRI o) { OWLAnnotationProperty prop = df.getOWLAnnotationProperty(s); add(df.getOWLAnnotationPropertyRangeAxiom(prop, o, anns())); consume(s, p, o); }
public OWLAnnotationPropertyRangeAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLAnnotationPropertyRangeAxiom(getProperty(), getRange()); }
@Override public OWLAnnotationPropertyRangeAxiom visit( ElkAnnotationPropertyRangeAxiom axiom) { return owlFactory_.getOWLAnnotationPropertyRangeAxiom( convert(axiom.getProperty()), convert(axiom.getRange())); }
@Override public OWLAnnotationPropertyRangeAxiom visit(OWLAnnotationPropertyRangeAxiom axiom) { return df .getOWLAnnotationPropertyRangeAxiom(get(axiom.getProperty()), get(axiom.getRange()), anns(axiom)); }
public void visit(OWLAnnotationPropertyRangeAxiom axiom) { axiom.getProperty().accept(this); OWLAnnotationProperty prop = (OWLAnnotationProperty) obj; axiom.getRange().accept(this); IRI range = (IRI) obj; obj = dataFactory.getOWLAnnotationPropertyRangeAxiom(prop, range, duplicateAxiomAnnotations(axiom)); }
@Override public OWLAnnotationPropertyRangeAxiom visit(OWLAnnotationPropertyRangeAxiom axiom) { return df .getOWLAnnotationPropertyRangeAxiom(get(axiom.getProperty()), get(axiom.getRange()), anns(axiom)); }
final public OWLAnnotationPropertyRangeAxiom AnnotationPropertyRange() throws ParseException {IRI range; OWLAnnotationProperty prop; Set<OWLAnnotation> axiomAnnos; jj_consume_token(ANNOTATIONPROPERTYRANGE); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); prop = AnnotationPropertyIRI(); range = IRI(); jj_consume_token(CLOSEPAR); return df.getOWLAnnotationPropertyRangeAxiom(prop, range, axiomAnnos); }
final public OWLAnnotationPropertyRangeAxiom AnnotationPropertyRange() throws ParseException {IRI range; OWLAnnotationProperty prop; Set<OWLAnnotation> axiomAnnos; jj_consume_token(ANNOTATIONPROPERTYRANGE); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); prop = AnnotationPropertyIRI(); range = IRI(); jj_consume_token(CLOSEPAR); return df.getOWLAnnotationPropertyRangeAxiom(prop, range, axiomAnnos); }
private void translateAsAnnotationPropertyRange(IRI subject, IRI predicate, IRI object) { OWLAnnotationProperty prop = getDataFactory().getOWLAnnotationProperty(subject); addAxiom(getDataFactory().getOWLAnnotationPropertyRangeAxiom(prop, object, getPendingAnnotations())); consumeTriple(subject, predicate, object); }
final public OWLAnnotationPropertyRangeAxiom AnnotationPropertyRange() throws ParseException {IRI range; OWLAnnotationProperty prop; Set<OWLAnnotation> axiomAnnos; jj_consume_token(ANNOTATIONPROPERTYRANGE); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); prop = AnnotationPropertyIRI(); range = IRI(); jj_consume_token(CLOSEPAR); return df.getOWLAnnotationPropertyRangeAxiom(prop, range, axiomAnnos); }
@Override public Object visit(OWLAnnotationPropertyRangeAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLAnnotationPropertyRangeAxiom(t(axiom.getProperty()), t(axiom .getRange()), t(axiom.annotations()))); }
@Override public Object visit(OWLAnnotationPropertyRangeAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLAnnotationPropertyRangeAxiom(t(axiom.getProperty()), t(axiom .getRange()), t(axiom.annotations()))); }
@Override public Object visit(OWLAnnotationPropertyRangeAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLAnnotationPropertyRangeAxiom(t(axiom.getProperty()), t(axiom .getRange()), t(axiom.annotations()))); }
@Override protected OWLAxiom createAxiom() throws OWLXMLParserException { if(property == null) { throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "Expected annotation property element"); } if(range == null) { throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "Expected IRI element"); } return getOWLDataFactory().getOWLAnnotationPropertyRangeAxiom(property, range, getAnnotations()); } }
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 }
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 }