Closed rompetroll closed 6 months ago
usage: mim dataset create a.ds --virtual --transform=$(echo 'function build_entities(params, since) { Emit(NewEntity()); return "5" }' | base64 -w0)
mim dataset create a.ds --virtual --transform=$(echo 'function build_entities(params, since) { Emit(NewEntity()); return "5" }' | base64 -w0)
to verify: mim dataset changes a.ds --json produces
mim dataset changes a.ds --json
[{"id":"@context","namespaces":{"ns0":"http://data.mimiro.io/core/dataset/"}},{"id":"","recorded":0,"deleted":false,"refs":{},"props":{}},{"id":"@continuation","token":"5"}]
usage with publicNamespaces (preferable):
mim dataset create a.ds \ --virtual \ --transform=$(echo 'function build_entities(params, since) { Emit(NewEntity()); return "5" }' | base64 -w0) \ --publicNamespaces=http://data.mimiro.io/core/dataset/,http://www.w3.org/1999/02/22-rdf-syntax-ns\#
Closes #205
usage:
mim dataset create a.ds --virtual --transform=$(echo 'function build_entities(params, since) { Emit(NewEntity()); return "5" }' | base64 -w0)
to verify:
mim dataset changes a.ds --json
producesusage with publicNamespaces (preferable):
Closes #205