I dug further into trying to get my Yocto SPDX output to validate against the JSON LD SHACL model. I've made some progress, but I think maybe I've come up against a problem that don't know how to solve.
Disclaimer: I'm not an SHACL, RDF or ontology expert so please excuse my misuse of nomenclature. It looks like there might be a problem in the model in regard to the usage of "rdfs:range" to validate the type values of object properties. Based on my reading and experiments, it looks like that field requires that the referenced object be of _exactly_ one of the listed types, and cannot be a subclass derived from that type. As an example, the "createdBy" property of core:CreationInfo has "rdfs:range" of "core:Agent". Practically speaking, this means that only an _exact_ core:Agent is allowed in this field, and classes derived from that class (such as core:Organization) are not allowed (or at least, pyshacl indicates a violation). -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#5394): https://lists.spdx.org/g/Spdx-tech/message/5394 Mute This Topic: https://lists.spdx.org/mt/102185295/21656 Group Owner: [email protected] Unsubscribe: https://lists.spdx.org/g/Spdx-tech/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
