1 6 package org.snipsnap.serialization.rdf.vocabulary; 7 8 import com.hp.hpl.mesa.rdf.jena.common.ErrorHelper; 9 import com.hp.hpl.mesa.rdf.jena.common.PropertyImpl; 10 import com.hp.hpl.mesa.rdf.jena.common.ResourceImpl; 11 import com.hp.hpl.mesa.rdf.jena.model.Model; 12 import com.hp.hpl.mesa.rdf.jena.model.Resource; 13 import com.hp.hpl.mesa.rdf.jena.model.Property; 14 import com.hp.hpl.mesa.rdf.jena.model.RDFException; 15 16 18 public class LABEL { 19 20 protected static final String uri ="http://snipsnap.org/rdf/label-schema#"; 21 22 25 public static String getURI() { 26 return uri; 27 } 28 static String nSnipLabel = "SnipLabel"; 29 public static Resource SnipLabel; 30 static String nTypeLabel = "TypeLabel"; 31 public static Resource TypeLabel; 32 static String nsnipLabels = "snipLabels"; 33 public static Property snipLabels; 34 35 static { 36 try { 37 SnipLabel = new ResourceImpl(uri, nSnipLabel); 38 TypeLabel = new ResourceImpl(uri, nTypeLabel); 39 snipLabels = new PropertyImpl(uri, nsnipLabels); 40 } catch (Exception e) { 41 ErrorHelper.logInternalError("RDF", 1, e); 42 } 43 } 44 } 45 | Popular Tags |