@comunica/actor-rdf-parse-jsonld
Advanced tools
Comparing version 1.20.1-alpha.e8638e880.0 to 1.21.1
@@ -29,7 +29,4 @@ "use strict"; | ||
async runHandle(action, mediaType, actionContext) { | ||
const parser = jsonld_streaming_parser_1.JsonLdParser.fromHttpResponse(action.baseIRI, mediaType, action.headers, { | ||
documentLoader: actionContext && actionContext.get(context_entries_1.KeysRdfParseJsonLd.documentLoader) || | ||
new DocumentLoaderMediated_1.DocumentLoaderMediated(this.mediatorHttp, actionContext), | ||
strictValues: actionContext && actionContext.get(context_entries_1.KeysRdfParseJsonLd.strictValues), | ||
}); | ||
const parser = jsonld_streaming_parser_1.JsonLdParser.fromHttpResponse(action.baseIRI, mediaType, action.headers, Object.assign({ documentLoader: actionContext && actionContext.get(context_entries_1.KeysRdfParseJsonLd.documentLoader) || | ||
new DocumentLoaderMediated_1.DocumentLoaderMediated(this.mediatorHttp, actionContext), strictValues: actionContext && actionContext.get(context_entries_1.KeysRdfParseJsonLd.strictValues) }, (actionContext && actionContext.get(context_entries_1.KeysRdfParseJsonLd.parserOptions)) || {})); | ||
const quads = parser.import(action.input); | ||
@@ -36,0 +33,0 @@ return { quads }; |
{ | ||
"name": "@comunica/actor-rdf-parse-jsonld", | ||
"version": "1.20.1-alpha.e8638e880.0", | ||
"version": "1.21.1", | ||
"description": "A JSON-LD RDF Parse actor", | ||
@@ -38,11 +38,11 @@ "lsd:module": true, | ||
"devDependencies": { | ||
"@comunica/bus-http": "^1.20.1-alpha.e8638e880.0", | ||
"@comunica/bus-rdf-parse": "^1.20.1-alpha.e8638e880.0", | ||
"@comunica/core": "^1.20.1-alpha.e8638e880.0" | ||
"@comunica/bus-http": "^1.21.1", | ||
"@comunica/bus-rdf-parse": "^1.21.1", | ||
"@comunica/core": "^1.21.1" | ||
}, | ||
"dependencies": { | ||
"@comunica/context-entries": "^1.20.0", | ||
"@comunica/context-entries": "^1.21.1", | ||
"@types/rdf-js": "*", | ||
"jsonld-context-parser": "^2.1.1", | ||
"jsonld-streaming-parser": "^2.1.1", | ||
"jsonld-context-parser": "^2.1.2", | ||
"jsonld-streaming-parser": "^2.3.0", | ||
"stream-to-string": "^1.2.0" | ||
@@ -71,4 +71,3 @@ }, | ||
"validate": "npm ls" | ||
}, | ||
"gitHead": "e8638e880c762fd659ea781ba1ba2f5cb3e4ef2f" | ||
} | ||
} |
@@ -44,2 +44,8 @@ # Comunica JSON-LD RDF Parse Actor | ||
### Passing custom options | ||
If you want to pass custom options to the JSON-LD parser, | ||
you can use the `'@comunica/actor-rdf-parse-jsonld:parserOptions'` [context entry](https://comunica.dev/docs/query/advanced/context/) | ||
to provide [parser options](https://github.com/rubensworks/jsonld-streaming-parser.js#configuration) as a hash. | ||
### Using a custom document loader | ||
@@ -46,0 +52,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
61
13808
11
123