城市、村庄和其他公认的人口中心.

Entity["City",name]

表示类型 "City" 的一个实体.

[prop]

给出指定属性的值.

[{propi,}]

给出属性列表的值.

[prop,{qualivali,}]

给出由限定符 quali->vali 修改的指定属性的值.

[Dated[prop,date]]

给出特定日期规范相对应的属性值.

EntityClass["City",{propispeci,}]

表示实体类,其中 propi 的值由 speci 定义.

实体范例

实体类范例

属性

  • ActiveHomeListingCountactive home listings
    AdministrativeDivisionadministrative region
    AggravatedAssaultnumber of aggravated assaults
    AggravatedAssaultRaterate of aggravated assault
    AggregateHomeValueaggregate home value
    AggregateHomeValue15To24aggregate home value, householder 15 to 24 years
    AggregateHomeValue25To34aggregate home value, householder 25 to 34 years
    AggregateHomeValue35To64aggregate home value, householder 35 to 64 years
    AggregateHomeValue65aggregate home value, householder 65 years and over
    AggregateHouseholdIncomeaggregate household income
    AirportCodesairport codes
    AnnualExcessFuelConsumedPerCommuterfuel spent in delays
    AnnualExcessFuelConsumedTotaltotal fuel spent in delays
    AnnualHoursOfDelayPerAutoCommuteraverage annual delay
    AnnualHoursOfDelayTotaltotal annual delay
    Areaarea
    AreaCodesarea code
    ArterialStreetDailyVehicleMilesarterial street traffic
    ArterialStreetLaneMilesarterial street length
    AverageHomeListingPriceaverage home listing price
    AveragePublicTransitTripLengthaverage public transit trip distance
    Burglarynumber of burglaries
    BurglaryRaterate of burglary
    CitySalesTaxRatecity sales tax
    Coordinatescoordinates
    Countrycountry
    Countycounty
    CountySalesTaxRatecounty sales tax
    CrimeRatetotal rate of crime
    CrimeTotaltotal number of crimes
    DailyDelayMinutesaverage daily traffic delay
    Elevationelevation
    EntityClassesentity classes
    EntityTypeListentity type list
    ForcibleRapenumber of rapes
    ForcibleRapeRaterate of rape
    FreewayDailyVehicle-Milesfreeway traffic
    FreewayLaneMilesfreeway length
    GiniIndexGini index
    HasPolygonhas polygon?
    HousePriceIndexFHFA home price index
    HousePriceIndexAnnualAverageFHFA home price index annual average
    HousingAffordabilityhousing affordability index
    HousingPriceIncreasedCounthome listings with increased price
    HousingPriceReducedCounthome listings with reduced price
    HousingUnitshouseholds
    LarcenyTheftnumber of larcenies
    LarcenyTheftRaterate of larceny
    Latitudelatitude
    Longitudelongitude
    MagneticFieldStrengthtotal magnetic field strength
    MedianAgemedian age
    MedianDaysOnHousingMarketmedian home listing time on market
    MedianHomeListingPricemedian home listing price
    MedianHomeListingPricePerSquareFeetmedian home listing price per square foot
    MedianHomeSalePricemedian home sale price
    MedianHomeSizeInSquareFeetmedian home size
    MedianHomeValuemedian home value
    MedianHouseholdIncomemedian household income
    MetropolitanAreametropolitan area
    MotorVehicleTheftnumber of motor vehicle thefts
    MotorVehicleTheftRaterate of motor vehicle thefts
    MurderNonnegligentManslaughterincidents of murder and nonnegligent manslaughter
    MurderNonnegligentManslaughterRaterate of murder and nonnegligent manslaughter
    Namename
    NewHomeListingCountnew home listings
    NextDSTShiftnext daylight saving shift
    Nicknamesnicknames
    NumberOfHomesnumber of owneroccupied housing units
    PeakPeriodTravelersaverage daily peak period travelers
    PeakPeriodTravelersPerCapitapeak period travelers per capita
    PeakPeriodVehiclesaverage daily peak period vehicles
    PendingHomeListCountpending home listings
    PeopleBornInCitynotable people born in city
    PeopleDiedInCitynotable people who died in city
    PerCapitaIncomeper capita income
    Polygonpolygon
    Populationcity population
    PopulationByEducationalAttainmentpopulation by educational attainment
    PopulationByGeographicalMobilitypopulation by migration in previous 12 months
    PopulationByLanguageSpokenAtHomepopulation by language spoken at home
    PopulationByMaritalStatuspopulation by marital status
    PopulationByPovertyStatuspopulation by poverty status
    PopulationBySchoolEnrollmentpopulation by school enrollment
    PopulationDensitypopulation density
    Positionposition
    PreviousDSTShiftlast daylight saving shift
    PropertyCrimeRatetotal rate of property crime
    PropertyCrimeTotaltotal number of property crimes
    PublicTransportationAnnualPassengerMilestotal public transit use
    PublicTransportationAnnualUnlinkedPassengerTripsunlinked public transit trips
    RentFourBedrooms4 bedroom apartment fair market rent
    RentOneBedrooms1 bedroom apartment fair market rent
    RentThreeBedrooms3 bedroom apartment fair market rent
    RentTwoBedrooms2 bedroom apartment fair market rent
    RentZeroBedroomsstudio apartment fair market rent
    Robberynumber of robberies
    RobberyRaterate of robbery
    RushHoursdaily rush hour length
    StateSalesTaxRatestate sales tax
    TimeZonetime zone
    TotalDailyDelaytotal daily traffic delay
    TotalSalesTaxRatetotal sales tax rate
    TravelTimeIndexaverage peak travel time
    UnemploymentRateunemployment rate
    UnweightedSampleHousingUnitsunweighted sample housing units
    UnweightedSamplePopulationunweighted sample population
    ViolentCrimeRatetotal rate of violent crime
    ViolentCrimeTotaltotal number of violent crimes
    ZIPCodesZIP codes

