1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
public class MD{
//URI for vocabulary elements
protected static final String uri = "http://www.epseelon.org/metadoc/elements/1.0/";
//Return URI for vocabulary elements
public static String getURI(){
return uri;
}
/**
* Uniquement la pour initialiser les membres suivants.
*/
private static Model model = ModelFactory.createDefaultModel();
/**
* Ressources du modèle
*/
public enum Resources{
ELEMENT("Element"),
DOCUMENT("Document"),
WORKZONE("Workzone"),
BOX("Box");
private Resource resource;
Resources(String name){
resource = model.createResource(uri + name);
}
public Resource getResource(){
return resource;
}
}
/**
* Propriétés du modèle
*/
public enum Properties{
WORKZONES("workzones"),
PARENTS("parents"),
SELECTED_WORKZONE("selectedWorkzone"),
NAME("name"),
IMAGE("image"),
BOXES("boxes"),
POSITION("position"),
CONTENT("content"),
FILTER("filter"),
VOCABULARIES("vocabularies");
private Property property;
Properties(String name){
property = model.createProperty(uri, name);
}
public Property getProperty(){
return property;
}
}
} |
Partager