How to use the sparqljson-parse.SparqlJsonParser function in sparqljson-parse

To help you get started, we’ve selected a few sparqljson-parse 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-rdf-resolve-quad-pattern-sparql-json / lib / ActorRdfResolveQuadPatternSparqlJson.ts View on Github external
this.fetchBindingsStream(endpoint, query, context).then((responseStream) => {
          const rawBindingsStream = new SparqlJsonParser({ prefixVariableQuestionMark: true })
            .parseJsonResultsStream(responseStream);
          responseStream.on('error', (error) => rawBindingsStream.emit('error', error));

          rawBindingsStream.on('error', (error) => bindingsStream.emit('error', error));
          rawBindingsStream.on('data', (rawBindings) => bindingsStream._push(Bindings(rawBindings)));
          rawBindingsStream.on('end', () => {
            bindingsStream.close();
          });

          superRead(count, done);
        });
      } else {
github rubensworks / sparqljson-to-tree.js / lib / Converter.ts View on Github external
constructor(settings?: IConverterSettings) {
    settings = settings || { delimiter: '_' };
    settings.prefixVariableQuestionMark = false;
    this.delimiter = settings.delimiter || '_';
    this.parser = new SparqlJsonParser(settings);
    this.materializeRdfJsTerms = settings.materializeRdfJsTerms;
  }

sparqljson-parse

Parses SPARQL JSON query results

MIT
Latest version published 2 years ago

Package Health Score

54 / 100
Full package analysis

Popular sparqljson-parse functions