Wikidata:Property proposal/JMA Magnitude

From Wikidata
Jump to navigation Jump to search

JMA Magnitude[edit]

Originally proposed at Wikidata:Property proposal/Natural science

   Done: JMA Magnitude (P5900) (Talk and documentation)
DescriptionMagnitude of an earthquake according to Japan Meteorological Agency
RepresentsJapanese Meteorological Agency magnitude scale (Q1676638)
Data typeQuantity
Template parameter"scale" in Template:地震, "magnitude" in Template:Infobox earthquake
Domainearthquake (Q7944)
Allowed values0 - 10
Allowed unitsnull
Example 12011 Tōhoku earthquake and tsunami (Q36204) → 8.4 (see also here)
Example 22018 Osaka earthquake (Q55080471) → 6.1
Example 32016 Kumamoto earthquakes (Q23825118) → 7.3
SourceRevision of JMA Magnitude, database

Motivation

Property for magnitudes is provided as earthquake magnitude on the moment magnitude scale (P2527) or earthquake magnitude on the Richter magnitude scale (P2528). But JMA magnitude, used in Japan, is not provided for now... 軽快 (talk) 05:15, 26 June 2018 (UTC)[reply]

Discussion

 SELECT DISTINCT * WHERE{
   ?s wdt:P31 wd:Q7944.
   ?s wdt:P(Magnitude) ?M.
    FILTER (?M > 8.0)
 }
than
 SELECT DISTINCT * WHERE{
   ?s wdt:P31 wd:Q7944.
   {
    ?s wdt:P(JMA Magnitude) ?M.
    FILTER (?M > 8.0)
   } UNION {
    ?s wdt:P(Moment Magnitude) ?MM.
    FILTER (?MM > 8.0)
   } UNION {
    ...
   }
 }
because the latter can be written only when he/she know all the magnitude type. It's the typical bad point of making too detailed properties. I don't think there are so many people who want to know the magnitude measured only by a specific method, and even in that situation, they can make the query using qualifiers. --何三(S) (talk) 01:38, 9 July 2018 (UTC)[reply]
@何三(S): The former query should not be written because it losses the crucial information about what that value is. We cannot believe all of the values stored in "(generalized) magnitude" claims are close to the value of earthquake magnitude on the moment magnitude scale (P2527) etc. (Suppose some definitions of magnitude tend to indicate very high values.)
The latter query is not so difficult to write for people who have already familiar with SPARQL, but, on the other hand, if they want to get just the moment magnitude scale (Q201605) of 2011 Tōhoku earthquake and tsunami (Q36204), for example, they need to know the detailed data model of Wikidata qualifiers:
SELECT ?earthquake ?earthquakeLabel ?momentMagnitude
WHERE 
{ 
  BIND(wd:Q36204 as ?earthquake). #[[Q36204|2011 Tōhoku earthquake and tsunami]]
  ?earthquake p:P(Magnitude) ?statement.
  ?statement pq:P1013 wd:Q201605. #[[Property:P1013|criterion used]], [[Q201605|moment magnitude scale]]
  ?statement ps:P(Magnitude) ?momentMagnitude.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
}
Specific properties allow us to write a simple query:
SELECT ?earthquake ?earthquakeLabel ?momentMagnitude
WHERE 
{ 
  BIND(wd:Q36204 as ?earthquake). #[[Q36204|2011 Tōhoku earthquake and tsunami]]
  ?earthquake wdt:P2527 ?momentMagnitude #[[Property:P2527|earthquake magnitude on the moment magnitude scale]]
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
}
Of course, it is a trade-off, but in my opinion, specific properties are superior in the accuracy of information and in ease in handling. --Okkn (talk) 06:52, 9 July 2018 (UTC)[reply]

@ديفيد عادل وهبة خليل 2, Araisyohei, ArthurPSmith, 何三(S), Pigsonthewing, Okkn: @軽快: ✓ Done: JMA Magnitude (P5900). − Pintoch (talk) 06:59, 21 September 2018 (UTC)[reply]