-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: LdesDiskWriter processor to persist LDES as set of files on disk (
#83) * feat: LdesDiskWriter processor to persist LDES as set of files on disk * test: Write tests for LdesDiskWriter processor * ci: Run GH Actions using Node instead of Bun * fix(deps): Mark `@esbuild/darwin-arm64` as optional dependency * chore: Extract duplicate code into a function * chore: Change to relative uri's to support any host location after LDES creation * chore(deps): Update package-lock.json
- Loading branch information
Showing
12 changed files
with
3,019 additions
and
1,108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@prefix js: <https://w3id.org/conn/js#>. | ||
@prefix fno: <https://w3id.org/function/ontology#>. | ||
@prefix fnom: <https://w3id.org/function/vocabulary/mapping#>. | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>. | ||
@prefix : <https://w3id.org/conn#>. | ||
@prefix sh: <http://www.w3.org/ns/shacl#>. | ||
|
||
js:LdesDiskWriter a js:JsProcess; | ||
js:file <../lib/ldesDiskWriter.js>; | ||
js:function "ldesDiskWriter"; | ||
js:location <../>; | ||
js:mapping [ | ||
a fno:Mapping; | ||
fno:parameterMapping [ | ||
a fnom:PositionParameterMapping; | ||
fnom:functionParameter "Data Input Channel"; | ||
fnom:implementationParameterPosition "0"^^xsd:int; | ||
], [ | ||
a fnom:PositionParameterMapping; | ||
fnom:functionParameter "Metadata Input Channel"; | ||
fnom:implementationParameterPosition "1"^^xsd:int; | ||
], [ | ||
a fnom:PositionParameterMapping; | ||
fnom:functionParameter "Directory"; | ||
fnom:implementationParameterPosition "2"^^xsd:int; | ||
]; | ||
]. | ||
|
||
[ ] a sh:NodeShape; | ||
sh:targetClass js:LdesDiskWriter; | ||
sh:property [ | ||
sh:class :ReaderChannel; | ||
sh:path js:dataInput; | ||
sh:name "Data Input Channel"; | ||
sh:maxCount 1; | ||
sh:minCount 1; | ||
], [ | ||
sh:class :ReaderChannel; | ||
sh:path js:metadataInput; | ||
sh:name "Metadata Input Channel"; | ||
sh:maxCount 1; | ||
sh:minCount 1; | ||
], [ | ||
sh:datatype xsd:string; | ||
sh:path js:directory; | ||
sh:name "Directory"; | ||
sh:maxCount 1; | ||
sh:minCount 1; | ||
]. |
Oops, something went wrong.