@rdfc/js-runner 2.0.0-alpha.10 → 2.0.0-alpha.11
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/.editorconfig +9 -0
- package/examples/echo/.idea/echo.iml +9 -0
- package/examples/echo/.idea/misc.xml +6 -0
- package/{.idea → examples/echo/.idea}/modules.xml +1 -1
- package/examples/echo/.idea/vcs.xml +7 -0
- package/examples/echo/.swls/config.json +1 -0
- package/examples/echo/index.ttl +3 -0
- package/examples/echo/minimal.ttl +90 -0
- package/examples/echo/shacl.ttl +9 -0
- package/examples/echo/shape.ttl +1339 -0
- package/examples/echo/test.ttl +11 -0
- package/examples/echo/untitled:/types/MyType.ttl +0 -0
- package/file:/home/silvius/Projects/mumo-pipeline/ldes/http_3A_2F_2Fdata.mumo.be_2Fstreams_2Fnodes_2Fdefault/root/index.trig +3 -0
- package/ldes/http_3A_2F_2Fdata.mumo.be_2Fstreams_2Fnodes_2Fdefault/root/index.trig +3 -0
- package/lib/client.js +2 -2
- package/lib/testUtils.d.ts +8 -8
- package/lib/testUtils.js +32 -32
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/minimal.ttl +99 -0
- package/package.json +1 -1
- package/src/client.ts +15 -15
- package/src/testUtils.ts +140 -140
- package/.idea/LNKD.tech Editor.xml +0 -194
- package/.idea/codeStyles/Project.xml +0 -52
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/js-runner.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/dist/args.d.ts +0 -4
- package/dist/args.js +0 -58
- package/dist/connectors/file.d.ts +0 -15
- package/dist/connectors/file.js +0 -89
- package/dist/connectors/http.d.ts +0 -14
- package/dist/connectors/http.js +0 -82
- package/dist/connectors/kafka.d.ts +0 -48
- package/dist/connectors/kafka.js +0 -68
- package/dist/connectors/ws.d.ts +0 -10
- package/dist/connectors/ws.js +0 -72
- package/dist/connectors.d.ts +0 -73
- package/dist/connectors.js +0 -168
- package/dist/index.cjs +0 -732
- package/dist/index.d.ts +0 -42
- package/dist/index.js +0 -83
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/util.d.ts +0 -71
- package/dist/util.js +0 -92
package/.editorconfig
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ProjectModuleManager">
|
|
4
4
|
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/echo.iml" filepath="$PROJECT_DIR$/.idea/echo.iml" />
|
|
6
6
|
</modules>
|
|
7
7
|
</component>
|
|
8
8
|
</project>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "disabled": ["shapes"] }
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@prefix rdfc: <https://w3id.org/rdf-connect#>.
|
|
2
|
+
@prefix prov: <http://www.w3.org/ns/prov#>.
|
|
3
|
+
@prefix sds: <https://w3id.org/sds#>.
|
|
4
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
|
|
5
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#>.
|
|
6
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
|
|
7
|
+
@prefix sh: <http://www.w3.org/ns/shacl#>.
|
|
8
|
+
|
|
9
|
+
############################################################
|
|
10
|
+
# General statements #
|
|
11
|
+
############################################################
|
|
12
|
+
# sds:Activity is a prov:Activity
|
|
13
|
+
sds:Activity rdfs:subClassOf prov:Activity.
|
|
14
|
+
|
|
15
|
+
# rdfc:Processor too
|
|
16
|
+
rdfc:Processor rdfs:subClassOf sds:Activity.
|
|
17
|
+
|
|
18
|
+
# sds:implementationOf is subClassOf
|
|
19
|
+
sds:implementationOf rdfs:subPropertyOf rdfs:subClassOf.
|
|
20
|
+
|
|
21
|
+
############################################################
|
|
22
|
+
# Javascript statements #
|
|
23
|
+
############################################################
|
|
24
|
+
# specialized for js too
|
|
25
|
+
rdfc:jsImplementationOf rdfs:subPropertyOf sds:implementationOf.
|
|
26
|
+
|
|
27
|
+
# A node runner, runs things that are rdfc:jsImplementationOf rdfc:Processor (aka, rdfs:subClassOf prov:Activity)
|
|
28
|
+
rdfc:NodeRunner a rdfc:Runner;
|
|
29
|
+
rdfc:handlesSubjectsOf rdfc:jsImplementationOf;
|
|
30
|
+
rdfc:command "npx js-runner".
|
|
31
|
+
|
|
32
|
+
# Shape that a Js Processor should fulfil;
|
|
33
|
+
[ ] a sh:NodeShape;
|
|
34
|
+
# We target it with jsImplementationOf
|
|
35
|
+
sh:targetSubjectsOf rdfc:jsImplementationOf;
|
|
36
|
+
sh:property [
|
|
37
|
+
sh:path rdfc:entrypoint;
|
|
38
|
+
sh:name "location";
|
|
39
|
+
sh:minCount 1;
|
|
40
|
+
sh:maxCount 1;
|
|
41
|
+
sh:datatype xsd:string;
|
|
42
|
+
], [
|
|
43
|
+
sh:path rdfc:file;
|
|
44
|
+
sh:name "file";
|
|
45
|
+
sh:minCount 1;
|
|
46
|
+
sh:maxCount 1;
|
|
47
|
+
sh:datatype xsd:string;
|
|
48
|
+
], [
|
|
49
|
+
sh:path rdfc:class;
|
|
50
|
+
sh:name "clazz";
|
|
51
|
+
sh:maxCount 1;
|
|
52
|
+
sh:datatype xsd:string;
|
|
53
|
+
].
|
|
54
|
+
|
|
55
|
+
############################################################
|
|
56
|
+
# Processor statements #
|
|
57
|
+
############################################################
|
|
58
|
+
rdfc:FooBarProcessor a owl:Class, rdfs:Class;
|
|
59
|
+
rdfc:jsImplementationOf rdfc:Processor;
|
|
60
|
+
rdfs:label "My Epic FooBar Processor";
|
|
61
|
+
rdfs:description "FooBars everything!";
|
|
62
|
+
rdfc:entrypoint <./>;
|
|
63
|
+
rdfc:file <./lib/processors.js>;
|
|
64
|
+
rdfc:class "FooBarProcessor".
|
|
65
|
+
|
|
66
|
+
[ ] a sh:NodeShape;
|
|
67
|
+
sh:targetClass rdfc:FooBarProcessor;
|
|
68
|
+
sh:property [
|
|
69
|
+
sh:path rdfc:reader;
|
|
70
|
+
sh:name "reader";
|
|
71
|
+
sh:minCount 1;
|
|
72
|
+
sh:maxCount 1;
|
|
73
|
+
sh:class rdfc:Reader;
|
|
74
|
+
].
|
|
75
|
+
|
|
76
|
+
############################################################
|
|
77
|
+
# Pipeline statements #
|
|
78
|
+
############################################################
|
|
79
|
+
<> a rdfc:Pipeline;
|
|
80
|
+
rdfc:consistsOf [
|
|
81
|
+
rdfc:instantiates rdfc:NodeRunner;
|
|
82
|
+
rdfc:processor <foobar>;
|
|
83
|
+
].
|
|
84
|
+
|
|
85
|
+
# <incomingMessages> a rdfc:Reader.
|
|
86
|
+
<incomingMessages> a rdfc:Reader.
|
|
87
|
+
|
|
88
|
+
<fooBar> a rdfc:FooBarProcessor;
|
|
89
|
+
rdfc:reader <incomingMessages>.
|
|
90
|
+
|