|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.larkc.core.query.LocalStoreSPARQLService
eu.larkc.core.data.RdfStoreConnectionImpl
public class RdfStoreConnectionImpl
RdfStoreConnectionImpl is class to implement a connection to local RDF repository.
Constructor Summary | |
---|---|
RdfStoreConnectionImpl(com.ontotext.ordi.tripleset.TConnection con)
Constructor |
Method Summary | |
---|---|
org.openrdf.model.Statement |
addStatement(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.URI graph)
Adds a new statement. |
org.openrdf.model.Statement |
addStatement(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.URI graph,
org.openrdf.model.URI... label)
Adds a new statement and associated it with a collection of labels. |
boolean |
associateStatements(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.URI graph,
org.openrdf.model.URI... labels)
Associates a statements with a labeled group. |
boolean |
associateStatements(SPARQLQuery query,
org.openrdf.model.URI... ts)
Associates the statements result of SPARQL CONSTRUCT or DESCRIBE query to a labeled group. |
void |
close()
Closes the connection and free all allocated resources. |
LabelledGroupOfStatements |
createLabelledGroupOfStatements()
Creates a handle to a labeled group of statements with random name. |
LabelledGroupOfStatements |
createLabelledGroupOfStatements(org.openrdf.model.URI label)
Creates a handle to a labeled group of statements. |
boolean |
deassociateStatements(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.URI graph,
org.openrdf.model.URI label)
Deassociates one or more statements from a labeled group. |
org.openrdf.model.ValueFactory |
getValueFactory()
Get a factory to create values. |
boolean |
isClosed()
Verifies if the current connection is closed. |
int |
removeStatement(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.URI graph)
Removes statements from the RDF store. |
CloseableIterator<org.openrdf.model.Statement> |
search(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.URI graph,
org.openrdf.model.URI label)
Creates a statement iterator based on simple pattern matching . |
Methods inherited from class eu.larkc.core.query.LocalStoreSPARQLService |
---|
createDataSet, createRdfGraph, executeAsk, executeConstruct, executeSelect |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface eu.larkc.core.data.SPARQLEndpoint |
---|
createDataSet, createRdfGraph, executeAsk, executeConstruct, executeSelect |
Constructor Detail |
---|
public RdfStoreConnectionImpl(com.ontotext.ordi.tripleset.TConnection con)
con
- is local ORDI connectionMethod Detail |
---|
public org.openrdf.model.Statement addStatement(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.URI graph)
RdfStoreConnection
addStatement
in interface RdfStoreConnection
public org.openrdf.model.Statement addStatement(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.URI graph, org.openrdf.model.URI... label)
RdfStoreConnection
addStatement
in interface RdfStoreConnection
public boolean associateStatements(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.URI graph, org.openrdf.model.URI... labels)
RdfStoreConnection
associateStatements
in interface RdfStoreConnection
subj
- is subject of the statement to be associated (may be null)pred
- is predicate of the statement to be associated (may be null)obj
- is object of the statement to be associated (may be null)graph
- is graph of the statement to be associated (may be null)labels
- is label of the group to be associated to
public boolean associateStatements(SPARQLQuery query, org.openrdf.model.URI... ts)
RdfStoreConnection
associateStatements
in interface RdfStoreConnection
query
- is construct or describe SPARQL queryts
- is label of the group
public void close()
RdfStoreConnection
close
in interface RdfStoreConnection
public boolean isClosed()
RdfStoreConnection
isClosed
in interface RdfStoreConnection
public LabelledGroupOfStatements createLabelledGroupOfStatements(org.openrdf.model.URI label)
RdfStoreConnection
createLabelledGroupOfStatements
in interface RdfStoreConnection
label
- to be used as name for the new group
public LabelledGroupOfStatements createLabelledGroupOfStatements()
RdfStoreConnection
createLabelledGroupOfStatements
in interface RdfStoreConnection
public boolean deassociateStatements(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.URI graph, org.openrdf.model.URI label)
RdfStoreConnection
deassociateStatements
in interface RdfStoreConnection
subj
- is subject of the statement to be deassociated (may be null)pred
- is predicate of the statement to be deassociated (may be null)obj
- is object of the statement to be deassociated (may be null)graph
- is graph of the statement to be deassociated (may be null)label
- is label of the statement to be deassociated (may be null)
public org.openrdf.model.ValueFactory getValueFactory()
RdfStoreConnection
getValueFactory
in interface RdfStoreConnection
public int removeStatement(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.URI graph)
RdfStoreConnection
removeStatement
in interface RdfStoreConnection
subj
- is subject of the statement to be removed (may be null)pred
- is predicate of the statement to be removed (may be null)obj
- is object of the statement to be removed (may be null)graph
- is graph of the statement to be removed (may be null)
public CloseableIterator<org.openrdf.model.Statement> search(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.URI graph, org.openrdf.model.URI label)
RdfStoreConnection
search
in interface RdfStoreConnection
subj
- is subject of the statements to be matched (may be null)pred
- is predicate of the statements to be matched (may be null)obj
- is object of the statements to be matched (may be null)graph
- is graph of the statements to be matched (may be null)label
- is label of the statements to be matched (may be null)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |