Questions tagged [wikidata]

Wikidata is a free, collaborative, multilingual database, collecting structured data to provide support for Wikipedia, Wikimedia Commons, and the other wikis of the Wikimedia movement. One can retrieve all data using Wikidata Query Service (Wikidata SPARQL endpoint) or Wikidata API (Wikidata MediaWiki API extension). If you are completely new both to SPARQL and MediaWiki API, please consider to ask your question on opendata.stackexchange.com.

Wikidata is a free, collaboratively edited knowledge base operated by the Wikimedia Foundation. It is intended to provide a common source of certain data types (for example, birth dates) which can be used by Wikimedia projects such as Wikipedia. This is similar to the way Wikimedia Commons provides storage for media files and access to those files for all Wikimedia projects.

Concepts:

Wikidata is a document-oriented database, focused around items. Each item represents a topic (or an administrative page used to maintain Wikipedia) and is identified by a unique number, prefixed with the letter Q — for example, the item for the topic Politics is Q7163. This enables the basic information required to identify the topic the item covers to be translated without favouring any one language.

Information is added to items by creating statements. Statements take the form of key-value pairs, with each statement consisting of a property (the key) and a value linked to the property.

Wikidata statement

Further reference:

887 questions
0
votes
0 answers

How to represent this statement in RDF?

My iPhone 6's screen size is 6 inches and red color. Vocabulary are the following: iPhone 6 screen size 6 inches color red Questions: 1) How to link 'iPhone 6' node with the 'screen' node? 2) 'screen' has two properties: 'size' & color Possible…
user697911
  • 10,043
  • 25
  • 95
  • 169
0
votes
0 answers

SPARQL query a label and return the corresponding instance category

For example, I use this SPARQL SELECT ?person ?personLabel ?jobLabel WHERE { ?person wdt:P31 wd:Q5. ?person wdt:P21 wd:Q6581072. ?person wdt:P106 ?job. SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } LIMIT 30 can…
wflwo
  • 51
  • 1
  • 1
  • 5
0
votes
1 answer

wikidata query how to filter the type of information founds

I want to find all the informations about Roger Federer(Q1426): SELECT DISTINCT ?entity ?entityLabel WHERE { wd:Q1426 ?p ?entity. SERVICE wikibase:label { bd:serviceParam wikibase:language" [AUTO_LANGUAGE],fr".} } What I want is: wd:Q233306…
0
votes
0 answers

Federation query on Dbpedia and Wikidata

I'm doing federation query exercise. I want the list of films that stars with leonardio di caprio and also the list of directors that worked with him. I have to design federated SPARQL query over Wikidata and Dbpedia. I have to run the query …
Aziz Mumtaz
  • 95
  • 1
  • 6
0
votes
1 answer

How to get description of an entity/search query from Wikidata API

I want to get description of a search query using Wikidata API. I have found that setting parameter action to wbsearchentities give description of all strings that matches the entity.Can anyone tell me how to get more description about any selected…
0
votes
0 answers

How to get an HTTPS response from a server which is giving an HTTP response

I am having a project, it is built on Angular and is actually a Search Engine. It currently uses DBpedia API to get results about any query being made from the Search bar. Earlier everything was working fine when we were on HTTP server as a response…
bro33
  • 117
  • 2
  • 7
0
votes
2 answers

Querying against a Wikipedia RDF file (Turtle format) with Apache Jena

I'm looking for a way to query against a RDF file formatted in Turtle syntax. The RDF file is actually the whole Wikipedia categories hierarchy, provided by Wikidata. Here is an extract from the contents of the file enwiki categories.ttl, showing…
0
votes
1 answer

SPARQL - Get entity type from a String

I'm using Wikidata with the purpose to find, for the String "Scotland", the values of the properties "type / instance of", "subclass of" and "part of" if they exist. For example, manually by browsing the Wikidata's website, I type Scotland, I find…
Olscream
  • 127
  • 1
  • 14
0
votes
0 answers

Why is this sparql query producing dupes?

SELECT ?person ?personLabel ?party_start ?party_end ?party_nameLabel WHERE { ?person wdt:P39 wd:Q4970706 . ?person wdt:P102 ?party_name . ?person p:P102 ?party. OPTIONAL {?party pq:P580 ?party_start.} OPTIONAL {?party pq:P582…
0
votes
0 answers

Get information using python, SPARQL ,DBpedia and Wikidata

I have a CSV file with a list of names in English and Hebrew, I need to get some information on. The data I need is "name-Hebrew name-English DBpedia-URL date birth place birth dateDeath placeDeath entry_where_found" for each person, the…
Daniel
  • 21
  • 1
  • 8
0
votes
1 answer

SPARQL query to search by name for a person

I need some help in a query. I have a list of names and I want to write a program in python that will send a query for each person on the list and it will look for his information in dbpedia and in wikidata and will return some of it. Can someone…
Daniel
  • 21
  • 1
  • 8
0
votes
1 answer

Finding Interlanguage Related Articles from Wiki Dump

Finding the full list of Wikipedia's English articles with their related articles in languages other than English like French and Spanish is a problem that their is no answer about that. You can find some similar questions but most of them are…
0
votes
0 answers

Wikidata SPARQL query not returning a known match

I was playing around on Wikidata trying to write a simple SPARQL query against a known match. I can see from Arnold Schwartzeneggers page that his listed occupations include: Actor, Politician and Restaurater. When I write the simple query: …
Asderex
  • 23
  • 5
0
votes
1 answer

Wikidata SPARQL How to get a list of TV series that a given actor in its cast members

I try to get the filmography of a given actor include films, TV series. For example, to get list of films with Zhao Wei I used the query but it can not list TV series. How can I get TV series too. Or how can I list the cast members of a TV…
Kieran Dang
  • 447
  • 2
  • 17
0
votes
1 answer

Why can't I seem to read an entire compressed file from a URL stream?

I'm trying to parse Wiktionary dumps on the fly, directly from the URL, in Java. The Wiki dumps are distributed as compressed BZIP2 files, and I am using the following approach to attempt to parse them: String fileURL =…
Nickersoft
  • 684
  • 1
  • 12
  • 30