Home >  > wiki的新玩法

wiki的新玩法

在下面这篇文章看到的:
https://wordlift.io/blog/en/keyword-suggestion-tool-tensorflow/

就是可以像操作数据库那样对wiki进行操作:

#Software applications ranked in descending order filtered by Operating System
#defaultView:Table
SELECT ?app ?appLabel ?appCategory ?appCategoryLabel ?logo_image ?appDeveloper ?appDeveloperLabel WHERE {
  ?app wdt:P306 wd:Q1406.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  OPTIONAL { ?app wdt:P154 ?logo_image. }
  OPTIONAL { ?app wdt:P31 ?appCategory. }
  OPTIONAL { ?app wdt:P178 ?appDeveloper. }
}
LIMIT 50

地址:
https://query.wikidata.org/#%23Software%20applications%20ranked%20in%20descending%20order%20filtered%20by%20Operating%20System%0A%23defaultView%3ATable%0ASELECT%20%3Fapp%20%3FappLabel%20%3FappCategory%20%3FappCategoryLabel%20%3Flogo_image%20%3FappDeveloper%20%3FappDeveloperLabel%20WHERE%20%7B%0A%20%20%3Fapp%20wdt%3AP306%20wd%3AQ1406.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fapp%20wdt%3AP154%20%3Flogo_image.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fapp%20wdt%3AP31%20%3FappCategory.%20%7D%0A%20%20OPTIONAL%20%7B%20%3Fapp%20wdt%3AP178%20%3FappDeveloper.%20%7D%0A%7D%0ALIMIT%2050

本文暂无标签