1 31 32 package com.hp.hpl.jena.rdf.model; 33 34 import com.hp.hpl.jena.graph.Node; 35 36 37 61 public interface Resource extends RDFNode { 62 63 73 public AnonId getId() ; 74 75 78 public Node getNode(); 79 80 84 public boolean hasURI( String uri ); 85 86 89 public String getURI(); 90 91 94 public String getNameSpace(); 95 96 99 public String getLocalName(); 100 101 109 public String toString(); 110 111 121 public boolean equals(Object o); 122 125 public boolean isAnon(); 126 127 137 public Statement getRequiredProperty(Property p) ; 138 139 146 public Statement getProperty( Property p ); 147 148 155 public StmtIterator listProperties(Property p) ; 156 163 public StmtIterator listProperties() ; 164 165 175 public Resource addProperty(Property p, boolean o) ; 176 177 187 public Resource addProperty(Property p, long o) ; 188 189 199 public Resource addProperty(Property p, char o) ; 200 201 211 public Resource addProperty(Property p, float o) ; 212 213 223 public Resource addProperty(Property p, double o) ; 224 225 233 public Resource addProperty(Property p, String o) ; 234 235 244 public Resource addProperty(Property p, String o, String l) ; 245 246 256 public Resource addProperty(Property p, Object o) ; 257 258 266 public Resource addProperty(Property p, RDFNode o); 267 268 273 public boolean hasProperty(Property p) ; 274 275 281 public boolean hasProperty(Property p, boolean o) ; 282 283 289 public boolean hasProperty(Property p, long o) ; 290 291 297 public boolean hasProperty(Property p, char o) ; 298 299 305 public boolean hasProperty(Property p, float o) ; 306 307 313 public boolean hasProperty(Property p, double o) ; 314 315 321 public boolean hasProperty(Property p, String o) ; 322 323 330 public boolean hasProperty(Property p, String o, String l) ; 331 332 338 public boolean hasProperty(Property p, Object o) ; 339 340 346 public boolean hasProperty(Property p, RDFNode o) ; 347 348 351 public Resource removeProperties() ; 352 353 360 public Resource removeAll( Property p ); 361 362 365 public Resource begin() ; 366 367 370 public Resource abort() ; 371 372 375 public Resource commit() ; 376 377 380 public Model getModel(); 381 } 382 383 | Popular Tags |