Yes indeed, exactly that.
Regards,

Op ma 4 mrt 2024 16:24 schreef Holger Knublauch <[email protected]>:

> Hi Ad,
>
> not sure if I understand the scenario correctly. Do you mean:
>
> 1) One property is dynamically computed using sh:values
> 2) Another property shall be edited as a drop-down list populated with
> those values?
>
> Holger
>
>
>
> On 4 Mar 2024, at 2:48 pm, Ad Reuijl <[email protected]> wrote:
>
> Hi Holger,
>
> <Capture.PNG>
>
>
> I  have a class, that has some instances. i'm showing them in the frontend
> via a sh:values rule.
>
>
> werkwijzeFrontend:Resource-keuzenlijst
>   a sh:PropertyShape ;
>   sh:path werkwijzeFrontend:keuzenlijst ;
>   sh:group tosh:LabelsPropertyGroup ;
>   sh:description "keuzelijst" ;
>   sh:name "keuzen" ;
>   sh:values [
>   sh:prefixes <https://ontology.schiphol.nl/werkwijzeFrontend> ;
>   sh:select """
>
> SELECT DISTINCT ?listOfValues
>   WHERE {
> $this owl:equivalentClass ?class.
> ?class owl:oneOf ?list.
> ?list rdf:rest*/rdf:first ?listOfValues
>
> }
>   """ ;
>
>     ] ;
>   sh:order "11"^^xsd:decimal ;
> .
> (yes this is a bit of a weird query, but there are reasons ;) )
> Now i want the user to have a dropdown to select one of these values.
> Until now i managed with the use of sh:class and sh:node. for example
>
>   werkwijzeFrontend:PropertyShape-kenmerkenToevoegen
>   a sh:PropertyShape ;
>   sh:path ddschange:toeTeVoegenKenmerkProperty;
>   #sh:class dds:Kenmerk ;
>   sh:class owl:Class;
>   sh:node werkwijzeFrontend:NodeShape-Kenmerk;
>   sh:description "Maak een toevoegingsverzoek aan voor een kenmerk" ;
>   sh:group werkwijzeFrontend:ToevoegingenPropertyGroup ;
>   sh:name "voeg kenmerk(en) toe" ;
>   sh:order "6"^^xsd:decimal ;
> .
> werkwijzeFrontend:NodeShape-Kenmerk a sh:NodeShape;
>     sh:property [
>       sh:path rdfs:subClassOf;
>       sh:hasValue dds:SpecifiekKenmerk;
>     ]
>   ;
> .
>  but in this case i need to refer to $this. Is this possible? Could you
> please help me, i have been searching and searching but cant find anything.
>
> Regards,
> Ad Reuijl
>
> --
> The topics of this mailing list include TopBraid EDG and related
> technologies such as SHACL.
> To post to this group, send email to [email protected]
> ---
> You received this message because you are subscribed to the Google Groups
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/topbraid-users/3acacde6-a807-475d-97c8-ff003113c67bn%40googlegroups.com
> <https://groups.google.com/d/msgid/topbraid-users/3acacde6-a807-475d-97c8-ff003113c67bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> <Capture.PNG>
>
>
> --
> The topics of this mailing list include TopBraid EDG and related
> technologies such as SHACL.
> To post to this group, send email to [email protected]
> ---
> You received this message because you are subscribed to the Google Groups
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/topbraid-users/DDF8BD23-4C7C-43AB-A15E-6166DB162586%40topquadrant.com
> <https://groups.google.com/d/msgid/topbraid-users/DDF8BD23-4C7C-43AB-A15E-6166DB162586%40topquadrant.com?utm_medium=email&utm_source=footer>
> .
>

-- 
The topics of this mailing list include TopBraid EDG and related technologies 
such as SHACL.
To post to this group, send email to [email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/CADsynWfxXSkkFnPML4_TDOuFF8eHVHXXRzNkmCDG%2BW4zWhoM8g%40mail.gmail.com.

Reply via email to