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.Property; 12 import com.hp.hpl.mesa.rdf.jena.model.Resource; 13 14 16 public class SNIP { 17 18 protected static final String uri = "http://snipsnap.org/rdf/snip-schema#"; 19 20 23 public static String getURI() { 24 return uri; 25 } 26 27 static String nComment = "Comment"; 28 public static Resource Comment; 29 static String nSnip = "Snip"; 30 public static Resource Snip; 31 static String nAttachment = "Attachment"; 32 public static Resource Attachment; 33 static String nLabel = "Label"; 34 public static Resource Label; 35 static String nmUser = "mUser"; 36 public static Property mUser; 37 static String ncomments = "comments"; 38 public static Property comments; 39 static String ncommentedSnip = "commentedSnip"; 40 public static Property commentedSnip; 41 static String nvalue = "value"; 42 public static Property value; 43 static String nmTime = "mTime"; 44 public static Property mTime; 45 static String nattachments = "attachments"; 46 public static Property attachments; 47 static String nsnipLinks = "snipLinks"; 48 public static Property snipLinks; 49 static String ntype = "type"; 50 public static Property type; 51 static String noUser = "oUser"; 52 public static Property oUser; 53 static String ncontent = "content"; 54 public static Property content; 55 static String ndate = "date"; 56 public static Property date; 57 static String ncontentType = "contentType"; 58 public static Property contentType; 59 static String nfileName = "fileName"; 60 public static Property fileName; 61 static String ncTime = "cTime"; 62 public static Property cTime; 63 static String nsize = "size"; 64 public static Property size; 65 static String nname = "name"; 66 public static Property name; 67 static String ncUser = "cUser"; 68 public static Property cUser; 69 70 static { 71 try { 72 Comment = new ResourceImpl(uri, nComment); 73 Snip = new ResourceImpl(uri, nSnip); 74 Attachment = new ResourceImpl(uri, nAttachment); 75 Label = new ResourceImpl(uri, nLabel); 76 mUser = new PropertyImpl(uri, nmUser); 77 comments = new PropertyImpl(uri, ncomments); 78 commentedSnip = new PropertyImpl(uri, ncommentedSnip); 79 value = new PropertyImpl(uri, nvalue); 80 mTime = new PropertyImpl(uri, nmTime); 81 attachments = new PropertyImpl(uri, nattachments); 82 snipLinks = new PropertyImpl(uri, nsnipLinks); 83 type = new PropertyImpl(uri, ntype); 84 oUser = new PropertyImpl(uri, noUser); 85 content = new PropertyImpl(uri, ncontent); 86 date = new PropertyImpl(uri, ndate); 87 contentType = new PropertyImpl(uri, ncontentType); 88 fileName = new PropertyImpl(uri, nfileName); 89 cTime = new PropertyImpl(uri, ncTime); 90 size = new PropertyImpl(uri, nsize); 91 name = new PropertyImpl(uri, nname); 92 cUser = new PropertyImpl(uri, ncUser); 93 } catch (Exception e) { 94 ErrorHelper.logInternalError("RDF", 1, e); 95 } 96 } 97 } 98 | Popular Tags |