Difference between revisions of "Wb query"

From wikieduonline
Jump to navigation Jump to search
 
Line 4: Line 4:
  
 
  wb query --object Q8682 -a
 
  wb query --object Q8682 -a
 +
 +
wb query --object Q8682 -a --dry
 +
SELECT ?subject ?subjectLabel ?property ?propLabel WHERE {
 +
  ?subject ?property wd:Q8682 .
 +
  ?prop wikibase:directClaim ?property .
 +
  SERVICE wikibase:label {
 +
    bd:serviceParam wikibase:language "en,[AUTO_LANGUAGE]" .
 +
  }
 +
}
 +
 +
 +
  
 
  wb query -p P31 -o Q44559 --limit 5
 
  wb query -p P31 -o Q44559 --limit 5

Latest revision as of 17:18, 22 January 2024

wb query --help
wb query --object Q8682 -a
wb query --object Q8682 -a --dry
SELECT ?subject ?subjectLabel ?property ?propLabel WHERE {
 ?subject ?property wd:Q8682 .
 ?prop wikibase:directClaim ?property .
 SERVICE wikibase:label {
   bd:serviceParam wikibase:language "en,[AUTO_LANGUAGE]" .
 }
}



wb query -p P31 -o Q44559 --limit 5
wb query --property P921 --object Q44559 --labels


wb query --object Q8682
wb query --object Q8682 -a
wb query --object Q8682
[
 {
   "subject": "Q1835",
   "property": "P54"
 },
 {
   "subject": "Q1912",
   "property": "P54"
 },
 .../...


Advertising: