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...")
 
m (Text replacement - "daap.eu" to "daap.dsi.universite-paris-saclay.fr")
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#sparql:
 
{{#sparql:
prefix daap: <http://daap.eu/wiki/>  
+
 
 +
prefix daap: <http://daap.dsi.universite-paris-saclay.fr/wiki/>
 +
prefix daapProp: <http://daap.dsi.universite-paris-saclay.fr/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 (?device as ?labelLink) ?label ?picture
 +
(GROUP_CONCAT(DISTINCT  IF(BOUND(?itemLabel) ,  CONCAT('{{Device/keyword|link=https://www.wikidata.org/wiki/Special:GoToLinkedPage/enwiki/Q',strafter(xsd:string(?item),"/Q"),'|label=',?itemLabel,'}}'),""); separator=", ") as ?keywords) 
 +
(GROUP_CONCAT(DISTINCT CONCAT('{{Device/contact|contact=',?contact,'|contactLink=',?pilot,'|contactLinkEmail=',?contactLinkEmail,'}}'); separator="<br/>") as ?contacts) 
 
where {
 
where {
?o
+
  ?device
  rdf:type daap:Device ;
+
      rdf:type daap:Device ;
  rdfs:label ?label ;
+
      rdfs:label ?label .
  rdfs:seeAlso ?website ;
+
 
  geo:lat ?latitude ;
+
      ?device daapProp:pilotProcess ?pilot .
  geo:long ?longitude .
+
      ?pilot vcard:email ?contactLinkEmail ;
      }  
+
              vcard:fn ?contact .
LIMIT 100
+
  FILTER langMatches( lang(?label), "EN" )
 +
  OPTIONAL{
 +
          ?device daapProp:picture ?picture .
 +
  }
 +
  OPTIONAL{
 +
          ?device daapProp:item ?item .
 +
          ?item rdfs:label ?itemLabel .
 +
          FILTER langMatches( lang(?itemLabel), "EN" )
 +
  }
 +
}  
 +
GROUP BY ?device ?label ?picture
 +
ORDER BY ?label
 +
 
 
|endpoint=http://opendata1.opendata.u-psud.fr/sparql
 
|endpoint=http://opendata1.opendata.u-psud.fr/sparql
 +
|headers = Device , Keywords ,Picture,Contact
 +
|templates=Device/label,Device/keywords,Device/picture,Device/contacts
 
}}
 
}}

Revision as of 14:26, 26 April 2021

Device Keywords Picture Contact
14:11:02 11/28/2021 -- Refresh -- Duration of query :0.049s