@Override public OWLDisjointDataPropertiesAxiom buildObject() { return df.getOWLDisjointDataPropertiesAxiom(items, annotations); } }
@Override public OWLDisjointDataPropertiesAxiom buildObject() { return df.getOWLDisjointDataPropertiesAxiom(items, annotations); } }
@Override public OWLDisjointDataPropertiesAxiom buildObject() { return df.getOWLDisjointDataPropertiesAxiom(items, annotations); } }
@Override public OWLAxiom createAxiom(OWLDataProperty s, OWLDataPropertyExpression o, Set<OWLAnnotation> anns) { Set<OWLDataPropertyExpression> properties = new HashSet<OWLDataPropertyExpression>(); properties.add(s); properties.add(o); return dataFactory.getOWLDisjointDataPropertiesAxiom(properties, anns); }
protected OWLDisjointDataPropertiesAxiom createAxiom(Set<OWLDataProperty> editedObject) { Set<OWLDataProperty> props = new HashSet<>(); props.add(getRootObject()); props.addAll(editedObject); return getOWLDataFactory().getOWLDisjointDataPropertiesAxiom(props); }
protected OWLDisjointDataPropertiesAxiom createAxiom(Set<OWLDataProperty> object) { Set<OWLDataProperty> disjoints = new HashSet<>(object); disjoints.add(getRootObject()); return getOWLDataFactory().getOWLDisjointDataPropertiesAxiom(disjoints); }
protected OWLDisjointDataPropertiesAxiom createAxiom(Set<OWLDataProperty> object) { Set<OWLDataProperty> disjoints = new HashSet<OWLDataProperty>(object); disjoints.add(getRootObject()); return getOWLDataFactory().getOWLDisjointDataPropertiesAxiom(disjoints); }
@Override public Object read(OWLInputStream in) throws IOException { int count = IOUtils.readInt(in.getInputStream()); Set<OWLDataPropertyExpression> properties = new TreeSet<OWLDataPropertyExpression>(); for (int i = 0; i < count; i++) { properties.add((OWLDataPropertyExpression) in.read()); } return in.getOWLDataFactory().getOWLDisjointDataPropertiesAxiom(properties); }
public OWLDisjointDataPropertiesAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLDisjointDataPropertiesAxiom(getProperties()); }
public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException { Set<OWLDataPropertyExpression> properties = new HashSet<OWLDataPropertyExpression>(); properties.add(translateDataProperty(subject)); properties.add(translateDataProperty(object)); addAxiom(getDataFactory().getOWLDisjointDataPropertiesAxiom(properties, getPendingAnnotations())); consumeTriple(subject, predicate, object); } }
final public OWLPropertyAxiom DisjointDataProperties() throws ParseException { Set<OWLDataPropertyExpression> props; Set<OWLAnnotation> axiomAnnos; jj_consume_token(DISJOINTDATAPROPERTIES); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); props = DataPropertySet(); jj_consume_token(CLOSEPAR); return dataFactory.getOWLDisjointDataPropertiesAxiom(props, axiomAnnos); }
final public OWLPropertyAxiom DisjointDataProperties() throws ParseException {Set<OWLDataPropertyExpression> props; Set<OWLAnnotation> axiomAnnos; jj_consume_token(DISJOINTDATAPROPERTIES); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); props = DataPropertySet(); jj_consume_token(CLOSEPAR); return df.getOWLDisjointDataPropertiesAxiom(props, axiomAnnos); }
@Override public Object visit(OWLDisjointDataPropertiesAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLDisjointDataPropertiesAxiom(t(axiom.properties()), t(axiom .annotations()))); }
final public OWLPropertyAxiom DisjointDataProperties() throws ParseException {Set<OWLDataPropertyExpression> props; Set<OWLAnnotation> axiomAnnos; jj_consume_token(DISJOINTDATAPROPERTIES); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); props = DataPropertySet(); jj_consume_token(CLOSEPAR); return df.getOWLDisjointDataPropertiesAxiom(props, axiomAnnos); }
@Override public Object visit(OWLDisjointDataPropertiesAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLDisjointDataPropertiesAxiom(t(axiom.properties()), t(axiom .annotations()))); }
final public OWLPropertyAxiom DisjointDataProperties() throws ParseException {Set<OWLDataPropertyExpression> props; Set<OWLAnnotation> axiomAnnos; jj_consume_token(DISJOINTDATAPROPERTIES); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); props = DataPropertySet(); jj_consume_token(CLOSEPAR); return df.getOWLDisjointDataPropertiesAxiom(props, axiomAnnos); }
public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException { if(getConsumer().isDataPropertyOnly(subject) || getConsumer().isDataPropertyOnly(object)) { addAxiom(getDataFactory().getOWLDisjointDataPropertiesAxiom(CollectionFactory.createSet(translateDataProperty(subject), translateDataProperty(object)), getPendingAnnotations())); consumeTriple(subject, predicate, object); } else if(getConsumer().isObjectPropertyOnly(subject) || getConsumer().isObjectPropertyOnly(object)) { addAxiom(getDataFactory().getOWLDisjointObjectPropertiesAxiom(CollectionFactory.createSet(translateObjectProperty(subject), translateObjectProperty(object)), getPendingAnnotations())); consumeTriple(subject, predicate, object); } }
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 }
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 }