Tag Archives: Maps

Posted - 20-04-2018

#LoveMaps / Collections / Digitisation / Research

Old Periodicals, a New Datatype and Spiderfied Query Results in Wikidata

Several years ago the National Library of Wales appointed the Worlds first Wikidata Visiting Scholar. The volunteer, Simon Cobb, has worked with the library ever since to share, enrich and explore the library’s data using Wikidata – a massive open access linked data repository which contains tens of millions of pieces of data on just about every subject imaginable. In this guest blog, Simon presents his recent work, using open library data on periodicals, publishers and printers in conjunction with the latest Wikidata visualization tools. Jason Evans, National Wikimedian.

Recent developments in Wikidata have made it possible to display more items from the National Library of Wales’ collections on a map. A cluster feature in the Wikidata Query Service map view has enhanced geolocation data visualisation and the new geoshape datatype provides access points for content discovery.

Previously, the display of geolocated images was hampered by only one item per coordinate location being shown on the map. Since a SPARQL query can return multiple results with an identical location this was never an ideal situation. The problem is, in fact, inherent to linked data because every item with a specific relationship to a place will appear at exactly the same point on the map. This is due to the coordinates being attached to the place rather than each individual item.

If the item is an image of Aberystwyth Castle, it depicts the castle and, conversely, the castle is depicted by the image. This is a semantic relationship between the subject (image) and object (castle). The location of the castle is recorded as latitude and longitude coordinates, and thus a query to show on a map the location that the image depicts will use these coordinates. Other images that depicts Aberystwyth Castle will also have these exact coordinates.

 

The marker cluster plugin was implemented to address this problem and it is now possible to view two or more items with the same coordinates. Nearby map markers are grouped using an animated clustering functionality to display an increasing number of clusters, with fewer markers in each, as one zooms in closer. The real gamechanger, however, is the spiderfied markers. Rather than having a solitary marker at a shared location, multiple markers now spiral outwards from a central point, with legs being used to retain their attachment to the precise location and thus show all items in situ.

 

Spiderfied markers of periodicals published in Carmarthen. Unexpanded clusters and single markers are also shown. Each marker contains the periodical’s title, place of publication and cover image (if available). This map is available at: http://tinyurl.com/ycnjsylv.

 

Carmarthen is an important town in the early history of printing in Wales. Some twenty-eight titles in the Welsh Journals and Welsh Newspapers Online digital collections were printed in the town, with twenty-six being first issued before 1900. These periodicals have the same place of publication (i.e. Carmarthen), and thus appear on the map at their shared coordinates. The markers are spiderfied, colour coded according to decade of publication and arranged in a chronologically ordered spiral, starting in the centre with the earliest publication.

In late 2017, a new geoshape datatype was implemented in Wikidata. As the name suggests, it is for storing geographic information in a manner that will produce shapes on a map. Geoshape data can be a single marker at a specific point, a line between two or more points, or a shape, known as a polygon, which is the area enclosed by a point-to-point line, traversing at least four points, with the first and last point being identical. A line or shape is created by structuring geocoordinates to represent the relationship between a series of points; somewhat like a dot-to-dot puzzle. Additional data about a place, such as the address, postcode, website or Wikipedia article, can be attached to a geoshape.

 

The National Library of Wales was the UK’s first Wikidata geoshape. The popup information box includes an image, link to the NLW Wikipedia article and SPARQL queries of the Library’s collections. Markers indicate features of interest and provide images from different vantage points.

 

Since a geoshape can contain multiple points, lines and polygons, it is possible to store data about a group of related locations like, for example, buildings with a similar use. This is a great way to visualise the booktrade locations in Wales that have been added to Wikidata.

