com.hp.hpl.jena.query
Class DatasetFactory

java.lang.Object
  extended by com.hp.hpl.jena.query.DatasetFactory

public class DatasetFactory
extends java.lang.Object

Make DataSources in various ways

Version:
$Id: DatasetFactory.java,v 1.3 2005/09/22 11:22:55 andy_seaborne Exp $
Author:
Andy Seaborne

Constructor Summary
DatasetFactory()
           
 
Method Summary
static DataSource create()
          Create a Dataset
static Dataset create(java.util.List uriList)
          Create a named graph container of untrusted graphs based on a list of URIs.
static Dataset create(java.util.List uriList, com.hp.hpl.jena.util.FileManager fileManager)
          Create a named graph container of untrusted graphs based on a list of URIs.
static Dataset create(java.util.List uriList, java.util.List namedSourceList)
          Create a named graph container based on two list of URIs.
static Dataset create(java.util.List uriList, java.util.List namedSourceList, com.hp.hpl.jena.util.FileManager fileManager, java.lang.String baseURI)
          Create a named graph container based on two list of URIs.
static com.hp.hpl.jena.query.core.DatasetGraph createDatasetGraph(java.util.List uriList, java.util.List namedSourceList, com.hp.hpl.jena.util.FileManager fileManager, java.lang.String baseURI)
           
static Dataset createNamed(java.util.List 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)
           
static Dataset make(Dataset ds, com.hp.hpl.jena.rdf.model.Model defaultModel)
           
static Dataset merge(java.util.List uriList)
          Create a single, merged graph Dataset from a list of URIs
static Dataset merge(java.util.List uriList, com.hp.hpl.jena.util.FileManager fileManager)
          Create a single, merged graph Dataset from a list of URIs
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasetFactory

public DatasetFactory()
Method Detail

merge

public static Dataset merge(java.util.List uriList)
Create a single, merged graph Dataset from a list of URIs

Parameters:
uriList -
Returns:
Dataset

merge

public static Dataset merge(java.util.List uriList,
                            com.hp.hpl.jena.util.FileManager fileManager)
Create a single, merged graph Dataset from a list of URIs

Parameters:
uriList -
fileManager -
Returns:
Dataset

create

public static DataSource create()
Create a Dataset

Returns:
DataSource

create

public static Dataset create(java.util.List uriList)
Create a named graph container of untrusted graphs based on a list of URIs.

Parameters:
uriList -
Returns:
Dataset

create

public static Dataset create(java.util.List uriList,
                             com.hp.hpl.jena.util.FileManager fileManager)
Create a named graph container of untrusted graphs based on a list of URIs.

Parameters:
uriList -
fileManager -
Returns:
Dataset

createNamed

public static Dataset createNamed(java.util.List namedSourceList,
                                  com.hp.hpl.jena.util.FileManager fileManager)
Create a named graph container of graphs based on a list of URIs.

Parameters:
namedSourceList -
fileManager -
Returns:
Dataset

create

public static Dataset create(java.util.List uriList,
                             java.util.List namedSourceList)
Create a named graph container based on two list of URIs. The first is used to create the background (unnamed graph), the second is used to create the collection of named graphs. (Jena calls graphs "Models" and triples "Statements")

Parameters:
uriList - graphs to be loaded into the unnamed, default graph
namedSourceList - graphs to be atatched as named graphs
Returns:
Dataset

create

public static Dataset create(java.util.List uriList,
                             java.util.List namedSourceList,
                             com.hp.hpl.jena.util.FileManager fileManager,
                             java.lang.String baseURI)
Create a named graph container based on two list of URIs. The first is used to create the background (unnamed graph), the second is used to create the collection of named graphs. (Jena calls graphs "Models" and triples "Statements")

Parameters:
uriList - graphs to be loaded into the unnamed, default graph
namedSourceList - graphs to be atatched as named graphs
fileManager -
baseURI - baseURI for relative URI expansion
Returns:
Dataset

createDatasetGraph

public static com.hp.hpl.jena.query.core.DatasetGraph createDatasetGraph(java.util.List uriList,
                                                                         java.util.List namedSourceList,
                                                                         com.hp.hpl.jena.util.FileManager fileManager,
                                                                         java.lang.String baseURI)

make

public static Dataset make(Dataset ds)

make

public static Dataset make(Dataset ds,
                           com.hp.hpl.jena.rdf.model.Model defaultModel)


Copyright © 2004, 2005 Hewlett-Packard Development Company, LP