public void handleTriple(IRI subject, IRI predicate, OWLLiteral object) { addAxiom(getDataFactory().getOWLDataPropertyAssertionAxiom(translateDataProperty(predicate), translateIndividual(subject), object, getPendingAnnotations() )); consumeTriple(subject, predicate, object); } }
@Override public boolean canHandle(IRI subject, IRI predicate, OWLLiteral object) { if (isStrict()) { return isDataPropertyStrict(predicate); } else { // Handle annotation assertions as annotation assertions only! return isDataPropertyLax(predicate) && !getConsumer().isAnnotationProperty(predicate); } }
literalTripleHandlers.add(new GTPDataPropertyAssertionHandler(this)); literalTripleHandlers.add(new TPFirstLiteralHandler(this));
public boolean canHandle(IRI subject, IRI predicate, OWLLiteral object) { if (getConsumer().isAnnotationProperty(predicate) || getConsumer().isOntology(subject)) { return false; } return !OWLRDFVocabulary.BUILT_IN_VOCABULARY_IRIS.contains(predicate) && !OWLFacet.FACET_IRIS.contains(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) { addAxiom(getDataFactory().getOWLDataPropertyAssertionAxiom(translateDataProperty(predicate), translateIndividual(subject), object, getPendingAnnotations())); consumeTriple(subject, predicate, object); } }