}
public static List<Attribute> createCollectionFromVertex(Vertex vertex, OntologyRepository ontologyRepository) {
List<Attribute> collection = new ArrayList<Attribute>();
for (Property property : vertex.getProperties()) {
OntologyProperty ontologyProperty = ontologyRepository.getPropertyByIRI(property.getName());
if (ontologyProperty.getUserVisible()) {
String name = ontologyProperty.getTitle();
Map<String, String> possibleValues = ontologyProperty.getPossibleValues();
String value = property.getValue().toString();
if (possibleValues != null && possibleValues.size() > 0 && possibleValues.containsKey(value)) {
value = possibleValues.get(value);
}
Attribute attribute = new Attribute(name, value);