@Override public void visitItem(@Nonnull OWLAnnotation c) { c.accept(AbstractEntityRegistrationManager.this); } };
void renderAxiomAnnotations(OWLAxiom axiom) { Set<OWLAnnotation> annotations = axiom.getAnnotations(); if (!annotations.isEmpty()) { stringBuilder.append("<div class=\"ms-annotations\">"); annotations.forEach(anno -> { stringBuilder.append("<div>"); anno.accept(this); stringBuilder.append("</div>"); }); stringBuilder.append("</div>"); } }
@Override public <T extends OWLObject> void walk(StructureWalker<T> walker, OWLObject o) { if (o instanceof OWLOntology) { ((OWLOntology) o).annotations().forEach(a -> a.accept(walker)); } } },
@Override public <T extends OWLObject> void walk(StructureWalker<T> walker, OWLObject o) { if (o instanceof HasAnnotations) { ((HasAnnotations) o).annotations().forEach(a -> a.accept(walker)); } } };
@Override public void visit(OWLOntology ontology) { ontology.annotations().forEach(a1 -> a1.accept(this)); AxiomType.AXIOM_TYPES.forEach(t -> ontology.axioms(t).forEach(ax -> ax.accept(this))); singleAppearance.clear(); singleAppearanceAsSubject.clear(); }
@Override public void visit(OWLAnnotation a) { a.getValue().asAnonymousIndividual().ifPresent(this::checkAppearanceAsObject); a.annotations().forEach(a1 -> a1.accept(this)); }
public void writeAnnotations(OWLAxiom ax) { for (OWLAnnotation anno : ax.getAnnotations()) { anno.accept(this); write(" "); } }
@Override public void visit(OWLAnnotation a) { a.getValue().asAnonymousIndividual().ifPresent(this::checkAppearanceAsObject); a.annotations().forEach(a1 -> a1.accept(this)); }
@Override public void visit(OWLAnnotation node) { sb.append("Annotation("); node.annotations().forEach(a -> { a.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("); node.annotations().forEach(a -> { a.accept(this); sb.append(' '); }); node.getProperty().accept(this); sb.append(' '); node.getValue().accept(this); sb.append(')'); }
@Override public Collection<OWLObject> visit(OWLAnnotationAssertionAxiom l) { objects.add(l); l.getSubject().accept(this); l.getAnnotation().accept(this); return objects; }
@Override public void visit(OWLDataPropertyAssertionAxiom axiom) { axiom.getSubject().accept(this); axiom.annotations().forEach(a1 -> a1.accept(this)); }
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(OWLObjectPropertyAssertionAxiom axiom) { axiom.getSubject().accept(this); axiom.getObject().accept(this); axiom.annotations().forEach(a1 -> a1.accept(this)); }
@Override public void visit(OWLObjectPropertyAssertionAxiom axiom) { axiom.getSubject().accept(this); axiom.getObject().accept(this); axiom.annotations().forEach(a1 -> a1.accept(this)); }
public void visit(OWLAnnotationAssertionAxiom axiom) { handleObject(axiom); axiom.getSubject().accept(this); axiom.getAnnotation().accept(this); }
@Override public void visit(OWLAnnotationAssertionAxiom axiom) { process(axiom); if (axiom.getSubject().isIRI()) { // do not visit anonymous nodes from annotations axiom.getSubject().accept(this); } axiom.getAnnotation().accept(this); }
@Override public void visit(OWLAnnotationAssertionAxiom axiom) { process(axiom); if (axiom.getSubject().isIRI()) { // do not visit anonymous nodes from annotations axiom.getSubject().accept(this); } axiom.getAnnotation().accept(this); }
public void visit(@Nonnull OWLAnnotationAssertionAxiom axiom) { if(axiom.getSubject() instanceof IRI) { builder.append(renderingContext.getIriShortFormProvider().getShortForm((IRI) axiom.getSubject())); } else { axiom.getSubject().accept(this); } renderSpace(); axiom.getAnnotation().accept(this); }
protected boolean matchAnnotation(OWLAnnotation annotation) { if (!this.hasBeenVisited(annotation.getProperty()) && this.patternName.equals(annotation.getProperty().getIRI().getFragment())) { PatternExtractor patternExtractor = this.patternConstraintSystem.getPatternModelFactory() .getPatternExtractor(this.getVisitedAnnotations(), this.getErrorListener()); this.extractedPattern = (PatternModel) annotation.accept(patternExtractor); } return this.extractedPattern != null; }