profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/linkeddata/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Read-Write Linked Data linkeddata MIT Originally MIT code. Everything must be MIT Licence.

linkeddata/dokieli 599

:bulb: dokieli is a clientside editor for decentralised article publishing, annotations and social interactions

linkeddata/rdflib.js 466

Linked Data API for JavaScript

linkeddata/gold 140

Linked Data server for Go

linkeddata/cimba 98

Client-Integrated Micro-Blogging Architecture application

linkeddata/profile-editor 45

WebID profile editor

linkeddata/ldphp 38

Linked Data server for PHP

linkeddata/node-webid 37

WebID node.js library

linkeddata/contacts 33

Address book-like application to manage contact information.

linkeddata/ontology-archiver 18

Copy favorite and commonly used RDF schemas/ontologies to a safe place

startedlinkeddata/dokieli

started time in a day

issue commentlinkeddata/rdflib.js

Fetcher.putback breaks for contentType JSON-LD

Fixed by https://github.com/linkeddata/rdflib.js/commit/a24dc44ef7bb31ce230f1fb96d44b85580ddc311 which encorporates the changes suggested by @akashdeep-singh .

akashdeep-singh

comment created time in 3 days

issue closedlinkeddata/rdflib.js

Fetcher.putback breaks for contentType JSON-LD

The putback method breaks if contentType is application/ld+json. This is because it calls the serialize function which accepts an optional callback which seems to be required only in case of JSON-LD. Refer the following lines:

https://github.com/linkeddata/rdflib.js/blob/a15d8768d82c452400f11e4d9747a8e43a846db0/src/fetcher.js#L1072

https://github.com/linkeddata/rdflib.js/blob/a15d8768d82c452400f11e4d9747a8e43a846db0/src/serialize.js#L44

closed time in 3 days

akashdeep-singh

PR closed linkeddata/rdflib.js

Reviewers
Ignore deletes that do not match enhancement

Delete operations that do not match any triples should silently succeed instead of erroring.

See https://github.com/solid/node-solid-server/issues/1085

+4 -20

3 comments

1 changed file

RubenVerborgh

pr closed time in 3 days

pull request commentlinkeddata/rdflib.js

Ignore deletes that do not match

There was lengthy discussion on this with the consensus being that an attempt to delete a triple that doesn't exist should return a 409 because it might indicate multiple editors on the same resource, see https://github.com/solid/node-solid-server/issues/1085#issuecomment-464892054

RubenVerborgh

comment created time in 3 days

PR closed linkeddata/rdflib.js

Fix for #324: Fetcher.putback breaking for JSON-LD

Also contains one minor typography correction in fetcher.js (fata -> data).

+16 -2

1 comment

1 changed file

akashdeep-singh

pr closed time in 3 days

pull request commentlinkeddata/rdflib.js

Fix for #324: Fetcher.putback breaking for JSON-LD

This PR had gotten stale because rdflib switched to Typescript. The PR is needed though, I added a minor improvement and merged the changes directly into the current rdflib main branch. @akashdeep-singh - thanks for your contribution!

akashdeep-singh

comment created time in 3 days

push eventlinkeddata/rdflib.js

jeff-zucker

commit sha a24dc44ef7bb31ce230f1fb96d44b85580ddc311

fix jsonld putBack

view details

push time in 3 days

release linkeddata/rdflib.js

v2.2.7

released time in 7 days

issue closedlinkeddata/rdflib.js

jsonld wrong handling of default graph

I am experimenting with the rdflib and the hydra jsonld API.

myTestcode.ts

import * as rdf from "rdflib"

const store: rdf.IndexedFormula = rdf.graph();
const fetcher: rdf.Fetcher = new rdf.Fetcher(store);
const updateMgr: rdf.UpdateManager = new rdf.UpdateManager(store);
const MY_DOMAIN = rdf.Namespace("https://my-domain.de/vocab#");
const docNode = rdf.sym("https://localhost:8443/companions");
const context = "http://www.w3.org/ns/hydra/context.jsonld";

const jsonDoc ={
    "@context": "http://www.w3.org/ns/hydra/context.jsonld",
    "@id": `${docNode.uri}`,
    "title": "A companion container.",
    "description": "Companions can be managed with ldp container.",
    "operation": [
        {
        "@type": "Operation",
        "method": "POST"
        }
    ]
};

