|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.rdf.model.impl.RDFModelImpl
Constructor Summary | |
|
RDFModelImpl()
|
protected |
RDFModelImpl(java.lang.String uri,
java.util.Hashtable triples,
LongTable lookup,
boolean shared)
|
Method Summary | |
void |
add(Resource subject,
Resource predicate,
RDFNode object)
Adds a new triple to the model. |
void |
add(Resource subject,
Resource predicate,
java.lang.String object)
Adds a new triple to the model. |
void |
add(Triple t)
Adds a new triple to the model. |
java.lang.Object |
clone()
|
boolean |
contains(Triple t)
Tests if the model contains the given triple. |
RDFModel |
create()
Creates empty model of the same Class |
Literal |
createLiteral(java.lang.String str)
Creates a literal out of a string |
Resource |
createResource(java.lang.String str)
Creates a resource out of a string |
Triple |
createTriple(Resource subject,
Resource predicate,
RDFNode object)
Creates a triple |
RDFModel |
duplicate()
Clone the model. |
java.util.Enumeration |
elements()
Enumerate triples |
RDFModel |
find(Resource subject,
Resource predicate,
RDFNode object)
General method to search for triples. |
Digest |
getDigest()
|
java.lang.String |
getLabel()
|
java.lang.String |
getSourceURI()
Returns current base URI setting. |
java.lang.String |
getURI()
|
void |
remove(Triple t)
Removes the triple from the model. |
void |
setSourceURI(java.lang.String uri)
Set a base URI for the message. |
int |
size()
Number of triples in the model |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RDFModelImpl()
protected RDFModelImpl(java.lang.String uri, java.util.Hashtable triples, LongTable lookup, boolean shared)
Method Detail |
public void setSourceURI(java.lang.String uri)
null
is just alright, meaning that
the serializer will use always rdf:about and never rdf:IDpublic java.lang.String getSourceURI()
public int size()
public java.util.Enumeration elements()
public boolean contains(Triple t)
true
if the triple belongs to the model;
false
otherwise.org.w3c.rdf.Triple
public void add(Resource subject, Resource predicate, java.lang.String object)
object
.
This method is just a shortcut.org.w3c.rdf.Resource
public void add(Resource subject, Resource predicate, RDFNode object)
org.w3c.rdf.Resource
,
org.w3c.rdf.RDFNode
public void add(Triple t)
org.w3c.rdf.Triple
public void remove(Triple t)
org.w3c.rdf.Triple
public RDFModel find(Resource subject, Resource predicate, RDFNode object)
null
input for any parameter will match anything.
Example: Model result = m.find( null, RDF.type, new Resource("http://...#MyClass") )
finds all instances of the class MyClass
org.w3c.rdf.Resource
,
org.w3c.rdf.RDFNode
public RDFModel duplicate()
public java.lang.Object clone()
public RDFModel create()
public Resource createResource(java.lang.String str)
public Literal createLiteral(java.lang.String str)
public Triple createTriple(Resource subject, Resource predicate, RDFNode object)
public java.lang.String getLabel()
public Digest getDigest()
public java.lang.String getURI()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |