@blockml/graph 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocks/org/blockml/bml/graph/BuildIndexResult.bml +43 -0
- package/blocks/org/blockml/bml/graph/GraphEdge.bml +49 -0
- package/blocks/org/blockml/bml/graph/GraphIndexOptions.bml +43 -0
- package/blocks/org/blockml/bml/graph/GraphMember.bml +46 -0
- package/blocks/org/blockml/bml/graph/GraphNeighbor.bml +52 -0
- package/blocks/org/blockml/bml/graph/GraphNode.bml +58 -0
- package/blocks/org/blockml/bml/graph/GraphPath.bml +40 -0
- package/blocks/org/blockml/bml/graph/GraphQueryResult.bml +37 -0
- package/blocks/org/blockml/bml/graph/GraphType.bml +33 -0
- package/blocks/org/blockml/bml/graph/IndexStatus.bml +43 -0
- package/blocks/org/blockml/bml/graph/Library.bml +95 -0
- package/blocks/org/blockml/bml/graph/README.bml +36 -0
- package/blocks/org/blockml/bml/graph/capability/Ancestors.bml +40 -0
- package/blocks/org/blockml/bml/graph/capability/BuildIndex.bml +41 -0
- package/blocks/org/blockml/bml/graph/capability/Descendants.bml +43 -0
- package/blocks/org/blockml/bml/graph/capability/Members.bml +37 -0
- package/blocks/org/blockml/bml/graph/capability/Neighbors.bml +53 -0
- package/blocks/org/blockml/bml/graph/capability/OpenIndex.bml +40 -0
- package/blocks/org/blockml/bml/graph/capability/Path.bml +43 -0
- package/blocks/org/blockml/bml/graph/capability/Query.bml +43 -0
- package/blocks/org/blockml/bml/graph/capability/RebuildIndex.bml +40 -0
- package/blocks/org/blockml/bml/graph/capability/Schema.bml +37 -0
- package/blocks/org/blockml/bml/graph/capability/UsedBy.bml +52 -0
- package/blocks/org/blockml/bml/graph/capability/Uses.bml +49 -0
- package/blocks/org/blockml/bml/graph/documentation/ArchitectureOverview.bml +39 -0
- package/blocks/org/blockml/bml/graph/documentation/Introduction.bml +37 -0
- package/blocks/org/blockml/bml/graph/documentation/LayerSeparation.bml +39 -0
- package/blocks/org/blockml/bml/graph/documentation/PackageOwnership.bml +36 -0
- package/blocks/org/blockml/bml/graph/documentation/PublicApi.bml +44 -0
- package/blocks/org/blockml/bml/graph/documentation/ScopeExclusions.bml +40 -0
- package/blocks/org/blockml/bml/graph/documentation/V1Scope.bml +41 -0
- package/dist/fingerprint.d.ts +27 -0
- package/dist/fingerprint.d.ts.map +1 -0
- package/dist/fingerprint.js +146 -0
- package/dist/fingerprint.js.map +1 -0
- package/dist/graph-index.d.ts +23 -0
- package/dist/graph-index.d.ts.map +1 -0
- package/dist/graph-index.js +49 -0
- package/dist/graph-index.js.map +1 -0
- package/dist/graph-lock.d.ts +6 -0
- package/dist/graph-lock.d.ts.map +1 -0
- package/dist/graph-lock.js +106 -0
- package/dist/graph-lock.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +159 -0
- package/dist/index.js.map +1 -0
- package/dist/ladybug-store.d.ts +19 -0
- package/dist/ladybug-store.d.ts.map +1 -0
- package/dist/ladybug-store.js +133 -0
- package/dist/ladybug-store.js.map +1 -0
- package/dist/mapper.d.ts +40 -0
- package/dist/mapper.d.ts.map +1 -0
- package/dist/mapper.js +245 -0
- package/dist/mapper.js.map +1 -0
- package/dist/operations.d.ts +14 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +375 -0
- package/dist/operations.js.map +1 -0
- package/dist/schema.d.ts +8 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +42 -0
- package/dist/schema.js.map +1 -0
- package/dist/store.d.ts +10 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +2 -0
- package/dist/store.js.map +1 -0
- package/dist/type-refs.d.ts +8 -0
- package/dist/type-refs.d.ts.map +1 -0
- package/dist/type-refs.js +48 -0
- package/dist/type-refs.js.map +1 -0
- package/dist/types.d.ts +103 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Capability — BuildIndex
|
|
3
|
+
FQN: org.blockml.bml.graph.capability.BuildIndex
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>BuildIndex</name>
|
|
25
|
+
<type>graphcap:BuildIndex</type>
|
|
26
|
+
<baseType>core:Capability</baseType>
|
|
27
|
+
<is>Build an in-memory graph index from the validate --all corpus</is>
|
|
28
|
+
<documentation>Calls bootstrapFullProjectRegistry, maps authored Block and Member nodes, and creates a Ladybug in-memory store. Does not write to disk.</documentation>
|
|
29
|
+
<references>
|
|
30
|
+
<see type="fwcap:BootstrapFullProjectRegistry" relation="SeeAlso" />
|
|
31
|
+
<see type="graphcap:RebuildIndex" relation="SeeAlso" />
|
|
32
|
+
</references>
|
|
33
|
+
<properties>
|
|
34
|
+
<options type="graph:GraphIndexOptions">
|
|
35
|
+
<documentation>options (optional).</documentation>
|
|
36
|
+
</options>
|
|
37
|
+
<result type="graph:BuildIndexResult">
|
|
38
|
+
<documentation>result (required).</documentation>
|
|
39
|
+
</result>
|
|
40
|
+
</properties>
|
|
41
|
+
</block>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Capability — Descendants
|
|
3
|
+
FQN: org.blockml.bml.graph.capability.Descendants
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>Descendants</name>
|
|
25
|
+
<type>graphcap:Descendants</type>
|
|
26
|
+
<baseType>core:Capability</baseType>
|
|
27
|
+
<is>Inverse BASE_TYPE walk</is>
|
|
28
|
+
<documentation>Only BASE_TYPE. Default depth 16.</documentation>
|
|
29
|
+
<references>
|
|
30
|
+
<see type="graphcap:Ancestors" relation="SeeAlso" />
|
|
31
|
+
</references>
|
|
32
|
+
<properties>
|
|
33
|
+
<fqn type="type:Text">
|
|
34
|
+
<documentation>Block FQN. (required)</documentation>
|
|
35
|
+
</fqn>
|
|
36
|
+
<depth type="type:Integer">
|
|
37
|
+
<documentation>Max hops (optional).</documentation>
|
|
38
|
+
</depth>
|
|
39
|
+
<nodes type="graph:GraphNode[]">
|
|
40
|
+
<documentation>Descendant blocks. (required)</documentation>
|
|
41
|
+
</nodes>
|
|
42
|
+
</properties>
|
|
43
|
+
</block>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Capability — Members
|
|
3
|
+
FQN: org.blockml.bml.graph.capability.Members
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>Members</name>
|
|
25
|
+
<type>graphcap:Members</type>
|
|
26
|
+
<baseType>core:Capability</baseType>
|
|
27
|
+
<is>Authored members plus inherited view</is>
|
|
28
|
+
<documentation>HAS_MEMBER on the block plus BASE_TYPE ancestors and CONTRACT owners. inheritedFrom is set for inherited members; those edges are not stored on the child. BASE_TYPE is the resolved parent only — generic arguments on baseType are not ancestors. SubBlock members are not listed on the parent.</documentation>
|
|
29
|
+
<properties>
|
|
30
|
+
<fqn type="type:Text">
|
|
31
|
+
<documentation>Block FQN. (required)</documentation>
|
|
32
|
+
</fqn>
|
|
33
|
+
<members type="graph:GraphMember[]">
|
|
34
|
+
<documentation>Members. (required)</documentation>
|
|
35
|
+
</members>
|
|
36
|
+
</properties>
|
|
37
|
+
</block>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Capability — Neighbors
|
|
3
|
+
FQN: org.blockml.bml.graph.capability.Neighbors
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>Neighbors</name>
|
|
25
|
+
<type>graphcap:Neighbors</type>
|
|
26
|
+
<baseType>core:Capability</baseType>
|
|
27
|
+
<is>Union of uses and usedBy</is>
|
|
28
|
+
<documentation>Authored environment of a block, both directions. Default depth 1. depth n is an undirected walk of n hops. CLI --origin, --relation, and --limit filter the result list.</documentation>
|
|
29
|
+
<references>
|
|
30
|
+
<see type="graphcap:Uses" relation="SeeAlso" />
|
|
31
|
+
<see type="graphcap:UsedBy" relation="SeeAlso" />
|
|
32
|
+
</references>
|
|
33
|
+
<properties>
|
|
34
|
+
<fqn type="type:Text">
|
|
35
|
+
<documentation>Block FQN. (required)</documentation>
|
|
36
|
+
</fqn>
|
|
37
|
+
<depth type="type:Integer">
|
|
38
|
+
<documentation>Undirected hops. Default 1. (optional)</documentation>
|
|
39
|
+
</depth>
|
|
40
|
+
<origin type="type:Text">
|
|
41
|
+
<documentation>Keep neighbors whose node.origin is listed. Comma-separated. (optional)</documentation>
|
|
42
|
+
</origin>
|
|
43
|
+
<relation type="type:Text">
|
|
44
|
+
<documentation>Keep neighbors whose relation is listed. Comma-separated. (optional)</documentation>
|
|
45
|
+
</relation>
|
|
46
|
+
<limit type="type:Integer">
|
|
47
|
+
<documentation>Max neighbors after filters. (optional)</documentation>
|
|
48
|
+
</limit>
|
|
49
|
+
<neighbors type="graph:GraphNeighbor[]">
|
|
50
|
+
<documentation>Neighbors. (required)</documentation>
|
|
51
|
+
</neighbors>
|
|
52
|
+
</properties>
|
|
53
|
+
</block>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Capability — OpenIndex
|
|
3
|
+
FQN: org.blockml.bml.graph.capability.OpenIndex
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>OpenIndex</name>
|
|
25
|
+
<type>graphcap:OpenIndex</type>
|
|
26
|
+
<baseType>core:Capability</baseType>
|
|
27
|
+
<is>Load a ready graph index or rebuild when missing or stale</is>
|
|
28
|
+
<documentation>Load a ready index or rebuild when missing or stale. The Ladybug database is exclusive; openGraph waits on an index lock if another process holds the graph, then loads or rebuilds. close() releases the lock.</documentation>
|
|
29
|
+
<references>
|
|
30
|
+
<see type="graphcap:RebuildIndex" relation="SeeAlso" />
|
|
31
|
+
</references>
|
|
32
|
+
<properties>
|
|
33
|
+
<options type="graph:GraphIndexOptions">
|
|
34
|
+
<documentation>options (optional).</documentation>
|
|
35
|
+
</options>
|
|
36
|
+
<result type="graph:BuildIndexResult">
|
|
37
|
+
<documentation>result (required).</documentation>
|
|
38
|
+
</result>
|
|
39
|
+
</properties>
|
|
40
|
+
</block>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Capability — Path
|
|
3
|
+
FQN: org.blockml.bml.graph.capability.Path
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>Path</name>
|
|
25
|
+
<type>graphcap:Path</type>
|
|
26
|
+
<baseType>core:Capability</baseType>
|
|
27
|
+
<is>Shortest authored path between two blocks</is>
|
|
28
|
+
<documentation>Walks outgoing authored edges only (the same direction as uses), including HAS_MEMBER and MEMBER_TYPE so provenance is preserved. Incoming edges are used-by, not path. Each hop is a GraphNeighbor with direction outgoing.</documentation>
|
|
29
|
+
<properties>
|
|
30
|
+
<from type="type:Text">
|
|
31
|
+
<documentation>Start FQN. (required)</documentation>
|
|
32
|
+
</from>
|
|
33
|
+
<to type="type:Text">
|
|
34
|
+
<documentation>End FQN. (required)</documentation>
|
|
35
|
+
</to>
|
|
36
|
+
<depth type="type:Integer">
|
|
37
|
+
<documentation>Max hops (optional).</documentation>
|
|
38
|
+
</depth>
|
|
39
|
+
<path type="graph:GraphPath">
|
|
40
|
+
<documentation>Path or absent. (optional)</documentation>
|
|
41
|
+
</path>
|
|
42
|
+
</properties>
|
|
43
|
+
</block>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Capability — Query
|
|
3
|
+
FQN: org.blockml.bml.graph.capability.Query
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>Query</name>
|
|
25
|
+
<type>graphcap:Query</type>
|
|
26
|
+
<baseType>core:Capability</baseType>
|
|
27
|
+
<is>Cypher escape hatch over the authored graph</is>
|
|
28
|
+
<documentation>Executes parameterized Cypher against the Ladybug store. Engine types are not part of the public API. Call schema() first: Ladybug is a Cypher subset — no type(), no shortestPath(). Example is on GraphSchema.example.</documentation>
|
|
29
|
+
<references>
|
|
30
|
+
<see type="graphcap:Schema" relation="SeeAlso" />
|
|
31
|
+
</references>
|
|
32
|
+
<properties>
|
|
33
|
+
<cypher type="type:Text">
|
|
34
|
+
<documentation>Cypher statement. (required)</documentation>
|
|
35
|
+
</cypher>
|
|
36
|
+
<params type="type:Text">
|
|
37
|
+
<documentation>JSON parameters (optional).</documentation>
|
|
38
|
+
</params>
|
|
39
|
+
<result type="graph:GraphQueryResult">
|
|
40
|
+
<documentation>Tabular result. (required)</documentation>
|
|
41
|
+
</result>
|
|
42
|
+
</properties>
|
|
43
|
+
</block>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Capability — RebuildIndex
|
|
3
|
+
FQN: org.blockml.bml.graph.capability.RebuildIndex
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>RebuildIndex</name>
|
|
25
|
+
<type>graphcap:RebuildIndex</type>
|
|
26
|
+
<baseType>core:Capability</baseType>
|
|
27
|
+
<is>Full rebuild and persist of the graph index</is>
|
|
28
|
+
<documentation>Deletes .blockml/graph/lbug and rebuilds authored nodes and edges, then writes manifest.json. Waits on the same exclusive index lock as OpenIndex so two processes cannot rebuild or query concurrently.</documentation>
|
|
29
|
+
<references>
|
|
30
|
+
<see type="graphcap:BuildIndex" relation="SeeAlso" />
|
|
31
|
+
</references>
|
|
32
|
+
<properties>
|
|
33
|
+
<options type="graph:GraphIndexOptions">
|
|
34
|
+
<documentation>options (optional).</documentation>
|
|
35
|
+
</options>
|
|
36
|
+
<result type="graph:BuildIndexResult">
|
|
37
|
+
<documentation>result (required).</documentation>
|
|
38
|
+
</result>
|
|
39
|
+
</properties>
|
|
40
|
+
</block>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Capability — Schema
|
|
3
|
+
FQN: org.blockml.bml.graph.capability.Schema
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>Schema</name>
|
|
25
|
+
<type>graphcap:Schema</type>
|
|
26
|
+
<baseType>core:Capability</baseType>
|
|
27
|
+
<is>Stable node and relation documentation</is>
|
|
28
|
+
<documentation>Returns node table names, authored relation names, a prose description, and a Ladybug Cypher example. Description names the supported subset (MATCH/WHERE/RETURN/ORDER BY/LIMIT, named relations, $params) and what is missing (type(), shortestPath()).</documentation>
|
|
29
|
+
<properties>
|
|
30
|
+
<schema type="type:Text">
|
|
31
|
+
<documentation>Schema description. (required)</documentation>
|
|
32
|
+
</schema>
|
|
33
|
+
<example type="type:Text">
|
|
34
|
+
<documentation>Minimal working Cypher. (required)</documentation>
|
|
35
|
+
</example>
|
|
36
|
+
</properties>
|
|
37
|
+
</block>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Capability — UsedBy
|
|
3
|
+
FQN: org.blockml.bml.graph.capability.UsedBy
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>UsedBy</name>
|
|
25
|
+
<type>graphcap:UsedBy</type>
|
|
26
|
+
<baseType>core:Capability</baseType>
|
|
27
|
+
<is>Incoming authored block-level references</is>
|
|
28
|
+
<documentation>Inverse of Uses. Default depth 1. depth n walks n incoming hops; further hops set GraphNeighbor.source. CLI --origin, --relation, and --limit filter the result list (comma-separated origin/relation; limit is a cap after filtering).</documentation>
|
|
29
|
+
<references>
|
|
30
|
+
<see type="graphcap:Uses" relation="SeeAlso" />
|
|
31
|
+
</references>
|
|
32
|
+
<properties>
|
|
33
|
+
<fqn type="type:Text">
|
|
34
|
+
<documentation>Block FQN. (required)</documentation>
|
|
35
|
+
</fqn>
|
|
36
|
+
<depth type="type:Integer">
|
|
37
|
+
<documentation>Incoming hops. Default 1. (optional)</documentation>
|
|
38
|
+
</depth>
|
|
39
|
+
<origin type="type:Text">
|
|
40
|
+
<documentation>Keep neighbors whose node.origin is one of workspace, dependency, unresolved. Comma-separated. (optional)</documentation>
|
|
41
|
+
</origin>
|
|
42
|
+
<relation type="type:Text">
|
|
43
|
+
<documentation>Keep neighbors whose relation is listed. Comma-separated GraphRelation names. (optional)</documentation>
|
|
44
|
+
</relation>
|
|
45
|
+
<limit type="type:Integer">
|
|
46
|
+
<documentation>Max neighbors after filters. (optional)</documentation>
|
|
47
|
+
</limit>
|
|
48
|
+
<neighbors type="graph:GraphNeighbor[]">
|
|
49
|
+
<documentation>Incoming neighbors. (required)</documentation>
|
|
50
|
+
</neighbors>
|
|
51
|
+
</properties>
|
|
52
|
+
</block>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Capability — Uses
|
|
3
|
+
FQN: org.blockml.bml.graph.capability.Uses
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>Uses</name>
|
|
25
|
+
<type>graphcap:Uses</type>
|
|
26
|
+
<baseType>core:Capability</baseType>
|
|
27
|
+
<is>Outgoing authored block-level references</is>
|
|
28
|
+
<documentation>Default depth 1 is one hop: BASE_TYPE, CONTRACT, HAS_SUBBLOCK plus types of authored members. via names the member. depth n walks n outgoing hops; further hops set GraphNeighbor.source to the block that owns the edge. CLI --origin, --relation, and --limit filter the result list.</documentation>
|
|
29
|
+
<properties>
|
|
30
|
+
<fqn type="type:Text">
|
|
31
|
+
<documentation>Block FQN. (required)</documentation>
|
|
32
|
+
</fqn>
|
|
33
|
+
<depth type="type:Integer">
|
|
34
|
+
<documentation>Outgoing hops. Default 1. (optional)</documentation>
|
|
35
|
+
</depth>
|
|
36
|
+
<origin type="type:Text">
|
|
37
|
+
<documentation>Keep neighbors whose node.origin is listed. Comma-separated. (optional)</documentation>
|
|
38
|
+
</origin>
|
|
39
|
+
<relation type="type:Text">
|
|
40
|
+
<documentation>Keep neighbors whose relation is listed. Comma-separated. (optional)</documentation>
|
|
41
|
+
</relation>
|
|
42
|
+
<limit type="type:Integer">
|
|
43
|
+
<documentation>Max neighbors after filters. (optional)</documentation>
|
|
44
|
+
</limit>
|
|
45
|
+
<neighbors type="graph:GraphNeighbor[]">
|
|
46
|
+
<documentation>Outgoing neighbors. (required)</documentation>
|
|
47
|
+
</neighbors>
|
|
48
|
+
</properties>
|
|
49
|
+
</block>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Documentation — ArchitectureOverview
|
|
3
|
+
FQN: org.blockml.bml.graph.documentation.ArchitectureOverview
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>ArchitectureOverview</name>
|
|
25
|
+
<type>graphdocumentation:ArchitectureOverview</type>
|
|
26
|
+
<baseType>core:Documentation</baseType>
|
|
27
|
+
<is>Corpus to index to Graph API</is>
|
|
28
|
+
<documentation>BML files → bootstrapFullProjectRegistry → TypeRegistry → authored Block/Member nodes and edges → Ladybug store → .blockml/graph/ cache → Graph API.
|
|
29
|
+
|
|
30
|
+
Graph corpus == validate --all corpus. Index is a derived cache; BML remains source of truth.
|
|
31
|
+
|
|
32
|
+
Only authored edges are stored. Transitive relations are computed by traversals.
|
|
33
|
+
BASE_TYPE is the resolved parent Block, not generic arguments on the baseType expression. Generic arguments may appear as HAS_SUBBLOCK when they are nested SubBlocks.
|
|
34
|
+
Persistence: .blockml/graph/lbug plus manifest.json (package.json/lockfile hashes, indexed file mtimes). Missing or stale index → full rebuild.
|
|
35
|
+
Ladybug is exclusive. openGraph/rebuildIndex take .blockml/graph/index.lock until close() and retry if the database file is locked.</documentation>
|
|
36
|
+
<references>
|
|
37
|
+
<see type="graphdocumentation:V1Scope" relation="ReadNext" />
|
|
38
|
+
</references>
|
|
39
|
+
</block>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Documentation — Introduction
|
|
3
|
+
FQN: org.blockml.bml.graph.documentation.Introduction
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>Introduction</name>
|
|
25
|
+
<type>graphdocumentation:Introduction</type>
|
|
26
|
+
<baseType>core:Documentation</baseType>
|
|
27
|
+
<is>Purpose and scope of the Graph package</is>
|
|
28
|
+
<documentation>The @blockml/graph package provides a local authored structural graph over the effective BML corpus of a BlockML project. The corpus is the same set of documents bootstrapped by blockml validate --all.
|
|
29
|
+
|
|
30
|
+
This library (org.blockml.bml.graph.*) is the SSOT. TypeScript in packages/graph/src/ implements it. LadybugDB is an internal engine and is not part of the public API.
|
|
31
|
+
|
|
32
|
+
Consumers (CLI, agents) call BlockML-owned interfaces only.</documentation>
|
|
33
|
+
<references>
|
|
34
|
+
<see type="graphdocumentation:LayerSeparation" relation="ReadNext" />
|
|
35
|
+
<see type="fwcap:BootstrapFullProjectRegistry" relation="SeeAlso" />
|
|
36
|
+
</references>
|
|
37
|
+
</block>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Documentation — LayerSeparation
|
|
3
|
+
FQN: org.blockml.bml.graph.documentation.LayerSeparation
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>LayerSeparation</name>
|
|
25
|
+
<type>graphdocumentation:LayerSeparation</type>
|
|
26
|
+
<baseType>core:Documentation</baseType>
|
|
27
|
+
<is>Graph vs framework vs parser vs CLI</is>
|
|
28
|
+
<documentation>Layers:
|
|
29
|
+
|
|
30
|
+
org.blockml.bml.graph.* (@blockml/graph) — authored graph mapping, Ladybug index, persistence, semantic API, Cypher query.
|
|
31
|
+
@blockml/framework — Discovery and TypeRegistry bootstrap (bootstrapFullProjectRegistry).
|
|
32
|
+
@blockml/parser / @blockml/bom — Members, TypeExpressions, SourceLocation.
|
|
33
|
+
@blockml/cli — Human and --json CLI over this package.
|
|
34
|
+
|
|
35
|
+
Graph does not parse BML with a second XML/regex path. It does not own a separate corpus.</documentation>
|
|
36
|
+
<references>
|
|
37
|
+
<see type="graphdocumentation:ArchitectureOverview" relation="ReadNext" />
|
|
38
|
+
</references>
|
|
39
|
+
</block>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Graph Documentation — PackageOwnership
|
|
3
|
+
FQN: org.blockml.bml.graph.documentation.PackageOwnership
|
|
4
|
+
-->
|
|
5
|
+
<block
|
|
6
|
+
xmlns="http://blockml.org/bml"
|
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
+
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
+
"
|
|
10
|
+
xmlns:blockml="org.blockml.bml"
|
|
11
|
+
xmlns:bom="org.blockml.bml.bom"
|
|
12
|
+
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
13
|
+
xmlns:bomcommon="org.blockml.bml.bom.common"
|
|
14
|
+
xmlns:bomdoc="org.blockml.bml.bom.document"
|
|
15
|
+
xmlns:core="org.blockml.bml.core"
|
|
16
|
+
xmlns:def="org.blockml.bml.definition"
|
|
17
|
+
xmlns:framework="org.blockml.bml.framework"
|
|
18
|
+
xmlns:fwcap="org.blockml.bml.framework.capability"
|
|
19
|
+
xmlns:graph="org.blockml.bml.graph"
|
|
20
|
+
xmlns:graphcap="org.blockml.bml.graph.capability"
|
|
21
|
+
xmlns:graphdocumentation="org.blockml.bml.graph.documentation"
|
|
22
|
+
xmlns:type="org.blockml.bml.type">
|
|
23
|
+
|
|
24
|
+
<name>PackageOwnership</name>
|
|
25
|
+
<type>graphdocumentation:PackageOwnership</type>
|
|
26
|
+
<baseType>core:Documentation</baseType>
|
|
27
|
+
<is>Toolchain responsibilities for Graph</is>
|
|
28
|
+
<documentation>@blockml/graph — index, persistence, semantic API, query API. Owns this BML library.
|
|
29
|
+
|
|
30
|
+
@blockml/framework — project discovery and TypeRegistry bootstrap (same corpus as validate --all).
|
|
31
|
+
@blockml/cli — blockml graph command host.
|
|
32
|
+
@blockml/bom — BlockDefinition members and SourceLocation.</documentation>
|
|
33
|
+
<references>
|
|
34
|
+
<see type="graphdocumentation:ScopeExclusions" relation="ReadNext" />
|
|
35
|
+
</references>
|
|
36
|
+
</block>
|