use of mom.trd.opentheso.skosapi.SKOSDocumentation in project opentheso by miledrousset.
the class ImportCandidatsTest method getNotes.
// 30 = definition, 34 = editorialNote, 36= Note, 74= Terme spécifique, 72= Terme générique,
private String getNotes(SKOSResource sKOSResource) {
String notes = "";
String propriete = "";
for (SKOSDocumentation sDocumentation : sKOSResource.getDocumentationsList()) {
if (!sDocumentation.getText().isEmpty()) {
/* if(sDocumentation.getProperty() == SKOSProperty.definition)//30)
propriete = "definition";
if(sDocumentation.getProperty() == SKOSProperty.editorialNote) //34)
propriete = "editorialNote";
if(sDocumentation.getProperty() == SKOSProperty.note)//36)
propriete = "Note";*/
if (sDocumentation.getProperty() == SKOSProperty.changeNote) {
if (notes.isEmpty())
notes = sDocumentation.getText();
else
notes = notes + " #### " + sDocumentation.getText();
}
}
}
/* for (SKOSMatch sKOSMatch : sKOSResource.getMatchList()) {
if(sKOSMatch.getValue().contains("https://ark.frantiq.fr")) {
if(sKOSMatch.getProperty() == 74)
propriete = "Terme spécifique";
if(sKOSMatch.getProperty() == 72)
propriete = "Terme générique";
if(notes.isEmpty())
notes = propriete + "--> " + sKOSMatch.getValue();
else
notes = notes + " #### " + propriete + "--> " + sKOSMatch.getValue();
}
}*/
return notes;
}
Aggregations