Project:SPARQL/examples: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 10: Line 10:
GROUP BY ?class ?classLabel
GROUP BY ?class ?classLabel
</sparql>
</sparql>
== Jeremy's visualization ==
#defaultView:Dimensions
PREFIX ps: <http://trex-taxonomy.wiki.opencura.com/prop/statement/>
PREFIX p: <http://trex-taxonomy.wiki.opencura.com/prop/>
PREFIX pr: <http://trex-taxonomy.wiki.opencura.com/prop/reference/>
PREFIX wdt: <http://trex-taxonomy.wiki.opencura.com/prop/direct/>
PREFIX wd: <http://trex-taxonomy.wiki.opencura.com/entity/>
SELECT ?taxonLabel  ?scientific_nameLabel ?authorityLabel ?doi ?year WHERE {
  ?taxon wdt:P1 wd:Q19 ;
          wdt:P8 ?scientific_name .
  ?specimen wdt:P1 wd:Q24 ;
            p:P8 [
              ps:P8 ?scientific_name ;
              prov:wasDerivedFrom [
                  pr:P31 ?authority ;
              ]
    ] .
    ?authority wdt:P7 ?date ;
              wdt:P19 ?doi .
    bind (str(year(?date)) as ?year)
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }     
} ORDER BY ?year
Bureaucrats, emailconfirmed, platform
757

edits