Package com.stardog.stark.query
Class Datasets
- java.lang.Object
-
- com.stardog.stark.query.Datasets
-
public final class Datasets extends java.lang.ObjectUtilities for working with
Dataset- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatasets.DatasetImplDefault implementation of aDataset.
-
Field Summary
Fields Modifier and Type Field Description static DatasetALL_LOCALThe query dataset where the default graph is the union of all local (non-virtual) graphs.static DatasetDEFAULTThe default query datasetstatic DatasetEMPTYA Dataset which is empty, that is, it's comprised of zero graphs.static DatasetNO_DATASETConstant for specifying that there is no specific dataset; aQueryshould 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.Builderbuilder()Return a newDatasets.DatasetImpl.Builderbuilder for aDatasetstatic Datasetof(IRI theIRI, IRI... theRest)Create aDatasetwhich consists of the specified default graphsstatic Datasetof(java.lang.Iterable<IRI> theGraphs)Create aDatasetwhich consists of the specified default graphsstatic DatasetofNamed(IRI theIRI, IRI... theRest)Create aDatasetwhich consists of the specified named graphsstatic DatasetofNamed(java.lang.Iterable<IRI> theGraphs)Create aDatasetwhich 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; aQueryshould 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 aDatasetwhich 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 aDatasetwhich consists of the specified default graphs- Parameters:
theGraphs- the default graphs- Returns:
- the `Dataset`
-
ofNamed
public static Dataset ofNamed(IRI theIRI, IRI... theRest)
Create aDatasetwhich 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 aDatasetwhich 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.Builderbuilder for aDataset- Returns:
- the builder
-
-