const asNquads = `<https://localhost:8443/companions> <http://www.w3.org/ns/hydra/core#description> "This issue can be deleted with an HTTP DELETE request" .
<https://localhost:8443/companions> <http://www.w3.org/ns/hydra/core#operation> _:b0 .
<https://localhost:8443/companions> <http://www.w3.org/ns/hydra/core#title> "An exemplary issue representation" .
_:b0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/hydra/core#Operation> .
_:b0 <http://www.w3.org/ns/hydra/core#method> "DELETE" .
`
rdf.parse(JSON.stringyfi(jsonldDoc), store, docNode.uri, 'application/ld+json', (err, res) => {
      if (err) {
          throw new Error();
      } else {
          rdf.serialize(docNode, store, docNode.uri, 'application/ld+json', (err, res) => {
              if (err) {
                  throw new Error();
              } else {
                  console.log(res);
              }
          });
     }
});

If i am not mistaken, all nodes should belong to the default graph. If I parse a turtle document, rdflib uses the base-parameter of the parse function as the graph name. But if I parse the jsonld-document rdflib sets nodeobjects as the graph names. In a result I get a rdf dataset with two different graphs instead of one. The line of code where the why (graphname) gets set is in indexed-formular.js lines 270-273:

if (!why) {
        // system generated
        why = this.fetcher ? this.fetcher.appNode : this.sym(defaultGraphURI);
      }
}

Thus the serializing of docNode does only print 3 rdf-triples instead of 5.

If this behavior is not intended, I could write a fix. I think there must just be a check for the default graph be included in parser.js. If the default graph is detected, why will be set to base.

closed time in 7 days

jason076

issue commentlinkeddata/rdflib.js

jsonld wrong handling of default graph

resolved #509

jason076

comment created time in 7 days

push eventlinkeddata/rdflib.js

bourgeoa

commit sha 10fe9706d281f0481cd761834a3f0c3b71b2e435

update dependencies

view details

bourgeoa

commit sha 03188e98c0d8106eccbf78aa57540e6485a65bb4

2.2.7

view details

push time in 7 days

created taglinkeddata/rdflib.js

tagv2.2.7

Linked Data API for JavaScript

created time in 7 days

push eventlinkeddata/rdflib.js

Tim Berners-Lee

commit sha a1b49aef86d80967f646a37d1a835f7a8c255ad9

tweaking jsonld to be more logical to return a Response not a Store maybe

view details

Tim Berners-Lee

commit sha dfc3fed9c7e7c77d0d4504f0ad099c0ee5c099b6

Merge remote-tracking branch 'origin/main' into jsonld

view details

jeff-zucker

commit sha 80e6b66858b3799ec3efd7cbbfa1394c91c11eb5

use the doc as graph in quads

view details

bourgeoa

commit sha 6fffc4c9fa8695136b7efe8714373eaef4330076

typescript

view details

Alain Bourgeois

commit sha b1f19af41f46f75775150d6f3740e5e2ae2151ea

Merge pull request #509 from linkeddata/jsonld fetcher.load Jsonld

view details

push time in 7 days

PR merged linkeddata/rdflib.js

Jsonld

Just changed coed to be more logical, hopefully to fix a Store being returned instead of Response.

+8 -6

2 comments

2 changed files

timbl

pr closed time in 7 days

push eventlinkeddata/rdflib.js

bourgeoa

commit sha 6fffc4c9fa8695136b7efe8714373eaef4330076

typescript

view details

push time in 7 days

pull request commentlinkeddata/rdflib.js

Jsonld

@timbl or @SharonStrats before publishing the build works but there is a typescript issue

src/fetcher.ts:505:19 - error TS2345: Argument of type 'Response' is not assignable to parameter of type 'FetchError | PromiseLike<FetchError>'. Type 'Response' is missing the following properties from type 'FetchError': name, message

