Project:SPARQL/examples: Difference between revisions

m
Line 1,570: Line 1,570:


?item bnwdt:P12 bnwd:Q2316  . # instance of organisation
?item bnwdt:P12 bnwd:Q2316  . # instance of organisation
# ?item ( bnwdt:P12/bnwdt:P12 | bnwdt:P12 ) bnwd:Q2316 . # this line instead would also get organisations whose instance of (eg learned society Q2317) is an instance of Q2316. Not sure if this is the best way to do it, but bnwdt:P12* seems to fetche some extras/duplicates, I think because a small number of items are both children of and grandchildren of Q2316.
# ?item ( bnwdt:P12/bnwdt:P12 | bnwdt:P12 ) bnwd:Q2316 . # this line instead would also get organisations whose instance of (eg learned society Q2317) is an instance of Q2316. Or bnwdt:P12* (or bnwdt:P12+) which fetches some extra rows


   # get all the things about ?item   
   # get all the things about ?item   
586

edits