|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.larkc.core.data.LabelledGroupOfStatementsImpl
public class LabelledGroupOfStatementsImpl
Constructor Summary | |
---|---|
LabelledGroupOfStatementsImpl(RdfStoreConnection con)
Constructor |
|
LabelledGroupOfStatementsImpl(org.openrdf.model.URI label,
RdfStoreConnection con,
boolean validate)
Constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
boolean |
excludeStatement(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.URI graph)
Excludes a statement from the labeled group. |
boolean |
excludeStatement(org.openrdf.model.Statement s)
Excludes a statement from the labeled group. |
org.openrdf.model.URI |
getLabel()
Returns the name of the group label. |
RdfStoreConnection |
getRdfStoreConnection()
Gets the RDF store connection to contains the labeled group. |
CloseableIterator<org.openrdf.model.Statement> |
getStatements()
Iterates the statements. |
int |
hashCode()
|
boolean |
includeStatement(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.URI graph)
Includes a new statement to the labeled group |
boolean |
includeStatement(org.openrdf.model.Statement s)
Includes a statement to the labeled group. |
SetOfStatements |
toRDF(SetOfStatements data)
Serializes this object to SetOfStatements. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelledGroupOfStatementsImpl(RdfStoreConnection con)
con
- connection to a local repository where the labelled group of
statements is created.public LabelledGroupOfStatementsImpl(org.openrdf.model.URI label, RdfStoreConnection con, boolean validate)
label
- is explicit named of the labelled group of statements.con
- connection to a local repositoryvalidate
- if this group already existsMethod Detail |
---|
public boolean excludeStatement(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.URI graph)
LabelledGroupOfStatements
excludeStatement
in interface LabelledGroupOfStatements
subj
- of the statement to be excluded (may be null for wildcards)pred
- of the statement to be excluded (may be null for wildcards)obj
- of the statement to be excluded (may be null for wildcards)graph
- of the statement to be excleded (may be null for wildcards)
public boolean excludeStatement(org.openrdf.model.Statement s)
LabelledGroupOfStatements
excludeStatement
in interface LabelledGroupOfStatements
s
- to be excluded
public org.openrdf.model.URI getLabel()
LabelledGroupOfStatements
getLabel
in interface LabelledGroupOfStatements
public RdfStoreConnection getRdfStoreConnection()
LabelledGroupOfStatements
getRdfStoreConnection
in interface LabelledGroupOfStatements
public boolean includeStatement(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.URI graph)
LabelledGroupOfStatements
includeStatement
in interface LabelledGroupOfStatements
subj
- of the statement to be included (may be null for wildcards)pred
- of the statement to be included (may be null for wildcards)obj
- of the statement to be included (may be null for wildcards)graph
- of the statement to be included (may be null for wildcards)
public boolean includeStatement(org.openrdf.model.Statement s)
LabelledGroupOfStatements
includeStatement
in interface LabelledGroupOfStatements
s
- to be added
public CloseableIterator<org.openrdf.model.Statement> getStatements()
SetOfStatements
getStatements
in interface SetOfStatements
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SetOfStatements toRDF(SetOfStatements data)
InformationSet
toRDF
in interface InformationSet
data
- is stream to serialize this object to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |