4.0.2 • Published 4 months ago

prez-lib v4.0.2

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
4 months ago

Prez Lib

A JS library for processing RDF data for use with Prez UI, implementing RDF/JS types and N3.js.

Installing

npm install prez-lib

Example Usage

Using the factory functions:

import { literal, node } from "prez-lib";

const term = node({
    value: "https://example.com",
    label: literal("term"),
    links: [
        {
            value: "/"
        }
    ],
});

Using the store class:

import { RDFStore } from "prez-lib";

const data = "<https://example.com/subject> <https://example.com/predicate> <https://example.com/object> .";
const store = new RDFStore();
store.load(data);
const data = store.getItem();
4.0.2

4 months ago

4.0.1

4 months ago

4.0.0

6 months ago