sh:class will always include subclasses too. But to do direct matching you
could probably do
[ sh:property [ sh:path rdf:type ; sh:hasValue CLASS ] ]
Or use SPARQL as in
[ sh:ask “ASK { $this a CLASS }” ]
(It’s hard to advise you without seeing the full sh:values rule that you have,
so above are my best guesses).
Holger
> On 7 Jul 2022, at 3:08 pm, Carl Burnett <[email protected]> wrote:
>
> I’ve written some sh:values rules for a property shape that filter out (using
> a sh:minus expression) results that have certain rdf:types. My rules work as
> desired except when a result has a type that is a subclass of a “banned”
> class and it is filtered out, which I don’t want.
>
> Is there a way to specify that I only want my rule to filter out values that
> have the actual types I specify – not their subclasses?
>
> Carl Burnett (he/him)
> Senior Ontology Engineer | Healthwise
> [email protected] <mailto:[email protected]> |
> www.healthwise.org <http://www.healthwise.org/>
> 208.489.8485
>
>
> --
> 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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/topbraid-users/MWHPR19MB1598DBA2CAC4BA294856273EB7839%40MWHPR19MB1598.namprd19.prod.outlook.com
>
> <https://groups.google.com/d/msgid/topbraid-users/MWHPR19MB1598DBA2CAC4BA294856273EB7839%40MWHPR19MB1598.namprd19.prod.outlook.com?utm_medium=email&utm_source=footer>.
--
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/1E84478E-504E-441A-9BF5-7C3DC7197E5D%40topquadrant.com.