mff-uk / dataspecer

https://dataspecer.com
MIT License
22 stars 7 forks source link

Codelist item not generated correctly in JSON-LD context #674

Closed jakubklimek closed 1 week ago

jakubklimek commented 1 week ago

In this specification see Má typ služby generated in json as typ-služby. It has a codelist attached. In JSON Schema, this is correctly output as IRI. In JSON-LD context, there is just:

"typ-služby": "https://slovník.gov.cz/agendový/104/pojem/má-typ-služby",

Which makes it a string, not an IRI. This needs the expanded definition:

"typ-služby": {
    "@id": "https://slovník.gov.cz/agendový/104/pojem/má-typ-služby",
    "@type": "@id"
}