Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Uploading a valid TD -> Error 500: could not parse JSON-LD #37

Description

@MatthiasLaeufer

I've downloaded and started directory 0.9.0.
When upload a JSON (with type JSON-LD) the upload is succesfull.

When uploading a JSON-LD (from Thing Description specification draft Example 2 from 24. January 2019). The TD is valid, regarding thingweb playground, which is using the TD specification from 17. January 2019
{ "@context": [ "http://www.w3.org/ns/td", {"http": "http://www.w3.org/2011/http#"} ], "id": "urn:dev:wot:com:example:servient:lamp", "name": "MyLampThing", "securityDefinitions": {"basic_sc": { "scheme": "basic", "in": "header" }}, "security": ["basic_sc"], "properties": { "status": { "readOnly": false, "writeOnly": false, "observable": false, "type": "string", "forms": [{ "href": "https://mylamp.example.com/status", "http:methodName": "GET", "contentType": "application/json" }] } }, "actions": { "toggle": { "idempotent": false, "safe": false, "forms": [{ "href": "https://mylamp.example.com/toggle", "http:methodName": "POST", "contentType": "application/json" }] } }, "events": { "overheating": { "data": {"type": "string"}, "forms": [{ "href": "https://mylamp.example.com/oh", "subprotocol": "longpoll", "contentType": "application/json" }] } } }

I'm getting this error:
javax.servlet.ServletException: org.eclipse.rdf4j.rio.RDFParseException: Could not parse JSONLD

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions