User:GeoMechain/Sophox

From OpenStreetMap Wiki
Jump to navigation Jump to search
Subject Predicate Object
RDF Triplet Victor Hugo sex or gender male
RDF https://www.wikidata.org/wiki/Q535 https://www.wikidata.org/wiki/Property:P21 https://www.wikidata.org/wiki/Q6581097
Turtle wd:Q535 wdt:P21 wd:Q6581097
SELECT ?gender ?genderLabel WHERE {
  wd:Q535 wdt:P21 ?gender .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

Run it (edit query)

SELECT ?child ?childLabel
WHERE
{
# ?child  father   Victor Hugo
  ?child wdt:P22 wd:Q535.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}

Run it (edit query)

#defaultView:Map
SELECT ?iso3c ?lat ?lon ?coord WHERE {
  ?item wdt:P31/wdt:P279* wd:Q3624078;
        wdt:P298 ?iso3c ;
        p:P625 [
            ps:P625 ?coord;
            psv:P625 [
               wikibase:geoLongitude ?lon;
               wikibase:geoLatitude  ?lat; 
               ]
          ].
}


SELECT ?personne ?personneLabel ?dod
WHERE
{
  ?personne wdt:P31 wd:Q5;
            wdt:P27 wd:Q142;
            wdt:P106 wd:Q1028181;
          wdt:P570 ?dod.
  FILTER("1950-01-01"^^xsd:dateTime <= ?dod && ?dod < "1951-01-01"^^xsd:dateTime).
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}


#defaultView:Map
SELECT ?name ?etymology ?coordinates WHERE {
  ?osmId osmt:name:etymology:wikidata ?etymology.
  ?osmId osmt:name ?name.
  
  SERVICE wikibase:box {
    ?osmId osmm:loc ?coordinates .
    bd:serviceParam wikibase:cornerSouthWest 'Point(1.25 43.40)'^^geo:wktLiteral.
    bd:serviceParam wikibase:cornerNorthEast 'Point(1.35 43.50)'^^geo:wktLiteral.
  }
}

Run it (edit query)

See also