public class SubjectAreaGraphClient extends Object implements SubjectAreaGraph, ResponseParameterization<Graph>
| Modifier and Type | Field and Description |
|---|---|
protected SubjectAreaRestClient |
client |
| Constructor and Description |
|---|
SubjectAreaGraphClient(SubjectAreaRestClient client) |
| Modifier and Type | Method and Description |
|---|---|
QueryBuilder |
createGraphQuery(NeighborhoodHistoricalFindRequest request) |
Graph |
getGraph(String userId,
String guid,
NeighborhoodHistoricalFindRequest request)
Get the graph of nodes and relationships radiating out from a node.
|
Class<? extends GenericResponse> |
responseType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGraphgetParameterizedType, resultTypeprotected final SubjectAreaRestClient client
public SubjectAreaGraphClient(SubjectAreaRestClient client)
public Class<? extends GenericResponse> responseType()
responseType in interface ResponseParameterization<Graph>public Graph getGraph(String userId, String guid, NeighborhoodHistoricalFindRequest request) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
SubjectAreaGraphThe results are scoped by types of relationships, types of nodes and classifications as well as level.
getGraph in interface SubjectAreaGraphuserId - userId under which the request is performedguid - the starting point of the query.request - NeighborhoodHistoricalFindRequestInvalidParameterException - one of the parameters is null or invalidPropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public QueryBuilder createGraphQuery(NeighborhoodHistoricalFindRequest request)
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.