@comunica/bus-rdf-update-hypermedia 4.5.0 → 5.0.2
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/README.md +1 -1
- package/components/ActorRdfUpdateHypermedia.jsonld +14 -14
- package/components/components.jsonld +1 -1
- package/components/context.jsonld +1 -1
- package/lib/ActorRdfUpdateHypermedia.d.ts +0 -0
- package/lib/ActorRdfUpdateHypermedia.js +1 -0
- package/lib/ActorRdfUpdateHypermedia.js.map +1 -1
- package/lib/index.d.ts +0 -0
- package/lib/index.js +0 -0
- package/lib/index.js.map +0 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ $ yarn add @comunica/bus-rdf-update-hypermedia
|
|
|
17
17
|
|
|
18
18
|
## Bus usage
|
|
19
19
|
|
|
20
|
-
* **Context**: `"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^
|
|
20
|
+
* **Context**: `"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^5.0.0/components/context.jsonld"`
|
|
21
21
|
* **Bus name**: `ActorRdfUpdateHypermedia:_default_bus`
|
|
22
22
|
|
|
23
23
|
## Creating actors on this bus
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^5.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^5.0.0/components/context.jsonld"
|
|
5
5
|
],
|
|
6
6
|
"@id": "npmd:@comunica/bus-rdf-update-hypermedia",
|
|
7
7
|
"components": [
|
|
@@ -59,37 +59,37 @@
|
|
|
59
59
|
"genericTypeInstances": [
|
|
60
60
|
{
|
|
61
61
|
"@type": "ParameterRangeGenericTypeReference",
|
|
62
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
62
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"@type": "ParameterRangeGenericTypeReference",
|
|
66
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
66
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"@type": "ParameterRangeGenericTypeReference",
|
|
70
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
70
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"@type": "ParameterRangeGenericTypeReference",
|
|
74
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
74
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
75
75
|
}
|
|
76
76
|
]
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"@type": "ParameterRangeGenericTypeReference",
|
|
80
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
80
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"@type": "ParameterRangeGenericTypeReference",
|
|
84
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
84
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"@type": "ParameterRangeGenericTypeReference",
|
|
88
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
88
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"@type": "ParameterRangeGenericTypeReference",
|
|
92
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
92
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
93
93
|
}
|
|
94
94
|
]
|
|
95
95
|
},
|
|
@@ -126,19 +126,19 @@
|
|
|
126
126
|
"genericTypeInstances": [
|
|
127
127
|
{
|
|
128
128
|
"@type": "ParameterRangeGenericTypeReference",
|
|
129
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
129
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"@type": "ParameterRangeGenericTypeReference",
|
|
133
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
133
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
"@type": "ParameterRangeGenericTypeReference",
|
|
137
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
137
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"@type": "ParameterRangeGenericTypeReference",
|
|
141
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
141
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^5.0.0/components/context.jsonld"
|
|
4
4
|
],
|
|
5
5
|
"@id": "npmd:@comunica/bus-rdf-update-hypermedia",
|
|
6
6
|
"@type": "Module",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^6.0.0/components/context.jsonld",
|
|
4
4
|
{
|
|
5
5
|
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
|
-
"cbruh": "npmd:@comunica/bus-rdf-update-hypermedia/^
|
|
6
|
+
"cbruh": "npmd:@comunica/bus-rdf-update-hypermedia/^5.0.0/",
|
|
7
7
|
"ActorRdfUpdateHypermedia": {
|
|
8
8
|
"@id": "cbruh:components/ActorRdfUpdateHypermedia.jsonld#ActorRdfUpdateHypermedia",
|
|
9
9
|
"@prefix": true,
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActorRdfUpdateHypermedia.js","sourceRoot":"","sources":["ActorRdfUpdateHypermedia.ts"],"names":[],"mappings":";;;AAEA,yCAAiD;AAEjD;;;;;;;;;;GAUG;AACH,MAAsB,wBACpB,SAAQ,YAAkF;
|
|
1
|
+
{"version":3,"file":"ActorRdfUpdateHypermedia.js","sourceRoot":"","sources":["ActorRdfUpdateHypermedia.ts"],"names":[],"mappings":";;;AAEA,yCAAiD;AAEjD;;;;;;;;;;GAUG;AACH,MAAsB,wBACpB,SAAQ,YAAkF;IACvE,eAAe,CAAS;IAE3C,4BAA4B;IAC5B;;;;;OAKG;IACH,2BAA2B;IAC3B,YAAmB,IAAuC,EAAE,eAAuB;QACjF,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,MAAkC;QAClD,IAAI,MAAM,CAAC,oBAAoB,IAAI,IAAI,CAAC,eAAe,KAAK,MAAM,CAAC,oBAAoB,EAAE,CAAC;YACxF,OAAO,IAAA,eAAQ,EAAC,SAAS,IAAI,CAAC,IAAI,2CAA2C,MAAM,CAAC,oBAAoB,GAAG,CAAC,CAAC;QAC/G,CAAC;QACD,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CAGF;AAzBD,4DAyBC","sourcesContent":["import type { IQuadDestination } from '@comunica/bus-rdf-update-quads';\nimport type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate, TestResult } from '@comunica/core';\nimport { failTest, Actor } from '@comunica/core';\n\n/**\n * A comunica actor for rdf-update-hypermedia events.\n *\n * Actor types:\n * * Input: IActionRdfUpdateHypermedia: The metadata in the document.\n * * Test: <none>\n * * Output: IActorRdfUpdateHypermediaOutput: An RDF destination.\n *\n * @see IActionRdfUpdateHypermedia\n * @see IActorRdfUpdateHypermediaOutput\n */\nexport abstract class ActorRdfUpdateHypermedia<TS = undefined>\n extends Actor<IActionRdfUpdateHypermedia, IActorTest, IActorRdfUpdateHypermediaOutput, TS> {\n protected readonly destinationType: string;\n\n /* eslint-disable max-len */\n /**\n * @param args -\n * \\ @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus\n * \\ @defaultNested {RDF hypermedia updating failed: none of the configured actors were able to handle an update for ${action.url}} busFailMessage\n * @param destinationType - The destination type.\n */\n /* eslint-enable max-len */\n public constructor(args: IActorRdfUpdateHypermediaArgs<TS>, destinationType: string) {\n super(args);\n this.destinationType = destinationType;\n }\n\n public async test(action: IActionRdfUpdateHypermedia): Promise<TestResult<IActorTest, TS>> {\n if (action.forceDestinationType && this.destinationType !== action.forceDestinationType) {\n return failTest(`Actor ${this.name} is not able to handle destination type ${action.forceDestinationType}.`);\n }\n return this.testMetadata(action);\n }\n\n public abstract testMetadata(action: IActionRdfUpdateHypermedia): Promise<TestResult<IActorTest, TS>>;\n}\n\nexport interface IActionRdfUpdateHypermedia extends IAction {\n /**\n * The URL of the destination that was fetched.\n */\n url: string;\n /**\n * A metadata key-value mapping.\n */\n metadata: Record<string, any>;\n /**\n * If the destination already exists.\n */\n exists: boolean;\n /**\n * The explicitly requested destination type.\n * If set, the destination type of the actor MUST explicitly match the given forced type.\n */\n forceDestinationType?: string;\n}\n\nexport interface IActorRdfUpdateHypermediaOutput extends IActorOutput {\n /**\n * The destination for quads.\n */\n destination: IQuadDestination;\n}\n\nexport type IActorRdfUpdateHypermediaArgs<TS = undefined> = IActorArgs<\nIActionRdfUpdateHypermedia,\nIActorTest,\nIActorRdfUpdateHypermediaOutput,\nTS\n>;\n\nexport type MediatorRdfUpdateHypermedia = Mediate<IActionRdfUpdateHypermedia, IActorRdfUpdateHypermediaOutput>;\n"]}
|
package/lib/index.d.ts
CHANGED
|
File without changes
|
package/lib/index.js
CHANGED
|
File without changes
|
package/lib/index.js.map
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/bus-rdf-update-hypermedia",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "A comunica bus for rdf-update-hypermedia events.",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"build:components": "componentsjs-generator"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@comunica/bus-rdf-update-quads": "^
|
|
44
|
-
"@comunica/core": "^
|
|
43
|
+
"@comunica/bus-rdf-update-quads": "^5.0.2",
|
|
44
|
+
"@comunica/core": "^5.0.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "3b29f914010fd2fc56682a0ceff962ef6ff24f32"
|
|
47
47
|
}
|