Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shapify #65

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions configs/ldesify.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,85 @@ js:Ldesify a js:JsProcess;
sh:maxCount 1;
].


js:LdesifySDS a js:JsProcess;
dc:title "Ldesify processor (for sds streams)";
dc:description "";
js:file <../lib/ldesify.js>;
js:function "ldesify_sds";
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 "Data output channel";
fnom:implementationParameterPosition "1"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "State file path";
fnom:implementationParameterPosition "2"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "Source Stream";
fnom:implementationParameterPosition "3"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "Target Stream";
fnom:implementationParameterPosition "4"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "Timestamp Path";
fnom:implementationParameterPosition "5"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "Version Of Path";
fnom:implementationParameterPosition "6"^^xsd:int;
];
].


[ ] a sh:NodeShape;
sh:targetClass js:LdesifySDS;
sh:property [
sh:class :ReaderChannel;
sh:path js:input;
sh:name "Data input channel";
sh:maxCount 1;
sh:minCount 1;
], [
sh:class :WriterChannel;
sh:path js:output;
sh:name "Data output channel";
sh:maxCount 1;
sh:minCount 1;
], [
sh:datatype xsd:string;
sh:path js:statePath;
sh:name "State file path";
sh:maxCount 1;
], [
sh:datatype xsd:iri;
sh:path js:sourceStream;
sh:name "Source Stream";
sh:maxCount 1;
], [
sh:datatype xsd:iri;
sh:path js:targetStream;
sh:name "Target Stream";
sh:minCount 1;
sh:maxCount 1;
], [
sh:datatype xsd:iri;
sh:path js:timestampPath;
sh:name "Timestamp Path";
sh:maxCount 1;
], [
sh:datatype xsd:iri;
sh:path js:versionOfPath;
sh:name "Version Of Path";
sh:maxCount 1;
].
74 changes: 74 additions & 0 deletions configs/shapify.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix sosa: <http://www.w3.org/ns/sosa/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@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#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix dc: <http://purl.org/dc/terms/>.
@prefix rdfl: <https://w3id.org/rdf-lens/ontology#>.

js:Shapify a js:JsProcess;
dc:title "Shapify processor";
dc:description "";
js:file <../lib/shapify.js>;
js:function "shapify";
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 "Data output channel";
fnom:implementationParameterPosition "1"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "Shape";
fnom:implementationParameterPosition "2"^^xsd:int;
];
].

[ ] a sh:NodeShape;
sh:targetClass js:Shape;
sh:property [
sh:datatype xsd:any;
sh:path ( );
sh:name "id";
sh:minCount 1;
sh:maxCount 1;
], [
sh:class rdfl:Context;
sh:path ( );
sh:name "quads";
sh:minCount 1;
sh:maxCount 1;
].

[ ] a sh:NodeShape;
sh:targetClass js:Shapify;
sh:property [
sh:class :ReaderChannel;
sh:path js:input;
sh:name "Data input channel";
sh:maxCount 1;
sh:minCount 1;
], [
sh:class :WriterChannel;
sh:path js:output;
sh:name "Data output channel";
sh:maxCount 1;
sh:minCount 1;
], [
sh:class js:Shape;
sh:path js:shape;
sh:name "Shape";
sh:minCount 1;
sh:maxCount 1;
].

Loading
Loading