sparqler-client.js
v0.0.1
Published
> Make SPARQL queries, get JS.
Downloads
2
Readme
SPARQLer Client
Make SPARQL queries, get JS.
Usage
import sparqler from 'sparqler-client.js'
const client = sparqler({
endpoint: 'string',
prefixes: 'string',
context: object,
user: 'string',
password: 'string'
})// Get Data
let json = client.query.(`construct { ?s ?p ?o} where { ?s ?p ?o}`)
let array = client.query(`select * where { ?s ?p ?o }`)
let bool = client.query(`ask { ?s ?p ?s}`)// Insert Data
let result = client.insert({})
let result = client.insert(``)// Delete Data
let result = client.delete(``)
let result = client.delete({})// Updating Data
let result = client.update({insert, delete})Developing
Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openBuilding
To create a production version of your app:
npm run buildYou can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.
