Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@comunica/actor-rdf-parse-jsonld

Package Overview
Dependencies
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comunica/actor-rdf-parse-jsonld - npm Package Compare versions

Comparing version 1.20.1-alpha.e8638e880.0 to 1.21.1

7

lib/ActorRdfParseJsonLd.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc