Generate a path?query combination for the given {action} and {payload}.
The path of the action.
Create an action generator to easy in IRI generation.
The base Namespace to which the action/payload is added.
Create a action creator with the store and namespace already bound.
The namespace to which the action name should be appended.
The store where the action should be dispatched.
Create a dispatch-parse pair for use in middleware.
The namespace to create actions on.
The store to dispatch actions on.
Filter to prevent superfluous unhandled middleware action from going to execActionByIRI
Acts as a security filter as well, to prevent cross-site action injections.
Parse an action for its base IRI and parameters separated.
Only the last value of each param is included, so duplicates are omitted.
The param values are parsed and converted for n-quads syntax, otherwise their literal value is used. The resulting {return.params} is not guaranteed to be correct with the given {ParamMap}, it is for typing purposes only.
Generated using TypeDoc
js.rdf.dev/actions
Utilities for working with link actions.
Getting started
Just install the package and its peer dependencies.
npm i @rdfdev/collections @ontologies/core
yarn add @rdfdev/collections @ontologies/core
Documentation
See the js.rdf.dev/actions documentation
See the complete js.rdf.dev documentation
Need help with linked data?
This package is brought to you by Ontola. We build production-grade linked data solutions and can help you from advice to building custom web services.