JSPM

rdf-object-proxy

1.0.0-beta.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q29852F
  • License MIT

A proxy for the rdf-object library to match the LDflex API

Package Exports

  • rdf-object-proxy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rdf-object-proxy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rdf-object-proxy

A proxy for the rdf-object library to match the LDflex API

GitHub license npm version build Dependabot semantic-release

Usage

import { RdfObjectProxy } from 'rdf-object-proxy';
import { RdfObjectLoader } from 'rdf-object';

const context = {
  "@context": {
    "@vocab": "http://www.w3.org/ns/shacl#",
    rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
    sh$property: "property",
    mf: "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",
    include: "mf:include",
    entries: "mf:entries",
  },
};

(async () => {
  const loader = new RdfObjectLoader({ context });
  await loader.importArray(quads /* array of rdf-js compliant quads */);
  const resource =
    loader.resources['http://example.org/Jesse'];
  return RdfObjectProxy(resource);
})();

License

©2021–present Jesse Wright. MIT License.