public class TDBGraphStore extends Object implements GraphStore
Modifier and Type | Field and Description |
---|---|
protected org.apache.jena.query.Dataset |
fDataset |
static String |
LDP_DATASET_DIR |
Constructor and Description |
---|
TDBGraphStore() |
TDBGraphStore(boolean inMemory) |
TDBGraphStore(org.apache.jena.query.Dataset dataset) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
static String |
appendURISegment(String base,
String append) |
void |
commit() |
org.apache.jena.rdf.model.Model |
construct(String queryString) |
org.apache.jena.rdf.model.Model |
createCompanionGraph(String uri,
String configURI)
Companion graph to the one identified by uri
|
String |
createGraph(String containerURI,
String graphURIPrefix,
String nameHint) |
void |
deleteGraph(String graphURI) |
void |
end() |
org.apache.jena.rdf.model.Model |
getDefaultModel() |
org.apache.jena.rdf.model.Model |
getGraph(String graphURI) |
String |
mintURI(String containerURI,
String graphURIPrefix,
String nameHint) |
boolean |
previouslyUsed(String uri)
Given uri, determine if a resource graph or config graph exists (further testing could be done)
|
void |
putGraph(String graphURI,
org.apache.jena.rdf.model.Model model) |
void |
query(OutputStream outStream,
String queryString) |
void |
query(OutputStream outStream,
String queryString,
String resultsFormat) |
void |
readLock() |
void |
writeLock() |
public static final String LDP_DATASET_DIR
protected org.apache.jena.query.Dataset fDataset
public TDBGraphStore(org.apache.jena.query.Dataset dataset)
public TDBGraphStore()
public TDBGraphStore(boolean inMemory)
public void readLock()
public void writeLock()
public void commit()
public void abort()
public void end()
public org.apache.jena.rdf.model.Model getDefaultModel()
public void putGraph(String graphURI, org.apache.jena.rdf.model.Model model)
putGraph
in interface GraphStore
public org.apache.jena.rdf.model.Model getGraph(String graphURI)
getGraph
in interface GraphStore
public void deleteGraph(String graphURI)
deleteGraph
in interface GraphStore
public String createGraph(String containerURI, String graphURIPrefix, String nameHint)
createGraph
in interface GraphStore
public org.apache.jena.rdf.model.Model createCompanionGraph(String uri, String configURI)
uri
- The primary resource being managedconfigURI
- A side resource, in support of uripublic boolean previouslyUsed(String uri)
uri
- public void query(OutputStream outStream, String queryString)
query
in interface GraphStore
public void query(OutputStream outStream, String queryString, String resultsFormat)
query
in interface GraphStore
public org.apache.jena.rdf.model.Model construct(String queryString)
construct
in interface GraphStore
Copyright © 2018. All rights reserved.