protected void writeAnnotations(OWLAxiom ax) { ax.annotations().forEach(this::acceptAndSpace); }
/** * @param axiom annotation source * @return new set of annotations */ public Set<OWLAnnotation> getAnnotationsWithOptionalExpansionMarker(OWLAxiom axiom) { Set<OWLAnnotation> annotations = asSet(axiom.annotations()); if (shouldAddExpansionMarker) { annotations.add(expansionMarkerAnnotation); } return annotations; }
/** * @param axiom annotation source * @return new set of annotations */ public Set<OWLAnnotation> getAnnotationsWithOptionalExpansionMarker(OWLAxiom axiom) { Set<OWLAnnotation> annotations = asSet(axiom.annotations()); if (shouldAddExpansionMarker) { annotations.add(expansionMarkerAnnotation); } return annotations; }
/** * @param axiom annotation source * @return new set of annotations */ public Set<OWLAnnotation> getAnnotationsWithOptionalExpansionMarker(OWLAxiom axiom) { Set<OWLAnnotation> annotations = asSet(axiom.annotations()); if (shouldAddExpansionMarker) { annotations.add(expansionMarkerAnnotation); } return annotations; }
/** * @param axiom annotation source * @return new set of annotations */ public Set<OWLAnnotation> getAnnotationsWithOptionalExpansionMarker(OWLAxiom axiom) { Set<OWLAnnotation> annotations = asSet(axiom.annotations()); if (shouldAddExpansionMarker) { annotations.add(expansionMarkerAnnotation); } return annotations; }
private Collection<OWLAnnotation> anns(OWLAxiom ax) { return set(ax.annotations()); }
Collection<Collection<OWLAnnotation>> getAnnotationsForSectionObject(Object sectionObject) { Collection<V> axioms = object2Axioms.get(sectionObject); if (axioms == null) { return sortedSet(); } Collection<Collection<OWLAnnotation>> annos = new ArrayList<>(); axioms.forEach(ax -> annos.add(asList(ax.annotations().sorted(ooc)))); return annos; } }
Collection<Collection<OWLAnnotation>> getAnnotationsForSectionObject(Object sectionObject) { Collection<V> axioms = object2Axioms.get(sectionObject); if (axioms == null) { return sortedSet(); } Collection<Collection<OWLAnnotation>> annos = new ArrayList<>(); axioms.forEach(ax -> annos.add(asList(ax.annotations().sorted(ooc)))); return annos; } }
Collection<Collection<OWLAnnotation>> getAnnotationsForSectionObject(Object sectionObject) { Collection<V> axioms = object2Axioms.get(sectionObject); if (axioms == null) { return sortedSet(); } Collection<Collection<OWLAnnotation>> annos = new ArrayList<>(); axioms.forEach(ax -> annos.add(asList(ax.annotations().sorted(ooc)))); return annos; } }
Collection<Collection<OWLAnnotation>> getAnnotationsForSectionObject(Object sectionObject) { Collection<V> axioms = object2Axioms.get(sectionObject); if (axioms == null) { return sortedSet(); } Collection<Collection<OWLAnnotation>> annos = new ArrayList<>(); axioms.forEach(ax -> annos.add(asList(ax.annotations().sorted(ooc)))); return annos; } }
/** * @param axiom the axiom whose annotations should be written */ public void writeAnnotations(OWLAxiom axiom) { axiom.annotations().forEach(a -> { a.accept(this); insertSpace(); }); }
/** * @param axiom the axiom whose annotations should be written */ public void writeAnnotations(OWLAxiom axiom) { axiom.annotations().forEach(a -> { a.accept(this); insertSpace(); }); }
private void translateAnnotations(OWLAxiom ax) { translateAnonymousNode(ax); ax.annotations().forEach(a -> translateAnnotation(ax, a)); }
private List<OWLAnnotation> anns(OWLAxiom axiom) { checkNotNull(axiom, "axiom cannot be null"); return asList(axiom.annotations().map(this::get)); }
/** * @param axiom the axiom whose annotations should be written */ public void writeAnnotations(OWLAxiom axiom) { axiom.annotations().forEach(a -> { a.accept(this); insertSpace(); }); }
private void translateAnnotations(OWLAxiom ax) { translateAnonymousNode(ax); ax.annotations().forEach(a -> translateAnnotation(ax, a)); }
private void writeAnnotations(OWLAxiom axiom) { checkNotNull(axiom, "axiom cannot be null"); render(axiom.annotations()); }
private void writeAnnotations(OWLAxiom axiom) { checkNotNull(axiom, "axiom cannot be null"); render(axiom.annotations()); }
private void writeAnnotations(OWLAxiom axiom) { checkNotNull(axiom, "axiom cannot be null"); render(axiom.annotations()); }
private void recordNonLaconicity(TelemetryInfo info, OWLAxiom curAxiom) { TelemetryTransmitter transmitter = TelemetryTransmitter.getTransmitter(); add(nonLaconicSourceAxioms, curAxiom.annotations()); int modalDepth = deltaTransformation.getModalDepth(curAxiom); transmitter.recordMeasurement(info, "superfluity depth", modalDepth); }