Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phochste opened this issue May 27, 2023 · 1 comment
Open

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

phochste opened this issue May 27, 2023 · 1 comment
Labels
🐛 bug Something isn't working ⌛ has dependency

Comments

@phochste
Copy link

Environment

  • Server version: Output of community-solid-server --version for a
    global or npx community-solid-server --version for a local installation
  • Node.js version: Output of node -v
  • npm version: Output of npm -v
$ community-solid-server --version
6.0.0
$ node -v
v16.15.0
$ npm -v
9.6.5

Description

  • I stored on my pod a JSON-LD document https://patrickhochstenbach.net/test/openaire.test.jsonld
  • The $.actor.type contains a value that is clearly not part of the Activity2 spec, but it is not illegal
  • Requesting the text/turtle version of this document I get an illegal turtle response
% 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: comunica/comunica-feature-link-traversal#60

@joachimvh
Copy link
Member

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

@joachimvh joachimvh added 🐛 bug Something isn't working ⌛ has dependency labels May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working ⌛ has dependency
Projects
None yet
Development

No branches or pull requests

2 participants