|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.rdf.implementation.model.ModelImpl
Constructor Summary | |
|
ModelImpl()
|
|
ModelImpl(NodeFactory f)
|
protected |
ModelImpl(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(Statement t)
Adds a new triple to the model. |
java.lang.Object |
clone()
|
boolean |
contains(Statement t)
Tests if the model contains the given triple. |
Model |
create()
Creates empty model of the same Class |
Model |
duplicate()
Clone the model. |
java.util.Enumeration |
elements()
Enumerate triples |
Model |
find(Resource subject,
Resource predicate,
RDFNode object)
General method to search for triples. |
Digest |
getDigest()
|
java.lang.String |
getDigestAlgorithm()
|
byte[] |
getDigestBytes()
|
java.lang.String |
getLabel()
|
NodeFactory |
getNodeFactory()
|
java.lang.String |
getSourceURI()
Returns current base URI setting. |
java.lang.String |
getURI()
|
void |
remove(Statement 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 ModelImpl()
public ModelImpl(NodeFactory f)
protected ModelImpl(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(Statement t)
true
if the triple belongs to the model;
false
otherwise.org.w3c.rdf.Statement
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(Statement t)
org.w3c.rdf.Statement
public void remove(Statement t)
org.w3c.rdf.Statement
public Model 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 Model duplicate()
public java.lang.Object clone()
public Model create()
public NodeFactory getNodeFactory()
public java.lang.String getLabel()
public Digest getDigest()
public java.lang.String getURI()
public java.lang.String getDigestAlgorithm()
public byte[] getDigestBytes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |