Project:Mapping Ireland/Baronies
Jump to navigation
Jump to search
- instances of Item:Q57
- Property:P53 - 'in barony'
Issues
Issues and special cases to be aware of:
- baronies that are in more than one county, whether or not they should be regarded as two separate baronies. Logainm.ie takes two approaches:
- locate the same barony in multiple counties (some in Northern Ireland)
- show separate baronies, sometimes with a link to the other part in the navigation
- Examples
- bar. Costello in Galway kept separate from Costello in County Roscommon.
- bar. Moycarn - currently a single entries
- bar. Kilculliheen, Co. Waterford and Kilkenny : separate in Logainm (as here) but covered together by the Wikidata item.
Example query from Wikidata
The query below retrieved most of the relevant baronies, except for some historical ones. There were two bogus entries on Wikidata which I removed myself and maybe some duplicates, which should be ironed out by now.
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wbt: <https://codecs.wikibase.cloud/prop/direct/>
PREFIX wb: <https://codecs.wikibase.cloud/entity/>
SELECT DISTINCT ?item ?itemLabel ?label_ga ?Wikidata_Item_ID ?Logainm_ID ?in_county ?in_countyLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,ga". }
?item wbt:P1 wb:Q57;
wbt:P19 wb:Q29.
OPTIONAL {
?item rdfs:label ?label_ga.
FILTER((LANG(?label_ga)) = "ga")
}
OPTIONAL { ?item wbt:P5 ?Wikidata_Item_ID. }
OPTIONAL { ?item wbt:P21 ?Logainm_ID. }
OPTIONAL { ?item wbt:P19 ?in_county. }
}
LIMIT 100
Notes
Commented out