|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.query.DatasetFactory
public class DatasetFactory
Make Datasets and DataSources in various ways
Constructor Summary | |
---|---|
DatasetFactory()
|
Method Summary | |
---|---|
static Dataset |
assemble(com.hp.hpl.jena.rdf.model.Model model)
Assembler a dataset from the model |
static Dataset |
assemble(com.hp.hpl.jena.rdf.model.Resource resource)
Assembler a dataset from a resource |
static Dataset |
assemble(String filename)
Assembler a dataset from the model in a file |
static DataSource |
create()
Deprecated. Use createMem |
static DataSource |
create(Dataset dataset)
Create a dataset |
static DataSource |
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,
com.hp.hpl.jena.util.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,
com.hp.hpl.jena.util.FileManager fileManager,
String baseURI)
Create a named graph container based on two list of URIs. |
static DataSource |
create(com.hp.hpl.jena.rdf.model.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,
com.hp.hpl.jena.util.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,
com.hp.hpl.jena.util.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,
com.hp.hpl.jena.util.FileManager fileManager)
Create a named graph container of graphs based on a list of URIs. |
static Dataset |
make(Dataset ds,
com.hp.hpl.jena.rdf.model.Model defaultModel)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatasetFactory()
Method Detail |
---|
public static Dataset createMem()
public static Dataset createMemFixed()
@Deprecated public static DataSource create()
public static DataSource create(com.hp.hpl.jena.rdf.model.Model model)
model
-
public static DataSource create(Dataset dataset)
dataset
-
public static DataSource create(DatasetGraph dataset)
dataset
- DatasetGraph
public static Dataset create(List<String> uriList)
uriList
- URIs merged to form the default dataset
public static Dataset create(String uri)
uri
- URIs merged to form the default dataset
public static Dataset create(List<String> uriList, com.hp.hpl.jena.util.FileManager fileManager)
uriList
- URIs merged to form the default datasetfileManager
-
public static Dataset create(String uri, com.hp.hpl.jena.util.FileManager fileManager)
uri
- graph to be loaded into the unnamed, default graphfileManager
-
public static Dataset createNamed(List<String> namedSourceList, com.hp.hpl.jena.util.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 graphs
public static Dataset create(String uri, List<String> namedSourceList)
uri
- graph to be loaded into the unnamed, default graphnamedSourceList
- graphs to be attached as named graphs
public static Dataset create(String uri, List<String> namedSourceList, com.hp.hpl.jena.util.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 expansion
public static Dataset create(List<String> uriList, List<String> namedSourceList, com.hp.hpl.jena.util.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 expansion
public static Dataset make(Dataset ds, com.hp.hpl.jena.rdf.model.Model defaultModel)
public static Dataset assemble(String filename)
filename
- The filename
public static Dataset assemble(com.hp.hpl.jena.rdf.model.Model model)
model
-
public static Dataset assemble(com.hp.hpl.jena.rdf.model.Resource resource)
resource
- The resource for the dataset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |