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

A JSON-LD RDF Parse actor

  • 2.2.2-alpha.14.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.7K
decreased by-4.97%
Maintainers
5
Weekly downloads
 
Created
Source

Comunica JSON-LD RDF Parse Actor

npm version

An RDF Parse actor that handles JSON-LD.

This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.

Click here if you just want to query with Comunica.

Install

$ yarn add @comunica/actor-rdf-parse-jsonld

Configure

After installing, this package can be added to your engine's configuration as follows:

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-parse-jsonld/^2.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:rdf-parse/actors#jsonld",
      "@type": "ActorRdfParseJsonLd",
      "priorityScale": 0.9,
      "mediatorHttp": { "@id": "urn:comunica:default:http/mediators#main" }
    }
  ]
}

Config Parameters

  • priorityScale: An optional priority for this parser, used for content negotiation, defaults to 1.
  • mediatorHttp: A mediator over the HTTP bus, for fetching remote JSON-LD contexts.

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 to provide parser options as a hash.

Using a custom document loader

If you want to override how the JSON-LD parser loads external contexts, you can pass a custom document loader via the '@comunica/actor-rdf-parse-jsonld:documentLoader' context entry. This document loader must implement the IDocumentLoader interface.

Enabling stricter parsing mode

Via the '@comunica/actor-rdf-parse-jsonld:strictValues' context entry, you can set the JSON-LD parser to run in a more strict mode. This corresponds to the strictValues option in JSON-LD Streaming Parser.

Keywords

FAQs

Package last updated on 27 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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