CommunitySolidServer / CommunitySolidServer

An open and modular implementation of the Solid specifications
https://communitysolidserver.github.io/CommunitySolidServer/
MIT License
510 stars 124 forks source link

Unknown ActivityStreams2 type in JSON-LD results in illegal Turtle #1643

Open phochste opened 1 year ago

phochste commented 1 year ago

Environment

$ community-solid-server --version
6.0.0
$ node -v
v16.15.0
$ npm -v
9.6.5

Description

% curl -H 'Accept: text/turtle' https://patrickhochstenbach.net/test/openaire.test.jsonld
<https://scholexplorer.openaire.eu/#about> <https://www.w3.org/ns/activitystreams#name> "OPENAIRE Scholexplorer";
    a <_:OPENAIRE>.
<https://bellow2.ugent.be/test/scholix/dx.plos.org/about#us> <http://www.w3.org/ns/ldp#inbox> <https://bellow2.ugent.be/test/scholix/dx.plos.org/inbox/>;
    a <https://www.w3.org/ns/activitystreams#Organization>.
<https://mellonscholarlycommunication.github.io/about#us> a <https://www.w3.org/ns/activitystreams#Application>;
    <https://www.w3.org/ns/activitystreams#name> "UGent/Mellon JSON-LD/AS2 Notification Generator for Scholix".
<urn:uuid:b635815d-7182-4af2-8221-537ce1e3d4c7> <https://www.w3.org/ns/activitystreams#origin> <https://mellonscholarlycommunication.github.io/about#us>.
<https://patrickhochstenbach.net/test/9e05870a-53d8-4647-a30c-fc6720b9ac36> <https://www.w3.org/ns/activitystreams#object> <https://doi.org/10.1037/e520562012-736>;
    <https://www.w3.org/ns/activitystreams#relationship> <http://www.scholix.org/References>;
    a <https://www.w3.org/ns/activitystreams#Relationship>;
    <https://www.w3.org/ns/activitystreams#subject> <https://dx.plos.org/10.1371/journal.pone.0186606>.
<urn:uuid:b635815d-7182-4af2-8221-537ce1e3d4c7> <https://www.w3.org/ns/activitystreams#object> <https://patrickhochstenbach.net/test/9e05870a-53d8-4647-a30c-fc6720b9ac36>;
    a <https://www.w3.org/ns/activitystreams#Announce>;
    <https://www.w3.org/ns/activitystreams#actor> <https://scholexplorer.openaire.eu/#about>;
    <https://www.w3.org/ns/activitystreams#published> "2017-01-01"^^<http://www.w3.org/2001/XMLSchema#dateTime>;
    <https://www.w3.org/ns/activitystreams#target> <https://bellow2.ugent.be/test/scholix/dx.plos.org/about#us>;
    <https://www.w3.org/ns/activitystreams#context> <https://dx.plos.org/10.1371/journal.pone.0186606>.

See <_:OPENAIRE>

See also: https://github.com/comunica/comunica-feature-link-traversal/issues/60

joachimvh commented 1 year ago

This is caused by an issue with the JSON-LD parser: https://github.com/rubensworks/jsonld-streaming-parser.js/issues/111