Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.hp.hpl.jena.query
Interface DataSource

All Superinterfaces:
  Dataset

    public interface DataSource

extends Dataset

A DataSource is a Dataset that has modification operations.

Author:
  Andy Seaborne

Method Summary
`void` | `addNamedModel(java.lang.String uri, com.hp.hpl.jena.rdf.model.Model model)` Set a named graph.
`void` | `removeNamedModel(java.lang.String uri)` Remove a named graph.
`void` | `replaceNamedModel(java.lang.String uri, com.hp.hpl.jena.rdf.model.Model model)` Change a named graph for another uisng the same name
`void` | `setDefaultModel(com.hp.hpl.jena.rdf.model.Model model)` Set the background graph.

Methods inherited from interface com.hp.hpl.jena.query.Dataset
`asDatasetGraph, containsNamedModel, getDefaultModel, getLock, getNamedModel, listNames`

Method Detail

### setDefaultModel

    void setDefaultModel(com.hp.hpl.jena.rdf.model.Model model)

  Set the background graph. Can be set to null for none.

### addNamedModel

    void addNamedModel(java.lang.String uri,
                       com.hp.hpl.jena.rdf.model.Model model)
                       throws LabelExistsException

  Set a named graph.

  Throws:
    `LabelExistsException`

### removeNamedModel

    void removeNamedModel(java.lang.String uri)

  Remove a named graph.

### replaceNamedModel

    void replaceNamedModel(java.lang.String uri,
                           com.hp.hpl.jena.rdf.model.Model model)

  Change a named graph for another uisng the same name

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP