public interface TcProvider
Graph
s and MGraph
s (mutable graphs)Modifier and Type | Method and Description |
---|---|
Graph |
createGraph(UriRef name,
TripleCollection triples)
Creates a
Graph with a specified name |
MGraph |
createMGraph(UriRef name)
Creates an initially empty
MGraph with a specified name |
void |
deleteTripleCollection(UriRef name)
Deletes the
Graph or MGraph of a specified name. |
Graph |
getGraph(UriRef name)
Get a
Graph by its name |
MGraph |
getMGraph(UriRef name)
Get an
MGraph by its name. |
Set<UriRef> |
getNames(Graph graph)
get a set of the names of a
Graph |
TripleCollection |
getTriples(UriRef name)
This method is used to get a
TripleCollection indifferently
whether it's a Graph or an MGraph. |
Set<UriRef> |
listGraphs()
Lists the name of the
Graph s available through this
TcProvider , implementations may take into account the
security context and omit Graph s for which access is not
allowed. |
Set<UriRef> |
listMGraphs()
Lists the name of the
MGraph s available through this
TcProvider , implementations may take into account the
security context and omit MGraph s for which access is not
allowed. |
Set<UriRef> |
listTripleCollections()
Lists the name of the
TripleCollection s available through this
TcProvider indifferently whether they are Graphs or an
MGraphs, implementations may take into account the security context and
omit TripleCollection s for which access is not allowed. |
Graph getGraph(UriRef name) throws NoSuchEntityException
Graph
by its namename
- the name of the GraphGraph
with the specified nameNoSuchEntityException
- if there is no Graph
with the specified nameMGraph getMGraph(UriRef name) throws NoSuchEntityException
MGraph
by its name. The instances
returned in different invocations are equals
.the
- name of the MGraph
MGraph
with the specified nameNoSuchEntityException
- if there is no MGraph
with the specified nameTripleCollection getTriples(UriRef name) throws NoSuchEntityException
TripleCollection
indifferently
whether it's a Graph or an MGraph. If the name
names an
MGraph
the result is the same as when invoking
getMGraph
with that argument, analogously for
Graph
S the method returns an instance equals to what
getGraph
would return.name
- the name of the Graph
or MGraph
Graph
or MGraph
NoSuchEntityException
- if there is no Graph
or MGraph
with the specified nameSet<UriRef> listGraphs()
Graph
s available through this
TcProvider
, implementations may take into account the
security context and omit Graph
s for which access is not
allowed.Graph
sSet<UriRef> listMGraphs()
MGraph
s available through this
TcProvider
, implementations may take into account the
security context and omit MGraph
s for which access is not
allowed.MGraph
sSet<UriRef> listTripleCollections()
TripleCollection
s available through this
TcProvider
indifferently whether they are Graphs or an
MGraphs, implementations may take into account the security context and
omit TripleCollection
s for which access is not allowed.TripleCollection
sMGraph createMGraph(UriRef name) throws UnsupportedOperationException, EntityAlreadyExistsException
MGraph
with a specified namename
- names the new MGraph
MGraph
UnsupportedOperationException
- if this provider doesn't support
creating MGraph
SEntityAlreadyExistsException
- if an MGraph with the specified name
already existsGraph createGraph(UriRef name, TripleCollection triples) throws UnsupportedOperationException, EntityAlreadyExistsException
Graph
with a specified namename
- the name of the Graph
to be createdtriples
- the triples of the new Graph
Graph
UnsupportedOperationException
- if this provider doesn't support
creating Graph
SEntityAlreadyExistsException
- if a Graph with the specified name
already existsvoid deleteTripleCollection(UriRef name) throws UnsupportedOperationException, NoSuchEntityException, EntityUndeletableException
Graph
or MGraph
of a specified name.
If name
references a Graph and the graph has other names, it
will still be available with those other names.name
- the entity to be removedUnsupportedOperationException
- if this provider doesn't support
entities deletion.NoSuchEntityException
- if name
doesn't refer to a
Graph
or an MGraph
.EntityUndeletableException
- if the specified Graph is undeletableCopyright © 2014 The Apache Software Foundation. All Rights Reserved.