org.apache.clerezza.rdf.simple.storage
Class SimpleTcProvider

java.lang.Object
  extended by org.apache.clerezza.rdf.simple.storage.SimpleTcProvider
All Implemented Interfaces:
org.apache.clerezza.rdf.core.access.TcProvider, org.apache.clerezza.rdf.core.access.WeightedTcProvider

public class SimpleTcProvider
extends Object
implements org.apache.clerezza.rdf.core.access.WeightedTcProvider

Author:
mir

Constructor Summary
SimpleTcProvider()
           
 
Method Summary
 org.apache.clerezza.rdf.core.Graph createGraph(org.apache.clerezza.rdf.core.UriRef name, org.apache.clerezza.rdf.core.TripleCollection triples)
           
 org.apache.clerezza.rdf.core.MGraph createMGraph(org.apache.clerezza.rdf.core.UriRef name)
           
 void deleteTripleCollection(org.apache.clerezza.rdf.core.UriRef name)
           
 org.apache.clerezza.rdf.core.Graph getGraph(org.apache.clerezza.rdf.core.UriRef name)
           
 org.apache.clerezza.rdf.core.MGraph getMGraph(org.apache.clerezza.rdf.core.UriRef name)
           
 Set<org.apache.clerezza.rdf.core.UriRef> getNames(org.apache.clerezza.rdf.core.Graph graph)
           
 org.apache.clerezza.rdf.core.TripleCollection getTriples(org.apache.clerezza.rdf.core.UriRef name)
           
 int getWeight()
           
 Set<org.apache.clerezza.rdf.core.UriRef> listGraphs()
           
 Set<org.apache.clerezza.rdf.core.UriRef> listMGraphs()
           
 Set<org.apache.clerezza.rdf.core.UriRef> listTripleCollections()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTcProvider

public SimpleTcProvider()
Method Detail

createGraph

public org.apache.clerezza.rdf.core.Graph createGraph(org.apache.clerezza.rdf.core.UriRef name,
                                                      org.apache.clerezza.rdf.core.TripleCollection triples)
                                               throws org.apache.clerezza.rdf.core.access.EntityAlreadyExistsException
Specified by:
createGraph in interface org.apache.clerezza.rdf.core.access.TcProvider
Throws:
org.apache.clerezza.rdf.core.access.EntityAlreadyExistsException

createMGraph

public org.apache.clerezza.rdf.core.MGraph createMGraph(org.apache.clerezza.rdf.core.UriRef name)
                                                 throws org.apache.clerezza.rdf.core.access.EntityAlreadyExistsException
Specified by:
createMGraph in interface org.apache.clerezza.rdf.core.access.TcProvider
Throws:
org.apache.clerezza.rdf.core.access.EntityAlreadyExistsException

deleteTripleCollection

public void deleteTripleCollection(org.apache.clerezza.rdf.core.UriRef name)
                            throws org.apache.clerezza.rdf.core.access.NoSuchEntityException,
                                   org.apache.clerezza.rdf.core.access.EntityUndeletableException
Specified by:
deleteTripleCollection in interface org.apache.clerezza.rdf.core.access.TcProvider
Throws:
org.apache.clerezza.rdf.core.access.NoSuchEntityException
org.apache.clerezza.rdf.core.access.EntityUndeletableException

getGraph

public org.apache.clerezza.rdf.core.Graph getGraph(org.apache.clerezza.rdf.core.UriRef name)
                                            throws org.apache.clerezza.rdf.core.access.NoSuchEntityException
Specified by:
getGraph in interface org.apache.clerezza.rdf.core.access.TcProvider
Throws:
org.apache.clerezza.rdf.core.access.NoSuchEntityException

getMGraph

public org.apache.clerezza.rdf.core.MGraph getMGraph(org.apache.clerezza.rdf.core.UriRef name)
                                              throws org.apache.clerezza.rdf.core.access.NoSuchEntityException
Specified by:
getMGraph in interface org.apache.clerezza.rdf.core.access.TcProvider
Throws:
org.apache.clerezza.rdf.core.access.NoSuchEntityException

getNames

public Set<org.apache.clerezza.rdf.core.UriRef> getNames(org.apache.clerezza.rdf.core.Graph graph)
Specified by:
getNames in interface org.apache.clerezza.rdf.core.access.TcProvider

getTriples

public org.apache.clerezza.rdf.core.TripleCollection getTriples(org.apache.clerezza.rdf.core.UriRef name)
                                                         throws org.apache.clerezza.rdf.core.access.NoSuchEntityException
Specified by:
getTriples in interface org.apache.clerezza.rdf.core.access.TcProvider
Throws:
org.apache.clerezza.rdf.core.access.NoSuchEntityException

getWeight

public int getWeight()
Specified by:
getWeight in interface org.apache.clerezza.rdf.core.access.WeightedTcProvider

listGraphs

public Set<org.apache.clerezza.rdf.core.UriRef> listGraphs()
Specified by:
listGraphs in interface org.apache.clerezza.rdf.core.access.TcProvider

listMGraphs

public Set<org.apache.clerezza.rdf.core.UriRef> listMGraphs()
Specified by:
listMGraphs in interface org.apache.clerezza.rdf.core.access.TcProvider

listTripleCollections

public Set<org.apache.clerezza.rdf.core.UriRef> listTripleCollections()
Specified by:
listTripleCollections in interface org.apache.clerezza.rdf.core.access.TcProvider


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.