Project:SPARQL/examples: Difference between revisions

Jump to navigation Jump to search
Line 244: Line 244:
   ?item wdt:P72 ?author1 . # Selects a first author.
   ?item wdt:P72 ?author1 . # Selects a first author.
   ?item wdt:P72 ?author2 . # Selects a second author.
   ?item wdt:P72 ?author2 . # Selects a second author.
  FILTER (?author1 != ?author2) # Removes self-relations.
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en (English) language
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en (English) language
}
}

Navigation menu