See https://github.com/spdx/spdx-3-model/issues/460

I personally think we should implement this - especially if Joshua has local 
changes.

Alexios - agree?

Gary

> -----Original Message-----
> From: [email protected] <[email protected]> On Behalf Of
> Joshua Watt
> Sent: Wednesday, April 3, 2024 9:24 AM
> To: SPDX Technical Mailing List <[email protected]>
> Cc: Zavras, Alexios <[email protected]>; Sean Barnum
> <[email protected]>; Gary O'Neall <[email protected]>
> Subject: [spdx-tech] Using sh:in for enums
> 
> After some poking around in the SHACL model, I realized we may want to use
> the sh:in constraint for properties that reference an enum to restrict the
> possible values to actual enum values, as this will greatly aid end users in
> knowing if documents are valid.
> 
> This would generate SHACL for a property that looks like:
> 
>         [ sh:class <https://rdf.spdx.org/v3/Core/PresenceType> ;
>             sh:in (
>                <https://rdf.spdx.org/v3/Core/PresenceType/yes>
>                <https://rdf.spdx.org/v3/Core/PresenceType/no>
>                <https://rdf.spdx.org/v3/Core/PresenceType/noAssertion> ) ;
>             sh:maxCount 1 ;
>             sh:nodeKind sh:IRI ;
>             sh:path <https://rdf.spdx.org/v3/AI/autonomyType> ],
> 
> I've already got a local change in spec parser repo I can push up as a PR if 
> we
> want to do this.
> 
> Thanks,
> Joshua Watt
> 
> 
> 




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5597): https://lists.spdx.org/g/Spdx-tech/message/5597
Mute This Topic: https://lists.spdx.org/mt/105312223/21656
Group Owner: [email protected]
Unsubscribe: https://lists.spdx.org/g/Spdx-tech/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to