Package org.apache.clerezza.rdf.core.access

This package provides access to named org.apache.clerezza.rdf.model.GraphS and org.apache.clerezza.rdf.model.MGraphS that may originate from various implementations.

See:
          Description

Interface Summary
LockableMGraph Represents an MGraph that can be locked for reading/writing.
TcProvider A TC (TripleCollection) Provider allows access to and optionally creation of named Graphs and MGraphs (mutable graphs)
WeightedTcProvider This interface is implemented by providers to which TcManagerImpl delegates.
 

Class Summary
GraphServiceFactory  
LockableMGraphWrapper Wrappes an MGraph as a LockableMGraph, this class is used by TcManager to support TcProviders that do not privide LockableMGraph.
MGraphServiceFactory  
SecuredMGraph A SecuredMGraph is a LockableMGraph that wraps a LockableMGraph checking each access for the rights on a the graph for which the uri is passed to the constructor.
SecuredTripleCollection A Secured triple collection wraps a triple collection checking each access for the rights on a the graph for which the uri is passed to the constructor.
TcManager This class implements TcManager, delegating the actual provision and creation of Graphs or MGraphs to registered TcProviders.
TcProviderMultiplexer This makes a set of WeightedTcProvider appear as one TcProvider.
WeightedProviderComparator Compares the WeightedTcManagementProviders, descending for weight and ascending by name
 

Exception Summary
EntityAlreadyExistsException is thrown on an attempt to create an entity with a name which already exists
EntityUndeletableException is thrown on an attempt to delete an entity with a provider that supports the delete operation when the specified entity cannot be deleted
NoSuchEntityException is thrown on an attempt to perform an operation on an entity (i.e.
ReadOnlyException is thrown on an attempt to add or remove triples to a read-only mutable graph
 

Package org.apache.clerezza.rdf.core.access Description

This package provides access to named org.apache.clerezza.rdf.model.GraphS and org.apache.clerezza.rdf.model.MGraphS that may originate from various implementations.

Accessing

If running in a dependency injection system you should get an instance of TcManager by the framework, otherwise use the static method TcManager.getInstance .

Adding a provider

A provider implements WeightedTcProvider.

To work outside a component injection framework it contains a file META-INF/services/org.apache.clerezza.rdf.model.access.WeightedTcProvider containing the name of the implementing class.

To work in a OSGi-DS context the provider register a component exposing org.apache.clerezza.rdf.model.access.WeightedTcProvider as service interface.



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