Project:SPARQL/examples: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 40: Line 40:
GROUP BY ?zdroj ?zdrojLabel ?presmerovany_zdroj ?presmerovany_label ?stitek ?pocet_citaci
GROUP BY ?zdroj ?zdrojLabel ?presmerovany_zdroj ?presmerovany_label ?stitek ?pocet_citaci
ORDER BY DESC (?pocet_citaci)
ORDER BY DESC (?pocet_citaci)
</sparql>
===Obrázky z Wikidat ilustrující jednotlivé pojmy===
<sparql tryit="1">
#defaultView:ImageGrid
PREFIX zwb: <https://tdkiv.wikibase.cloud/entity/>
PREFIX zdp: <https://tdkiv.wikibase.cloud/prop/direct/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?image_from_wikidata WHERE {
  ?item zdp:P16 zwb:Q4397;
    zdp:P27 ?wikidata_id.
  BIND(IRI(CONCAT("http://www.wikidata.org/entity/", ?wikidata_id)) AS ?entity)
  SERVICE <https://query.wikidata.org/sparql> { ?entity wdt:P18 ?image_from_wikidata. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "cs,en". }
}
</sparql>
</sparql>

Navigation menu