Help:SPARQL query examples/queries: Difference between revisions
Jump to navigation
Jump to search
(Examples from ChatGPT) |
m (Test nuove classi) |
||
Line 1: | Line 1: | ||
<div class="mw-heading mw-heading3"> | |||
=== Episodi di Lower Decks === | === Episodi di Lower Decks === | ||
</div> | |||
Elenco di episodi di '''''[[wikitrek:Star Trek: Lower Decks|Lower Decks]]''''' | Elenco di episodi di '''''[[wikitrek:Star Trek: Lower Decks|Lower Decks]]''''' | ||
<syntaxhighlight lang="sparql" line> | <syntaxhighlight lang="sparql" line> |
Revision as of 12:29, 6 January 2025
Episodi di Lower Decks
Elenco di episodi di Lower Decks
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)
Episodi di Prodigy
Elenco di episodi di Prodigy
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)
Planets
A list of planets.
SELECT ?planet WHERE { ?planet wdt:P31 wd:Q634. }
Starships
Starships in the galaxy.
SELECT ?starship WHERE { ?starship wdt:P31 wd:Q170383. }