-
Notifications
You must be signed in to change notification settings - Fork 2
Wikidata and Wikidata API
Wikidata is a free, collaborative, multilingual knowledge base operated by the Wikimedia Foundation. It serves as a central storage for the structured data of its Wikimedia sister projects including Wikipedia, Wikivoyage, Wiktionary, Wikisource, and others. Wikidata aims to provide a common source of data that can be used by Wikimedia projects and beyond, in a way that is accessible and editable by both humans and machines. It includes information on a wide range of topics, from historical events and figures to scientific concepts and geographical data.
Base url: https://www.wikidata.org/w/rest.php/wikibase/v0
Swagger: https://doc.wikimedia.org/Wikibase/master/js/rest-api/
To make authenticated requests against the Wikibase REST API for Wikidata, you must first set up an OAuth 2.0 client (formerly known as "consumer").
Once the OAuth 2.0 is set up you can start using this REST API
While the Wikipedia API allows you to query the content that you find on the actual Wikipedia page, the Wikidata API allows you to query the data behind that is used to build content across the MediaWiki organisation (wikitravel, wikipedia, wikispecies, etc.).
So, with the Wikidata API, you can, in a way query the Wikipedia content, but with wikipedia, you may not be able to query some of the data in wikidata.
You can test some endpoints in this Sandbox: https://www.wikidata.org/wiki/Special:ApiSandbox#action=wbsearchentities&search=alphabet&language=en
Example request: https://www.wikidata.org/w/api.php?action=wbsearchentities&format=json&search=Google&language=en
The wbsearchentities searches for entities using labels and aliases. This helps you to discover the entity ID using free text. For example, using the search term “Google” to find that it’s entity ID is Q9366.
The wbgetentities action helps you get the data for the Wikibase entities for which you know the ID. This helps you query all the data available for a given wikidata ID. The wikidata ID is either found with the Wbsearchentities API, or in the URL or the title of the Wikidata page.
Also there is a second way of of getting the needed query in API:
This API lets you access Wikidata intelligently. You can formulate complex queries by specifying constraints on the entities and properties. For example, if you wanted to fetch all entities named Bond but only if they refer to human beings, you can use the following query:
Queries can be tested here: https://query.wikidata.org/
🏠Home
- Third Customer Milestone Report
- RAM
- Requirements
- Mockups
- Sequence Diagrams
- Use Case Diagram
- Class Diagrams
- Scenarios
- User Scenario
- User Manual
- System Manual
- Third Customer Milestone Report
- Second Customer Milestone Report
- First Customer Milestone Report
- RAM
- Requirements
- Mockups
- Sequence Diagrams
- Scenarios
- Use Case Diagram
- Class Diagrams
- Software Quality Plan
- Milestone1 Presentation Scenarios
- Post Creation Page
- User Scenario
- Meeting Notes 10 - Dec 10
- Meeting Notes 9 - Dec 3
- Meeting Notes 8 - Nov 17
- Meeting Notes 7 - Nov 12
- Meeting Notes 6 - Nov 5
- Optional Meeting Notes 1 ‐ Oct 21
- Meeting Notes 5 - Oct 15
- Meeting Notes 4 - Oct 8
- Meeting Notes 3 - Oct 3
- Meeting Notes 2 - Oct 1
- Meeting Notes 1 - Sep 24
- Deniz Ulaş Poyraz
- Eren Donmez
- Ersel Çanakçılı
- Oğuz Kağnıcı
- Onur Çerli
- Yekta Ercul
- Ali Alperen Sönmez
- Huseyin Turker Erdem
- Mehmet Tuluyhan Sozen
352 Material
- Final Milestone Report
- Milestone 2 Report
- RAM
- Use Case Diagram
- Sequence Diagrams
- Class Diagrams
- Requirements
- Elicitation Questions
- Mockups
- Scenarios
- Milestone 1 Report
- Our Favourite Repositories
- Linked Data and SPARQL
- Web Application Development
- API Development and Utilization
- Wikidata and Wikidata API
- Mobile Application Development
- Android Studio
- Git
- Meeting Notes 10 ‐ May 10th
- Meeting Notes 9 ‐ Apr 25th
- Meeting Notes 8 ‐ Apr 21st
- Meeting Notes 7 ‐ Apr 12th
- Meeting Notes 6 ‐ Mar 14th
- Meeting Notes 5 ‐ Mar 11th
- Meeting Notes 4 - Mar 7th
- Meeting Notes 3 - Mar 3rd
- Meeting Notes 2 - Feb 22nd
- Meeting Notes 1 - Feb 18th