Difference between revisions of "Wb query"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | wb query -p P31 -o Q44559 --limit 5 | + | [[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]] --property P921 --object Q44559 --labels | ||
Line 7: | Line 23: | ||
[[wb query --object]] Q8682 | [[wb query --object]] Q8682 | ||
+ | [[wb query --object]] Q8682 -a | ||
+ | |||
+ | [[wb query --object]] Q8682 | ||
+ | [ | ||
+ | { | ||
+ | "subject": "Q1835", | ||
+ | "property": "P54" | ||
+ | }, | ||
+ | { | ||
+ | "subject": "Q1912", | ||
+ | "property": "P54" | ||
+ | }, | ||
+ | .../... | ||
+ | |||
+ | |||
− | {{wb}} | + | * {{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: