Василиса▶ Я жду вашего обращения. Что Вы хотите узнать?
Wikidata Query Service - MediaWiki Wikidata Query ServiceFrom mediawiki.org

The Wikidata Query Service ( WDQS ) provides a way for tools to access Wikidata data, via a SPARQL API. See the beta at http://query.wikidata.org/

ContentsRationale[ edit ]

The Wikimedia Foundation Mobile team is investigating using Wikidata to provide a reading and contribution experience that is better suited to mobile devices.

Contribution[ edit ]

Inspired by the Wikidata game , the team has built WikiGrok , a feature that generates simple questions about a Wikipedia article and can send the responses to Wikidata. The ultimate goal of WikiGrok is two-fold:

Provide an engaging way for users to add value to Wikimedia projects via a mobile device. WikiGrok contributors will be helping convert the tremendous but unstructured repository of knowledge contained in Wikipedia into structured, machine-readable data in Wikidata.Use the data generated by this feature to provide a better reading and editing experience on existing and new devices/platforms. As Wikidata becomes a more robust repository of structured data about Wikipedia items, we can use it to generate more modular blocks of content to our users across the spectrum of mobile devices (handsets, tablets, wearables), in specialized standalone apps, etc.Reading[ edit ]

Additionally, on both the mobile site and the Wikipedia native apps, we are experimenting with using Wikidata to enhance the reading experience: using Wikidata short descriptors in search and article titles to help readers get more context at a glance, as well as building infoboxes from Wikidata to provide a better formatted quick fact lookup experience. Eventually, we want these items to be editable directly from Wikipedia, so more readers can become editors and help make Wikipedia better.

However, in order for these projects to scale to production, as well as to provide a benefit to other Wikidata-related projects, we need to build a service that allows for simple and more complex queries of Wikidata items/properties.

Use cases[ edit ]

We hope to cover a variety of use-cases with WikiGrok, so that it can be a flexible tool for generating new campaigns to meet the changing needs of Wikidata. However, our current hypothesis is that while simple query question types will be easier to generate, the kinds of questions that require more sophisticated queries will be more interesting and engaging for end-users and will be more valuable for populating niche areas in Wikidata.

Generating item lists[ edit ]Simple query[ edit ]

Collect all Wikidata items with a specific claim or property, so that users can add more properties, claims, or references to those items via WikiGrok.


all items that are ‘instance of: human’ (claim)all items that have ‘date of publication’ (property)Complex queries[ edit ]

Collect all Wikidata items that belong to an intersection or combination of parameters (including negation and ranges), so that users can add more properties, claims, or references to those items via WikiGrok.


all ‘instance of: human’ with ‘birth date: between 1900 and 2000’ (note some people have multiple birth dates)all ‘instance of: painting’ with ‘creator: Leonardo da Vinci’ and no 'material used' propertyall ‘instance of: human‘ with ‘place of birth: Germany‘ or ‘place of birth‘ set to a location with ‘country: Germany‘Tree traversal[ edit ]

Collect items from a tree, either traveling up the tree or down (or both)


Build a list of all possible occupations by traversing down the ‘subclass of‘ and ‘instance of‘ properties from the ‘occupation’ itemBuild a list of all the territories that Berlin belongs to by traversing up the ‘located in the administrative territorial entity‘ propertyBuild a list of all of Queen Victoria's relatives by traversing up and down the various relative properties (mother, child, etc.)Retrieving data for specific items[ edit ]

Collect data about a particular item for use in interfaces related to that item (for example, Wikipedia articles). This use case is somewhat covered by the existing Wikibase API, but in a very limited way.


Retrieve all of the occupation values for Albert EinsteinRetrieve all the date of birth values for JesusRetrieve the preferred date of birth value for Jesus (or the first if none are preferred)Retrieve birth date, death date, occupation, nationality, and family tree for Queen VictoriaOther tools[ edit ]

This section should eventually find better place, for now this is the list of related tools:

http://tools.wmflabs.org/wdq2sparql/w2s.php - WDQ to SPARQL translator https://tools.wmflabs.org/bene/sparql/ - SPARQL query generator https://tools.wmflabs.org/ppp-sparql/ - natural language query generator based on Platypus https://github.com/mariushoch/asparagus - Command-line client https://github.com/nichtich/wdq - Command-line client https://cran.r-project.org/package=WikidataQueryServiceR - R wrapper for WDQS API; send a SPARQL query, get back a data.frameReports[ edit ]Analysis: What kind of things are people doing with WDQS? ( original ticket completed in Oct 2015)Analysis: Who are our WDQS users and where are they from? ( original ticket completed in Oct 2016)See also[ edit ] Implementation notes WDQS User manual Beta notes MWDS 2015 brainstorming notes Release announcement Intersections with Wikidata Wikidata Query Help Portal Retrieved from " https://www.mediawiki.org/w/index.php?title=Wikidata_Query_Service&oldid=4417059 " Categories : Pages kept for historical interest WMF Projects missing start date Wikidata Query Service Wikidata SPARQL Discovery MediaWiki APIs Navigation menuPersonal toolsNot logged in Talk Contributions Create account Log in Namespaces Page Discussion VariantsViews Read Edit View history MoreSearch
Navigation Main page Get MediaWiki Get extensions Tech blog Contribute Support User help FAQ Technical manual Support desk Communication Development Bug tracker Code docs Code repository Statistics MediaWiki.org Community portal Recent changes Translate content Random page Village pump Sandbox Tools What links here Related changes Upload file Special pages Permanent link Page information Cite this page Wikidata item Print/export Create a book Download as PDF Printable version In other projects Wikimedia Commons In other languages Add links This page was last edited on 21 February 2021, at 01:46.Text is available under the Creative Commons Attribution-ShareAlike License ; additional terms may apply. See Terms of Use for details. Privacy policy About MediaWiki.org Disclaimers Code of Conduct Mobile view Developers Statistics Cookie statement Wikimedia Foundation Powered by MediaWiki
© 2014-2021 ЯВИКС - все права защищены.
Наши контакты