Difference between revisions of "Device"

From DAAP
Jump to navigation Jump to search
(Created page with "{{#sparql: prefix daap: <http://daap.eu/wiki/> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> select distinct ?latitude ?longitude ?label ?website where { ?o r...")
 
Line 1: Line 1:
 
{{#sparql:
 
{{#sparql:
 
prefix daap: <http://daap.eu/wiki/>  
 
prefix daap: <http://daap.eu/wiki/>  
 +
prefix daapProp: <http://daap.eu/wiki/Property:>
 
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
 
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
 +
prefix vcard: <http://www.w3.org/2006/vcard/ns#>
  
select distinct ?latitude ?longitude ?label ?website
+
select distinct ?link  (GROUP_CONCAT(?test; separator=", ") as ?Keywords) 
 +
?picture  (GROUP_CONCAT(?contact; separator="<br/>") as ?contacts) 
 +
?linkLabel
 
where {
 
where {
?o
+
?link
 
   rdf:type daap:Device ;
 
   rdf:type daap:Device ;
   rdfs:label ?label ;
+
   daapProp:piloteProcess ?pilot ;
  rdfs:seeAlso ?website ;
+
rdfs:label ?linkLabel .
  geo:lat ?latitude ;
+
 
  geo:long ?longitude .
+
?pilot vcard:email ?contactEmail .
 +
?pilot vcard:fn ?contactfn .
 +
 
 +
  BIND(CONCAT( "[",?contactEmail," ",?contactfn,"]") AS ?contact)
 +
 
 +
        FILTER langMatches( lang(?linkLabel), "EN" )
 +
OPTIONAL{
 +
?link daapProp:picture ?picture .
 +
}
 +
 
 +
OPTIONAL{
 +
?link daapProp:item ?item .
 +
?item rdfs:label ?itemLabel .
 +
 
 +
        FILTER langMatches( lang(?itemLabel), "EN" )
 +
 
 +
  BIND(CONCAT( "[",?item," ",?itemLabel,"]") AS ?test)
 +
}
 
       }  
 
       }  
LIMIT 100
+
 
 +
GROUP BY ?link ?linkLabel ?picture
 +
ORDER BY ?linkLabel
 
|endpoint=http://opendata1.opendata.u-psud.fr/sparql
 
|endpoint=http://opendata1.opendata.u-psud.fr/sparql
 +
| headers = Device , Keywords ,Picture,Contact
 +
|templates=link,,,
 
}}
 
}}

Revision as of 13:05, 23 September 2015

Device Keywords Picture Contact
14:59:40 11/28/2021 -- Refresh -- Duration of query :0.18s