U.S. Counties or Equivalent Subdivision (E8)
From geokb
language code | label | description | aliases | edit |
---|---|---|---|---|
en | U.S. Counties or Equivalent Subdivision | Schema for the barebones representation of U.S. counties in this knowledgebase | edit |
PREFIX pv: <http://ns.inria.fr/provoc#>
PREFIX p: <https://geokb.wikibase.cloud/prop/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <https://geokb.wikibase.cloud/entity/>
PREFIX wdt: <https://geokb.wikibase.cloud/prop/direct/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://geokb.wikibase.cloud/prop/reference/>
START = @<USCounties>
<USCounties> {
# "instance of" "county or equivalent"
wdt:P1 [ wd:Q481 ] ;
# Must have a U.S. State property pointing to a U.S. State item
wdt:P34 IRI ;
# Must have a data source listed as a reference
p:P34 {
prov:wasDerivedFrom @<DataSource> + ;
} + ;
# FIPS code exists
wdt:P22 xsd:string ;
# Coordinates follow wkt format
wdt:P6 geo:wktLiteral ;
}
<DataSource> {
pr:P27 IRI * ;
}