Open-Credentialing-Initiative / schemas

Repository including all OCI-related JSON-LD schemas
https://open-credentialing-initiative.github.io/schemas/specification/latest/
0 stars 1 forks source link

schema:additionalType is a property - not a value type #2

Closed mgh128 closed 2 years ago

mgh128 commented 2 years ago

I noticed this while helping Elizabeth Waldorf (Tracelink) with some SHACL validation issues. One of the glitches I noticed was that "organizationType" was not only being mapped to schema:additionalType (via "@id" : "schema:additionalType" ) - that's OK; what is not OK is casting a string value such as "Wholesaler" to "Wholesaler"^^schema:additionalType when schema:additionalType is not even a data type in the way that xsd:date is.

lleifermann commented 2 years ago

Hey @mgh128 sorry for the late reply. Thanks for your contribution. Elizabeth already informed me about the issue with schema:additionalType and i changed it to the short-hand form in one of my commits last week. If you have a suggestion on what type might fit better here for a string value in this json-ld context, feel free to change it as well.