Wikidata:Requests for permissions/Bot/Bean49Bot 3
The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved--Ymblanter (talk) 12:00, 8 February 2023 (UTC)[reply]
Bean49Bot 3 edit
Bean49Bot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Bean49 (talk • contribs • logs)
Task/s: Add parent astronomical body to asteroid belt asteroids, required by multiple constraints.
Code:
Function details:
Multiple constraints like of apoapsis (P2243) and periapsis (P2244) require parent astronomical body (P397). I would add it for asteroid belt asteroids which don't have it.
Sample edit: Special:Diff/1808043122. --Bean49 (talk) 00:36, 10 January 2023 (UTC)[reply]
I query the items with:SELECT ?item WHERE {
?item wdt:P31 wd:Q3863;
wdt:P196 wd:Q2179;
wdt:P716 _:b3.
FILTER(NOT EXISTS { ?item wdt:P397 _:b1. })
}
and I add parent astronomical body (P397)Sun (Q525). --Bean49 (talk) 21:35, 19 January 2023 (UTC)[reply]
Support it would be very important! --Porrima (talk) 12:06, 29 January 2023 (UTC)[reply]