The English Wikipedia includes an article for nearly every U.S. Census Place. Has anyone published a crosswalk from FIPS codes of these places to Wikipedia urls?
Is this something that would be possible with wikidata?
Open Data Stack Exchange is a question and answer site for developers and researchers interested in open data. It only takes a minute to sign up.
Sign up to join this communityIs this something that would be possible with Wikidata?
Yes, this is possible:
Try the following query:
SELECT ?fips_code ?wikipedia_article WHERE {
?wikidata_item wdt:P774 ?fips_code .
?wikipedia_article schema:about ?wikidata_item .
?wikipedia_article schema:isPartOf <https://en.wikipedia.org/> .
} ORDER BY ?fips_code
If you need FIPS 6-4 codes instead of FIPS 55-3 ones, replace wdt:P774
with wdt:P882
.
SELECT * WHERE { ?article schema:isPartOf <https://en.wikipedia.org/> ; schema:about/wdt:P774 ?fips }
? For FIPS 6-4, replacewdt:P774
withwdt:P882
.