de.fuberlin.wiwiss.ng4j.sparql
Class NamedGraphDataset

java.lang.Object
  extended by de.fuberlin.wiwiss.ng4j.sparql.NamedGraphDataset
All Implemented Interfaces:
com.hp.hpl.jena.query.Dataset

public class NamedGraphDataset
extends Object
implements com.hp.hpl.jena.query.Dataset

Implementation of ARQ's Dataset interface on top of an NG4J NamedGraphSet


Constructor Summary
NamedGraphDataset(NamedGraphSet baseNamedGraphSet)
          Creates a new instance whose default graph is the merge of all named graphs.
NamedGraphDataset(NamedGraphSet baseNamedGraphSet, Graph defaultGraph)
          Creates a new instance with a given default graph.
NamedGraphDataset(NamedGraphSet baseNamedGraphSet, Node defaultGraphName)
          Creates a new instance where one of the named graph is used as the default graph.
 
Method Summary
 boolean containsNamedModel(String uri)
           
 Model getDefaultModel()
           
 Lock getLock()
          Returns a LockMutex.
 Model getNamedModel(String graphName)
           
 Iterator listNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedGraphDataset

public NamedGraphDataset(NamedGraphSet baseNamedGraphSet)
Creates a new instance whose default graph is the merge of all named graphs.


NamedGraphDataset

public NamedGraphDataset(NamedGraphSet baseNamedGraphSet,
                         Node defaultGraphName)
Creates a new instance where one of the named graph is used as the default graph. The graph must already exist in the NamedGraphSet.


NamedGraphDataset

public NamedGraphDataset(NamedGraphSet baseNamedGraphSet,
                         Graph defaultGraph)
Creates a new instance with a given default graph.

Method Detail

containsNamedModel

public boolean containsNamedModel(String uri)
Specified by:
containsNamedModel in interface com.hp.hpl.jena.query.Dataset

getDefaultModel

public Model getDefaultModel()
Specified by:
getDefaultModel in interface com.hp.hpl.jena.query.Dataset

getNamedModel

public Model getNamedModel(String graphName)
Specified by:
getNamedModel in interface com.hp.hpl.jena.query.Dataset

listNames

public Iterator listNames()
Specified by:
listNames in interface com.hp.hpl.jena.query.Dataset

getLock

public Lock getLock()
Returns a LockMutex. I've no idea if this works or what it is supposed to do.

Specified by:
getLock in interface com.hp.hpl.jena.query.Dataset