errors in untp-dpp-instance-0.5.0.json
Created by: VladimirAlexiev
https://test.uncefact.org/vocabulary/untp/dpp/untp-dpp-instance-0.5.0.json as published at https://uncefact.github.io/spec-untp/docs/specification/DigitalProductPassport
riot.bat --formatted trig --syntax jsonld dpp-instance-0.5.0.json > dpp-instance-0.5.0.trig
May 12, 2025 5:21:34 PM com.apicatalog.jsonld.deseralization.JsonLdToRdf build
gives 2 errors:
-
Non well-formed subject [https://vocabulary.uncefact.org/CountryIdEnumeration Value] has been skipped.
This comes from
"jurisdictionCountry": "Enumeration Value",
The context declares
"jurisdictionCountry": {
"@id": "untp-core:jurisdictionCountry",
"@type": "@vocab",
"@context": {
"@protected": true,
"@vocab": "https://vocabulary.uncefact.org/CountryId"
}
},
So it tries to interpret the field as URL https://vocabulary.uncefact.org/CountryIdEnumeration Value
and fails.
In the example: put "AU" (or "BG" :-).
In the context: add trailing hash i.e. https://vocabulary.uncefact.org/CountryId# (https://vocabulary.uncefact.org/CountryId#AU
is right)
-
Lexical form '5.0E-2' not valid for datatype XSD decimal
(13 times) This comes from
"accuracy": 0.05
JSON doesn't have any strict definition of Number, so 0.05 is freely converted to scientific notation by the JSON/JSONLD processor.
But the datatype declaration xsd:decimal
complains about that number.