10 Module tree
(require rdf/core/tree) | package: rdf-core |
The following diagram demonstrates the structure of a graph tree, rather than representing the graph as a simple set of statements it turns the graph into a map of maps indexed initially by subject, then by predicate, and finally objects are collected into a set per statement-predicate path.
ββrootββ ββlimbββ βbranchβ βββββββββββtwigsβββββββββββββ |
ββββββββ |
ββββΆβ sub1 ββΆ ββββββββ |
β ββββββββ ββββΆβ prd1 ββΆ |
β β ββββββββ βββββββββββββββββββββββββββ |
ββββββββ β ββββββββ β ββββββββ βββββββββββββββββββββββββ |
β tree ββββΌβββΆβ sub2 βββΌβββΆβ prd2 ββββββΆββ obj1 ββ obj1 ββ obj1 βββ |
ββββββββ β ββββββββ β ββββββββ βββββββββββββββββββββββββ |
β β ββββββββ βββββββββββββββββββββββββββ |
β ββββββββ ββββΆβ sub3 ββΆ |
ββββΆβ sub3 ββΆ ββββββββ |
ββββββββ |
Tree Module Overview
value
graph-tree-twigs/c : contract?
value
graph-tree-branch/c : contract?
value
graph-tree/c : contract?
procedure
graph : graph?
procedure
statements : statement-set?
procedure
(tree->statements tree) β statement-set?
tree : graph-tree/c