User:Sadrettin/sandbox



 { "type": "ExternalData", "service": "geopoint", "query": "# fountains located in Istanbul's Fatih district\n#defaultView:Map\n\nSELECT\n?id\n?idLabel\n?locatedIn\n?locatedInLabel\n?geo\n\nWITH {\n SELECT ?id WHERE {\n  wd:Q732923 wdt:P625 ?Center.    # Fatih\n  SERVICE wikibase:around {\n    ?id wdt:P625 ?coordinate.\n    bd:serviceParam wikibase:center ?Center.\n    bd:serviceParam wikibase:radius \"6\". # 6km from the center of Fatih\n  }\n    } } as %i\n\nWITH {\n  SELECT ?id WHERE {\n      ?id wdt:P31/wdt:P279* wd:Q483453. hint:Prior hint:gearing \"reverse\".      # Fountains\n} } as %j\n\nWHERE\n{\n  include %i \n  include %j\n \n  ?id wdt:P625 ?geo.\n \n  MINUS {?id wdt:P131* wd:Q217411 } # Beyoglu\n  MINUS {?id wdt:P131* wd:Q673073} # Eyüpsultan\n  MINUS {?id wdt:P131* wd:Q326339} # Üsküdar\n  \n  SERVICE wikibase:label { bd:serviceParam wikibase:language \"tr,[AUTO_LANGUAGE]\". }\n}\n" }

 { "type": "ExternalData", "service": "geopoint", "query": "SELECT DISTINCT ?id ?geo (?idLabel as ?title) (if(BOUND(?image), concat(?typeLabel, '\\n', ''), ?typeLabel) as ?description) (if(?type = wd:Q860861, '#800000', if(?type = wd:Q245117, '#000080', '#008000')) as ?marker_color) WHERE { ?id wdt:P136 wd:Q557141; wdt:P625 ?geo; wdt:P276* wd:Q2103147; wdt:P31 ?type. OPTIONAL {?id wdt:P18 ?image}. SERVICE wikibase:label { bd:serviceParam wikibase:language 'en, nl'. ?id rdfs:label ?idLabel. ?type rdfs:label ?typeLabel} .} ORDER BY ?id" }

 { "type": "ExternalData", "service": "geopoint", "query": "SELECT DISTINCT ?item ?itemLabel WHERE {\n SERVICE wikibase:label { bd:serviceParam wikibase:language \"[AUTO_LANGUAGE]\". }\n  {\n    SELECT DISTINCT ?item WHERE {\n      ?item p:P31 ?statement0.\n      ?statement0 (ps:P31/(wdt:P279*)) wd:Q123705.\n      ?item p:P131 ?statement1.\n      ?statement1 (ps:P131/(wdt:P131*)) wd:Q326339.\n    }\n    LIMIT 100\n  }\n}" }

 { "type": "ExternalData", "service": "geopoint", "query": "SELECT DISTINCT ?item ?itemLabel WHERE {\n SERVICE wikibase:label { bd:serviceParam wikibase:language \"[AUTO_LANGUAGE]\". }\n  {\n    SELECT DISTINCT ?item WHERE {\n      ?item p:P31 ?statement0.\n      ?statement0 (ps:P31/(wdt:P279*)) wd:Q123705.\n      ?item p:P131 ?statement1.\n      ?statement1 (ps:P131/(wdt:P131*)) wd:Q217411.\n    }\n    LIMIT 100\n  }\n}" }