User:Tagishsimon

From Wikidata
Jump to navigation Jump to search

Stuff[edit]

QS[edit]

SPARQL[edit]

Qualifiers[edit]

 ?item p:Pnnn ?var.
 ?var ps:Pnnn ?rating; pq:Pmmm ?value.

or

 ?var ps:Pnnn wd:Qxxx; pq:Pmmm ?value.

Sequential queries[edit]

SELECT ?something
with {SELECT ?something where {
  . . .
} group by ?something
     } as %stuff
. . .
 where { include %stuff
 SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}

Try it!

Qid from article name[edit]

SELECT ?item ?sitelink ?website WHERE {

 VALUES ?sitelink {

"Admiral Group"@en

 } .
 ?sitelink ^schema:name ?article .
 ?article schema:about ?item ;
          schema:isPartOf <https://en.wikipedia.org/> .

?item wdt:P856 ?website }