User:Hweyl/WikidataFootball: Difference between revisions

From WikiDotMako
(describing the state of the data before the project)
(→‎Data: fixing formatting)
Line 6: Line 6:
=Data=
=Data=
I tried to see if the data to answer this question might already be in Wikidata.
I tried to see if the data to answer this question might already be in Wikidata.
<src lang=sparql>
<source lang=sparql>
SELECT ?personLabel  ?positionLabel ?DOB ?DOD
SELECT ?personLabel  ?positionLabel ?DOB ?DOD



Revision as of 19:33, 16 January 2017

Let's use Wikidata to answer questions about NFL players!

Goal

1. Answer the question "What are the DOB and DOD dates for all NFL players?"

Data

I tried to see if the data to answer this question might already be in Wikidata. <source lang=sparql> SELECT ?personLabel ?positionLabel ?DOB ?DOD

WHERE {

 ?person wdt:P106 wd:Q19204627.
 ?person wdt:P413 ?position.
  ?person wdt:P569 ?DOB .
 ?person wdt:P570 ?DOD .
 
 SERVICE wikibase:label {

bd:serviceParam wikibase:language "en" .

}

 }

</source>