Property talk:P6591

From Wikidata
Jump to navigation Jump to search

Documentation

maximum temperature record
maximum temperature reached at this location
Representsmaximum temperature record (Q63301843)
Data typeQuantity
Template parameter« tmax-record-ann » in the template fr:Modèle:Climat
Domaingeographic location (Q2221906)
Allowed units
According to statements in the property:
degree Celsius (Q25267), kelvin (Q11579) and degree Fahrenheit (Q42289)
When possible, data should only be stored as statements
Example (note: this information should be moved to a property statement; use property Wikidata property example (P1855), Wikidata property example for properties (P2271), Wikidata property example for lexemes (P5192), Wikidata property example for forms (P5193), Wikidata property example for senses (P5977) or Wikidata property example for media (P6685))
Sourcearticle temperature records on Earth (Q20183675) (note: this information should be moved to a property statement; use property source website for the property (P1896))
Lists
Proposal discussionProposal discussion
Current uses229
[create] Create a translatable help page (preferably in English) for this property to be included here
Units: “degree Celsius (Q25267), kelvin (Q11579), degree Fahrenheit (Q42289): value unit must be one of listed. (Help)
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P6591#Units, SPARQL (new)
Scope is as main value (Q54828448): the property must be used by specified way only (Help)
List of this constraint violations: Database reports/Constraint violations/P6591#scope, hourly updated report, SPARQL, SPARQL (new)
Type “geographic location (Q2221906): element must contain property “instance of (P31)” with classes “geographic location (Q2221906)” or their subclasses (defined using subclass of (P279)). (Help)
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P6591#type Q2221906, SPARQL, SPARQL (new)
Mandatory qualifier “point in time (P585): this property should be used with the listed qualifier. (Help)
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P6591#mandatory qualifier, SPARQL, SPARQL (new)
Item “coordinate location (P625): Items with this property should also have “coordinate location (P625)”. (Help)
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P6591#Item P625, SPARQL, SPARQL (new)
Range from “-459.67” to “593.67”: values should be in the range from “-459.67” to “593.67”. (Help)
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P6591#Range, SPARQL (new)
Qualifiers “point in time (P585), start period (P3415), end period (P3416), location (P276): this property should be used only with the listed qualifiers. (Help)
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P6591#Allowed qualifiers, SPARQL, SPARQL (new)
Pictogram voting comment.svg Date after today
(Help)
Violations query: SELECT ?item { ?item p:P6591 [pq:P585 ?date]. FILTER (NOW() < ?date) }
List of this constraint violations: Database reports/Complex constraint violations/P6591#Date after today

Query with °F/°C conversion[edit]

#defaultView:Map
# maximum temperatures around Earth 
# from https://www.wikidata.org/wiki/Property_talk:P6591
SELECT ?degrees_Celsius ?degrees_Fahrenheit ?item ?itemLabel ?location ?locationLabel ?date ?coor ?layer
WHERE
{
	?item p:P6591 ?st . 
    {
        ?st psv:P6591  [ wikibase:quantityAmount ?degrees_Celsius ;  wikibase:quantityUnit wd:Q25267 ] 
        BIND ( ROUND ( ?degrees_Celsius * 1.8 + 32 ) as ?degrees_Fahrenheit )
    }
    UNION
	{ 
        ?st psv:P6591  [ wikibase:quantityAmount ?degrees_Fahrenheit ;  wikibase:quantityUnit wd:Q42289 ]
        BIND( ROUND( ( ?degrees_Fahrenheit - 32 ) / 1.8 * 10)/10 as ?degrees_Celsius )
    }
    OPTIONAL { ?st pq:P276 ?location } 
    OPTIONAL { ?st pq:P585 ?date } 
    OPTIONAL { ?item wdt:P625 ?coor }
    BIND( CONCAT(str(Floor(?degrees_Celsius / 10)),"0s °C") as ?layer)
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en"  }    
}
ORDER BY DESC(?degrees_Celsius)
LIMIT 1000

Try it!

Minimal temperature record[edit]

Is there such property? --Infovarius (talk) 15:21, 29 March 2019 (UTC)

  • @Infovarius, Manu1400, Dhx1: not yet, but I think this one worked out quite well. --- Jura 04:49, 24 April 2019 (UTC)
  • @Infovarius, Jura1: Agreed. There should be a similar property for minimum recorded temperature in a geographic location. I suggest also proposing a median variant of this property too, with valid in period (P1264) qualifying either the year or month the median is valid in. start period (P3415) and end period (P3416) can qualify the period over which temperature records exist for each property. Dhx1 (talk) 09:35, 24 April 2019 (UTC)
    • I'd start with a minimum record one. --- Jura 14:54, 8 June 2019 (UTC)