org.openanzo.model.impl
Class DynamicDataset

java.lang.Object
  extended by org.openanzo.model.impl.ADataset
      extended by org.openanzo.model.impl.Dataset
          extended by org.openanzo.model.impl.DynamicDataset
All Implemented Interfaces:
IContainer, IDataset

public class DynamicDataset
extends Dataset

Extension of Dataset that adds dynamic creation of namedgraphs if they aren't already present.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
DynamicDataset()
          Create a new DynamicDataset
 
Method Summary
 INamedGraph getDefaultNamedGraph(org.openrdf.model.URI uri)
          Get the INamedGraph for the given URI if it is within this dataset's default model
 INamedGraphEventManager getEventManager()
          Return INamedGraphEventManager for this container
 INamedGraph getNamedGraph(org.openrdf.model.URI uri)
          Remove named graph from set of graphs
 
Methods inherited from class org.openanzo.model.impl.Dataset
addDefaultGraphUri, addDefaultNamedGraph, addNamedGraph, addNamedGraphUri, close, containsDefaultNamedGraph, containsNamedGraph, executeQuery, executeQuery, getDefaulNamedGraphsSize, getDefaultNamedGraphs, getNamedGraphs, getNamedGraphsSize, getTransactionManager, removeDefaultGraphUri, removeDefaultNamedGraph, removeNamedGraph, removeNamedGraphUri, setDefaultGraphs, setEventManager, setNamedGraphs, setTransactionManager
 
Methods inherited from class org.openanzo.model.impl.ADataset
add, add, add, clear, clear, connect, contains, contains, delete, delete, delete, find, findAll, getContexts, getStatements, getURI, isClosed, isConnected, isEmpty, isEmpty, setDatasetURI, size, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicDataset

public DynamicDataset()
Create a new DynamicDataset

Method Detail

getDefaultNamedGraph

public INamedGraph getDefaultNamedGraph(org.openrdf.model.URI uri)
Description copied from interface: IDataset
Get the INamedGraph for the given URI if it is within this dataset's default model

Specified by:
getDefaultNamedGraph in interface IDataset
Overrides:
getDefaultNamedGraph in class Dataset
Parameters:
uri - URI of INamedGraph
Returns:
the INamedGraph for the given URI if it is within this dataset's default model

getNamedGraph

public INamedGraph getNamedGraph(org.openrdf.model.URI uri)
Description copied from class: Dataset
Remove named graph from set of graphs

Specified by:
getNamedGraph in interface IDataset
Overrides:
getNamedGraph in class Dataset
Parameters:
uri - of graph to remove
Returns:
the INamedGraph for the given URI if it is within this dataset

getEventManager

public INamedGraphEventManager getEventManager()
Description copied from interface: IContainer
Return INamedGraphEventManager for this container

Specified by:
getEventManager in interface IContainer
Overrides:
getEventManager in class Dataset
Returns:
INamedGraphEventManager for this container


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.