org.openanzo.model.proxy
Class NamedGraphWithMetaData<E extends INamedGraph>

java.lang.Object
  extended by org.openanzo.model.proxy.ProxyGraph
      extended by org.openanzo.model.proxy.NamedGraphWithMetaData<E>
Type Parameters:
E - Type of INamedGraphs which this graph builds upon
All Implemented Interfaces:
INamedGraph, INamedGraphWithMetaData, IProxyGraph
Direct Known Subclasses:
NamedGraphBase

public class NamedGraphWithMetaData<E extends INamedGraph>
extends ProxyGraph
implements INamedGraphWithMetaData

This graph is the implementation of INamedGraphWithMetaData that uses 2 INamedGraphs, one for the data graph and one for the metadata graph.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Method Summary
static NamedGraphWithMetaData<INamedGraph> createDefault(org.openrdf.model.URI namedGraphUri, org.openrdf.model.URI metadataGraphUri)
          Create a new NamedGraphWithMetaData built upon 2 NamedGraph graphs
 E getMetaDataGraph()
          Get the MetaDataGraph for the INamedGraph
 org.openrdf.model.URI getNamedGraphUri()
          Get NamedGraph's URI
 E getParentGraph()
          Get the graph to which this proxy is proxing information.
 boolean isClosed()
          Return if graph is closed
 void setNamedGraphUri(org.openrdf.model.URI uri)
          Set NamedGraph's URI
 java.lang.String toString()
           
 
Methods inherited from class org.openanzo.model.proxy.ProxyGraph
add, add, add, clear, close, contains, contains, delete, delete, delete, find, getEventManager, getStatements, getTransactionManager, isEmpty, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openanzo.model.INamedGraph
add, add, add, clear, close, contains, contains, delete, delete, delete, find, getEventManager, getStatements, getTransactionManager, isEmpty, size
 

Method Detail

getParentGraph

public E getParentGraph()
Description copied from interface: IProxyGraph
Get the graph to which this proxy is proxing information.

Specified by:
getParentGraph in interface IProxyGraph
Specified by:
getParentGraph in class ProxyGraph
Returns:
parent graph to which this proxy is proxing information

getMetaDataGraph

public E getMetaDataGraph()
Description copied from interface: INamedGraphWithMetaData
Get the MetaDataGraph for the INamedGraph

Specified by:
getMetaDataGraph in interface INamedGraphWithMetaData
Returns:
MetaDataGraph for the INamedGraph

getNamedGraphUri

public org.openrdf.model.URI getNamedGraphUri()
Description copied from interface: INamedGraph
Get NamedGraph's URI

Specified by:
getNamedGraphUri in interface INamedGraph
Returns:
URI for this grpah

setNamedGraphUri

public void setNamedGraphUri(org.openrdf.model.URI uri)
Description copied from interface: INamedGraph
Set NamedGraph's URI

Specified by:
setNamedGraphUri in interface INamedGraph

createDefault

public static NamedGraphWithMetaData<INamedGraph> createDefault(org.openrdf.model.URI namedGraphUri,
                                                                org.openrdf.model.URI metadataGraphUri)
Create a new NamedGraphWithMetaData built upon 2 NamedGraph graphs

Parameters:
namedGraphUri - URI of namedgraph
metadataGraphUri - URI of metadata graph
Returns:
new NamedGraphWithMetaData built upon 2 NamedGraph graphs

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isClosed

public boolean isClosed()
Description copied from interface: INamedGraph
Return if graph is closed

Specified by:
isClosed in interface INamedGraph
Returns:
true if graph is closed


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