public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException { consumeTriple(subject, predicate, object); IRI listNode = getConsumer().getResourceObject(subject, OWLRDFVocabulary.OWL_MEMBERS.getIRI(), true); if (getConsumer().isObjectPropertyOnly(getConsumer().getFirstResource(listNode, false))) { translateAndSetPendingAnnotations(subject); List<OWLObjectPropertyExpression> props = getConsumer().translateToObjectPropertyList(listNode); getConsumer().addAxiom(getDataFactory().getOWLDisjointObjectPropertiesAxiom(new HashSet<OWLObjectPropertyExpression>(props), getPendingAnnotations())); } else { translateAndSetPendingAnnotations(subject); List<OWLDataPropertyExpression> props = getConsumer().translateToDataPropertyList(listNode); getConsumer().addAxiom(getDataFactory().getOWLDisjointDataPropertiesAxiom(new HashSet<OWLDataPropertyExpression>(props), getPendingAnnotations())); } }
@Override public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException { consumeTriple(subject, predicate, object); IRI listNode = getConsumer().getResourceObject(subject, OWLRDFVocabulary.OWL_MEMBERS.getIRI(), true); if (getConsumer().isObjectProperty(getConsumer().getFirstResource(listNode, false))) { Set<OWLAnnotation> annotations = getConsumer().translateAnnotations(subject); List<OWLObjectPropertyExpression> props = getConsumer().translateToObjectPropertyList(listNode); getConsumer().addAxiom(getDataFactory().getOWLDisjointObjectPropertiesAxiom(new HashSet<OWLObjectPropertyExpression>(props), annotations)); } else { Set<OWLAnnotation> annotations = getConsumer().translateAnnotations(subject); List<OWLDataPropertyExpression> props = getConsumer().translateToDataPropertyList(listNode); getConsumer().addAxiom(getDataFactory().getOWLDisjointDataPropertiesAxiom(new HashSet<OWLDataPropertyExpression>(props), annotations)); } }