public interface RelationManager extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
add(String graphName,
List<Statement> statements)
Deprecated.
since 5.5, use the Graph API directly
|
void |
clear(String graphName)
Deprecated.
since 5.5, use the Graph API directly
|
Set<Resource> |
getAllResources(Serializable object,
Map<String,Object> context)
Computes all resources corresponding to the given object.
|
Graph |
getGraph(String name,
CoreSession session)
Gets a registered graph by name.
|
Graph |
getGraphByName(String name)
Gets a registered graph by name.
|
List<String> |
getGraphNames()
Gets the list containing the graph names.
|
List<Node> |
getObjects(String graphName,
Node subject,
Node predicate)
Deprecated.
since 5.5, use the Graph API directly
|
List<Node> |
getPredicates(String graphName,
Node subject,
Node object)
Deprecated.
since 5.5, use the Graph API directly
|
Resource |
getResource(String namespace,
Serializable object,
Map<String,Object> context)
Gets a resource given a namespace and a serializable object.
|
Serializable |
getResourceRepresentation(String namespace,
Resource resource,
Map<String,Object> context)
Gets an object representing this resource given a namespace.
|
List<Statement> |
getStatements(String graphName)
Deprecated.
since 5.5, use the Graph API directly
|
List<Statement> |
getStatements(String graphName,
Statement statement)
Deprecated.
since 5.5, use the Graph API directly
|
List<Node> |
getSubjects(String graphName,
Node predicate,
Node object)
Deprecated.
since 5.5, use the Graph API directly
|
Graph |
getTransientGraph(String type)
Gets a transient graph.
|
boolean |
hasResource(String graphName,
Resource resource)
Deprecated.
since 5.5, use the Graph API directly
|
boolean |
hasStatement(String graphName,
Statement statement)
Deprecated.
since 5.5, use the Graph API directly
|
QueryResult |
query(String graphName,
String queryString,
String language,
String baseURI)
Deprecated.
since 5.5, use the Graph API directly
|
boolean |
read(String graphName,
InputStream in,
String lang,
String base)
Deprecated.
since 5.5, use the Graph API directly
|
void |
remove(String graphName,
List<Statement> statements)
Deprecated.
since 5.5, use the Graph API directly
|
Long |
size(String graphName)
Deprecated.
since 5.5, use the Graph API directly
|
boolean |
write(String graphName,
OutputStream out,
String lang,
String base)
Deprecated.
since 5.5, use the Graph API directly
|
Graph getGraph(String name, CoreSession session)
A CoreSession
should be passed to provide a context in which to store relations when using a "core"
graph.
name
- string name of the graph used at registrationsession
- the core sessionRuntimeException
- if the graph is not foundGraph getGraphByName(String name) throws ClientException
name
- string name of the graph used at registrationRuntimeException
- if the graph is not foundClientException
Graph getTransientGraph(String type) throws ClientException
type
- The graph type.ClientException
Resource getResource(String namespace, Serializable object, Map<String,Object> context) throws ClientException
There can be several resources with different namespaces associated to an incoming object. A document can for instance be used to refer to itself as a precise version as well as to the set of all versions.
Context can hold any object useful for the adapters, like a CoreSession
.
ClientException
Set<Resource> getAllResources(Serializable object, Map<String,Object> context) throws ClientException
Context can hold any object useful for the adapters, like a CoreSession
.
ClientException
Serializable getResourceRepresentation(String namespace, Resource resource, Map<String,Object> context) throws ClientException
Context can hold any object useful for the adapters, like a CoreSession
.
ClientException
List<String> getGraphNames() throws ClientException
ClientException
@Deprecated void add(String graphName, List<Statement> statements) throws ClientException
@Deprecated void remove(String graphName, List<Statement> statements) throws ClientException
@Deprecated List<Statement> getStatements(String graphName) throws ClientException
ClientException
Graph.getStatements()
@Deprecated List<Statement> getStatements(String graphName, Statement statement) throws ClientException
ClientException
Graph.getStatements()
@Deprecated List<Node> getSubjects(String graphName, Node predicate, Node object) throws ClientException
@Deprecated List<Node> getPredicates(String graphName, Node subject, Node object) throws ClientException
@Deprecated List<Node> getObjects(String graphName, Node subject, Node predicate) throws ClientException
@Deprecated boolean hasStatement(String graphName, Statement statement) throws ClientException
@Deprecated boolean hasResource(String graphName, Resource resource) throws ClientException
@Deprecated Long size(String graphName) throws ClientException
ClientException
Graph.size()
@Deprecated void clear(String graphName) throws ClientException
ClientException
Graph.clear()
@Deprecated QueryResult query(String graphName, String queryString, String language, String baseURI) throws ClientException
@Deprecated boolean read(String graphName, InputStream in, String lang, String base) throws ClientException
@Deprecated boolean write(String graphName, OutputStream out, String lang, String base) throws ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.