RelationQuery

public class RelationQuery

Constructors

RelationQuery

public RelationQuery(SearchClient searchClient, Relation relation)

Methods

getMeta4Relation

public Response getMeta4Relation(String relation, String uri)

Find related objects, return only metadata for related objects, may contain empty nodes if not authorized

Parameters:
  • relation – the relation to find
  • uri – uri of object
Returns:

metadata of relateded objects

getMeta4Relation

public Response getMeta4Relation(String relation, String uri, boolean resolvePath)

Find related objects, return only metadata for related objects, may contain empty nodes if not authorized

Parameters:
  • relation – the relation to find
  • uri – uri of object
  • resolvePath – if path of object should be retrieved
Returns:

metadata of relateded objects

getRelated

public Response getRelated(String relation, String uri)

Find related objects, return relations as SPO (subject predicate object)

Parameters:
  • relation – the relation to find
  • uri – uri of object
Returns:

list of relations

getRelatedAndMeta

public Response getRelatedAndMeta(String relation, String uri)

Find related objects, return metadata for related objects and relations as SPO (subject predicate object) may contain empty nodes if not authorized.

Parameters:
  • relation – the relation to find
  • uri – uri of object
Returns:

metadata and relations

getSid

public String getSid()

setSid

public RelationQuery setSid(String sid)