|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pelds.store.DbInterface
org.pelds.store.NamedGraphStore
public class NamedGraphStore
Named graph storage, uses NG4J. Provides methods for graph creation, loading, storing, locating
Field Summary | |
---|---|
static java.lang.String |
TABLE_PREFIX
|
Constructor Summary | |
---|---|
NamedGraphStore()
|
Method Summary | |
---|---|
void |
closeGraphSet()
Close NG4Js database connection |
java.util.Collection<java.lang.String> |
findDatasetForResource(java.lang.String resUri)
Find all datasets mentioning either mentioning the given resource as name or as graph identifier. |
de.fuberlin.wiwiss.ng4j.NamedGraphSet |
getGraphSet()
Create a NG4J graph set with the current database connection |
com.hp.hpl.jena.rdf.model.Model |
loadModel(java.lang.String uri)
Retrieves a RDF graph / model from the graph store by the graph name. |
com.hp.hpl.jena.rdf.model.Model |
loadOrCreateModel(java.lang.String uri,
java.util.Collection<java.lang.String> authenticatedIds)
Retrieves a RDF graph / model from the graph store by the graph name. |
void |
saveGraph(java.lang.String uri,
com.hp.hpl.jena.graph.Graph m)
Stores a graph to the database |
Methods inherited from class org.pelds.store.DbInterface |
---|
closeConnection, getConfig, getConnection, setConfig |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TABLE_PREFIX
Constructor Detail |
---|
public NamedGraphStore()
Method Detail |
---|
public de.fuberlin.wiwiss.ng4j.NamedGraphSet getGraphSet()
public com.hp.hpl.jena.rdf.model.Model loadOrCreateModel(java.lang.String uri, java.util.Collection<java.lang.String> authenticatedIds)
uri
- named graph identifier in form of an URIauthenticatedIds
- Web IDs of the authenticated client
public com.hp.hpl.jena.rdf.model.Model loadModel(java.lang.String uri)
uri
- named graph identifier in form of an URI
public void saveGraph(java.lang.String uri, com.hp.hpl.jena.graph.Graph m)
uri
- named graph identifier in form of an URIm
- changed RDF graphpublic void closeGraphSet()
public java.util.Collection<java.lang.String> findDatasetForResource(java.lang.String resUri)
resUri
- a RDF resource URI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |