Hi Holger,
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: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