Multipolygon geoshape data showing book trade locations in Carmarthen, past and present. These locations and those in other parts of Wales are stored as a single geoshape in Wikimedia Commons (see https://commons.wikimedia.org/wiki/Data:Book_trade_in_Wales.map).

Whilst the book trade locations geoshapes are relatively simple and, therefore, not burdensome to create manually, others, like, for instance, those of castles depicted in the Welsh Landscape Collection, are much more complex. The intricate geoshapes that are formed by sections of perimeter wall between towers or bastions and surrounding the bailey and keep of a castle can be slow and fiddly to make but, luckily, we can draw on linked data instead. A link is forged when an OpenStreetMap feature is tagged with a Wikidata ID and this enables a SPARQL query to retrieve OpenStreetMap data about Wikidata items in the results. Such linking can make a large amount of existing geoshape data accessible.

 

Geoshapes of buildings shown in the Welsh Landscape Collection prints shown in the historic counties of Wales. The buildings are OpenStreetMap features, tagged with the qid of a Wikidata item returned by a SPARQL query, imported as geoshape data and combined with historic county geoshapes from Wikimedia Commons.

 

Geoshapes of buildings shown in the Welsh Landscape Collection prints shown in the historic counties of Wales. The buildings are OpenStreetMap features, tagged with the qid of a Wikidata item returned by a SPARQL query, imported as geoshape data and combined with historic county geoshapes from Wikimedia Commons.

The results of a SPARQL query to retrieve images from the Welsh Landscape Collection can be visualised on a map with geoshapes to represent the building depicted. Shown above, the results for Tintern Abbey are spiderfied to expand a cluster of images with an identical geocoordinates from a single point within the geoshape. Previously, it was only possible to display one of these images on the map view results.

 

Simon Cobb, Wikidata Visiting Scholar at the National Library of Wales

Tags: , , , , , , , ,

Posted - 25-05-2017

Collections

Gwlad y Gân: Valériane Leblond and Peter Stevenson

On Wednesday, 10 May, 2017 a fascinating lunchtime lecture by the artist Valériane Leblond and Welsh folklore expert, Peter Stevenson, was held in the Drwm, The National Library of Wales. Valériane introduced her new illustrated map of Wales which is based on the tales found in Peter Stevenson’s new collection of Welsh Folk Tales. With a full house in the Drwm, the lecture was broadcast live via Periscope. You can view the lunchtime lecture, along with other live broadcasts filmed by the Library on Periscope, the live video streaming app.

Valériane Leblond was commissioned by The National of Wales last year to draw up a map of Wales to coincide with celebrations relating to the Year of Legends this year. She worked closely with the author, Peter Stevenson and during the lunchtime lecture pointed out how she was inspired by the tales found in his latest book when drawing her illustrated map of Wales.

Peter Stevenson shared some of the folktales, superstitions and oral anecdotes found in his new book from the tale of ‘The elephant of Tregaron’ to the story of ‘Twm Siôn Cati’ and how they convey the diverse tradition of storytelling.  Here is Peter Stevenson, broadcast live following his lunchtime presentation, reading extracts from his Welsh Folk Tales.

To see more live broadcasts from the Library follow us on Periscope.

You can buy a copy of Valériane Leblond illustrated map of Wales and Peter Stevenson, Welsh Folk Tales at the Library shop.

Bethan Rees~ Digital Access

 

Tags: , , , , , , , ,

Posted - 22-10-2015

Collections / News and Events

Old maps, new content.

Digital copies of some of the most important maps held by the National Library are now available online for the first time. They include the oldest map in our collection, a printed copy of Ptolemy’s 2nd century map of Britain. Ptolemy’s ‘Prima Europe tabula’ is one of the earliest printed maps of the British Isles. It was originally published in 1486 in Ptolemy’s Geographia and is notable for the vivid blue sea; still as fresh and vibrant as the day it was painted. Claudius Ptolemy was one of the first cartographers. His work was rediscovered in Europe at the end of the 14th century and printed copies of this work helped to kick-start the cartographic revolution in Europe in the 1500s.

You can also see Humphrey Llwyd’s Cambriae Typus, the first printed map to show Wales as a separate region along with Christopher Saxton’s more accomplished but unpublished proof map of Wales from 1580 and a whole series of of 16th and 17th century county maps of Wales. The collection of nearly 40 maps is being released via Wikimedia Commons and Peoples Collection Wales.

As the Wikipedian in Residence at the Library, I have been releasing digital content into the public domain via Wikimedia Commons – a vast collection of free to use digital media – since January. Until now, this platform has been used to share digital content already available on National Library of Wales websites, but it struck me that it could also be used to share digitised material still waiting to be ingested into the Library’s online catalogue. By hand picking a small selection of such items, the images and relevant data can be uploaded manually to Wikimedia Commons, making them available to the public for the first time. In theory images could also be shared with other platforms, such as Flickr or Peoples Collection Wales in exactly the same way.

The upload of these maps is part of a trial to monitor the impact of releasing content in this way. We will be monitoring the use of these image on Wikipedia and beyond and thinking about how we could engage the public in reusing the images or creating better data or how such material could be used to educate and inspire.

Jason Evans
Wikipedian in Residence

Tags: , ,

Categories

Search

Archives

About this blog

A blog about the work and collections of the National Library of Wales.

Due to the more personal nature of blogs it is the Library's policy to publish postings in the original language only. An equal number of blog posts are published in both Welsh and English, but they are not the same postings. For a translation of the blog readers may wish to try facilities such as Google Translate.

About the blog