Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.
This repository was archived by the owner on May 22, 2024. It is now read-only.

Examples and ontology ran out of sync #28

@ddoeppner

Description

@ddoeppner

Hey there,

I followed the instructions to build and run the sandbox system as described in the README.

While testing the API with Postman, I encountered the problem that the provided examples no longer with the latest updates.

For example, I get the following error log when I try to POST a CompanyInformation to the http://localhost:8080/companies endpoint:

2022-03-17 19:28:01.677 ERROR 1 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].
[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is cz.cvut.kbss.jsonld.exception.TargetTypeException: Neither class org.iata.cargo.model.Company nor any of its subclasses matches the types [https://onerecord.iata.org/cargo/Company].] with root cause
cz.cvut.kbss.jsonld.exception.TargetTypeException: Neither class org.iata.cargo.model.Company nor any of its subclasses matches the types [https://onerecord.iata.org/cargo/Company]. 
at cz.cvut.kbss.jsonld.deserialization.util.TargetClassResolver.getTargetClass(TargetClassResolver.java:73) ~[jb4jsonld-0.8.4.jar!/:na] at cz.cvut.kbss.jsonld.deserialization.DefaultInstanceBuilder.openObjectForProperty(DefaultInstanceBuilder.java:80) ~[jb4jsonld-0.8.4.jar!/:na]

My test setup:

Could you please update the Postman configuration and JSON examples?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions