Closed kshychko closed 6 months ago
It should be ObjectProperty instead of DatatypeProperty
Hey @kshychko
Here is what Jargon was producing:
But now for types that point to a code, and not a primitive or other class, it now produces:
Is that what you were after?
No, that's not correct. DatatypeProperty should only be assigned to properties which have range in the xsd namespace. Ie integers, decimals, strings, datetime, etc
Thanks @Fak3
So DatatypeProperty is exclusively for primitives. If it's from XSD, it should be DatatypeProperty ObjectProperty is for everything else, always. If its not from XSD, it should be ObjectProperty?
Is that correct?
Yes, that's correct
Thanks @Fak3 . @kshychko I have changed this, and it's now live. Next time you save a snapshot the jsonld should align with what you've outlined above.
Let me know if you can verify, and I'll close this issue.
During UN/CEFACT JSON-LD BSP vocabulary implementation the following approach was chosen to support code lists:
Below are the snippets from the vocabulary to illustrate the approach
But jargon defines it as owl:DatatypeProperty
Which is not correct from the perspective of the approach that was taken for UN/CEFACT JSON-LD BSP vocabulary implementation, because the schema:rangeIncludes doesn't refer to a simple data type like xsd:string for example.
@Fak3 could you please confirm my assumption above?