Yes, we should.
Submit the PR, Joshua.

-- 
zvr
-----Original Message-----
From: Gary O'Neall <[email protected]> 
Sent: Wednesday, 3 April, 2024 22:27
To: 'Joshua Watt' <[email protected]>; 'SPDX Technical Mailing List' 
<[email protected]>
Cc: Zavras, Alexios <[email protected]>; 'Sean Barnum' 
<[email protected]>
Subject: RE: [spdx-tech] Using sh:in for enums

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
> 
> 
> 


Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5598): https://lists.spdx.org/g/Spdx-tech/message/5598
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