User:Jason.nlw: Difference between revisions

From Semantic Name Authority Repository Cymru
Jump to navigation Jump to search
No edit summary
(Replaced content with " {{#babel:en|cy}} thumb|John Speed Caernarvon")
Tag: Replaced
Line 2: Line 2:
{{#babel:en|cy}}
{{#babel:en|cy}}


{{Wikidata list|sparql=#defaultView:Tree
[[File:John Speed Caernarvon.jpg|thumb|John Speed Caernarvon]]
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX snarcp: <https://snarc-llgc.wikibase.cloud/prop/direct/>
PREFIX snarcq: <https://snarc-llgc.wikibase.cloud/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
 
 
SELECT DISTINCT ?type ?typeLabel ?s ?Name_en2  WHERE {
   
?s snarcp:P63 snarcq:Q1 .
?s snarcp:P7 ?type .
 
 
VALUES ?type { snarcq:Q8586 snarcq:Q8588 snarcq:Q1367 snarcq:Q8584 snarcq:Q8593 snarcq:Q10021 snarcq:Q8587 snarcq:Q8597 snarcq:Q8606 snarcq:Q10185 snarcq:Q10198    }
OPTIONAL {?s rdfs:label ?Name_en filter (lang(?Name_en) = "en")}.
    OPTIONAL {?s rdfs:label ?Enw_cy filter (lang(?Enw_cy) = "cy")}.
BIND(IF(BOUND(?Name_en),CONCAT(?Enw_cy, " (Saesneg:", STR(?Name_en), ")"),?Enw_cy) AS ?Name_en2).
    SERVICE wikibase:label { bd:serviceParam wikibase:language "cy". }
}
ORDER BY ?typeLabel ?Enw_en2 ?s
 
 
|columns=label:Article,description,p131:Place,P580,P582,p625,P18
|section=131
|min_section=3
|sort=label
|links=text
|thumb=128
|autolist=fallback
}}
... (This will be overwritten by ListeriaBot) ...
{{Wikidata list end}}

Revision as of 16:06, 10 July 2024

{{#babel:en|cy}}

John Speed Caernarvon