User:ChristianSW/Examples: Difference between revisions

m
hope it works...
m (...)
m (hope it works...)
Line 25: Line 25:
</sparql>
</sparql>


== Link to Wikipedia ==
== Link to German Wikipedia ==
<syntaxhighlight>
<sparql tryit="1" list="1">
   ?observation    wbt:P9 ?scientific_name .
#defaultView:Map
  ?scientific_name wbt:P11 ?wikidata_mapping .
 
PREFIX wb: <http://biodiversity.wiki.opencura.com/entity/>
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
 
SELECT ?location ?iNatlink ?wikipedia WHERE {
   VALUES ?observation {wb:Q131704}
  ?observation    wbt:P8 ?location ;
                    wbt:P6 ?iNatlink .
                    wbt:P9 ?scientific_name .
  ?scientific_name wbt:P11 ?wikidata_mapping .
SERVICE <https://query.wikidata.org/sparql> {
SERVICE <https://query.wikidata.org/sparql> {
     ?wikipedia schema:about ?wikidata_mapping . ?wikipedia schema:inLanguage "en" .
     ?wikipedia schema:about ?wikidata_mapping . ?wikipedia schema:inLanguage "de" .
     ?wikipedia schema:isPartOf <https://en.wikipedia.org/> .
     ?wikipedia schema:isPartOf <https://de.wikipedia.org/> .
     }
     }
</syntaxhighlight>
}
</sparql>


== Link to Wikispecies ==
== Link to Wikispecies ==
99

edits