Difference between revisions of "Wb query"
Jump to navigation
Jump to search
(Created page with " wb query -p P31 -o Q44559 --limit 5 {{wb}}") |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lc}} | ||
+ | [[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}} | + | |
+ | |||
+ | |||
+ | 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" | ||
+ | }, | ||
+ | .../... | ||
+ | |||
+ | |||
+ | |||
+ | * {{wb}} | ||
+ | * {{Wikidata}} |
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: