Functions for graph analytics in Asami Index graphs
Functions for graph analytics in Asami Index graphs
(entity-node? n)
Returns true if a node represents an entity. No access to the storage type, so look for namespaced keywords.
Returns true if a node represents an entity. No access to the storage type, so look for namespaced keywords.
(subgraph-entities {:keys [spo] :as graph})
Inputs: [{:keys [spo], :as graph} :- GraphType] Returns: [#{s/Any}]
Finds subgraph groups for index graphs. Each subgraph group is a seq of entity nodes for the nodes in a subgraph.
Inputs: [{:keys [spo], :as graph} :- GraphType] Returns: [#{s/Any}] Finds subgraph groups for index graphs. Each subgraph group is a seq of entity nodes for the nodes in a subgraph.
(subgraph-from-node {:keys [spo osp] :as graph} node)
Inputs: [{:keys [spo osp], :as graph} :- GraphType node :- s/Any] Returns: #{s/Any}
Finds a single subgraph for an index graph. Returns all entity IDs that appear in the same subgraph as the provided node.
Inputs: [{:keys [spo osp], :as graph} :- GraphType node :- s/Any] Returns: #{s/Any} Finds a single subgraph for an index graph. Returns all entity IDs that appear in the same subgraph as the provided node.
(subgraphs graph)
Inputs: [graph :- GraphType] Returns: [GraphType]
Returns all subgraphs for a given graph
Inputs: [graph :- GraphType] Returns: [GraphType] Returns all subgraphs for a given graph
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close