Help:SPARQL query examples/queries: Difference between revisions

From DataTrek
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 13: Line 13:
ORDER BY ASC (?production)
ORDER BY ASC (?production)
</syntaxhighlight>
</syntaxhighlight>
=== Planets ===
A list of planets.
<pre>
SELECT ?planet WHERE {
  ?planet wdt:P31 wd:Q634.
}
</pre>
=== Starships ===
Starships in the galaxy.
<pre>
SELECT ?starship WHERE {
  ?starship wdt:P31 wd:Q170383.
}
</pre>

Revision as of 11:37, 29 December 2024

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)

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.
}