public void handleTriple(IRI subject, IRI predicate, OWLLiteral object) { consumeTriple(subject, predicate, object); if(getConsumer().isOntology(subject)) { getConsumer().addOntologyAnnotation(getDataFactory().getOWLAnnotation(getDataFactory().getOWLAnnotationProperty(predicate), object)); } else { OWLAnnotationAssertionAxiom ax = getDataFactory().getOWLAnnotationAssertionAxiom(getDataFactory().getOWLAnnotationProperty(predicate), subject, object, getPendingAnnotations()); addAxiom(ax); } } }
@Override public boolean canHandle(IRI subject, IRI predicate, OWLLiteral object) { if(isStrict()) { return isAnnotationPropertyOnly(predicate); boolean axiom = getConsumer().isUnrecognisedRdfTypeAxiom(subject); if(axiom) { return false; boolean annotation = getConsumer().isAnnotation(subject); if(annotation) { return false; if(getConsumer().isAnnotationProperty(predicate)) { return true; if (!isAnonymous(subject)) { if(isClassExpressionLax(subject)) { return true; if(isDataRangeLax(subject)) { return true; if(isObjectPropertyLax(subject)) { return true; if(isDataPropertyLax(subject)) { return true;
public boolean canHandleStreaming(IRI subject, IRI predicate, OWLLiteral object) { return !isAnonymous(subject) && getConsumer().isAnnotationProperty(predicate); }
literalTripleHandlers.add(new GTPAnnotationLiteralHandler(this)); literalTripleHandlers.add(new GTPDataPropertyAssertionHandler(this)); literalTripleHandlers.add(new TPFirstLiteralHandler(this));
public boolean canHandle(IRI subject, IRI predicate, OWLLiteral object) { return getConsumer().isAnnotationProperty(predicate); }
@Override public boolean canHandleStreaming(IRI subject, IRI predicate, OWLLiteral object) { return !isAnonymous(subject) && !getConsumer().isAnnotation(subject) && getConsumer().isAnnotationProperty(predicate); }
literalTripleHandlers.add(new GTPDataPropertyAssertionHandler(this)); literalTripleHandlers.add(new TPFirstLiteralHandler(this)); literalTripleHandlers.add(new GTPAnnotationLiteralHandler(this));
@Override public void handleTriple(IRI subject, IRI predicate, OWLLiteral object) { consumeTriple(subject, predicate, object); OWLAnnotationProperty prop = getDataFactory().getOWLAnnotationProperty(predicate); OWLAnnotationSubject annotationSubject; if(isAnonymous(subject)) { annotationSubject = getDataFactory().getOWLAnonymousIndividual(subject.toString()); } else { annotationSubject = subject; } if(getConsumer().isOntology(subject)) { getConsumer().addOntologyAnnotation(getDataFactory().getOWLAnnotation(prop, object, getPendingAnnotations())); } else { OWLAnnotationAssertionAxiom ax = getDataFactory().getOWLAnnotationAssertionAxiom(prop, annotationSubject, object, getPendingAnnotations()); addAxiom(ax); } } }