Skip to content

Error when passing application/ld+json in accept header #54

@rubensworks

Description

@rubensworks

I discovered this on the Wikidata TPF endpoint:

Accept header containing application/ld+json:

$ curl -H 'Accept: application/trig;q=1.0,application/ld+json;q=0.9,application/n-quads;q=0.7,text/turtle;q=0.6,application/rdf+xml;q=0.5' https://query.wikidata.org/bigdata/ldf

-> Returns 500

Accept header containing application/json:

$ curl -H 'Accept: application/trig;q=1.0,application/json;q=0.9,application/n-quads;q=0.7,text/turtle;q=0.6,application/rdf+xml;q=0.5' https://query.wikidata.org/bigdata/ldf

-> Returns 200 as Turtle.

The problem occurs when querying Wikidata with Comunica, but it does not occur when querying with Client.js, as the latter does not accept JSON-LD serializations.

May be related to #47

This is a blocker for comunica/jQuery-Widget.js#25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions