com.hp.hpl.jena.sparql.core
Class DatasetDescription

java.lang.Object
  extended by com.hp.hpl.jena.sparql.core.DatasetDescription

public class DatasetDescription
extends Object


Constructor Summary
DatasetDescription()
           
DatasetDescription(List<String> defaultGraphURIs, List<String> namedGraphURIs)
           
 
Method Summary
 void addAllDefaultGraphURIs(Collection<String> uris)
           
 void addAllNamedGraphURIs(Collection<String> uris)
           
 void addDefaultGraphURI(String uri)
           
 void addNamedGraphURI(String uri)
           
static DatasetDescription create(Context context)
          Create a dataset description, given a context.
static DatasetDescription create(List<String> defaultGraphURIs, List<String> namedGraphURIs)
           
static DatasetDescription create(Query query)
          Create a dataset description, given a query.
static DatasetDescription create(Query query, Context context)
          Create a dataset description, given a query and context.
 Dataset createDataset()
          Create a dataset from the description - reads URLs into an in-memory dataset
 DatasetGraph createDatasetGraph()
          Create a DatasetGraph from the description - reads URLs into an in-memory DatasetGraph
 Iterator<String> eachDefaultGraphURI()
           
 Iterator<String> eachNamedGraphURI()
           
 List<String> getDefaultGraphURIs()
           
 List<String> getNamedGraphURIs()
           
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasetDescription

public DatasetDescription()

DatasetDescription

public DatasetDescription(List<String> defaultGraphURIs,
                          List<String> namedGraphURIs)
Method Detail

create

public static DatasetDescription create(List<String> defaultGraphURIs,
                                        List<String> namedGraphURIs)

create

public static DatasetDescription create(Query query)
Create a dataset description, given a query. If the query does not have a dataset description, return null.


create

public static DatasetDescription create(Context context)
Create a dataset description, given a context. If the context does not have a dataset description, return null. The context uses the key ARQConstants.sysDatasetDescription.


create

public static DatasetDescription create(Query query,
                                        Context context)
Create a dataset description, given a query and context. The context overrides the query FROM/FROM NAMED. If neither the context nor query has a dataset description, return null. The context uses the key ARQConstants.sysDatasetDescription.


isEmpty

public boolean isEmpty()

addDefaultGraphURI

public void addDefaultGraphURI(String uri)

addAllDefaultGraphURIs

public void addAllDefaultGraphURIs(Collection<String> uris)

addNamedGraphURI

public void addNamedGraphURI(String uri)

addAllNamedGraphURIs

public void addAllNamedGraphURIs(Collection<String> uris)

getDefaultGraphURIs

public List<String> getDefaultGraphURIs()

getNamedGraphURIs

public List<String> getNamedGraphURIs()

eachDefaultGraphURI

public Iterator<String> eachDefaultGraphURI()

eachNamedGraphURI

public Iterator<String> eachNamedGraphURI()

createDataset

public Dataset createDataset()
Create a dataset from the description - reads URLs into an in-memory dataset


createDatasetGraph

public DatasetGraph createDatasetGraph()
Create a DatasetGraph from the description - reads URLs into an in-memory DatasetGraph



Licenced under the Apache License, Version 2.0