All Projects → LinkedDataFragments → Client.js

LinkedDataFragments / Client.js

Licence: other
[DEPRECATED] A JavaScript client for Triple Pattern Fragments interfaces.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Client.js

Rdfsharp
Lightweight and friendly .NET library for modeling Semantic Web applications
Stars: ✭ 72 (-24.21%)
Mutual labels:  rdf, sparql
Jena
Apache Jena
Stars: ✭ 700 (+636.84%)
Mutual labels:  rdf, sparql
Easyrdf
EasyRdf is a PHP library designed to make it easy to consume and produce RDF.
Stars: ✭ 546 (+474.74%)
Mutual labels:  rdf, sparql
Rasqal
Redland Rasqal RDF Query Library
Stars: ✭ 57 (-40%)
Mutual labels:  rdf, sparql
Trifid
Lightweight Linked Data Server and Proxy
Stars: ✭ 51 (-46.32%)
Mutual labels:  rdf, sparql
Brightstardb
This is the core development repository for BrightstarDB.
Stars: ✭ 420 (+342.11%)
Mutual labels:  rdf, sparql
Awesome Semantic Web
A curated list of various semantic web and linked data resources.
Stars: ✭ 642 (+575.79%)
Mutual labels:  rdf, sparql
AskNowNQS
A question answering system for RDF knowledge graphs.
Stars: ✭ 32 (-66.32%)
Mutual labels:  sparql, rdf
Sparnatural
Sparnatural : javascript visual SPARQL query builder
Stars: ✭ 65 (-31.58%)
Mutual labels:  rdf, sparql
Sparql Engine
🚂 A framework for building SPARQL query engines in Javascript/Typescript
Stars: ✭ 39 (-58.95%)
Mutual labels:  rdf, sparql
Sparqlwrapper
A wrapper for a remote SPARQL endpoint
Stars: ✭ 365 (+284.21%)
Mutual labels:  rdf, sparql
Semantic forms
Form generators leveraging semantic web standards (RDF(S), OWL, SPARQL , ...
Stars: ✭ 63 (-33.68%)
Mutual labels:  rdf, sparql
Semanticmediawiki
🔗 Semantic MediaWiki turns MediaWiki into a knowledge management platform with query and export capabilities
Stars: ✭ 359 (+277.89%)
Mutual labels:  rdf, sparql
Web Karma
Information Integration Tool
Stars: ✭ 489 (+414.74%)
Mutual labels:  rdf, sparql
Sparql.js
A parser for the SPARQL query language in JavaScript
Stars: ✭ 271 (+185.26%)
Mutual labels:  rdf, sparql
Database
Blazegraph High Performance Graph Database
Stars: ✭ 568 (+497.89%)
Mutual labels:  rdf, sparql
IGUANA
IGUANA is a benchmark execution framework for querying HTTP endpoints and CLI Applications such as Triple Stores. Contact: [email protected]
Stars: ✭ 22 (-76.84%)
Mutual labels:  sparql, rdf
jarql
SPARQL for JSON: Turn JSON into RDF using SPARQL syntax
Stars: ✭ 19 (-80%)
Mutual labels:  sparql, rdf
Askomics
DEPRECATED. See askomics/flaskomics
Stars: ✭ 22 (-76.84%)
Mutual labels:  rdf, sparql
Virtuoso Sparql Endpoint Quickstart
creates a docker image with Virtuoso preloaded with the latest DBpedia dataset
Stars: ✭ 80 (-15.79%)
Mutual labels:  rdf, sparql

This project has been deprecated in favor of Comunica SPARQL, which is part of the Comunica platform. It can do everything Client.js can do, and more.


Linked Data Fragments Client

Build Status npm version Docker Automated Build DOI

On today's Web, Linked Data is published in different ways, including data dumps, subject pages, and results of SPARQL queries. We call each such part a Linked Data Fragment of the dataset.

The issue with the current Linked Data Fragments is that they are either so powerful that their servers suffer from low availability rates (as is the case with SPARQL), or either don't allow efficient querying.

Instead, this client solves queries by accessing Triple Pattern Fragments.
Each Triple Pattern Fragment offers:

  • data that corresponds to a triple pattern (example).
  • metadata that consists of the (approximate) total triple count (example).
  • controls that lead to all other fragments of the same dataset (example).

Execute SPARQL queries

You can execute SPARQL queries against Triple Pattern Fragments like this:

$ ldf-client http://fragments.dbpedia.org/2015/en query.sparql

The arguments to the ldf-client command are:

  1. Any fragment of the dataset you want to query, in this case DBpedia. More datasets.
  2. A file with the query you want to execute (this can also be a string).

From within your application

First, create a FragmentsClient to fetch fragments of a certain dataset.
Then create a SparqlIterator to evaluate SPARQL queries on that dataset.

var ldf = require('ldf-client');
var fragmentsClient = new ldf.FragmentsClient('http://fragments.dbpedia.org/2015/en');

var query = 'SELECT * { ?s ?p <http://dbpedia.org/resource/Belgium>. ?s ?p ?o } LIMIT 100',
    results = new ldf.SparqlIterator(query, { fragmentsClient: fragmentsClient });
results.on('data', function (result) { console.log(result); });

Install the client

The command-line client requires Node.js 4.0 or higher and is tested on OSX and Linux. To install, execute:

$ [sudo] npm install -g ldf-client

Browser version

The client can also run in Web browsers via browserify, which provides browser equivalents for Node.js-specific parts. Try the live demo.

To build a browserified version, run:

npm install [-g] browserify
npm run browserify

The browserified version will be written to ldf-client-browser.js.

The API is the same as that of the Node version, except that ldf = require('ldf-client') is no longer necessary, since ldf is exposed as window.ldf.

From source

To install from the latest GitHub sources, execute:

$ git clone [email protected]:LinkedDataFragments/Client.js
$ cd Client.js
$ npm install .

Then run the application with:

$ bin/ldf-client http://fragments.dbpedia.org/2015/en queries/artists-york.sparql

The queries folder contains several example queries for DBpedia.

(Optional) Running in a Docker container

If you want to rapidly deploy use the client as a microservice, you can build a Docker container as follows:

$ docker build -t ldf-client .

After that, you can run your newly created container:

$ docker run -it --rm ldf-client http://fragments.dbpedia.org/2015/en 'SELECT * WHERE { ?s ?p ?o } LIMIT 100'

Mounting custom config and query files can be done like this:

$ docker run -it --rm $(pwd)/config.json:/tmp/config.json $(pwd)/query.sparql:/tmp/query.sparql ldf-client http://fragments.dbpedia.org/2015/en -f /tmp/query.sparql -c /tmp/config.json

License

The Linked Data Fragments client is written by Ruben Verborgh and colleagues.

This code is copyrighted by Ghent University – imec and released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].