@comunica/actor-query-source-identify-hypermedia-annotate-source 3.2.1 → 3.3.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/components/QuerySourceAddSourceAttribution.jsonld +72 -0
- package/components/components.jsonld +2 -1
- package/components/context.jsonld +9 -0
- package/lib/ActorQuerySourceIdentifyHypermediaAnnotateSource.js +1 -1
- package/lib/ActorQuerySourceIdentifyHypermediaAnnotateSource.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
"components": [
|
|
7
|
+
{
|
|
8
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution",
|
|
9
|
+
"@type": "Class",
|
|
10
|
+
"requireElement": "QuerySourceAddSourceAttribution",
|
|
11
|
+
"comment": "A IQuerySource wrapper that skolemizes outgoing quads and bindings.",
|
|
12
|
+
"parameters": [
|
|
13
|
+
{
|
|
14
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution_innerSource",
|
|
15
|
+
"range": {
|
|
16
|
+
"@type": "ParameterRangeWildcard"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"memberFields": [
|
|
21
|
+
{
|
|
22
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution__member_innerSource",
|
|
23
|
+
"memberFieldName": "innerSource",
|
|
24
|
+
"range": {
|
|
25
|
+
"@type": "ParameterRangeWildcard"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution__member_constructor",
|
|
30
|
+
"memberFieldName": "constructor"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution__member_getSelectorShape",
|
|
34
|
+
"memberFieldName": "getSelectorShape"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution__member_queryBindings",
|
|
38
|
+
"memberFieldName": "queryBindings"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution__member_addSourceUrlToBindingContext",
|
|
42
|
+
"memberFieldName": "addSourceUrlToBindingContext"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution__member_queryBoolean",
|
|
46
|
+
"memberFieldName": "queryBoolean"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution__member_queryQuads",
|
|
50
|
+
"memberFieldName": "queryQuads"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution__member_queryVoid",
|
|
54
|
+
"memberFieldName": "queryVoid"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution__member_referenceValue",
|
|
58
|
+
"memberFieldName": "referenceValue"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution__member_toString",
|
|
62
|
+
"memberFieldName": "toString"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"constructorArguments": [
|
|
66
|
+
{
|
|
67
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution_innerSource"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"@type": "Module",
|
|
7
7
|
"requireName": "@comunica/actor-query-source-identify-hypermedia-annotate-source",
|
|
8
8
|
"import": [
|
|
9
|
-
"caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld"
|
|
9
|
+
"caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld",
|
|
10
|
+
"caqsihas:components/QuerySourceAddSourceAttribution.jsonld"
|
|
10
11
|
]
|
|
11
12
|
}
|
|
@@ -46,6 +46,15 @@
|
|
|
46
46
|
"@id": "caqsihas:components/ActorQuerySourceIdentifyHypermediaAnnotateSource.jsonld#IActorQuerySourceIdentifyHypermediaAnnotateSourceArgs",
|
|
47
47
|
"@prefix": true,
|
|
48
48
|
"@context": {}
|
|
49
|
+
},
|
|
50
|
+
"QuerySourceAddSourceAttribution": {
|
|
51
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution",
|
|
52
|
+
"@prefix": true,
|
|
53
|
+
"@context": {
|
|
54
|
+
"innerSource": {
|
|
55
|
+
"@id": "caqsihas:components/QuerySourceAddSourceAttribution.jsonld#QuerySourceAddSourceAttribution_innerSource"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
49
58
|
}
|
|
50
59
|
}
|
|
51
60
|
]
|
|
@@ -15,7 +15,7 @@ class ActorQuerySourceIdentifyHypermediaAnnotateSource extends bus_query_source_
|
|
|
15
15
|
if (action.context.get(exports.KEY_CONTEXT_WRAPPED)) {
|
|
16
16
|
throw new Error('Unable to wrap query source multiple times');
|
|
17
17
|
}
|
|
18
|
-
return { filterFactor:
|
|
18
|
+
return { filterFactor: Number.POSITIVE_INFINITY };
|
|
19
19
|
}
|
|
20
20
|
async run(action) {
|
|
21
21
|
const context = action.context.set(exports.KEY_CONTEXT_WRAPPED, true);
|
|
@@ -1 +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;
|
|
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,MAAM,CAAC,iBAAiB,EAAE,CAAC;IACpD,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: Number.POSITIVE_INFINITY };\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"]}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ActorQuerySourceIdentifyHypermediaAnnotateSource"), exports);
|
|
18
|
+
__exportStar(require("./QuerySourceAddSourceAttribution"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qFAAmE","sourcesContent":["export * from './ActorQuerySourceIdentifyHypermediaAnnotateSource';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,oEAAkD","sourcesContent":["export * from './ActorQuerySourceIdentifyHypermediaAnnotateSource';\nexport * from './QuerySourceAddSourceAttribution';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-query-source-identify-hypermedia-annotate-source",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "A annotate-source query-source-identify-hypermedia actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"build:components": "componentsjs-generator"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@comunica/bindings-factory": "^3.
|
|
41
|
-
"@comunica/bus-merge-bindings-context": "^3.
|
|
42
|
-
"@comunica/bus-query-source-identify-hypermedia": "^3.
|
|
43
|
-
"@comunica/context-entries": "^3.
|
|
44
|
-
"@comunica/core": "^3.
|
|
45
|
-
"@comunica/types": "^3.
|
|
40
|
+
"@comunica/bindings-factory": "^3.3.0",
|
|
41
|
+
"@comunica/bus-merge-bindings-context": "^3.3.0",
|
|
42
|
+
"@comunica/bus-query-source-identify-hypermedia": "^3.3.0",
|
|
43
|
+
"@comunica/context-entries": "^3.3.0",
|
|
44
|
+
"@comunica/core": "^3.3.0",
|
|
45
|
+
"@comunica/types": "^3.3.0",
|
|
46
46
|
"@rdfjs/types": "*",
|
|
47
47
|
"asynciterator": "^3.9.0",
|
|
48
48
|
"sparqlalgebrajs": "^4.3.7"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "02bde397d206f1f5a523643a6a604c89e792e2f9"
|
|
51
51
|
}
|