-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RDF.type of non-vocabulary named individuals may cause cadinality validation error #153
Comments
I wonder if we need to define an Individual |
We could. Maybe something along this line?, with mandatory properties. SpdxCreationInfoV3_0
SpdxOrganization
Not sure if we need to keep the name of SpdxCreationInfo individual unique across different versions; but as we have the specVersion inside it, we may need something in the name to differentiate it? This is not my area of expertise. |
This issue will also appear on every predefined Individual -- namely, all licenses and exceptions defined in the License List. I am OK with defining an Individual Organization for SPDX (with spdxId https://spdx.org) and re-using it for creator in all of these. But I don't think we should define (in the model, I mean) a special CreationInfo instance. It's not even an Element. Of course the generated serialization of the Individuals will use something, but there is no need to have it specified anywhere (as long as there is one). |
I have tested pyshacl with this hand-edited spdx-model.ttl.txt and looks like it works (tested with spdx-spec/examples/jsonld/package_sbom.json).
Schema generated (by shacl2code) from that ttl: schema.json.txt |
PR #154 proposes to add the above information to RDF. |
This solution approach makes sense. Defining an SPDXOrganization individual (of type Organization) to be used as the 'createdBy' for all predefined named individuals in the SPDX spec/ontology makes sense. |
Note: |
Background
NoneElement
andNoAssertionElement
are of typeElement
NoneLicense
andNoAssertionLicense
are of typeIndividualLicensingInfo
(also subclass ofElement
)The issue
Element
also requires at least onecreationInfo
The text was updated successfully, but these errors were encountered: