mountain/hill (E339)

From Wikidata
Jump to navigation Jump to search
language codelabeldescriptionaliasesedit
enmountain/hillGeneral schema for mountains/hills, useful as a base for more specific schemaedit
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>

# query = SELECT DISTINCT ?entity WHERE { VALUES ?moh {wd:Q8502 wd:Q54050} ?entity wdt:P31 ?moh . }

start=@<mountain_or_hill>

<mountain_or_hill> EXTRA wdt:P31 wdt:P793 wdt:P527 {
    # mountain or hill
    wdt:P31 [wd:Q8502 wd:Q54050];

    # descriptive properties that apply to all
    wdt:P2044 xsd:decimal;  # all have an elevation
    wdt:P2660 xsd:decimal;  # all have prominence
    wdt:P2659 .;            # all have isolation except tallest (no value)
    wdt:P3137 .;            # all have a parent peak except tallest (no value)
    wdt:P7479 .;            # all have key col except tallest, but often uknown
    wdt:P30 @<continent>;   # all are on a continent

    # all have coordinates
    wdt:P625 <http://www.opengis.net/ont/geosparql#wktLiteral>;

    # first ascent may be relevant
    wdt:P793 wd:Q1194369 ?;

    # may have notable summits, faces and ridges
    wdt:P527 @<feature> *;

    # may be classified for peak bagging
    wdt:P8450 . *;

    # Identifiers
    wdt:P3109 . ?;
    wdt:P3513 . ?;
    wdt:P9568 . ?;
    wdt:P3309 . ?;
}

<continent> EXTRA wdt:P31 {
    wdt:P31 [wd:Q5107 wd:Q855697 wd:Q55833];
}

<feature> EXTRA wdt:P31  {
    wdt:P31 [wd:Q207326 wd:Q15809483 wd:Q740445];
}