@Override public List<OWLAnnotation> getAnnotations(OWLAnnotation item) { return Lists.newArrayList(item.getAnnotations()); } }
@Nonnull public List<OBOXRef> getXRefs(@Nonnull OWLAnnotationAssertionAxiom annotationAssertion) { return annotationAssertion.getAnnotations().stream() .filter(anno -> isXRefProperty(anno.getProperty())) .map(anno -> converter.toXRef(anno, anno.getAnnotations())) .filter(xref -> xref != null) .collect(toList()); }
public boolean equals(Object obj) { if (super.equals(obj)) { if (obj instanceof OWLAnnotation) { OWLAnnotation other = (OWLAnnotation) obj; return other.getProperty().equals(property) && other.getValue().equals(value) && other.getAnnotations().equals(annotations); } } return false; }
@Override public boolean equals(Object obj) { if (super.equals(obj) && obj instanceof OWLAnnotation) { OWLAnnotation other = (OWLAnnotation) obj; return other.getProperty().equals(property) && other.getValue().equals(value) && other.getAnnotations().equals(annotations); } return false; }
public void visit(OWLAnnotation node) { sb.append("Annotation("); Set<OWLAnnotation> annos = node.getAnnotations(); for (OWLAnnotation anno : annos) { anno.accept(this); sb.append(" "); } node.getProperty().accept(this); sb.append(" "); node.getValue().accept(this); sb.append(")"); }
@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 void visit(OWLAnnotation node) { sb.append("Annotation("); Set<OWLAnnotation> annos = node.getAnnotations(); for (OWLAnnotation anno : annos) { anno.accept(this); sb.append(' '); } node.getProperty().accept(this); sb.append(' '); node.getValue().accept(this); sb.append(')'); }
@Override public void visit(OWLAnnotation node) { sb.append("Annotation("); Set<OWLAnnotation> annos = node.getAnnotations(); for (OWLAnnotation anno : annos) { anno.accept(this); sb.append(" "); } node.getProperty().accept(this); sb.append(" "); node.getValue().accept(this); sb.append(")"); }
@Override public void visit(@Nonnull OWLAnnotation node) { node.getProperty().accept(this); node.getValue().accept(this); for (OWLAnnotation anno : node.getAnnotations()) { anno.accept(this); } }
@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 void visit(@Nonnull OWLAnnotation node) { writeAnnotations(node.getAnnotations()); node.getProperty().accept(this); writeSpace(); node.getValue().accept(this); }
@Override public void visit(OWLAnnotation annotation) { annotation.getProperty().accept(this); annotation.getValue().accept(this); for (OWLAnnotation anno : annotation.getAnnotations()) { anno.accept(this); } }
@Override public void visit(OWLAnnotation annotation) { annotation.getProperty().accept(this); annotation.getValue().accept(this); for (OWLAnnotation anno : annotation.getAnnotations()) { anno.accept(this); } }
public void visit(OWLAnnotation annotation) { annotation.getProperty().accept(this); annotation.getValue().accept(this); for (OWLAnnotation anno : annotation.getAnnotations()) { anno.accept(this); } }
private void generateSearchMetadataForAnnotation(final OWLAnnotation annotation, OWLEntity axiomSubject, String axiomSubjectRendering, final SearchMetadataImportContext context, SearchMetadataDB db) { String group = context.getRendering(annotation.getProperty()); StyledString ren = context.getStyledStringRendering(annotation); SearchMetadata md = new SearchMetadata(SearchCategory.ANNOTATION_VALUE, group, axiomSubject, axiomSubjectRendering, ren.getString()) { @Override public StyledString getStyledSearchSearchString() { return context.getStyledStringRendering(annotation); } }; db.addResult(md); for (OWLAnnotation anno : annotation.getAnnotations()) { generateSearchMetadataForAnnotation(anno, axiomSubject, axiomSubjectRendering, context, db); } } }
@Override public void visit(OWLAnnotation node) { writeAnnotations(node.getAnnotations()); node.getProperty().accept(this); writeSpace(); node.getValue().accept(this); }
@Override public void visit(OWLAnnotation annotation) { writer.writeStartElement(ANNOTATION); for (OWLAnnotation anno : annotation.getAnnotations()) { anno.accept(this); } annotation.getProperty().accept(this); annotation.getValue().accept(this); writer.writeEndElement(); }
public void visit(OWLAnnotation annotation) { writer.writeStartElement(ANNOTATION); for(OWLAnnotation anno : annotation.getAnnotations()) { anno.accept(this); } annotation.getProperty().accept(this); annotation.getValue().accept(this); writer.writeEndElement(); }
public void visit(OWLAnnotation node) { write(ANNOTATION); write("("); for (OWLAnnotation anno : node.getAnnotations()) { anno.accept(this); write(" "); } node.getProperty().accept(this); write(" "); node.getValue().accept(this); write(")"); }
@Override public void visit(OWLAnnotation node) { write(ANNOTATION); write("("); for (OWLAnnotation anno : node.getAnnotations()) { anno.accept(this); write(" "); } node.getProperty().accept(this); write(" "); node.getValue().accept(this); write(")"); }