use of skos.SKOSDocumentation in project opentheso by miledrousset.
the class SkosToJsonld method addDocumentations.
private void addDocumentations(ArrayList<SKOSDocumentation> documentations) {
ArrayList<SKOSDocumentation> changeNote = new ArrayList<>();
ArrayList<SKOSDocumentation> definition = new ArrayList<>();
ArrayList<SKOSDocumentation> editorialNote = new ArrayList<>();
ArrayList<SKOSDocumentation> example = new ArrayList<>();
ArrayList<SKOSDocumentation> historyNote = new ArrayList<>();
ArrayList<SKOSDocumentation> note = new ArrayList<>();
ArrayList<SKOSDocumentation> scopeNote = new ArrayList<>();
for (SKOSDocumentation sKOSDocumentation : documentations) {
switch(sKOSDocumentation.getProperty()) {
case SKOSProperty.changeNote:
changeNote.add(sKOSDocumentation);
break;
case SKOSProperty.definition:
definition.add(sKOSDocumentation);
break;
case SKOSProperty.editorialNote:
editorialNote.add(sKOSDocumentation);
break;
case SKOSProperty.example:
example.add(sKOSDocumentation);
break;
case SKOSProperty.historyNote:
historyNote.add(sKOSDocumentation);
break;
case SKOSProperty.note:
note.add(sKOSDocumentation);
break;
case SKOSProperty.scopeNote:
scopeNote.add(sKOSDocumentation);
break;
default:
break;
}
}
addNote(changeNote, "changeNote");
addNote(definition, "definition");
addNote(editorialNote, "editorialNote");
addNote(example, "example");
addNote(historyNote, "historyNote");
addNote(note, "note");
addNote(scopeNote, "scopeNote");
}
Aggregations