hi-0
|
इस सदस्य को हिन्दी का ज्ञान नहीं है (अथवा समझने में बहुत परेशानी होती है)।
|
|
Please let me know If I am doing anything wrong!
Harvesting infoboxes to add P31 (instance of)
edit
Let's say all articles on the Polish Wikipedia with template "Meteoryt infobox" are about a meteorite. Many of them do not have any P31. Let's fix that:
- Open https://tools.wmflabs.org/pltools/harvesttemplates/ and set Wiki=pl.wikipedia.org, Property=P31, Template=Meteoryt infobox, Parameter=0
- Press on "get values" then "demo". Do NOT press on "add values"!
- Wait for the demo to finish (this step retrieves the QIDs, all lines become red, don't worry)
- Press "TSV" to download the data in Gnumeric
- Keep only the second column "qid"
- Add a second column with header "P31" and "Q9252191" (replace with the QID of the class you want these items to be an instance of) on all rows
- Copy the data into Geany, replace all tabs with a comma
- Open https://tools.wmflabs.org/quickstatements and import as CSV
- Run
Wikidata:Property_proposal/opening_hours_(v.3)
# Museums around me that are open right now
SELECT ?place ?location ?distance ?placeLabel WHERE {
# Museums
?place p:P31/ps:P31/wdt:P279* wd:Q33506.
# Open today
# TODO
# Open today at now's time
# TODO
# Around me
SERVICE wikibase:around {
?place wdt:P625 ?location .
bd:serviceParam wikibase:center "Point(-122.399523 37.786952)"^^geo:wktLiteral .
bd:serviceParam wikibase:radius "1" .
bd:serviceParam wikibase:distance ?distance .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?distance LIMIT 10