public static OWLDataPropertyRangeAxiom DataPropertyRange(OWLDataPropertyExpression property, OWLDataRange range, Collection<OWLAnnotation> a) { return DF.getOWLDataPropertyRangeAxiom(property, range, a); }
@Override public OWLDataPropertyRangeAxiom buildObject() { return df.getOWLDataPropertyRangeAxiom(getProperty(), getDataRange(), annotations); } }
@Override public OWLDataPropertyRangeAxiom buildObject() { return df.getOWLDataPropertyRangeAxiom(getProperty(), getDataRange(), annotations); } }
@Override public OWLDataPropertyRangeAxiom buildObject() { return df.getOWLDataPropertyRangeAxiom(getProperty(), getDataRange(), annotations); } }
@Override public OWLAxiom visit(OWLDataPropertyRangeAxiom axiom) { return df.getOWLDataPropertyRangeAxiom(axiom.getProperty(), axiom.getRange().accept(dataVisitor)); }
@Override public OWLAxiom visit(OWLDataPropertyRangeAxiom axiom) { OWLDataRange range = axiom.getRange(); OWLDataRange newRange = range.accept(rangeVisitor); if (range.equals(newRange)) { return axiom; } return df.getOWLDataPropertyRangeAxiom(axiom.getProperty(), newRange, getAnnotationsWithOptionalExpansionMarker( axiom)); }
@Override public OWLAxiom visit(OWLDataPropertyRangeAxiom axiom) { return df.getOWLDataPropertyRangeAxiom(axiom.getProperty(), axiom.getRange().accept(dataVisitor)); }
public OWLDataPropertyRangeAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLDataPropertyRangeAxiom(getProperty(), getRange()); }
@Override public OWLDataPropertyRangeAxiom visit(OWLDataPropertyRangeAxiom axiom) { return df.getOWLDataPropertyRangeAxiom(get(axiom.getProperty()), get(axiom.getRange()), anns(axiom)); }
private void translateAsDataPropertyRange(IRI s, IRI p, IRI o) { OWLDataPropertyExpression property = dp(s); OWLDataRange dataRange = dr(o); add(df.getOWLDataPropertyRangeAxiom(property, dataRange, anns())); consume(s, p, o); }
@Override public OWLDataPropertyRangeAxiom visit(OWLDataPropertyRangeAxiom axiom) { return df.getOWLDataPropertyRangeAxiom(get(axiom.getProperty()), get(axiom.getRange()), anns(axiom)); }
public void visit(OWLDataPropertyRangeAxiom axiom) { axiom.getProperty().accept(this); OWLDataPropertyExpression prop = (OWLDataPropertyExpression) obj; axiom.getRange().accept(this); OWLDataRange range = (OWLDataRange) obj; obj = dataFactory.getOWLDataPropertyRangeAxiom(prop, range, duplicateAxiomAnnotations(axiom)); }
final public OWLPropertyAxiom DataPropertyRange() throws ParseException {OWLDataPropertyExpression prop; OWLDataRange rng; Set<OWLAnnotation> axiomAnnos; jj_consume_token(DATAPROPERTYRANGE); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); prop = DataPropertyExpression(); rng = DataRange(); jj_consume_token(CLOSEPAR); return df.getOWLDataPropertyRangeAxiom(prop, rng, axiomAnnos); }
final public OWLPropertyAxiom DataPropertyRange() throws ParseException {OWLDataPropertyExpression prop; OWLDataRange rng; Set<OWLAnnotation> axiomAnnos; jj_consume_token(DATAPROPERTYRANGE); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); prop = DataPropertyExpression(); rng = DataRange(); jj_consume_token(CLOSEPAR); return df.getOWLDataPropertyRangeAxiom(prop, rng, axiomAnnos); }
final public OWLPropertyAxiom DataPropertyRange() throws ParseException {OWLDataPropertyExpression prop; OWLDataRange rng; Set<OWLAnnotation> axiomAnnos; jj_consume_token(DATAPROPERTYRANGE); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); prop = DataPropertyExpression(); rng = DataRange(); jj_consume_token(CLOSEPAR); return df.getOWLDataPropertyRangeAxiom(prop, rng, axiomAnnos); }
private void translateAsDataPropertyRange(IRI subject, IRI predicate, IRI object) { OWLDataPropertyExpression property = translateDataProperty(subject); OWLDataRange dataRange = translateDataRange(object); addAxiom(getDataFactory().getOWLDataPropertyRangeAxiom(property, dataRange, getPendingAnnotations())); consumeTriple(subject, predicate, object); }
@Override public Object visit(OWLDataPropertyRangeAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLDataPropertyRangeAxiom(t(axiom.getProperty()), t(axiom.getRange()), t(axiom.annotations()))); }
protected OWLAxiom createAxiom() throws OWLXMLParserException { if (property == null) { throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "data property element"); } if (range == null) { throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "data range element"); } return getOWLDataFactory().getOWLDataPropertyRangeAxiom(property, range, getAnnotations()); } }
private void initialiseDataPropertyFrameSections() { //@formatter:off initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubDataPropertyOfAxiom(s, o, anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), EQUIVALENT_TO, (s, o, anns) -> df.getOWLEquivalentDataPropertiesAxiom(s,o, anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), DISJOINT_WITH, (s, o, anns) -> df.getOWLDisjointDataPropertiesAxiom(s,o, anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLClassExpression>(x -> parseUnion(), DOMAIN, (s, o, anns) -> df.getOWLDataPropertyDomainAxiom(s, o, anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataRange>(x -> parseDataRange(), RANGE, (s, o, anns) -> df.getOWLDataPropertyRangeAxiom(s, o, anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyCharacteristicAxiom>(this::parseDataPropertyCharacteristic, CHARACTERISTICS, (s, o, anns) -> o.getAnnotatedAxiom(anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), dataPropertyFrameSections); //@formatter:on }
private void initialiseDataPropertyFrameSections() { //@formatter:off initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubDataPropertyOfAxiom(s, o, anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), EQUIVALENT_TO, (s, o, anns) -> df.getOWLEquivalentDataPropertiesAxiom(s,o, anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyExpression>(x -> parseDataProperty(), DISJOINT_WITH, (s, o, anns) -> df.getOWLDisjointDataPropertiesAxiom(s,o, anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLClassExpression>(x -> parseUnion(), DOMAIN, (s, o, anns) -> df.getOWLDataPropertyDomainAxiom(s, o, anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataRange>(x -> parseDataRange(), RANGE, (s, o, anns) -> df.getOWLDataPropertyRangeAxiom(s, o, anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLDataPropertyCharacteristicAxiom>(this::parseDataPropertyCharacteristic, CHARACTERISTICS, (s, o, anns) -> o.getAnnotatedAxiom(anns)), dataPropertyFrameSections); initialiseSection(new AnnAxiom<OWLDataProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), dataPropertyFrameSections); //@formatter:on }