@comunica/actor-query-source-identify-hypermedia-annotate-source 3.2.0
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/LICENSE.txt +22 -0
- package/README.md +41 -0
- package/components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld +194 -0
- package/components/components.jsonld +11 -0
- package/components/context.jsonld +52 -0
- package/lib/ActorQuerySourceIdentifyHypermediaAnnotateSource.d.ts +25 -0
- package/lib/ActorQuerySourceIdentifyHypermediaAnnotateSource.js +29 -0
- package/lib/ActorQuerySourceIdentifyHypermediaAnnotateSource.js.map +1 -0
- package/lib/QuerySourceAddSourceAttribution.d.ts +22 -0
- package/lib/QuerySourceAddSourceAttribution.js +52 -0
- package/lib/QuerySourceAddSourceAttribution.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -0
- package/package.json +51 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2017–now Ruben Taelman, Joachim Van Herwegen
|
|
4
|
+
Comunica Association and Ghent University – imec, Belgium
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Comunica Annotate Source Query Source Identify Hypermedia Actor
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@comunica/actor-query-source-identify-hypermedia-annotate-source)
|
|
4
|
+
|
|
5
|
+
A comunica Annotate Source Query Source Identify Hypermedia Actor. This actor wraps around other hypermedia sources and adds the
|
|
6
|
+
URL from which the bindings are derived to the binding's context.
|
|
7
|
+
|
|
8
|
+
This module is part of the [Comunica framework](https://github.com/comunica/comunica),
|
|
9
|
+
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).
|
|
10
|
+
|
|
11
|
+
[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
$ yarn add @comunica/actor-query-source-identify-hypermedia-annotate-source
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Configure
|
|
20
|
+
|
|
21
|
+
After installing, this package can be added to your engine's configuration as follows:
|
|
22
|
+
```text
|
|
23
|
+
{
|
|
24
|
+
"@context": [
|
|
25
|
+
...
|
|
26
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-source-identify-hypermedia-annotate-source/^1.0.0/components/context.jsonld"
|
|
27
|
+
],
|
|
28
|
+
"actors": [
|
|
29
|
+
...
|
|
30
|
+
{
|
|
31
|
+
"@id": "urn:comunica:default:query-source-identify-hypermedia/actors#annotate-source",
|
|
32
|
+
"@type": "ActorQuerySourceIdentifyHypermediaAnnotateSource"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Config Parameters
|
|
39
|
+
|
|
40
|
+
* `mediatorMergeBindingsContext`: A mediator over the [Merge Bindings Context bus](https://github.com/comunica/comunica/tree/master/packages/bus-merge-bindings-context).
|
|
41
|
+
* `mediatorQuerySourceIdentifyHypermedia`: A mediator over the [Query Source Identify Hypermedia bus](https://github.com/comunica/comunica/tree/master/packages/bus-query-source-identify-hypermedia).
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-source-identify-hypermedia-annotate-source/^3.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^3.0.0/components/context.jsonld",
|
|
5
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-source-identify-hypermedia/^3.0.0/components/context.jsonld"
|
|
6
|
+
],
|
|
7
|
+
"@id": "npmd:@comunica/actor-query-source-identify-hypermedia-annotate-source",
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource",
|
|
11
|
+
"@type": "Class",
|
|
12
|
+
"requireElement": "ActorQuerySourceIdentifyHypermediaAnnotateSource",
|
|
13
|
+
"extends": [
|
|
14
|
+
"cbqsih:components/ActorQuerySourceIdentifyHypermedia.jsonld#ActorQuerySourceIdentifyHypermedia"
|
|
15
|
+
],
|
|
16
|
+
"comment": "A comunica None Query Source Identify Hypermedia Actor.",
|
|
17
|
+
"parameters": [
|
|
18
|
+
{
|
|
19
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_mediatorMergeBindingsContext",
|
|
20
|
+
"range": "cc:components/Mediator.jsonld#Mediator",
|
|
21
|
+
"comment": "A mediator for creating binding context merge handlers"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_mediatorQuerySourceIdentifyHypermedia",
|
|
25
|
+
"range": "cc:components/Mediator.jsonld#Mediator",
|
|
26
|
+
"comment": "A mediator to create the wrapped query source"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_name",
|
|
30
|
+
"range": "xsd:string",
|
|
31
|
+
"default": {
|
|
32
|
+
"@id": "rdf:subject"
|
|
33
|
+
},
|
|
34
|
+
"comment": "The name for this actor."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_bus",
|
|
38
|
+
"range": {
|
|
39
|
+
"@type": "ParameterRangeGenericComponent",
|
|
40
|
+
"component": "cc:components/Bus.jsonld#Bus",
|
|
41
|
+
"genericTypeInstances": [
|
|
42
|
+
{
|
|
43
|
+
"@type": "ParameterRangeGenericComponent",
|
|
44
|
+
"component": "cc:components/Actor.jsonld#Actor",
|
|
45
|
+
"genericTypeInstances": [
|
|
46
|
+
{
|
|
47
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
48
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
52
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
56
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
62
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
66
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
70
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"default": {
|
|
75
|
+
"@id": "cbqsih:components/ActorQuerySourceIdentifyHypermedia.jsonld#ActorQuerySourceIdentifyHypermedia_default_bus",
|
|
76
|
+
"@type": "cc:components/Bus.jsonld#Bus"
|
|
77
|
+
},
|
|
78
|
+
"comment": "The bus this actor subscribes to."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_beforeActors",
|
|
82
|
+
"range": {
|
|
83
|
+
"@type": "ParameterRangeUnion",
|
|
84
|
+
"parameterRangeElements": [
|
|
85
|
+
{
|
|
86
|
+
"@type": "ParameterRangeArray",
|
|
87
|
+
"parameterRangeValue": {
|
|
88
|
+
"@type": "ParameterRangeGenericComponent",
|
|
89
|
+
"component": "cc:components/Actor.jsonld#Actor",
|
|
90
|
+
"genericTypeInstances": [
|
|
91
|
+
{
|
|
92
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
93
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
97
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
101
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"@type": "ParameterRangeUndefined"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"comment": "Actor that must be registered in the bus before this actor."
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"memberFields": [
|
|
115
|
+
{
|
|
116
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource__member_mediatorMergeBindingsContext",
|
|
117
|
+
"memberFieldName": "mediatorMergeBindingsContext",
|
|
118
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource__member_mediatorQuerySourceIdentifyHypermedia",
|
|
122
|
+
"memberFieldName": "mediatorQuerySourceIdentifyHypermedia",
|
|
123
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource__member_constructor",
|
|
127
|
+
"memberFieldName": "constructor"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource__member_testMetadata",
|
|
131
|
+
"memberFieldName": "testMetadata"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource__member_run",
|
|
135
|
+
"memberFieldName": "run"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"constructorArguments": [
|
|
139
|
+
{
|
|
140
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args__constructorArgument",
|
|
141
|
+
"fields": [
|
|
142
|
+
{
|
|
143
|
+
"keyRaw": "mediatorMergeBindingsContext",
|
|
144
|
+
"value": {
|
|
145
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_mediatorMergeBindingsContext"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"keyRaw": "mediatorQuerySourceIdentifyHypermedia",
|
|
150
|
+
"value": {
|
|
151
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_mediatorQuerySourceIdentifyHypermedia"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"keyRaw": "name",
|
|
156
|
+
"value": {
|
|
157
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_name"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"keyRaw": "bus",
|
|
162
|
+
"value": {
|
|
163
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_bus"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"keyRaw": "beforeActors",
|
|
168
|
+
"value": {
|
|
169
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_beforeActors"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#IActorQuerySourceIdentifyHypermediaAnnotateSourceArgs",
|
|
178
|
+
"@type": "AbstractClass",
|
|
179
|
+
"requireElement": "IActorQuerySourceIdentifyHypermediaAnnotateSourceArgs",
|
|
180
|
+
"parameters": [],
|
|
181
|
+
"memberFields": [
|
|
182
|
+
{
|
|
183
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#IActorQuerySourceIdentifyHypermediaAnnotateSourceArgs__member_mediatorMergeBindingsContext",
|
|
184
|
+
"memberFieldName": "mediatorMergeBindingsContext"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#IActorQuerySourceIdentifyHypermediaAnnotateSourceArgs__member_mediatorQuerySourceIdentifyHypermedia",
|
|
188
|
+
"memberFieldName": "mediatorQuerySourceIdentifyHypermedia"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"constructorArguments": []
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-source-identify-hypermedia-annotate-source/^3.0.0/components/context.jsonld"
|
|
4
|
+
],
|
|
5
|
+
"@id": "npmd:@comunica/actor-query-source-identify-hypermedia-annotate-source",
|
|
6
|
+
"@type": "Module",
|
|
7
|
+
"requireName": "@comunica/actor-query-source-identify-hypermedia-annotate-source",
|
|
8
|
+
"import": [
|
|
9
|
+
"caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld"
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^6.0.0/components/context.jsonld",
|
|
4
|
+
{
|
|
5
|
+
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
|
+
"caqsihas": "npmd:@comunica/actor-query-source-identify-hypermedia-annotate-source/^3.0.0/",
|
|
7
|
+
"ActorQuerySourceIdentifyHypermediaAnnotateSource": {
|
|
8
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource",
|
|
9
|
+
"@prefix": true,
|
|
10
|
+
"@context": {
|
|
11
|
+
"args_mediatorMergeBindingsContext": {
|
|
12
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_mediatorMergeBindingsContext"
|
|
13
|
+
},
|
|
14
|
+
"args_mediatorQuerySourceIdentifyHypermedia": {
|
|
15
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_mediatorQuerySourceIdentifyHypermedia"
|
|
16
|
+
},
|
|
17
|
+
"args_name": {
|
|
18
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_name"
|
|
19
|
+
},
|
|
20
|
+
"args_bus": {
|
|
21
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_bus"
|
|
22
|
+
},
|
|
23
|
+
"args_beforeActors": {
|
|
24
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_beforeActors",
|
|
25
|
+
"@container": "@list"
|
|
26
|
+
},
|
|
27
|
+
"mediatorMergeBindingsContext": {
|
|
28
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_mediatorMergeBindingsContext"
|
|
29
|
+
},
|
|
30
|
+
"mediatorQuerySourceIdentifyHypermedia": {
|
|
31
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_mediatorQuerySourceIdentifyHypermedia"
|
|
32
|
+
},
|
|
33
|
+
"name": {
|
|
34
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_name"
|
|
35
|
+
},
|
|
36
|
+
"bus": {
|
|
37
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_bus"
|
|
38
|
+
},
|
|
39
|
+
"beforeActors": {
|
|
40
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#ActorQuerySourceIdentifyHypermediaAnnotateSource_args_beforeActors",
|
|
41
|
+
"@container": "@list"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"IActorQuerySourceIdentifyHypermediaAnnotateSourceArgs": {
|
|
46
|
+
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#IActorQuerySourceIdentifyHypermediaAnnotateSourceArgs",
|
|
47
|
+
"@prefix": true,
|
|
48
|
+
"@context": {}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { MediatorMergeBindingsContext } from '@comunica/bus-merge-bindings-context';
|
|
2
|
+
import type { IActionQuerySourceIdentifyHypermedia, IActorQuerySourceIdentifyHypermediaOutput, IActorQuerySourceIdentifyHypermediaArgs, IActorQuerySourceIdentifyHypermediaTest, MediatorQuerySourceIdentifyHypermedia } from '@comunica/bus-query-source-identify-hypermedia';
|
|
3
|
+
import { ActorQuerySourceIdentifyHypermedia } from '@comunica/bus-query-source-identify-hypermedia';
|
|
4
|
+
import { ActionContextKey } from '@comunica/core';
|
|
5
|
+
/**
|
|
6
|
+
* A comunica None Query Source Identify Hypermedia Actor.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ActorQuerySourceIdentifyHypermediaAnnotateSource extends ActorQuerySourceIdentifyHypermedia {
|
|
9
|
+
readonly mediatorMergeBindingsContext: MediatorMergeBindingsContext;
|
|
10
|
+
readonly mediatorQuerySourceIdentifyHypermedia: MediatorQuerySourceIdentifyHypermedia;
|
|
11
|
+
constructor(args: IActorQuerySourceIdentifyHypermediaAnnotateSourceArgs);
|
|
12
|
+
testMetadata(action: IActionQuerySourceIdentifyHypermedia): Promise<IActorQuerySourceIdentifyHypermediaTest>;
|
|
13
|
+
run(action: IActionQuerySourceIdentifyHypermedia): Promise<IActorQuerySourceIdentifyHypermediaOutput>;
|
|
14
|
+
}
|
|
15
|
+
export interface IActorQuerySourceIdentifyHypermediaAnnotateSourceArgs extends IActorQuerySourceIdentifyHypermediaArgs {
|
|
16
|
+
/**
|
|
17
|
+
* A mediator for creating binding context merge handlers
|
|
18
|
+
*/
|
|
19
|
+
mediatorMergeBindingsContext: MediatorMergeBindingsContext;
|
|
20
|
+
/**
|
|
21
|
+
* A mediator to create the wrapped query source
|
|
22
|
+
*/
|
|
23
|
+
mediatorQuerySourceIdentifyHypermedia: MediatorQuerySourceIdentifyHypermedia;
|
|
24
|
+
}
|
|
25
|
+
export declare const KEY_CONTEXT_WRAPPED: ActionContextKey<boolean>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KEY_CONTEXT_WRAPPED = exports.ActorQuerySourceIdentifyHypermediaAnnotateSource = void 0;
|
|
4
|
+
const bus_query_source_identify_hypermedia_1 = require("@comunica/bus-query-source-identify-hypermedia");
|
|
5
|
+
const core_1 = require("@comunica/core");
|
|
6
|
+
const QuerySourceAddSourceAttribution_1 = require("./QuerySourceAddSourceAttribution");
|
|
7
|
+
/**
|
|
8
|
+
* A comunica None Query Source Identify Hypermedia Actor.
|
|
9
|
+
*/
|
|
10
|
+
class ActorQuerySourceIdentifyHypermediaAnnotateSource extends bus_query_source_identify_hypermedia_1.ActorQuerySourceIdentifyHypermedia {
|
|
11
|
+
constructor(args) {
|
|
12
|
+
super(args, 'file');
|
|
13
|
+
}
|
|
14
|
+
async testMetadata(action) {
|
|
15
|
+
if (action.context.get(exports.KEY_CONTEXT_WRAPPED)) {
|
|
16
|
+
throw new Error('Unable to wrap query source multiple times');
|
|
17
|
+
}
|
|
18
|
+
return { filterFactor: 0 };
|
|
19
|
+
}
|
|
20
|
+
async run(action) {
|
|
21
|
+
const context = action.context.set(exports.KEY_CONTEXT_WRAPPED, true);
|
|
22
|
+
action.context = context;
|
|
23
|
+
const { source, dataset } = await this.mediatorQuerySourceIdentifyHypermedia.mediate(action);
|
|
24
|
+
return { source: new QuerySourceAddSourceAttribution_1.QuerySourceAddSourceAttribution(source), dataset };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.ActorQuerySourceIdentifyHypermediaAnnotateSource = ActorQuerySourceIdentifyHypermediaAnnotateSource;
|
|
28
|
+
exports.KEY_CONTEXT_WRAPPED = new core_1.ActionContextKey('@comunica/actor-query-source-identify-hypermedia-annotate-source:wrapped');
|
|
29
|
+
//# sourceMappingURL=ActorQuerySourceIdentifyHypermediaAnnotateSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActorQuerySourceIdentifyHypermediaAnnotateSource.js","sourceRoot":"","sources":["ActorQuerySourceIdentifyHypermediaAnnotateSource.ts"],"names":[],"mappings":";;;AAQA,yGAAoG;AACpG,yCAAkD;AAClD,uFAAoF;AAEpF;;GAEG;AACH,MAAa,gDAAiD,SAAQ,yEAAkC;IAItG,YAAmB,IAA2D;QAC5E,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACtB,CAAC;IAEM,KAAK,CAAC,YAAY,CACvB,MAA4C;QAE5C,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,2BAAmB,CAAC,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;QAChE,CAAC;QACD,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;IAC7B,CAAC;IAEM,KAAK,CAAC,GAAG,CAAC,MAA4C;QAC3D,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,2BAAmB,EAAE,IAAI,CAAC,CAAC;QAC9D,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QAEzB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,qCAAqC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC7F,OAAO,EAAE,MAAM,EAAE,IAAI,iEAA+B,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IAC1E,CAAC;CACF;AAxBD,4GAwBC;AAaY,QAAA,mBAAmB,GAAG,IAAI,uBAAgB,CACrD,0EAA0E,CAC3E,CAAC","sourcesContent":["import type { MediatorMergeBindingsContext } from '@comunica/bus-merge-bindings-context';\nimport type {\n IActionQuerySourceIdentifyHypermedia,\n IActorQuerySourceIdentifyHypermediaOutput,\n IActorQuerySourceIdentifyHypermediaArgs,\n IActorQuerySourceIdentifyHypermediaTest,\n MediatorQuerySourceIdentifyHypermedia,\n} from '@comunica/bus-query-source-identify-hypermedia';\nimport { ActorQuerySourceIdentifyHypermedia } from '@comunica/bus-query-source-identify-hypermedia';\nimport { ActionContextKey } from '@comunica/core';\nimport { QuerySourceAddSourceAttribution } from './QuerySourceAddSourceAttribution';\n\n/**\n * A comunica None Query Source Identify Hypermedia Actor.\n */\nexport class ActorQuerySourceIdentifyHypermediaAnnotateSource extends ActorQuerySourceIdentifyHypermedia {\n public readonly mediatorMergeBindingsContext: MediatorMergeBindingsContext;\n public readonly mediatorQuerySourceIdentifyHypermedia: MediatorQuerySourceIdentifyHypermedia;\n\n public constructor(args: IActorQuerySourceIdentifyHypermediaAnnotateSourceArgs) {\n super(args, 'file');\n }\n\n public async testMetadata(\n action: IActionQuerySourceIdentifyHypermedia,\n ): Promise<IActorQuerySourceIdentifyHypermediaTest> {\n if (action.context.get(KEY_CONTEXT_WRAPPED)) {\n throw new Error('Unable to wrap query source multiple times');\n }\n return { filterFactor: 0 };\n }\n\n public async run(action: IActionQuerySourceIdentifyHypermedia): Promise<IActorQuerySourceIdentifyHypermediaOutput> {\n const context = action.context.set(KEY_CONTEXT_WRAPPED, true);\n action.context = context;\n\n const { source, dataset } = await this.mediatorQuerySourceIdentifyHypermedia.mediate(action);\n return { source: new QuerySourceAddSourceAttribution(source), dataset };\n }\n}\n\nexport interface IActorQuerySourceIdentifyHypermediaAnnotateSourceArgs extends IActorQuerySourceIdentifyHypermediaArgs {\n /**\n * A mediator for creating binding context merge handlers\n */\n mediatorMergeBindingsContext: MediatorMergeBindingsContext;\n /**\n * A mediator to create the wrapped query source\n */\n mediatorQuerySourceIdentifyHypermedia: MediatorQuerySourceIdentifyHypermedia;\n}\n\nexport const KEY_CONTEXT_WRAPPED = new ActionContextKey<boolean>(\n '@comunica/actor-query-source-identify-hypermedia-annotate-source:wrapped',\n);\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { BindingsStream, FragmentSelectorShape, IActionContext, IQueryBindingsOptions, IQuerySource } from '@comunica/types';
|
|
2
|
+
import type * as RDF from '@rdfjs/types';
|
|
3
|
+
import type { AsyncIterator } from 'asynciterator';
|
|
4
|
+
import type { Algebra } from 'sparqlalgebrajs';
|
|
5
|
+
/**
|
|
6
|
+
* A IQuerySource wrapper that skolemizes outgoing quads and bindings.
|
|
7
|
+
*/
|
|
8
|
+
export declare class QuerySourceAddSourceAttribution implements IQuerySource {
|
|
9
|
+
/**
|
|
10
|
+
* The query source to wrap over.
|
|
11
|
+
*/
|
|
12
|
+
readonly innerSource: IQuerySource;
|
|
13
|
+
constructor(innerSource: IQuerySource);
|
|
14
|
+
getSelectorShape(context: IActionContext): Promise<FragmentSelectorShape>;
|
|
15
|
+
queryBindings(operation: Algebra.Operation, context: IActionContext, options: IQueryBindingsOptions | undefined): BindingsStream;
|
|
16
|
+
addSourceUrlToBindingContext(iterator: BindingsStream): BindingsStream;
|
|
17
|
+
queryBoolean(operation: Algebra.Ask, context: IActionContext): Promise<boolean>;
|
|
18
|
+
queryQuads(operation: Algebra.Operation, context: IActionContext): AsyncIterator<RDF.Quad>;
|
|
19
|
+
queryVoid(operation: Algebra.Update, context: IActionContext): Promise<void>;
|
|
20
|
+
get referenceValue(): string | RDF.Source;
|
|
21
|
+
toString(): string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuerySourceAddSourceAttribution = void 0;
|
|
4
|
+
const bindings_factory_1 = require("@comunica/bindings-factory");
|
|
5
|
+
const context_entries_1 = require("@comunica/context-entries");
|
|
6
|
+
/**
|
|
7
|
+
* A IQuerySource wrapper that skolemizes outgoing quads and bindings.
|
|
8
|
+
*/
|
|
9
|
+
class QuerySourceAddSourceAttribution {
|
|
10
|
+
constructor(innerSource) {
|
|
11
|
+
this.innerSource = innerSource;
|
|
12
|
+
}
|
|
13
|
+
async getSelectorShape(context) {
|
|
14
|
+
return this.innerSource.getSelectorShape(context);
|
|
15
|
+
}
|
|
16
|
+
queryBindings(operation, context, options) {
|
|
17
|
+
return this.addSourceUrlToBindingContext(this.innerSource.queryBindings(operation, context, options));
|
|
18
|
+
}
|
|
19
|
+
addSourceUrlToBindingContext(iterator) {
|
|
20
|
+
const ret = iterator.map((bindings) => {
|
|
21
|
+
if (bindings instanceof bindings_factory_1.Bindings) {
|
|
22
|
+
bindings = bindings.setContextEntry(context_entries_1.KeysMergeBindingsContext.sourcesBinding, [this.innerSource.referenceValue]);
|
|
23
|
+
}
|
|
24
|
+
return bindings;
|
|
25
|
+
});
|
|
26
|
+
function inheritMetadata() {
|
|
27
|
+
iterator.getProperty('metadata', (metadata) => {
|
|
28
|
+
ret.setProperty('metadata', metadata);
|
|
29
|
+
metadata.state.addInvalidateListener(inheritMetadata);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
inheritMetadata();
|
|
33
|
+
return ret;
|
|
34
|
+
}
|
|
35
|
+
queryBoolean(operation, context) {
|
|
36
|
+
return this.innerSource.queryBoolean(operation, context);
|
|
37
|
+
}
|
|
38
|
+
queryQuads(operation, context) {
|
|
39
|
+
return this.innerSource.queryQuads(operation, context);
|
|
40
|
+
}
|
|
41
|
+
queryVoid(operation, context) {
|
|
42
|
+
return this.innerSource.queryVoid(operation, context);
|
|
43
|
+
}
|
|
44
|
+
get referenceValue() {
|
|
45
|
+
return this.innerSource.referenceValue;
|
|
46
|
+
}
|
|
47
|
+
toString() {
|
|
48
|
+
return `${this.innerSource.toString()}`;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.QuerySourceAddSourceAttribution = QuerySourceAddSourceAttribution;
|
|
52
|
+
//# sourceMappingURL=QuerySourceAddSourceAttribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuerySourceAddSourceAttribution.js","sourceRoot":"","sources":["QuerySourceAddSourceAttribution.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AACtD,+DAAqE;AAarE;;GAEG;AACH,MAAa,+BAA+B;IAM1C,YAAmB,WAAyB;QAC1C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAC,OAAuB;QACnD,OAAO,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;IAEM,aAAa,CAClB,SAA4B,EAC5B,OAAuB,EACvB,OAA0C;QAE1C,OAAO,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACxG,CAAC;IAEM,4BAA4B,CAAC,QAAwB;QAC1D,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;YACpC,IAAI,QAAQ,YAAY,2BAAQ,EAAE,CAAC;gBACjC,QAAQ,GAAG,QAAQ,CAAC,eAAe,CACjC,0CAAwB,CAAC,cAAc,EACvC,CAAE,IAAI,CAAC,WAAW,CAAC,cAAc,CAAE,CACpC,CAAC;YACJ,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC,CAAC,CAAC;QAEH,SAAS,eAAe;YACtB,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC,QAA0B,EAAE,EAAE;gBAC9D,GAAG,CAAC,WAAW,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;gBACtC,QAAQ,CAAC,KAAK,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC;YACxD,CAAC,CAAC,CAAC;QACL,CAAC;QACD,eAAe,EAAE,CAAC;QAElB,OAAO,GAAG,CAAC;IACb,CAAC;IAEM,YAAY,CAAC,SAAsB,EAAE,OAAuB;QACjE,OAAO,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAEM,UAAU,CAAC,SAA4B,EAAE,OAAuB;QACrE,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAEM,SAAS,CAAC,SAAyB,EAAE,OAAuB;QACjE,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED,IAAW,cAAc;QACvB,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC;IACzC,CAAC;IAEM,QAAQ;QACb,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC;IAC1C,CAAC;CACF;AA/DD,0EA+DC","sourcesContent":["import { Bindings } from '@comunica/bindings-factory';\nimport { KeysMergeBindingsContext } from '@comunica/context-entries';\nimport type {\n BindingsStream,\n FragmentSelectorShape,\n IActionContext,\n IQueryBindingsOptions,\n IQuerySource,\n MetadataBindings,\n} from '@comunica/types';\nimport type * as RDF from '@rdfjs/types';\nimport type { AsyncIterator } from 'asynciterator';\nimport type { Algebra } from 'sparqlalgebrajs';\n\n/**\n * A IQuerySource wrapper that skolemizes outgoing quads and bindings.\n */\nexport class QuerySourceAddSourceAttribution implements IQuerySource {\n /**\n * The query source to wrap over.\n */\n public readonly innerSource: IQuerySource;\n\n public constructor(innerSource: IQuerySource) {\n this.innerSource = innerSource;\n }\n\n public async getSelectorShape(context: IActionContext): Promise<FragmentSelectorShape> {\n return this.innerSource.getSelectorShape(context);\n }\n\n public queryBindings(\n operation: Algebra.Operation,\n context: IActionContext,\n options: IQueryBindingsOptions | undefined,\n ): BindingsStream {\n return this.addSourceUrlToBindingContext(this.innerSource.queryBindings(operation, context, options));\n }\n\n public addSourceUrlToBindingContext(iterator: BindingsStream): BindingsStream {\n const ret = iterator.map((bindings) => {\n if (bindings instanceof Bindings) {\n bindings = bindings.setContextEntry(\n KeysMergeBindingsContext.sourcesBinding,\n [ this.innerSource.referenceValue ],\n );\n }\n return bindings;\n });\n\n function inheritMetadata(): void {\n iterator.getProperty('metadata', (metadata: MetadataBindings) => {\n ret.setProperty('metadata', metadata);\n metadata.state.addInvalidateListener(inheritMetadata);\n });\n }\n inheritMetadata();\n\n return ret;\n }\n\n public queryBoolean(operation: Algebra.Ask, context: IActionContext): Promise<boolean> {\n return this.innerSource.queryBoolean(operation, context);\n }\n\n public queryQuads(operation: Algebra.Operation, context: IActionContext): AsyncIterator<RDF.Quad> {\n return this.innerSource.queryQuads(operation, context);\n }\n\n public queryVoid(operation: Algebra.Update, context: IActionContext): Promise<void> {\n return this.innerSource.queryVoid(operation, context);\n }\n\n public get referenceValue(): string | RDF.Source {\n return this.innerSource.referenceValue;\n }\n\n public toString(): string {\n return `${this.innerSource.toString()}`;\n }\n}\n"]}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActorQuerySourceIdentifyHypermediaAnnotateSource';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ActorQuerySourceIdentifyHypermediaAnnotateSource"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qFAAmE","sourcesContent":["export * from './ActorQuerySourceIdentifyHypermediaAnnotateSource';\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@comunica/actor-query-source-identify-hypermedia-annotate-source",
|
|
3
|
+
"version": "3.2.0",
|
|
4
|
+
"description": "A annotate-source query-source-identify-hypermedia actor",
|
|
5
|
+
"lsd:module": true,
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://comunica.dev/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/comunica/comunica.git",
|
|
11
|
+
"directory": "packages/actor-query-source-identify-hypermedia-annotate-source"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/comunica/comunica/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"comunica",
|
|
18
|
+
"actor",
|
|
19
|
+
"query-source-identify-hypermedia",
|
|
20
|
+
"annotate-source"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"main": "lib/index.js",
|
|
24
|
+
"typings": "lib/index",
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"components",
|
|
30
|
+
"lib/**/*.d.ts",
|
|
31
|
+
"lib/**/*.js",
|
|
32
|
+
"lib/**/*.js.map"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "npm run build:ts && npm run build:components",
|
|
36
|
+
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
37
|
+
"build:components": "componentsjs-generator"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@comunica/bindings-factory": "^3.2.0",
|
|
41
|
+
"@comunica/bus-merge-bindings-context": "^3.2.0",
|
|
42
|
+
"@comunica/bus-query-source-identify-hypermedia": "^3.2.0",
|
|
43
|
+
"@comunica/context-entries": "^3.2.0",
|
|
44
|
+
"@comunica/core": "^3.2.0",
|
|
45
|
+
"@comunica/types": "^3.2.0",
|
|
46
|
+
"@rdfjs/types": "*",
|
|
47
|
+
"asynciterator": "^3.9.0",
|
|
48
|
+
"sparqlalgebrajs": "^4.3.4"
|
|
49
|
+
},
|
|
50
|
+
"gitHead": "87baf2afed021a254859e64b92f34d9b51c6a7db"
|
|
51
|
+
}
|