1 10 package com.hp.hpl.jena.vocabulary; 11 12 import com.hp.hpl.jena.rdf.model.Resource; 13 import com.hp.hpl.jena.rdf.model.ResourceFactory; 14 import com.hp.hpl.jena.datatypes.xsd.XSDDatatype; 15 16 23 public class XSD { 24 25 public static Resource xfloat; 26 27 28 public static Resource xdouble; 29 30 31 public static Resource xint; 32 33 34 public static Resource xlong; 35 36 37 public static Resource xshort; 38 39 40 public static Resource xbyte; 41 42 43 public static Resource xboolean; 44 45 46 public static Resource xstring; 47 48 49 public static Resource unsignedByte; 50 51 52 public static Resource unsignedShort; 53 54 55 public static Resource unsignedInt; 56 57 58 public static Resource unsignedLong; 59 60 61 public static Resource decimal; 62 63 64 public static Resource integer; 65 66 67 public static Resource nonPositiveInteger; 68 69 70 public static Resource nonNegativeInteger; 71 72 73 public static Resource positiveInteger; 74 75 76 public static Resource negativeInteger; 77 78 79 public static Resource normalizedString; 80 81 82 public static Resource anyURI; 83 84 85 public static Resource token; 86 87 88 public static Resource Name; 89 90 91 public static Resource QName; 92 93 94 public static Resource language; 95 96 97 public static Resource NMTOKEN; 98 99 100 public static Resource ENTITIES; 101 102 103 public static Resource NMTOKENS; 104 105 106 public static Resource ENTITY; 107 108 109 public static Resource ID; 110 111 112 public static Resource NCName; 113 114 115 public static Resource IDREF; 116 117 118 public static Resource IDREFS; 119 120 121 public static Resource NOTATION; 122 123 124 public static Resource hexBinary; 125 126 127 public static Resource base64Binary; 128 129 130 public static Resource date; 131 132 133 public static Resource time; 134 135 136 public static Resource dateTime; 137 138 139 public static Resource duration; 140 141 142 public static Resource gDay; 143 144 145 public static Resource gMonth; 146 147 148 public static Resource gYear; 149 150 151 public static Resource gYearMonth; 152 153 154 public static Resource gMonthDay; 155 156 static { 158 xfloat = ResourceFactory.createResource(XSDDatatype.XSDfloat.getURI()); 159 xdouble = ResourceFactory.createResource(XSDDatatype.XSDdouble.getURI()); 160 xint = ResourceFactory.createResource(XSDDatatype.XSDint.getURI()); 161 xlong = ResourceFactory.createResource(XSDDatatype.XSDlong.getURI()); 162 xshort = ResourceFactory.createResource(XSDDatatype.XSDshort.getURI()); 163 xbyte = ResourceFactory.createResource(XSDDatatype.XSDbyte.getURI()); 164 unsignedByte = ResourceFactory.createResource(XSDDatatype.XSDunsignedByte.getURI()); 165 unsignedShort = ResourceFactory.createResource(XSDDatatype.XSDunsignedShort.getURI()); 166 unsignedInt = ResourceFactory.createResource(XSDDatatype.XSDunsignedInt.getURI()); 167 unsignedLong = ResourceFactory.createResource(XSDDatatype.XSDunsignedLong.getURI()); 168 decimal = ResourceFactory.createResource(XSDDatatype.XSDdecimal.getURI()); 169 integer = ResourceFactory.createResource(XSDDatatype.XSDinteger.getURI()); 170 nonPositiveInteger = ResourceFactory.createResource(XSDDatatype.XSDnonPositiveInteger.getURI()); 171 nonNegativeInteger = ResourceFactory.createResource(XSDDatatype.XSDnonNegativeInteger.getURI()); 172 positiveInteger = ResourceFactory.createResource(XSDDatatype.XSDpositiveInteger.getURI()); 173 negativeInteger = ResourceFactory.createResource(XSDDatatype.XSDnegativeInteger.getURI()); 174 xboolean = ResourceFactory.createResource(XSDDatatype.XSDboolean.getURI()); 175 xstring = ResourceFactory.createResource(XSDDatatype.XSDstring.getURI()); 176 normalizedString = ResourceFactory.createResource(XSDDatatype.XSDnormalizedString.getURI()); 177 anyURI = ResourceFactory.createResource(XSDDatatype.XSDanyURI.getURI()); 178 token = ResourceFactory.createResource(XSDDatatype.XSDtoken.getURI()); 179 Name = ResourceFactory.createResource(XSDDatatype.XSDName.getURI()); 180 QName = ResourceFactory.createResource(XSDDatatype.XSDQName.getURI()); 181 language = ResourceFactory.createResource(XSDDatatype.XSDlanguage.getURI()); 182 NMTOKEN = ResourceFactory.createResource(XSDDatatype.XSDNMTOKEN.getURI()); 183 ENTITY = ResourceFactory.createResource(XSDDatatype.XSDENTITY.getURI()); 184 ID = ResourceFactory.createResource(XSDDatatype.XSDID.getURI()); 185 NCName = ResourceFactory.createResource(XSDDatatype.XSDNCName.getURI()); 186 IDREF = ResourceFactory.createResource(XSDDatatype.XSDIDREF.getURI()); 187 NOTATION = ResourceFactory.createResource(XSDDatatype.XSDNOTATION.getURI()); 188 hexBinary = ResourceFactory.createResource(XSDDatatype.XSDhexBinary.getURI()); 189 base64Binary = ResourceFactory.createResource(XSDDatatype.XSDbase64Binary.getURI()); 190 date = ResourceFactory.createResource(XSDDatatype.XSDdate.getURI()); 191 time = ResourceFactory.createResource(XSDDatatype.XSDtime.getURI()); 192 dateTime = ResourceFactory.createResource(XSDDatatype.XSDdateTime.getURI()); 193 duration = ResourceFactory.createResource(XSDDatatype.XSDduration.getURI()); 194 gDay = ResourceFactory.createResource(XSDDatatype.XSDgDay.getURI()); 195 gMonth = ResourceFactory.createResource(XSDDatatype.XSDgMonth.getURI()); 196 gYear = ResourceFactory.createResource(XSDDatatype.XSDgYear.getURI()); 197 gYearMonth = ResourceFactory.createResource(XSDDatatype.XSDgYearMonth.getURI()); 198 gMonthDay = ResourceFactory.createResource(XSDDatatype.XSDgMonthDay.getURI()); 199 } 203 } 204 205 234 | Popular Tags |