java.lang.Object
org.apache.jena.sparql.util.DatasetUtils
Internal Dataset factory + graph equivalents.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Dataset
Add graphs into an existing Datasetstatic Dataset
Add graphs into a Datasetstatic void
addInGraphs
(DatasetGraph dsg, List<String> uriList, List<String> namedSourceList) Add graphs into a DatasetGraphstatic void
addInGraphs
(DatasetGraph dsg, List<String> uriList, List<String> namedSourceList, String baseURI) Add graphs into a DatasetGraphstatic Dataset
createDataset
(String uri, List<String> namedSourceList) Create a general purpose, in-memory dataset, and load data into the default graph and also some named graphs.static Dataset
createDataset
(String uri, List<String> namedSourceList, String baseURI) Create a general purpose, in-memory dataset, and load data into the default graph and also some named graphs.static Dataset
createDataset
(List<String> uriList, List<String> namedSourceList) Create a general purpose, in-memory dataset, and load some datastatic Dataset
Create a general purpose, in-memory dataset, and load data.static Dataset
createDataset
(DatasetDescription datasetDesc) Create a general purpose, in-memory dataset, and load data.static Dataset
createDataset
(DatasetDescription datasetDesc, String baseURI) Create a general purpose, in-memory dataset, and load data.static DatasetGraph
createDatasetGraph
(String uri, List<String> namedSourceList, String baseURI) static DatasetGraph
static DatasetGraph
createDatasetGraph
(DatasetDescription datasetDesc) Create a general purpose, in-memory dataset, and load data.static DatasetGraph
createDatasetGraph
(DatasetDescription datasetDesc, String baseURI) Create a general purpose, in-memory dataset, and load data.
-
Method Details
-
createDataset
Create a general purpose, in-memory dataset, and load data into the default graph and also some named graphs.- Parameters:
uri
- Default graphnamedSourceList
- Named graphs- Returns:
- Dataset
-
createDataset
Create a general purpose, in-memory dataset, and load data into the default graph and also some named graphs.- Parameters:
uri
- Default graphnamedSourceList
- Named graphsbaseURI
-- Returns:
- Dataset
-
createDataset
Create a general purpose, in-memory dataset, and load some data- Parameters:
uriList
- RDF for the default graphnamedSourceList
- Named graphs.- Returns:
- Dataset
-
createDataset
Create a general purpose, in-memory dataset, and load data.- Parameters:
datasetDesc
-- Returns:
- Dataset
-
createDataset
Create a general purpose, in-memory dataset, and load data.- Parameters:
datasetDesc
-- Returns:
- Dataset
-
createDataset
public static Dataset createDataset(List<String> uriList, List<String> namedSourceList, String baseURI) Create a general purpose, in-memory dataset, and load data.- Parameters:
uriList
- Default graphnamedSourceList
- Named graphsbaseURI
-- Returns:
- Dataset
-
addInGraphs
Add graphs into an existing Dataset -
addInGraphs
public static Dataset addInGraphs(Dataset ds, List<String> uriList, List<String> namedSourceList, String baseURI) Add graphs into a Dataset- Parameters:
ds
-uriList
- Default graphnamedSourceList
- Named graphsbaseURI
-- Returns:
- Dataset, as passed in.
-
createDatasetGraph
Create a general purpose, in-memory dataset, and load data.- Parameters:
datasetDesc
-- Returns:
- Dataset
-
createDatasetGraph
Create a general purpose, in-memory dataset, and load data.- Parameters:
datasetDesc
-baseURI
-- Returns:
- Dataset
-
createDatasetGraph
public static DatasetGraph createDatasetGraph(String uri, List<String> namedSourceList, String baseURI) -
createDatasetGraph
-
addInGraphs
public static void addInGraphs(DatasetGraph dsg, List<String> uriList, List<String> namedSourceList) Add graphs into a DatasetGraph- Parameters:
dsg
-uriList
- Default graphnamedSourceList
- Named graphs
-
addInGraphs
public static void addInGraphs(DatasetGraph dsg, List<String> uriList, List<String> namedSourceList, String baseURI) Add graphs into a DatasetGraph- Parameters:
dsg
-uriList
- Default graphnamedSourceList
- Named graphsbaseURI
-
-