public class DatasetFactory extends Object
Constructor and Description |
---|
DatasetFactory() |
Modifier and Type | Method and Description |
---|---|
static Dataset |
assemble(Model model)
Assembler a dataset from the model
|
static Dataset |
assemble(Resource resource)
Assembler a dataset from a resource
|
static Dataset |
assemble(String filename)
Assembler a dataset from the model in a file
|
static Dataset |
assemble(String filename,
String resourceURI)
Assembler a dataset from the model in a file
|
static Dataset |
create()
Deprecated.
Use createMem
|
static Dataset |
create(Dataset dataset)
Create a dataset
|
static Dataset |
create(DatasetGraph dataset)
Wrap a datasetgraph to make a mutable dataset
|
static Dataset |
create(List<String> uriList)
Create a dataset based on a list of URIs : these are merged into the default graph of the dataset.
|
static Dataset |
create(List<String> uriList,
FileManager fileManager)
Create a dataset based on a list of URIs : these are merged into the default graph of the dataset.
|
static Dataset |
create(List<String> uriList,
List<String> namedSourceList)
Create a dataset based on two list of URIs.
|
static Dataset |
create(List<String> uriList,
List<String> namedSourceList,
FileManager fileManager,
String baseURI)
Create a named graph container based on two list of URIs.
|
static Dataset |
create(Model model)
Create a dataset with the given model as the default graph
|
static Dataset |
create(String uri)
Create a dataset with a default graph and no named graphs
|
static Dataset |
create(String uri,
FileManager fileManager)
Create a dataset based on a list of URIs : these are merged into the default graph of the dataset.
|
static Dataset |
create(String uri,
List<String> namedSourceList)
Create a dataset container based on two list of URIs.
|
static Dataset |
create(String uri,
List<String> namedSourceList,
FileManager fileManager,
String baseURI)
Create a named graph container based on two list of URIs.
|
static Dataset |
createMem()
Create an in-memory, modifiable Dataset
|
static Dataset |
createMemFixed()
Create an in-memory, modifiable Dataset.
|
static Dataset |
createNamed(List<String> namedSourceList,
FileManager fileManager)
Create a named graph container of graphs based on a list of URIs.
|
static Dataset |
make(Dataset ds,
Model defaultModel) |
public static Dataset createMem()
public static Dataset createMemFixed()
@Deprecated public static Dataset create()
public static Dataset create(Model model)
model
- public static Dataset create(Dataset dataset)
dataset
- public static Dataset create(DatasetGraph dataset)
dataset
- DatasetGraphpublic static Dataset create(List<String> uriList)
uriList
- URIs merged to form the default datasetpublic static Dataset create(String uri)
uri
- URIs merged to form the default datasetpublic static Dataset create(List<String> uriList, FileManager fileManager)
uriList
- URIs merged to form the default datasetfileManager
- public static Dataset create(String uri, FileManager fileManager)
uri
- graph to be loaded into the unnamed, default graphfileManager
- public static Dataset createNamed(List<String> namedSourceList, FileManager fileManager)
namedSourceList
- fileManager
- public static Dataset create(List<String> uriList, List<String> namedSourceList)
uriList
- graphs to be loaded into the unnamed, default graphnamedSourceList
- graphs to be atatched as named graphspublic static Dataset create(String uri, List<String> namedSourceList)
uri
- graph to be loaded into the unnamed, default graphnamedSourceList
- graphs to be attached as named graphspublic static Dataset create(String uri, List<String> namedSourceList, FileManager fileManager, String baseURI)
uri
- graph to be loaded into the unnamed, default graphnamedSourceList
- graphs to be atatched as named graphsfileManager
- baseURI
- baseURI for relative URI expansionpublic static Dataset create(List<String> uriList, List<String> namedSourceList, FileManager fileManager, String baseURI)
uriList
- graphs to be loaded into the unnamed, default graphnamedSourceList
- graphs to be atatched as named graphsfileManager
- baseURI
- baseURI for relative URI expansionpublic static Dataset assemble(String filename)
filename
- The filenamepublic static Dataset assemble(String filename, String resourceURI)
filename
- The filenameresourceURI
- URI for the dataset to assemblerpublic static Dataset assemble(Model model)
model
- Licenced under the Apache License, Version 2.0