query-2e76b3451c0afea2218c6d425f57934b

rq turtle/ttl

Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Objekt i Messier-katalogen, med bild Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image Items in the Messier Catalog, with image

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:ImageGrid
# <span lang="en" dir="ltr" class="mw-content-ltr">Items in the Messier Catalog</span>
SELECT DISTINCT ?item ?itemLabel ?numero (SAMPLE(?image) AS ?image)
WHERE {
  ?item p:P528 ?catalogStatement .
  ?catalogStatement ps:P528 ?numero .
  ?catalogStatement pq:P972 wd:Q14530 .
  OPTIONAL {?item wdt:P18 ?image . }

    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" }
}
GROUP BY ?item ?itemLabel ?numero 
ORDER BY ?numero

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?catalogStatement") v5("?image"):::projected v2("?item"):::projected v1("?numero"):::projected c4(["wd:Q14530"]):::iri c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal v2 --"p:P528"--> v3 v3 --"p:statement/P528"--> v1 v3 --"p:qualifier/P972"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P18".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind1[/"sample(?image)"/] v5 --o bind1 bind1 --as--o v5