@zazuko/cube-hierarchy-query
Advanced tools
Changelog
3.0.0
@hydrofoil/shape-to-query
to 0.13. This introduces optimisations which should not be a breaking change but because sparql-http-client
was also updated to v3, the return type of getHierarchy
changed slightly where query
is now string
Changelog
2.2.2
@hydrofoil/shape-to-query
to v0.10
) (closes #34, closes #21)Changelog
2.2.1
414 URI Too Long
resposesh:targetClass
from knocking out hierarchy nodes without targets (fixes #31)Changelog
2.2.0
getHierarchy
: add options to forward to @hydrofoil/shape-to-query
@zazuko/env
to 1.10.1
@hydrofoil/shape-to-query
- allows extending PropertyShape
(see example/hierarchy.ts)Changelog
2.1.1
getHierarchy
called with numerous propertiesChangelog
2.1.0
@zazuko/env
instead of rdf-ext
getHierarchy
to list exact properties to retrieve for all levels (closes #22)Changelog
2.0.0
query
object returned by children
and example
functions is now typed as Describe
which has a slightly different signature from Construct
which was returned previously. (note that the actual query has not changed)getHierarchy
exported by the main module now generates a CONSTRUCT
query which should yield a great improvement in performance in some cases (closes #17)chai-snapshot-matcher
which should have been dev-onlyChangelog
1.0.2
Changelog
1.0.1
getHierarchy
functionChangelog
1.0.0
29db201: The children() method result now returns the children (still as an array of GraphPointer) and the parent (as a GraphPointer).
- const childrenResult = await children(...)
+ const { children: childrenResult } = await children(...)
1d4ac7e: First version
f946c50: Getting entire hierarchy. See example in examples/hierarchy.ts
. Run it like
yarn run example examples/hierarchy.ts \
--cube https://environment.ld.admin.ch/foen/fab_Offentliche_Ausgaben_test3/7
@zazuko/vocabulary-extras
as dependency@tpluscode/rdf-ns-builders
to v2SELECT
subquery@rdfjs/*
and rdf-ext
packages to use the ESM versions