3 hours ago · Tech · 0 comments

This morning, I stumbled upon this Wikidata error.I wanted to fix it, but I did not know how.I wish there were an "intelligent autocorrect" feature built into Wikidata that could suggest a quick fix for situations like this. Modern IDEs already have such features.Anyway. So, I started thinking of several ways to solve the problem.One of my proposed solutions was to do a quick “global survey of Wikidata-wide usage” of P812 (academic major). Generate a list of all possible "legal" values of P812, then sort them by frequency.So, I crafted this SPARQL query.SELECT ?major ?majorLabel (COUNT(*) AS ?count) WHERE { ?item wdt:P812 ?major . SERVICE wikibase:label { bd:serviceParam wikibase:language "en,mul,[AUTO_LANGUAGE]" . } } GROUP BY ?major ?majorLabel ORDER BY DESC(?count)Using that SPARQL query, I could generate this list.https://altilunium.github.io/blog/P812-direct.htmlSatisfactory?No.I felt something big was missing.That query only counted direct statements. person → P812 → English…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.