All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttl.locate.locateall.save Maven / Gradle / Ivy

Go to download

Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1 Query and Update.

There is a newer version: 4.6.1
Show newest version
#
# Geolocate  resources on a map (except resource given lat et long)
#
prefix p:    
prefix geo:  

template st:locateall {
str(?in)
  "var pos" st:number()  " = new google.maps.LatLng("      
      str(?lat) "," str(?lon) ");"
                  
  "var marker" st:number() "= new google.maps.Marker({ position: pos" st:number() ", map: map, icon: '/img/smarker.png' });"
  
  "google.maps.event.addListener(marker" st:number() 
  ", 'click', function () {window.location.href = \"" 
  st:call-template(st:link, ?in) 
  "\";});"
  
}
where {
  ?in a foaf:Place .
  service  {
    ?in  p:longitude  ?lon ; 
      p:latitude  ?lat
  }
}
pragma { kg:service kg:slice 10 }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy