Difference between revisions of "GW150914"

From BITPlan Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
* https://en.wikipedia.org/wiki/List_of_gravitational_wave_observations
 
* https://en.wikipedia.org/wiki/List_of_gravitational_wave_observations
 
* https://en.wikipedia.org/wiki/Talk:List_of_gravitational_wave_observations#Wikidata_Query_/_List_of_Gravitational_Wave_events
 
* https://en.wikipedia.org/wiki/Talk:List_of_gravitational_wave_observations#Wikidata_Query_/_List_of_Gravitational_Wave_events
 
+
= WikiData Query =
 +
<source lang='sparql'>
 +
# Find Gravitational wave events
 +
# Created 2018-10-16 by Wolfgang Fahl BITPlan GmbH
 +
#
 +
# select the events
 +
SELECT ?event ?catalogCode ?discovery ?eventLabel ?article
 +
WHERE
 +
{
 +
  # any subject
 +
  # which is an instance of
 +
  # https://www.wikidata.org/wiki/Property:P31
 +
 
 +
  # gravitational wave event
 +
  # https://www.wikidata.org/wiki/Q24748034
 +
  ?event wdt:P31 wd:Q24748034.
 +
 
 +
  # and might hava catalog code
 +
  # https://www.wikidata.org/wiki/Property:P528
 +
  # catalog Code
 +
  OPTIONAL {
 +
    ?event wdt:P528 ?catalogCode
 +
  }
 +
 
 +
  # and might have a time of discovery
 +
  # https://www.wikidata.org/wiki/Property:P575
 +
  OPTIONAL {
 +
    ?event wdt:P575 ?discovery
 +
  }                       
 +
 
 +
  # show the Labels (e.g. eventLabel)
 +
  SERVICE wikibase:label {              # ... include the labels
 +
        bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en"
 +
  }
 +
 
 +
  # the event might have an english wikipedia article
 +
  OPTIONAL {
 +
      ?article schema:about ?event .
 +
      ?article schema:inLanguage "en" .
 +
      FILTER (SUBSTR(str(?article), 1, 25) = concat("https://en.wikipedia.org/"))
 +
  }
 +
}
 +
order by ?discovery
 +
</source>
 
= GW150914 =
 
= GW150914 =
 
* https://en.wikipedia.org/wiki/GW150914
 
* https://en.wikipedia.org/wiki/GW150914

Revision as of 07:41, 17 October 2018

WikiData Query

# Find Gravitational wave events
# Created 2018-10-16 by Wolfgang Fahl BITPlan GmbH
#
# select the events
SELECT ?event ?catalogCode ?discovery ?eventLabel ?article 
WHERE 
{
  # any subject
  # which is an instance of
  # https://www.wikidata.org/wiki/Property:P31
  
  # gravitational wave event
  # https://www.wikidata.org/wiki/Q24748034
  ?event wdt:P31 wd:Q24748034.
  
  # and might hava catalog code
  # https://www.wikidata.org/wiki/Property:P528
  # catalog Code
  OPTIONAL {
    ?event wdt:P528 ?catalogCode
  }
  
  # and might have a time of discovery
  # https://www.wikidata.org/wiki/Property:P575
  OPTIONAL {
    ?event wdt:P575 ?discovery
  }                         
  
  # show the Labels (e.g. eventLabel)
  SERVICE wikibase:label {               # ... include the labels
        bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en"
  }
  
  # the event might have an english wikipedia article
  OPTIONAL {
      ?article schema:about ?event .
      ?article schema:inLanguage "en" .
      FILTER (SUBSTR(str(?article), 1, 25) = concat("https://en.wikipedia.org/"))
  }
}
order by ?discovery

GW150914

GW1512216

GW170608

GW170814

GW170817

Open Data

O3