Socket
Book a DemoInstallSign in
Socket

volt

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

volt

VOLT Ontology and Linked-data Technology

0.2.0
latest
Source
npmnpm
Version published
Weekly downloads
12
Maintainers
1
Weekly downloads
 
Created
Source

VOLT

This node.js module is an implementation of the Volt Ontoloy and Linked-data Technology.

What this module is

This module is for the low-level processing of SPARQL queries, compiling procedures to javascript, evaluating procedures in memory, etc. and compiling .volt source files to their serialized .ttl form.

Demo

If you simply want to connect VOLT to your local triple store and execute SPARQL queries over HTTP, go check out volt-demo.js which launches an HTTP proxy (via express) to interact with VOLT. The demo also ships as a webapp that includes a SPARQL interface for submitting queries directly to the VOLT proxy. Go check it out if you are interested in using VOLT as a proxy.

Install

$ npm install volt

Usage

const volt = require('volt');
const postgis = require('volt-plugin-postgis');

// create volt instance
let volt_query = volt({
    plugins: {
        // load the postgis plugin, passing it a postgres connection string to a db
		[postgis.namespace]: postgis.create({
			connection: 'postgres://blake@localhost/volt',
		}),
    },
});

// issue sparql query
volt_query('ask {:A :b :C}', (h_sparql_results) => {
    // ...
});

// use the library to compile .volt => .ttl
let h_compiled_procedures = volt.compile({
    code: fs.readFileSync('source.volt'),
});

Development

$ gulp develop

Keywords

volt

FAQs

Package last updated on 02 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.