|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dftproject.genesis.core.data.DataResourceNode
public class DataResourceNode
DataResourceNode is a database-backed resource node.
| Constructor Summary | |
|---|---|
protected |
DataResourceNode(java.lang.String uri,
DataView view)
Creates a database-back resource node. |
| Method Summary | |
|---|---|
void |
addObject(IResourceNode predicate,
INode object,
IResourceNode graph)
Adds a statement wherein this node is the subject. |
void |
addObject(IResourceNode predicate,
INode object,
IResourceNode graph,
DataConnection conn)
Adds a statement wherein this node is the subject using the given connection. |
boolean |
equals(java.lang.Object obj)
|
INode |
getFirstObject(IResourceNode predicate)
Returns the first object related to this node (as a subject) by the given predicate. |
Statement |
getFirstQuadAsSubject(IResourceNode predicate)
Returns the first statement with the given predicate wherein this node is the subject. |
java.util.Map<IResourceNode,java.util.Set<Statement>> |
getQuadsAsSubject()
Returns the mapping of predicate to statements wherein this node serves as the subject. |
java.util.Set<Statement> |
getQuadsAsSubject(IResourceNode predicate)
Returns the statements with the given predicate wherein this node is the subject. |
org.apache.commons.collections.MultiMap |
getSubjects()
Returns the subjects. |
java.lang.String |
getURI()
Returns the name of this node. |
int |
hashCode()
|
void |
removeObject(IResourceNode predicate,
INode object,
IResourceNode graph)
Removes a statement wherein this node is the subject. |
void |
setQuadAsSubject(IResourceNode predicate,
INode object,
IResourceNode graph)
Adds a statement wherein this node is the subject to the objects cache. |
void |
setSubject(IResourceNode predicate,
INode subject)
Adds a statement wherein this node is the object to the subjects cache. |
java.lang.String |
toString()
|
void |
unsetQuadAsSubject(IResourceNode predicate,
INode object,
IResourceNode graph)
Removes a statement wherein this node is the subject to the objects cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected DataResourceNode(java.lang.String uri,
DataView view)
uri - the name of the resourceview - the view to which this resource belongs| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getURI()
IResourceNode
getURI in interface IResourceNodepublic org.apache.commons.collections.MultiMap getSubjects()
IResourceNode
getSubjects in interface IResourceNodepublic java.util.Map<IResourceNode,java.util.Set<Statement>> getQuadsAsSubject()
IResourceNode
getQuadsAsSubject in interface IResourceNode
public void setSubject(IResourceNode predicate,
INode subject)
Note: this method does not modify the database.
predicate - the predicatesubject - the subject
public void setQuadAsSubject(IResourceNode predicate,
INode object,
IResourceNode graph)
Note: this method does not modify the database.
predicate - the predicateobject - the objectgraph - the graph
public void unsetQuadAsSubject(IResourceNode predicate,
INode object,
IResourceNode graph)
Note: this method does not modify the database.
predicate - the predicateobject - the objectgraph - the graph
public void addObject(IResourceNode predicate,
INode object,
IResourceNode graph)
IResourceNode
addObject in interface IResourceNodepredicate - the predicateobject - the objectgraph - the graph
public void addObject(IResourceNode predicate,
INode object,
IResourceNode graph,
DataConnection conn)
predicate - the predicateobject - the objectgraph - the graphconn - the connection
public void removeObject(IResourceNode predicate,
INode object,
IResourceNode graph)
IResourceNode
removeObject in interface IResourceNodepredicate - the predicateobject - the objectgraph - the graphpublic java.util.Set<Statement> getQuadsAsSubject(IResourceNode predicate)
IResourceNode
getQuadsAsSubject in interface IResourceNodepredicate - the predicate
public Statement getFirstQuadAsSubject(IResourceNode predicate)
IResourceNode
getFirstQuadAsSubject in interface IResourceNodepublic INode getFirstObject(IResourceNode predicate)
IResourceNode
getFirstObject in interface IResourceNodepredicate - the predicate
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||