# Shape expression for checking an item is an instance
# of organization class (or of some subclass)
PREFIX wd:
PREFIX wdt:
start = @
{
(
(wdt:P31 [wd:Q43229]; wdt:P31 .*) |
(wdt:P31 @; wdt:P31 .*)
)
}
{
(
(wdt:P279 [wd:Q43229]; wdt:P279 .*) |
(wdt:P279 @; wdt:P279 .*)
)
}