详细信息

  • "City" 实体包括正式且有组织的人口中心,包括城市、乡镇和村庄等.
  • 对于多数属性,仅在美国的城市数据可用.
  • 部分属性可用于作为整体的 "City" 实体类型,并可用 EntityValue["City",property] 格式给出,此类属性包括:
  • "Properties"可用属性列表
    "PropertyCanonicalNames"可用属性的标准名称
    "SampleEntities"可用实体的范例列表(通常长度为 10)
    "SampleEntityClasses"可用实体类的范例列表(通常长度为 10)
    "EntityCount"可用实体的数目
    "Entities"可用实体的列表
    "EntityCanonicalNames"可用实体的标准名称
    "EntityClasses"可用实体类的列表
    "EntityClassCanonicalNames"可用实体类的标准名称
    "PropertyClasses"可用属性分类的列表
    "PropertyClassCanonicalNames"可用属性分类的标准名称
    "PropertyCount"可用属性的数目
  • 以下注释可用于 EntityValue["City",property,annotation] 的第三个参数中:
  • "Source"属性的来源信息
    "Date"实体-属性值相关联的日期(若存在)
    "EntityAssociation"实体和实体-属性值的关联
    "PropertyAssociation"属性和实体-属性值的关联
    "EntityPropertyAssociation"此关联中,指定实体是键,值为属性和实体-属性值的嵌套关联
    "PropertyEntityAssociation"此关联中,指定属性是键,值为实体和实体-属性值的嵌套关联
    "Dataset"此数据集,指定实体是键和值为属性名称和实体-属性值的关联
  • 以下注释可用于 EntityValue[property,annotation] 的第二个参数中:
  • "Qualifiers"可用于属性的限定词列表
    "QualifierValues"可用于每个限定词的可用值列表
    "DefaultQualifierValues"属性限定词的默认值列表
    "Description"属性的简短文字描述
    "Definition"属性的详细文字定义
    "PhysicalQuantity"实体-属性值相关联的物理量
    "Unit"实体-属性值相关联的单位
  • Automatic 的限定词值表示一个可适用的值的格式; 例如,对于 "Date" 的限定词,包括正确的日期或日期跨度.

范例

打开所有单元关闭所有单元

基本范例  (4)

查找实体:

查找一个实体的属性值:

从一个实体的全部可用属性中提取数据集:

找出人口大于 100,000 的爱尔兰城市:

范围  (5)

找出世界上名为伦敦的所有存在城市,按人口多少排序:

找出英国伦敦的额经纬度:

找出瓦努阿图的所有存在城市:

在地图上标出城市:

确认城市所在行政区划:

应用  (8)

找出伊利诺伊州香槟城附近最大的三个城市:

画出日本所有存在城市的位置:

找出德国和比利时都有的城市名名称:

画出澳大利亚最大的城市并附加其名称提示:

用大号的透明圆盘画出大型城市:

找出德国最大城市的旅行推销员之旅:

根据科罗拉多州城市的海拔画出三维波形图:

创建科罗拉多州城市的人口与海拔散点图:

与其他实体类型的关系  (2)

"Country" 可以给出一个国家中最大的城市:

以纽约市为中心创建朗伯方位投影图:

可能存在的问题  (2)

城市实体仅表示完整城市而非部分城市:

有时城市、地域和国家的名称可完全相同:

巧妙范例  (2)

找出名为圣荷西的城市所在国家:

找出世界上人口记录最少的国家首都: