Archimede solar power plant

From solab
Jump to navigation Jump to search

Error query  : PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wds: <http://www.wikidata.org/entity/statement/> PREFIX wdv: <http://www.wikidata.org/value/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wikibase: <http://wikiba.se/ontology#> PREFIX p: <http://www.wikidata.org/prop/> PREFIX ps: <http://www.wikidata.org/prop/statement/> PREFIX pq: <http://www.wikidata.org/prop/qualifier/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX bd: <http://www.bigdata.com/rdf#>

  1. defaultView:ImageGrid

SELECT DISTINCT

  1. ?lat
  2. ?lon

?coord ?itemLabel ?item ?item_label ?pic WHERE {

  1. /wd:Q285927 Q2298412

?item wdt:P31/wdt:P279* wd:Q2298412 . ?item rdfs:label ?item_label. FILTER (lang(?item_label) = "en") . FILTER(CONTAINS(?item_label, "Archimede solar power plant")) BIND(CONCAT("", ?item_label, "") AS ?itemLabel).

?item p:P625 ?coordinate .

  ?coordinate psv:P625 ?coordinate_node .
  ?coordinate_node wikibase:geoLatitude ?lat .
  ?coordinate_node wikibase:geoLongitude ?lon .

BIND(CONCAT("The following coordinate was not recognized: ", str.The following coordinate was not recognized: ", str.") AS ?coord).

OPTIONAL{ ?item wdt:P18 ?picl . }. BIND(CONCAT("<img src=", str(?picl), " height=100px width=100px>") AS ?pic).

} Error endpoint: https://query.wikidata.org/sparql Error http_response_code: 502 Error message: <html> <head><title>502 Bad Gateway</title></head> <body>

502 Bad Gateway


nginx/1.18.0

</body> </html>

Error number: 0 Error message:

Error data: Array (

   [query] => PREFIX wd: <http://www.wikidata.org/entity/>

PREFIX wds: <http://www.wikidata.org/entity/statement/> PREFIX wdv: <http://www.wikidata.org/value/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wikibase: <http://wikiba.se/ontology#> PREFIX p: <http://www.wikidata.org/prop/> PREFIX ps: <http://www.wikidata.org/prop/statement/> PREFIX pq: <http://www.wikidata.org/prop/qualifier/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX bd: <http://www.bigdata.com/rdf#>

  1. defaultView:ImageGrid

SELECT DISTINCT

  1. ?lat
  2. ?lon

?coord ?itemLabel ?item ?item_label ?pic WHERE {

  1. /wd:Q285927 Q2298412

?item wdt:P31/wdt:P279* wd:Q2298412 . ?item rdfs:label ?item_label. FILTER (lang(?item_label) = "en") . FILTER(CONTAINS(?item_label, "Archimede solar power plant")) BIND(CONCAT("", ?item_label, "") AS ?itemLabel).

?item p:P625 ?coordinate .

  ?coordinate psv:P625 ?coordinate_node .
  ?coordinate_node wikibase:geoLatitude ?lat .
  ?coordinate_node wikibase:geoLongitude ?lon .

BIND(CONCAT("The following coordinate was not recognized: ", str.The following coordinate was not recognized: ", str.") AS ?coord).

OPTIONAL{ ?item wdt:P18 ?picl . }. BIND(CONCAT("<img src=", str(?picl), " height=100px width=100px>") AS ?pic).

}

   [output] => xml
   [Accept] => application/sparql-results+xml

)


Plant


{{#invoke:Solab|Plant |id=None |parent_id=None |Name=Archimede solar power plant |Photo=Archimede solar power plant.png |Homepage=http://www.enel.com |created=2016-02-14 22:06:44.624911+01:00 |discriminator=company |has_location_country=IT |has_coordinates=37° 8′ 0″ N, 15° 12′ 58″ E |Product=Plant |Power=5.1 MW |Category=producer |Owner=Enel |Developer = Enel}}

bbbb

{{#gu_gen: pg |solab| postgres | select concat('') from mysparqlpage('Archimede_solar_power_plant') |notrace=yes |GetValue | | |trino }}