graph-db-client
v1.0.2
Published
# Disclaimer
Downloads
2
Readme
graph-db-js
Disclaimer
This is a quick and dirty implementation and there might be errors.
Usage
const GraphDB = require('./index.js');
(async () => {
let graphdb = await GraphDB.connect({
https: false,
hostname: "localhost",
repository: "test",
port: 7200
});
/* TEST SPARQL QUERIES */
let select_result = await graphdb.Query.query(/* select query string */);
await graphdb.Query.query(/* insert string */);
/* TEST FILE/STRING IMPORTS */
let result_text = await graphdb.Import.text({ data: /* json-ld goes here */ });
let result_url = await graphdb.Import.url({ data: /* link to json-ld goes here */ });
})().catch( e => console.log(e) );