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)); } }
private void setupAxiomTypeHandlers() { addAxiomTypeTripleHandler(new TypeAxiomHandler(this)); addAxiomTypeTripleHandler(new TypeAllDifferentHandler(this)); addAxiomTypeTripleHandler(new TypeAllDisjointClassesHandler(this)); addAxiomTypeTripleHandler(new TypeAllDisjointPropertiesHandler(this)); addAxiomTypeTripleHandler(new TypeNegativePropertyAssertionHandler(this)); }
private void translateAndSetPendingAnnotations(IRI subject) { Set<OWLAnnotation> annotations = getConsumer().translateAnnotations(subject); getConsumer().setPendingAnnotations(annotations); }
addBuiltInTypeTripleHandler(new TypePropertyHandler(this)); addBuiltInTypeTripleHandler(new TypeAllDisjointClassesHandler(this)); addBuiltInTypeTripleHandler(new TypeAllDisjointPropertiesHandler(this)); addBuiltInTypeTripleHandler(new TypeNamedIndividualHandler(this)); addBuiltInTypeTripleHandler(new TypeAnnotationHandler(this));