Skip to content

Instantly share code, notes, and snippets.

@dmitry-osin
Created November 2, 2018 11:50
Show Gist options
  • Save dmitry-osin/af25bffecfbb79026c98f696c5b7c32d to your computer and use it in GitHub Desktop.
Save dmitry-osin/af25bffecfbb79026c98f696c5b7c32d to your computer and use it in GitHub Desktop.
CogitoKnowledgeHelper synthesis = doc.getDocHelper().getKnowledgeHelper("AGU-Concept Set");
if (synthesis != null) {
synthesis.getDescriptors(d -> d.getType().startsWith("/ConceptPath/Entity/GeoAge"))
.stream()
.forEach(d -> {
d.addAttribute("taxonomyIdDD", "aaaaaaaa7777777");
});
synthesis.getDescriptors(d -> d.getType().startsWith("/ConceptPath/Entity/Location"))
.stream()
.forEach(d -> {
d.addAttribute("DDAtaxonomyIdDD", "aaaaaaaa7777777");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment