getMetadata(x0)</code></pre><h4 id="Big-Data"><a class="docs-heading-anchor" href="#Big-Data">Big Data</a><a id="Big-Data-1"></a><a class="docs-heading-anchor-permalink" href="#Big-Data" title="Permalink"></a></h4><h3 id="Factors"><a class="docs-heading-anchor" href="#Factors">Factors</a><a id="Factors-1"></a><a class="docs-heading-anchor-permalink" href="#Factors" title="Permalink"></a></h3><h2 id="Graph-Related-Data"><a class="docs-heading-anchor" href="#Graph-Related-Data">Graph-Related Data</a><a id="Graph-Related-Data-1"></a><a class="docs-heading-anchor-permalink" href="#Graph-Related-Data" title="Permalink"></a></h2><p>DFG can store data in the graph itself (as opposed to inside graph elements). When you retrieve distributed factor graphs from a database, this information is carried along. If you are working with an in-memory graph, the DFG structure contains the graph itself as well as <code>Agent</code> and <code>Graph</code> data.</p><p>Graphs reside inside a hierarchy made up in the following way:</p><ul><li>Agent<ul><li>Metadata</li><li>BlobEntries</li></ul></li><li>Graph<ul><li>Metadata</li><li>BlobEntries</li></ul></li></ul><p>This data can be retrieved with the follow functions:</p><ul><li><a href="../services_ref/#DistributedFactorGraphs.getAgentMetadata-Tuple{AbstractDFG}"><code>getAgentMetadata</code></a></li><li><a href="../services_ref/#DistributedFactorGraphs.getGraphMetadata-Tuple{AbstractDFG}"><code>getGraphMetadata</code></a></li></ul><p>It can be set using the following functions:</p><ul><li><a href="../services_ref/#DistributedFactorGraphs.setAgentMetadata!-Tuple{AbstractDFG, Dict{Symbol, Union{Bool, Float64, Int64, Vector{Bool}, Vector{Float64}, Vector{Int64}, Vector{String}, String}}}"><code>setAgentMetadata!</code></a></li><li><a href="../services_ref/#DistributedFactorGraphs.setGraphMetadata!-Tuple{AbstractDFG, Dict{Symbol, Union{Bool, Float64, Int64, Vector{Bool}, Vector{Float64}, Vector{Int64}, Vector{String}, String}}}"><code>setGraphMetadata!</code></a></li></ul><p>Example of using graph-level data:</p><pre><code class="language-julia hljs">setAgentMetadata!(dfg, Dict(:a => "Hello"))
0 commit comments