{"action":"opened","issue":{"url":"https://api.github.com/repos/dbpedia/mappings-tracker/issues/74","labels_url":"https://api.github.com/repos/dbpedia/mappings-tracker/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/dbpedia/mappings-tracker/issues/74/comments","events_url":"https://api.github.com/repos/dbpedia/mappings-tracker/issues/74/events","html_url":"https://github.com/dbpedia/mappings-tracker/issues/74","id":113096276,"number":74,"title":"statistics - properties incorrectly shown as not in template or not used","user":{"login":"CaptSolo","id":39945,"avatar_url":"https://avatars.githubusercontent.com/u/39945?v=3","gravatar_id":"","url":"https://api.github.com/users/CaptSolo","html_url":"https://github.com/CaptSolo","followers_url":"https://api.github.com/users/CaptSolo/followers","following_url":"https://api.github.com/users/CaptSolo/following{/other_user}","gists_url":"https://api.github.com/users/CaptSolo/gists{/gist_id}","starred_url":"https://api.github.com/users/CaptSolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaptSolo/subscriptions","organizations_url":"https://api.github.com/users/CaptSolo/orgs","repos_url":"https://api.github.com/users/CaptSolo/repos","events_url":"https://api.github.com/users/CaptSolo/events{/privacy}","received_events_url":"https://api.github.com/users/CaptSolo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-23T20:45:18Z","updated_at":"2015-10-23T20:45:18Z","closed_at":null,"body":"Statistics shows incorrect information about some infobox properties:\r\n* these properties are marked as \"property is mapped but not found in the template definition\" (and the number of occurrences is not counted) even though they are both included in the infobox template and actually used in Wikipedia pages\r\n\r\nExample:\r\n* http://mappings.dbpedia.org/server/templatestatistics/lv/?template=Rakstnieka_infokaste\r\n* template: https://lv.wikipedia.org/wiki/Veidne:Rakstnieka_infokaste\r\n\r\nIt was suggested on dbpedia-discuss that this status is displayed because the properties are not actually used in Wikipedia pages. That is not the case for the example above - it can be verified that properties shown with this status are used in instances of Rakstnieka_infokaste infobox (using a Wikipedia dump from some months ago to avoid the possibility that they might be added after DBPedia stats were generated):\r\n\r\n```\r\n> bunzip2 -c lvwiki-20150702-pages-meta-current.xml.bz2 |  awk '/{{Rakstnieka infokaste/,/}}/' - | egrep \"alma_mater\\s*=\\s*(\\w+|[\\['])\" | wc\r\n      15     112    1087\r\n```\r\n\r\nAll 3 properties with this status are used in infobox instances:\r\n* 15 matches for \"alma_mater\"\r\n* 27 matches for \"apbalvojumi\"\r\n* 21 matches for \"periods\"\r\n\r\nRelated mailing list discussion:  http://sourceforge.net/p/dbpedia/mailman/message/34541728/\r\n"}}