@@ -0,0 +1,2573 @@
+package nodes;%0A%0Aimport com.hp.hpl.jena.rdf.model.Property;%0Aimport com.hp.hpl.jena.rdf.model.Resource;%0Aimport com.hp.hpl.jena.rdf.model.ResourceFactory;%0A%0A/**%0A * A vocabulary for describing the visual properties of an RDF model that is%0A * rendered by nodes.%0A * %0A * Intended for use by save/load feature.%0A * %0A * @author kdbanman%0A */%0Apublic class ViewVocabulary %7B%0A    %0A    private ViewVocabulary() %7B%0A        // Ensure non-instantiability with private constructor%0A    %7D%0A    %0A    // Define base uri%0A    private static final String uri = %22http://semanticweb.ca/nodesView#%22;%0A    %0A    public static String getURI() %7B%0A        return uri;%0A    %7D%0A    %0A    /*%0A     * Generate namespaced Resource%0A     */%0A    private static Resource resource( String local ) %7B%0A        return ResourceFactory.createResource( uri + local );%0A    %7D%0A%0A    /*%0A     * Generate namespaced Property%0A     */%0A    private static Property property( String local ) %7B%0A        return ResourceFactory.createProperty( uri, local );%0A    %7D%0A    %0A    /*%0A     * Below are the public functions for generating Resources for the %0A     * view parameters.  They are used in this way:%0A     * - positionX -------%3E double%0A     * - positionY -------%3E double%0A     * - positionZ -------%3E double%0A     * - color -----------%3E int%0A     * - size ------------%3E int%0A     * - labelVisibility -%3E boolean%0A     * - labelSize -------%3E int%0A     */%0A    %0A    public static Resource createResource(double val) %7B%0A        %0A        return resource(Double.toString(val));%0A    %7D%0A    %0A    public static Resource createResource(int val) %7B%0A        %0A        return resource(Integer.toString(val));%0A    %7D%0A    %0A    public static Resource createResource(boolean val) %7B%0A        %0A        return resource(Boolean.toString(val));%0A    %7D%0A    %0A    /*%0A     * Below are the public properties that are intended to point from generated%0A     * view parameter Resources to Model Resources/ReifiedStatements%0A     */%0A    public static Property positionX = property(%22positionX%22); //Node only%0A    public static Property positionY = property(%22positionY%22); //Node only%0A    public static Property positionZ = property(%22positionZ%22); //Node only%0A    public static Property color = property(%22color%22);%0A    public static Property size = property(%22size%22);%0A    public static Property labelVisibility = property(%22labelVisibility%22);%0A    public static Property labelSize = property(%22labelSize%22);%0A    %0A    // Property intended to show that a (reified) statement shares an edge with%0A    // another that is already visually described.%0A    public static Property sharesEdge = property(%22sharesEdge%22);%0A%7D%0A

implement view vocabulary as static class with static Properties and Resource generators.