npm.io
5.3.0 • Published 1 month ago

@comunica/logger-pretty

Licence
MIT
Version
5.3.0
Deps
3
Size
21 kB
Vulns
0
Weekly
0
Stars
577

Comunica Bus SPARQL Parse

npm version

A logger that prints to standard output.

Click here to learn more about logging.

This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.

Click here if you just want to query with Comunica.

Install

$ yarn add @comunica/logger-pretty

Usage

const QueryEngine = require('@comunica/query-sparql').QueryEngine;
import {LoggerPretty} from "@comunica/logger-pretty";

const bindingsStream = await new QueryEngine().queryBindings('SELECT * WHERE { ?s ?p ?o }', {
  sources: ['http://fragments.dbpedia.org/2015/en'],
  log: new LoggerPretty({ level: 'debug' }),
});

Keywords