Package com.stardog.stark.query
Class Datasets
- java.lang.Object
-
- com.stardog.stark.query.Datasets
-
public final class Datasets extends java.lang.Object
Utilities for working with
Dataset
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Datasets.DatasetImpl
Default implementation of aDataset
.
-
Field Summary
Fields Modifier and Type Field Description static Dataset
ALL_LOCAL
The query dataset where the default graph is the union of all local (non-virtual) graphs.static Dataset
DEFAULT
The default query datasetstatic Dataset
EMPTY
A Dataset which is empty, that is, it's comprised of zero graphs.static Dataset
NO_DATASET
Constant for specifying that there is no specific dataset; aQuery
should use whatever information is in its from/from named clauses.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Datasets.DatasetImpl.Builder
builder()
Return a newDatasets.DatasetImpl.Builder
builder for aDataset
static Dataset
of(IRI theIRI, IRI... theRest)
Create aDataset
which consists of the specified default graphsstatic Dataset
of(java.lang.Iterable<IRI> theGraphs)
Create aDataset
which consists of the specified default graphsstatic Dataset
ofNamed(IRI theIRI, IRI... theRest)
Create aDataset
which consists of the specified named graphsstatic Dataset
ofNamed(java.lang.Iterable<IRI> theGraphs)
Create aDataset
which consists of the specified named graphs
-
-
-
Field Detail
-
NO_DATASET
public static final Dataset NO_DATASET
Constant for specifying that there is no specific dataset; aQuery
should use whatever information is in its from/from named clauses.
-
EMPTY
public static final Dataset EMPTY
A Dataset which is empty, that is, it's comprised of zero graphs.
-
DEFAULT
public static final Dataset DEFAULT
The default query dataset
-
ALL_LOCAL
public static final Dataset ALL_LOCAL
The query dataset where the default graph is the union of all local (non-virtual) graphs.
-
-
Method Detail
-
of
public static Dataset of(IRI theIRI, IRI... theRest)
Create aDataset
which consists of the specified default graphs- Parameters:
theIRI
- the default graphtheRest
- more default graphs- Returns:
- the `Dataset`
-
of
public static Dataset of(java.lang.Iterable<IRI> theGraphs)
Create aDataset
which consists of the specified default graphs- Parameters:
theGraphs
- the default graphs- Returns:
- the `Dataset`
-
ofNamed
public static Dataset ofNamed(IRI theIRI, IRI... theRest)
Create aDataset
which consists of the specified named graphs- Parameters:
theIRI
- the named graphtheRest
- more named graphs- Returns:
- the `Dataset`
-
ofNamed
public static Dataset ofNamed(java.lang.Iterable<IRI> theGraphs)
Create aDataset
which consists of the specified named graphs- Parameters:
theGraphs
- the named graphs- Returns:
- the `Dataset`
-
builder
public static Datasets.DatasetImpl.Builder builder()
Return a newDatasets.DatasetImpl.Builder
builder for aDataset
- Returns:
- the builder
-
-