|
|||||||||
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()
|
boolean |
isEmpty()
|
boolean |
isMutable()
|
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 boolean isEmpty()
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) throws ModelException
object
.
This method is just a shortcut.org.w3c.rdf.Resource
public void add(Resource subject, Resource predicate, RDFNode object) throws ModelException
org.w3c.rdf.Resource
,
org.w3c.rdf.RDFNode
public void add(Statement t) throws ModelException
org.w3c.rdf.Statement
public void remove(Statement t) throws ModelException
org.w3c.rdf.Statement
public Model find(Resource subject, Resource predicate, RDFNode object) throws ModelException
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() throws ModelException
public Digest getDigest()
public boolean isMutable()
public java.lang.String getURI() throws ModelException
public java.lang.String getDigestAlgorithm()
public byte[] getDigestBytes() throws DigestException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |