Project:SPARQL/examples: Difference between revisions

(example)
Line 43: Line 43:


= Federated queries =
= Federated queries =
== Egg-incubation time of the bird observed with the iNaturalist observation ID: ==
<syntaxhighlight>
PREFIX wb: <http://biodiversity.wiki.opencura.com/entity/>
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
SELECT * WHERE {
  VALUES ?observation {wb:Q46561}
  ?observation wbt:P8 ?coordinate_location ;
                wbt:P1 ?observation_id ;
            wbt:P9 ?scientific_name .
  ?scientific_name wbt:P11 ?wikidata_iri .
  SERVICE <https://query.wikidata.org/sparql> {
    ?wikidata_iri wdt:P7770 ?egg_incubation_time .
    }
}
</syntsxhighlight>
== Plot observations based on an NCBI taxon id on Wikidata ==
== Plot observations based on an NCBI taxon id on Wikidata ==
<syntaxhighlight>
<syntaxhighlight>
Bots, Bureaucrats, emailconfirmed, Administrators
603,740

edits