public boolean canHandleStreaming(IRI subject, IRI predicate, IRI object) { return (getConsumer().isObjectPropertyOnly(subject) && getConsumer().isObjectPropertyOnly(object)) || (getConsumer().isDataPropertyOnly(subject) && getConsumer().isDataPropertyOnly(object)); } }
@Override public boolean canHandle(IRI subject, IRI predicate, IRI object) { inferTypes(subject, object); return super.canHandle(subject, predicate, object) && ((getConsumer().isObjectProperty(subject) && getConsumer().isObjectProperty(object)) || (getConsumer().isDataProperty(subject) && getConsumer().isDataProperty(object))); }
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); } }
@Override public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException { if(getConsumer().isDataProperty(subject) && getConsumer().isDataProperty(object)) { addAxiom(getDataFactory().getOWLDisjointDataPropertiesAxiom(CollectionFactory.createSet(translateDataProperty(subject), translateDataProperty(object)), getPendingAnnotations())); consumeTriple(subject, predicate, object); } if(getConsumer().isObjectProperty(subject) && getConsumer().isObjectProperty(object)) { addAxiom(getDataFactory().getOWLDisjointObjectPropertiesAxiom(CollectionFactory.createSet(translateObjectProperty(subject), translateObjectProperty(object)), getPendingAnnotations())); consumeTriple(subject, predicate, object); } }