@Nonnull @Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value) { return getOWLAnnotationAssertionAxiom(property, subject, value, EMPTY_ANNOTATIONS_SET); }
@Nonnull @Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationSubject subject, @Nonnull OWLAnnotation annotation, @Nonnull Set<? extends OWLAnnotation> annotations) { checkNotNull(annotation, "annotation cannot be null"); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotations); }
/** * Gets an annotation assertion that specifies that an IRI is deprecated. The annotation property is * owl:deprecated and the value of the annotation is <code>"true"^^xsd:boolean</code>. (See * <a href="http://www.w3.org/TR/2009/REC-owl2-syntax-20091027/#Annotation_Properties">Annotation Properties</a> in * the OWL 2 Specification * * @param subject The IRI to be deprecated. * @return The annotation assertion that deprecates the specified IRI. */ public OWLAnnotationAssertionAxiom getDeprecatedOWLAnnotationAssertionAxiom(IRI subject) { return getOWLAnnotationAssertionAxiom(getOWLDeprecated(), subject, getOWLTypedLiteral(true)); }
@Nonnull @Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationSubject subject, @Nonnull OWLAnnotation annotation) { checkNotNull(annotation, "annotation cannot be null"); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotation.getAnnotations()); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation, Collection<OWLAnnotation> annotations) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotations); }
@Override public OWLAnnotationAssertionAxiom getDeprecatedOWLAnnotationAssertionAxiom(IRI subject) { checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(getOWLDeprecated(), subject, getOWLLiteral(true)); }
@Override public OWLAnnotationAssertionAxiom getDeprecatedOWLAnnotationAssertionAxiom(IRI subject) { checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(getOWLDeprecated(), subject, getOWLLiteral(true)); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation, Collection<OWLAnnotation> annotations) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotations); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation, Set<? extends OWLAnnotation> annotations) { checkNull(annotation, "annotation"); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotations); }
@Override public OWLAnnotationAssertionAxiom getDeprecatedOWLAnnotationAssertionAxiom(IRI subject) { checkNull(subject, "subject"); return getOWLAnnotationAssertionAxiom(getOWLDeprecated(), subject, getOWLLiteral(true)); }
@Override public OWLAnnotationAssertionAxiom getDeprecatedOWLAnnotationAssertionAxiom(IRI subject) { checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(getOWLDeprecated(), subject, getOWLLiteral(true)); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation, Collection<OWLAnnotation> annotations) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotations); }
@Override public OWLAnnotationAssertionAxiom getDeprecatedOWLAnnotationAssertionAxiom(IRI subject) { checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(getOWLDeprecated(), subject, getOWLLiteral(true)); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation, Collection<OWLAnnotation> annotations) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotations); }
@Override public OWLAnnotationAssertionAxiom getDeprecatedOWLAnnotationAssertionAxiom(IRI subject) { checkNotNull(subject, "subject cannot be null"); return getOWLAnnotationAssertionAxiom(getOWLDeprecated(), subject, getOWLLiteral(true)); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation) { // PATCH: return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotation.getAnnotations()); // ORIG: return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue()); // The patch makes a difference for the owl, owlfs, rdfxml and turtle serializations of Annotation2. checkNull(annotation, "annotation"); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotation.getAnnotations()); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), asList(annotation.annotations())); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), asList(annotation.annotations())); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), asList(annotation.annotations())); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), asList(annotation.annotations())); }