505 resolve(fetcher.doneFetch(options, response)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

timbl

comment created time in 7 days

CommitCommentEvent

issue commentlinkeddata/rdflib.js

jsonld wrong handling of default graph

Looks good

jason076

comment created time in 8 days

issue commentlinkeddata/rdflib.js

jsonld wrong handling of default graph

I believe this is solved in https://github.com/linkeddata/rdflib.js/commit/80e6b66858b3799ec3efd7cbbfa1394c91c11eb5. I mistakenly merged it into the jsonld branch directly.

jason076

comment created time in 8 days

CommitCommentEvent

push eventlinkeddata/rdflib.js

jeff-zucker

commit sha 80e6b66858b3799ec3efd7cbbfa1394c91c11eb5

use the doc as graph in quads

view details

push time in 8 days

issue commentlinkeddata/rdflib.js

jsonld wrong handling of default graph

Adding the document URI into jsonldParser's createStatement will allow the store to be correctly filled. Doing that along with Tim's patch to support json-ld in the source pane produces this nice result : image

jason076

comment created time in 8 days

issue commentlinkeddata/rdflib.js

jsonld wrong handling of default graph

In general, Store.add() should not be called with undefined or null why. Yes, for the top level of a JSON-LD file, the why should be set to a NamedNode of the document being parsed.

jason076

comment created time in 8 days

pull request commentlinkeddata/rdflib.js

Jsonld

Shouldn't it be this.response

timbl

comment created time in 8 days

PR closed linkeddata/rdflib.js

Reviewers
read json-ld

Fixes https://github.com/solid/solidos/issues/37.

+1 -1

1 comment

1 changed file

jeff-zucker

pr closed time in 8 days

pull request commentlinkeddata/rdflib.js

read json-ld

Replaced by better fix in #509

jeff-zucker

comment created time in 8 days

PR opened linkeddata/rdflib.js

Jsonld

Just changed coed to be more logical, hopefully to fix a Store being returned instead of Response.

+3 -1

0 comment

1 changed file

pr created time in 8 days

push eventlinkeddata/rdflib.js

Alain Bourgeois

commit sha 91aa1e26ee821847587312fca9cd2f2dc2c2736f

Merge pull request #507 from linkeddata/response.body Do not assume Response.body is set on fetch, use response.text instead

view details

bourgeoa

commit sha ca5e43b2981fd14bdc9d1b8d9050f439a3c89a4b

update dependencies

view details

bourgeoa

commit sha 0c370f4b345dfe083270b19e9bc3eb6164cb9a30

2.2.6

view details

Tim Berners-Lee

commit sha dfc3fed9c7e7c77d0d4504f0ad099c0ee5c099b6

Merge remote-tracking branch 'origin/main' into jsonld

view details

push time in 8 days

push eventlinkeddata/rdflib.js

Pasquale Lisena

commit sha 6a261f79a31aa2713290bf8f67cb41b8b5d72771

Only the first namespace is taken in account That `return this` inside the loop stops it after the first iteration. It should go AFTER the loop.

view details

Pasquale Lisena

commit sha 1d55405c9e3d97f45187ab426aae7817c12d3ac2

Merge remote-tracking branch 'origin/master' into patch-1

view details

Pasquale Lisena

commit sha 9c215a62f297cfc8a5047b1d9df7c7032682cb06

fix ttl test for matching correct prefixes

view details

Arne Hassel

commit sha 0b0fda8a8fd2f4dac786dd20717d12f85e92532f

0.21.0

view details

Arne Hassel

commit sha 1eadcbf9cc1282ae4bb596d74d37392c95a33bfe

Merge remote-tracking branch 'origin/master'

view details

Arne Hassel

commit sha 37e18153bfe33988a9f5e40bb787d6e370801fd8

0.21.1

view details

Tim Berners-Lee

commit sha 5365067db6724686d7a2908015d10aa6251fad95

Use the record of existing fetches in the store to check wac-allow header

view details

Tim Berners-Lee

commit sha 11519162df4d31067a5c175686a29532552f2bea

fix bug and remove old kludge code

view details

Tim Berners-Lee

commit sha 406d9fe7d312f078908da7e4cc6b0c4ef460ebec

remove prelel version

view details

Arne Hassel

commit sha e8d9d5dfef5542fe5121f5fe23d34b3d6a3292f3

Removing commented code block noone remembers why should be there

view details

Arne Hassel

commit sha 7372ad21b33778d535c5a0b3481e34186e37d040

Merge pull request #333 from linkeddata/wac-allow Check wac-allow header in case it disallows write

view details

Ruben Verborgh

commit sha 881dbedb350692defb673ce9009d3a0579547a6b

Upgrade packages.

view details

Ruben Verborgh

commit sha d8774e3de1b17a6c4dc59339c08170bcd0e45972

Fix browser compilation. Fixes https://github.com/linkeddata/rdflib.js/issues/334

view details

Ruben Verborgh

commit sha 14a41400d6de9aaa47ad0a0ec3e24c56c71b0216

Upgrade test scripts.

view details

Ruben Verborgh

commit sha bca66026820fb0da82c94c2d5f872e7e2a05a3cd

Add development server.

view details

Ruben Verborgh

commit sha 7d45e68e73ed451db22656f6ec7c1cbe499752f6

Avoid reuse of same response on error. Fixes https://github.com/linkeddata/rdflib.js/issues/326

view details

Ruben Verborgh

commit sha 62d03c1eeb3f28b750cca6133187eb992febe9a3

Use valid credentials setting value.

view details

Ruben Verborgh

commit sha 9e0405498b9a4b86924bae003206d516800b3e2e

Migrate source to ES6 import/export.

view details

Ruben Verborgh

commit sha 159da954a119305d2fe85b8367fcd8dbb3abf979

Expose source code as module.

view details

Arne Hassel

commit sha ec9773bf6062dac149a3f14e31c9588a87294308

Merge pull request #338 from linkeddata/fix/retry-without-credentials Fix retrying without credentials

view details

push time in 8 days