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 (#5595): https://lists.spdx.org/g/Spdx-tech/message/5595
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