How to use the rdf-string.quadToStringQuad function in rdf-string

To help you get started, we’ve selected a few rdf-string 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 comunica / comunica / packages / actor-init-rdf-dereference / lib / ActorInitRdfDereference.ts View on Github external
    result.quads.on('data', (quad) => readable.push(JSON.stringify(RdfString.quadToStringQuad(quad)) + '\n'));
    result.quads.on('end', () => readable.push(null));
github comunica / comunica / packages / actor-init-rdf-dereference-paged / lib / ActorInitRdfDereferencePaged.ts View on Github external
    result.data.on('data', (quad) => readable.push(JSON.stringify(RdfString.quadToStringQuad(quad)) + '\n'));
    result.data.on('end', () => readable.push(null));
github comunica / comunica / packages / actor-init-rdf-parse / lib / ActorInitRdfParse.ts View on Github external
    result.quads.on('data', (quad) => readable.push(JSON.stringify(RdfString.quadToStringQuad(quad)) + '\n'));
    result.quads.on('end', () => readable.push(null));
github comunica / comunica / packages / actor-sparql-serialize-json / lib / ActorSparqlSerializeJson.ts View on Github external
resultStream.on('data', (element) => {
        data.push(empty ? '\n' : ',\n');
        data.push(JSON.stringify(RdfString.quadToStringQuad(element)).trim());
        empty = false;
      });
      resultStream.on('end', () => {

rdf-string

Convenience functions for creating and serializing RDF terms and quads

MIT
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis