Skip to content

Instantly share code, notes, and snippets.

💭
🚀Power-coding

Ruben Taelman rubensworks

💭
🚀Power-coding
Block or report user

Report or block rubensworks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View perf-rdfa-streaming-parser.md
View LDflex-write-support.md

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
View perf-rdfxml-streaming-parser.md
View rdf-isomorphic and rdf-canonize
Small equal:
> Triples: 276
isomorphic: 24.378ms
canonize: 5.570ms
Small non-equal:
> Triples: 276
isomorphic: 1.216ms
canonize: 4.184ms
View GraphQL-LD-Demo.md

GraphQL-LD

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

View rdfstar-questions.md
:myFriends {
  ex:Alice foaf:knows ex:Bob.
  ex:Alice foaf:knows ex:Carol.
}

Remove a single quad

I guess this is supported?

View comunica-federated.md

This is a short guide that explains how you can execute a federated query with Comunica.

Command line

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).

  1. Make sure Node.js (>=8.0.0) is installed: https://nodejs.org/en/
  2. Install Comunica: npm install -g @comunica/actor-init-sparql
  3. Execute the following command:
View Comunica CLA
# Comunica Contributor License Agreement
The following terms are used throughout this agreement:
* You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
* Project - is an umbrella term that refers to any and all GitHub open source projects.
* Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
* Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with GitHub, contributors or maintainers.
## 1. Grant of Copyright License.
View Cyclops CLA
# Cyclops Contributor License Agreement
Adapted from https://cla.github.com/agreement
The following terms are used throughout this agreement:
* You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
* Project - is an umbrella term that refers to any and all GitHub open source projects.
* Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
* Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with GitHub, contributors or maintainers.
View ios.scss
/** IOS Press template
*
* Ruben Taelman <ruben.taelman@ugent.be> http://www.rubensworks.net/
* http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0
* Based on Sarven's ACM CSS template: https://github.com/linkeddata/dokieli/blob/master/media/css/acm.css
*/
/*
SWJ IOS Press template: http://www.semantic-web-journal.net/authors
*/
You can’t perform that action at this time.