Skip to content

Instantly share code, notes, and snippets.

View rubensworks's full-sized avatar
💭
🚀Power-coding

Ruben Taelman rubensworks

💭
🚀Power-coding
View GitHub Profile
Small equal:
> Triples: 276
isomorphic: 24.378ms
canonize: 5.570ms
Small non-equal:
> Triples: 276
isomorphic: 1.216ms
canonize: 4.184ms

We require three new handles:

  • InsertHandler: binds to add.
  • DeleteHandler: binds to delete.
  • UpdateHandler (optional): binds to set and replace.

Getting random values

await user.friends.friends.random // returns a random friend
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:

  • This is major update with breaking changes, which means that old invocations of Comunica will have to be changed slightly.
  • The READMEs and documentation on comunica.dev have not been updated yet, so you will have to discover the usage of the new API via autocompletion of an IDE with TypeScript support.
  • The Comunica prereleases depend on the new RDF/JS typings (@rdfjs/types@1.1.0).

Getting started: