Lens¶
LensView¶
-
class
grapl_analyzerlib.nodes.lens_node.
LensView
(dgraph_client: pydgraph.client.DgraphClient, uid: str, node_key: str, node_type: Optional[str] = None, lens: Optional[str] = None, scope: Optional[List[NodeView]] = None)¶ Predicate
Type
Description
node_key
string
A unique identifier for this node.
lens
string
The name of the lens this node represents.
scope
List[NodeView]
todo: documentation
-
get_lens_name
() → Optional[str]¶
-
get_node_type
() → str¶
-
static
get_or_create
(gclient: grapl_analyzerlib.grapl_client.GraphClient, lens_name: str, lens_type: str) → grapl_analyzerlib.nodes.lens_node.LensView¶
-
get_scope
(match_scope: Optional[grapl_analyzerlib.nodes.any_node.NodeQuery] = None) → List[grapl_analyzerlib.nodes.any_node.NodeView]¶
-
LensQuery¶
-
class
grapl_analyzerlib.nodes.lens_node.
LensQuery
(*args, **kwds)¶ -
with_lens_name
(eq: Optional[StrCmp] = None, contains: Optional[StrCmp] = None, ends_with: Optional[StrCmp] = None) → grapl_analyzerlib.nodes.lens_node.LensQuery¶
-
with_scope
(scope_query: Optional[NodeQuery] = None) → NQ¶
-