|
|
| Line 1: |
Line 1: |
| Questa pagina conterrà esempi dettagliati per usare lo endpoint SPARQL.
| | #REDIRECT [[Help:Esempi query SPARQL]] |
| | |
| Si tratta di una caratteristica '''sperimentale'''.
| |
| | |
| == Dove si trova ==
| |
| https://wdqs.wikitrek.org
| |
| | |
| == A cosa serve ==
| |
| https://en.wikipedia.org/wiki/SPARQL
| |
| | |
| <div class="mw-heading mw-heading2">
| |
| <h2>Wikitrek</h2>
| |
| </div>
| |
| <div class="mw-heading mw-heading3">
| |
| <h3>Episodi di Lower Decks</h3>
| |
| </div>
| |
| Elenco di episodi di '''''[[wikitrek:Star Trek: Lower Decks|Lower Decks]]'''''
| |
| <syntaxhighlight lang="sparql" line>
| |
| PREFIX wd: <https://data.wikitrek.org/entity/>
| |
| PREFIX wdt: <https://data.wikitrek.org/prop/direct/>
| |
|
| |
| SELECT ?episode ?episodeLabel ?publication ?production WHERE {
| |
| ?episode wdt:P14 wd:Q10317;
| |
| wdt:P101 ?publication;
| |
| wdt:P1 ?production
| |
| SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
| |
| }
| |
| ORDER BY ASC (?production)
| |
| </syntaxhighlight>
| |
| <div class="mw-heading mw-heading3">
| |
| <h3>Episodi di Prodigy</h3>
| |
| </div>
| |
| Elenco di episodi di '''''[[wikitrek:Star Trek: Prodigy|Prodigy]]'''''
| |
| <syntaxhighlight lang="sparql">
| |
| PREFIX wd: <https://data.wikitrek.org/entity/>
| |
| PREFIX wdt: <https://data.wikitrek.org/prop/direct/>
| |
|
| |
| SELECT ?episode ?episodeLabel ?publication ?production WHERE {
| |
| ?episode wdt:P14 wd:Q10692;
| |
| wdt:P101 ?publication;
| |
| wdt:P1 ?production
| |
| SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
| |
| }
| |
| ORDER BY ASC (?production)
| |
| </syntaxhighlight>
| |