protected boolean isAnnotationPropertyLax(IRI iri) { return consumer.isAnnotationProperty(iri); }
public boolean canHandle(IRI subject, IRI predicate, OWLLiteral object) { return getConsumer().isAnnotationProperty(predicate); }
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); }
public boolean canHandleStreaming(IRI subject, IRI predicate, OWLLiteral object) { return !isAnonymous(subject) && getConsumer().isAnnotationProperty(predicate); }
public boolean canHandleStreaming(IRI subject, IRI predicate, IRI object) { return !isAnonymous(subject) && getConsumer().isAnnotationProperty(predicate); }
public boolean canHandle(IRI subject, IRI predicate, IRI object) { return !getConsumer().isAnnotationProperty(subject) && !OWLRDFVocabulary.BUILT_IN_VOCABULARY_IRIS.contains(predicate) && !getConsumer().isOntology(subject); }
public boolean canHandle(IRI subject, IRI predicate, IRI object) { return getConsumer().isAnnotationProperty(predicate) || getConsumer().isOntology(subject); }
@Override public boolean canHandleStreaming(IRI subject, IRI predicate, IRI object) { if(isStrict()) { return false; } else { return !isAnonymous(subject) && !isAnonymous(object) && getConsumer().isAnnotationProperty(predicate); } }
@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); } }
@Override public boolean canHandleStreaming(IRI subject, IRI predicate, OWLLiteral object) { return !isAnonymous(subject) && !getConsumer().isAnnotation(subject) && getConsumer().isAnnotationProperty(predicate); }
Set<IRI> predicates = getPredicatesBySubject(mainNode); for (IRI predicate : predicates) { if (isAnnotationProperty(predicate)) { IRI resVal = getResourceObject(mainNode, predicate, true); while (resVal != null) {
Set<IRI> predicates = getPredicatesBySubject(mainNode); for (IRI predicate : predicates) { if (isAnnotationProperty(predicate)) { IRI resVal = getResourceObject(mainNode, predicate, true); while (resVal != null) {
Set<IRI> predicates = consumer.getPredicatesBySubject(mainNode); for (IRI i : predicates) { if (consumer.isAnnotationProperty(i)) { OWLAnnotationProperty p = consumer.getDataFactory() .getOWLAnnotationProperty(i);
@Override public boolean canHandleStreaming(IRI subject, IRI predicate, IRI object) { if(getConsumer().isObjectProperty(object)) { getConsumer().addObjectProperty(subject, false); } else if(getConsumer().isDataProperty(object)) { getConsumer().addDataProperty(object, false); } else if(getConsumer().isAnnotationProperty(object)) { getConsumer().addAnnotationProperty(subject, false); } else if(getConsumer().isObjectProperty(subject)) { getConsumer().addObjectProperty(object, false); } else if(getConsumer().isDataProperty(subject)) { getConsumer().addDataProperty(object, false); } else if(getConsumer().isAnnotationProperty(subject)) { getConsumer().addAnnotationProperty(object, false); } return false; }
return false; if(getConsumer().isAnnotationProperty(predicate)) { return true;
@Override public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException { if (getConsumer().isObjectProperty(subject) && getConsumer().isClassExpression(object)) { translateObjectPropertyDomain(subject, predicate, object); } else if (getConsumer().isDataPropertyOnly(subject) && getConsumer().isClassExpression(object)) { translateDataPropertyDomain(subject, predicate, object); } else if (getConsumer().isAnnotationProperty(subject) && getConsumer().isClassExpression(object) && !getConsumer().isAnonymousNode(object)) { translateAnnotationPropertyDomain(subject, predicate, object); } else if(!isStrict()) { translateAnnotationPropertyDomain(subject, predicate, object); } }
consumeTriple(subject, predicate, object); else if(getConsumer().isAnnotationProperty(subject)) { OWLAnnotationProperty prop = getDataFactory().getOWLAnnotationProperty(subject); addAxiom(getDataFactory().getOWLAnnotationPropertyRangeAxiom(prop, object, getPendingAnnotations()));
public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException { if (getConsumer().isObjectPropertyOnly(subject)) { translateObjectPropertyDomain(subject, predicate, object); } else if (getConsumer().isDataPropertyOnly(subject)) { translateDataPropertyDomain(subject, predicate, object); } else if (getConsumer().isAnnotationProperty(subject)) { OWLAnnotationProperty prop = getDataFactory().getOWLAnnotationProperty(subject); addAxiom(getDataFactory().getOWLAnnotationPropertyDomainAxiom(prop, object, getPendingAnnotations())); consumeTriple(subject, predicate, object); } else { // See if there are any range triples that we can peek at IRI rangeIRI = getConsumer().getResourceObject(subject, predicate, false); if (getConsumer().isDataRange(rangeIRI)) { translateDataPropertyDomain(subject, predicate, object); } else { // Oh well, let's just assume object property translateObjectPropertyDomain(subject, predicate, object); } } }
translateAsDataPropertyRange(subject, predicate, object); else if (getConsumer().isAnnotationProperty(subject) && !getConsumer().isAnonymousNode(object)) { translateAsAnnotationPropertyRange(subject, predicate, object);
translateSubDataProperty(subject, predicate, object); else if (!getConsumer().isStrict() && getConsumer().isAnnotationProperty(subject)) { OWLAnnotationProperty subAnnoProp = getDataFactory().getOWLAnnotationProperty(subject); OWLAnnotationProperty superAnnoProp = getDataFactory().getOWLAnnotationProperty(object);