public class DatasetDescription extends Object
Constructor and Description |
---|
DatasetDescription() |
DatasetDescription(List<String> defaultGraphURIs,
List<String> namedGraphURIs) |
Modifier and Type | Method and Description |
---|---|
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() |
public static DatasetDescription create(List<String> defaultGraphURIs, List<String> namedGraphURIs)
public static DatasetDescription create(Query query)
public static DatasetDescription create(Context context)
ARQConstants.sysDatasetDescription
.public static DatasetDescription create(Query query, Context context)
ARQConstants.sysDatasetDescription
.public boolean isEmpty()
public void addDefaultGraphURI(String uri)
public void addAllDefaultGraphURIs(Collection<String> uris)
public void addNamedGraphURI(String uri)
public void addAllNamedGraphURIs(Collection<String> uris)
public Dataset createDataset()
public DatasetGraph createDatasetGraph()
Licenced under the Apache License, Version 2.0