|
|||||||
| 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
| Fields inherited from interface org.w3c.rdf.tools.crypt.Digest |
MD5,
SHA1 |
| Constructor Summary | |
|
ModelImpl()
|
|
ModelImpl(NodeFactory f)
|
protected |
ModelImpl(java.lang.String uri,
java.util.Hashtable triples,
FindIndex findIndex)
|
| 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()
The formal string label of the node. |
NodeFactory |
getNodeFactory()
Returns the node factory for this model |
java.lang.String |
getSourceURI()
Returns current base URI setting. |
java.lang.String |
getURI()
Returns the URI of the resource. |
boolean |
isEmpty()
true if the model contains no triples |
boolean |
isMutable()
True if the model supports add() and remove() methods. |
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,
FindIndex findIndex)
| 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.Statement
public void add(Resource subject,
Resource predicate,
java.lang.String object)
throws ModelException
object.
This method is just a shortcut.Resource
public void add(Resource subject,
Resource predicate,
RDFNode object)
throws ModelException
Resource,
RDFNode
public void add(Statement t)
throws ModelException
Statement
public void remove(Statement t)
throws ModelException
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
Resource,
RDFNodepublic 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
org.w3c.rdf.model.Triple,
org.w3c.rdf.model.RDFModelpublic 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 | ||||||