Skip to content

Could not parse JSONLD #120

@elf-pavlik

Description

@elf-pavlik

This example scenario should be enough to reproduce:

  Scenario: Test JSON-LD
    * def oidcContext = 'https://www.w3.org/ns/solid/oidc-context.jsonld'
    Given url oidcContext
    And header Accept = 'application/ld+json'
    When method GET
    Then status 200
    * print response
    * def dataset = parse(response, 'application/ld+json', oidcContext)

It errors with

>>> failed features:
js failed:
>>>>
01: parse(response, 'application/ld+json', oidcContext)
<<<<
org.graalvm.polyglot.PolyglotException: org.solid.testharness.api.TestHarnessApiException: Failed to parse data
Caused by: org.eclipse.rdf4j.rio.RDFParseException: Could not parse JSONLD
- org.solid.testharness.api.RDFModel.parse(RDFModel.java:93)
- <js>.parse(Unnamed:87)

../data/sai/discovery.feature:82
<<<

In my test I wanted to parse a Client ID document, but it seems enough to try parsing Solid-OIDC context and it fails.

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