Display all fields in Wikidata Query Service

331 Views Asked by At

Wikidata provides query browser at https://query.wikidata.org

I want to display films all fields. I tried with using * but its not working. Does anybody know how to display all fields of the data for Films?

Image

1

There are 1 best solutions below

4
On BEST ANSWER

To work with SPARQL is necessary to understand some concepts, as @AKSW said in the comments of the question. If you don't understand the meaning of ?film ?p ?o. This is called triple¹ and is composed by subject-predicate-object. E. g., in the case of the films, it could be: x is a film. This is what you are querying in the Wikidata Query Service (WDQS) when you use ?film wdt:P31 wd:Q11424.

I think it isn't possible to display all the property-values of an item. In addition it probably could cause a timeout because there is many statements of many items.

If you want to check the property-values of all the films in Wikidata I think an option might be you write or find a script to extract the items with P31-Q11424 (instance of films). For that, the accessing data section could be useful (e. g. with pywikibot you could query and extract what you want).

If you are interested in SPARQL and WDQS I recommend you to read some help resources:

Edit

  1. When I answer it I wrote triplestore and linked it to its respective page in the Wikipedia in English, but after the comment of @AKSW I consider I was wrong because the triplestore is the concept which is used to refer to the storage and retrieval of triple or semantic triple, "a set of three entities that codifies a statement about semantic data in the form of subject–predicate–object expressions" (from Semantic triple page in Wikipedia in English).