How to use rdf-literal - 1 common examples

To help you get started, we’ve selected a few rdf-literal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rubensworks / sparqljson-to-tree.js / lib / Converter.ts View on Github external
public static materializeTree(tree: any): any {
    if (tree.termType) {
      return getTermRaw(tree);
    } else if (Array.isArray(tree)) {
      return tree.map(Converter.materializeTree);
    } else {
      const materialized: any = {};
      for (const key in tree) {
        materialized[key] = Converter.materializeTree(tree[key]);
      }
      return materialized;
    }
  }

rdf-literal

Translates between RDF literals and JavaScript primitives

MIT
Latest version published 11 months ago

Package Health Score

58 / 100
Full package analysis

Popular rdf-literal functions