We require three new handles:
- InsertHandler: binds to
add
. - DeleteHandler: binds to
delete
. - UpdateHandler (optional): binds to
set
andreplace
.
await user.friends.friends.random // returns a random friend
Generated with https://github.com/rubensworks/rdfa-streaming-parser.js/tree/master/perf
(Input from https://github.com/rdfa/rdfa.github.io/tree/master/test-suite)
rdfa-streaming-parser
Generated with https://github.com/rubensworks/microdata-rdf-streaming-parser.js/tree/master/perf
(Input from https://github.com/microdata-rdf/microdata-rdf.github.io/tree/master/test-suite)
microdata-rdf-streaming-parser
interface Queryable<SourceType> { | |
query(query: string, context?: QueryStringContext<SourceType>): Promise<QueryResult> | |
} | |
interface QueryableAlgebra<SourceType> { | |
query(query: Algebra, context?: QueryAlgebraContext<SourceType>): Promise<QueryResult> | |
} | |
// TODO: what about update queries? |
This document describes the steps to use a prerelease of Comunica 2.x.
Intended release date: Somewhere in the week of Monday 28 February
Warnings:
@rdfjs/types@1.1.0
).Getting started:
This is a short guide that explains how you can execute a federated query with Comunica.
We will execute a query to find all books in the Harvard Library that were written by people who were born in Ghent. We do this by federating over DBpedia (SPARQL), the Harvard library (TPF) and the VIAF dataset (TPF).
npm install -g @comunica/actor-init-sparql
GraphQL-LD is a way to query Linked Data using GraphQL.
Instead of querying GraphQL interfaces, Linked Data interfaces are queried, such as SPARQL endpoints, TPF interfaces, Linked Data documents, ... This is done by semantifying GraphQL queries using a JSON-LD context.
Try it out from your browser: http://query.linkeddatafragments.org/
Alternatively, install GraphQL-LD or Comunica SPARQL and execute GraphQL-LD queries on your machine