Friday, 18 January 2013

The “Encyclopaedia of the Hellenic World” joins Pelagios


It is with great pleasure that we announce the incorporation of the Encyclopaedia of the Hellenic World into the Pelagios network.

The Encyclopaedia of the Hellenic World (EHW) is an online encyclopaedia developed by the Foundation of the Hellenic World (FHW). The FHW is a private, non-profit cultural organization based in Athens, Greece. It was founded in 1993 and its mission is the preservation and dissemination of Hellenic history and tradition through original research, the development of cultural and educational programmes, the organisation of conferences, seminars and so forth. One of the main tools of the Foundation for achieving its goals is the use of digital technologies such as virtual reality applications and 3D reconstructions of archaeological sites. 


The development of the EHW started back in 2002 and it is still a work-in-progress. Its main aim is to present a coherent picture of the presence and influence of Greek culture outside the borders of the modern Greek state. In the creation of the EHW, the latest ideas regarding the theory of knowledge have been taken under consideration. These ideas introduce the notion of ‘entity’ as a self-contained cognitive element in the field of the humanities, particularly history and archaeology. Each entity has a name, description, characteristics and qualities and it forms hierarchical, relational and/or co-dependent relationships with other entities. The EHW entities are mostly understood as wider thematic units of a geographical, temporal and/or cultural nature, which include data on settlements, persons, events and historical phenomena, their causal relationships and their (usually) divergent interpretations. The EHW, although close to the traditional encyclopaedic projects regarding information morphology, is open to modern knowledge theories and ontologies and can potentially adapt, if necessary, thanks to its flexible electronic character. 


The encyclopaedia contains some 2,000 entries and is divided into three “volumes”: 1) Asia Minor, 2) Constantinople, and 3) the Black Sea. All entries are written by experts in the field, in both Greek and English, and we have also a small amount of entries in other languages (when the author supplied us with the original version of his text as well as the required English one). The entries, which chronologically span from prehistoric to modern times, are divided into four main thematic categories: a) geographical terms, b) persons, c) events, and d) general entries. In the case of the Asia Minor volume, we have also the category “Buildings” due to the Foundation’s involvement with three-dimensional reconstructions of Asia Minor buildings of Antiquity and the Byzantine Period, which has led to the production of a large volume of information relevant to the architecture of the area. Each entry is furnished with a full bibliography, references within the text, links to other encyclopaedia entries, images (such as photographs, maps, and plans), a glossary of technical terms, ancient sources, audiovisual resources and links to relevant websites when available.


In addition to the EHW, the Foundation has also developed two smaller digital encyclopaedias dealing with the history and culture of the Aegean islands and the region of Boeotia respectively. These two projects, although geared more to the general public than to the academic community, are based on the same organizational principles as regards their information structure.

We hope to be able to expand further our encyclopaedic project and cover more geographical/cultural regions in order to contribute to the growth of integrated historical documentation and knowledge on the web.

NOTE: A more "technical" report will follow soon.


On behalf of the Foundation of the Hellenic World,
Dr Ioannis Georganas & Dr Georgios Tzedopoulos

Tuesday, 15 January 2013

The Ancient World Mapping Center

The Ancient World Mapping Center


AWMC and Pelagios

The Ancient World Mapping Center is happy to formally join the Pelagios network. AWMC and Pelagios share a commitment to the curation of authoritative and uniform ancient world geographic information online and to the construction of networks (both human and virtual) to link together data in the best possible way. Below we offer some background on AWMC and its remit, along with some overview information about the center’s database, Antiquity À-la-carte 2.0 (a mapping application), and a recently launched API. Jeffrey Becker currently directs the AWMC; Ryan Horne is the chief engineer of Antiquity À-la-carte 2.0, the AWMC API, and the Center’s web and data architecture.

The Ancient World Mapping Center at UNC-Chapel Hill


When the Barrington Atlas of the Greek and Roman World (R. J. A. Talbert ed., 2000) appeared in 2000 it represented both a milestone in and a landmark for ancient world geography, as it not only was the first comprehensive ancient world atlas since Smith and Grove (1872) but also it created an enormous amount of metadata related to the atlas’ 102 maps. The metadata was initially contained in the Map-by-Map Directory and on CD-ROM, but soon formed the nucleus of the Pleiades Project, under the direction of Tom Elliott, who also served as the founding director of AWMC. The Classical Atlas Project, thus, spawned the atlas itself as well as a research center that has been engaged in carrying forward the work of the atlas project for more than a decade. The Ancient World Mapping Center, based at the University of North Carolina at Chapel Hill in the United States, endeavors, with its partners, to constantly refine and expand the geo-database created initially by the Barrington Atlas. In addition to data curation and refinement, AWMC actively promotes ancient world geography and its study, along with the application of Geographic Information Systems (GIS) for the study of the ancient world. AWMC’s own research projects, including material to accompany Richard Talbert’s Rome’s World: The Peutinger Map Reconsidered (Cambridge 2010), advance research agendas that seek to expand our knowledge of ancient geography and worldview. Benthos, a new initiative, seeks to create a digital atlas of ancient waters, including information for ancient shipping, shipwrecks, and trade routes.  Educational outreach, by way of a series of wall maps, as well as digital platforms, aims not only to share geographic information with both professional and avocational constituencies, but also to demonstrate the extremely fruitful intersection of ancient world geography and the latest in technology. AWMC believes strongly in the potential of linked data for the ancient world and thus feels that the networking provided by both Pleiades and Pelagios offers important opportunities for interoperability and cooperation in the digital sphere.

Antiquity À-la-carte 2.0


Antiquity À-la-carte 2.0 is a web-based GIS application that allows users to create custom maps using data extracted from AWMC's database. This application is flexible and easily customizable based on the individual needs of the user. In conceptualizing the application, a point of departure was the traditional static paper map made for classroom use which, while informative, is limited in its range of uses. Antiquity À-la-carte 2.0, on the other hand, provides nearly limitless functionality in that not only can a map be created for a specific need, but the user is enabled even to add custom geographic content and cultural/historical information to the map.

AWMC API


The AWMC API allows users to interact directly with the geo-database maintained by AWMC. The API provides access not only to the entire Pleiades data set (including geographic information for all content derived from the Barrington Atlas along with various sets of metadata), but also to polyline information for the physical geography of the ancient Mediterranean and Near Eastern worlds. This latter set includes coastlines, water features (both open and inland), line work (roads, aqueducts, bridges), cultural shading (e.g. Roman city footprints), and terrain. All of this data is released to the user under the terms of the Creative Commons License for non-profit educational and scholarly use.

Linking to Pleiades / Pelagios


The AWMC has long used geographic software for the creation of maps, initially by creating geographic layers with ESRI ArcGIS and adding cultural data from pre-existing maps and the Pleiades Project, then refining the result through Adobe Illustrator. The Antiquity À-la-carte initiative was born out of the recognition that a much more robust system was needed to retain, modify, and display our extensive data and to align our work with other digital initiatives. Our initial steps were to create a PostGIS database using the Pleiades .csv files, with a point geometry object created out of the representative longitude and latitude for each feature. Next, we created a simple PHP script to update our database from the Pleiades daily data dumps, excluding any changes that we make to an object’s geometry (which we represent by a Boolean flag in our database). We then made a script to automatically generate a .wms file of these features, which allow us to query them in ArcGIS and to instantly align any of our map commissions or projects with correct Pleiades IDs and to quickly identify any individual features that need to be moved or modified, which we then feed back into Pleiades. In addition, we placed all of our geographical and cultural information (roads, rivers, inland water, aqueducts, islands, urban areas, additional or alternate names, etc.) into the database, which resulted in over 200,000 (and counting!) entries.

The culmination of this work can be seen in the Antiquity À-la-carte  application, built upon MapServer, OpenLayers, and GeoExt. Using the 3 arc second SRTM data from NASA for our base (void filled with lower resolution SRTM data), we modified the elevation raster data to conform to our ancient coastline (which, along with other geographical features, are heavily modified shapefiles from Vmap0). We also created many shapefiles from scratch, such as roads, aqueducts, and cultural information, all of which follow the Barrington Atlas and conform to the modified SRTM background. We then added the .wms file of all the Pleiades data (essential due to feature number limitations in OpenLayers) and integrated our PostGIS database of Pleiades entries to allow a user to search for a particular feature by its name, Pleiades ID number, geographical location, or other information.

The resulting map is fully customizable, with the ability to add any Pleiades feature, sort by time periods, modify names, locations, labels, and feature types to any user specifications. A user created map can be exported as a .pdf, a .kml file, a .csv list with GeoJson geometries, or as a GeoJson object that can be directly used by OpenLayers or imported back into À-la-carte. A map can also be easily linked to in a variety of ways through URL parameters as detailed here. This linking relies on json notation, and can be used to specify feature names, Pleiades IDs, and even zoom levels and map centering. This can serve as an efficient means to display an accurate ancient geographical map for projects or initiatives that have Pelagios / Pleiades aligned data who do not want to create their own maps or are restricted from running javascript applications of their own. An example URL, in this case representing some features around Pergamum, looks like the following:
Since each feature in our database already has a Pleiades ID, it was a simple matter to integrate a particular place on our map directly into the Pelagios network. For instance, if Alexandria in Egypt is clicked on the map a popup is generated which allows the user to directly access and browse the Pelagios API via a link created in a PHP script.

Greater difficulty was involved in matching different geographical features that are expressed in polygons or lines, as they were primarily created before the Pleiades project was conceived. Our initial attempt was to simply run a names match, but due to spelling differences, multiple results per feature, and other difficulties this proved to generate less reliable results than we wished. We next selected the relevant feature type (lakes, rivers, roads, and urban areas) from our database and then tried to assign an ID based on geography where our data corresponded with Pleiades coordinates. We discovered that Pleiades bounding boxes or representative points can overlap with other features, a problem which became readily apparent with smaller lakes and rivers that are in close proximity to other features of the same type. Ultimately we had to take our .wms file of Pleiades data points and use desktop GIS software along with the Barrington Atlas to identify and tag the relevant feature with the correct Pleiades ID. Although this process is far from complete, the AWMC API contains the matches.

Our API was created to allow greater access to the data produced by the AWMC in a variety of different formats without the necessity of downloading a full shapefile. Our search interface allows a user to locate an object through a Pleiades ID, a unique AWMC ID, title, or type. The search then generates a list of RESTful URIs geared to a unique AWMC ID, generated through Apache mod_rewrite, PHP, and presented through DataTables. Clicking on any result will then generate a web page displaying a map locating the particular feature, relevant information about the feature in question, links to Pleiades and Pelagios, as well as links to show the feature in GeoJson (formatted for direct use in OpenLayers) or RDF representations, both of which are RESTful URIs that point to content generated on the fly by PHP scripts.

For instance, the URI for our polygon outlining the urban area of Rome at ca. 200 CE is:
with a .json representation:
and the rdf:

We are especially curious if the GeoJson representations of our data proves useful to other projects- for instance you could easily add polygons covering ancient lakes, rivers, and roads to a map keyed off of an AWMC ID directly through OpenLayers without any modification.

Since a large portion of our data is already keyed to a corresponding Pleiades ID, generating an RDF file for each entry in the preferred format for Pelagios is a relatively painless process achieved through a PHP script. At the moment we are only providing a basic abstract to describe each resource; one could certainly add more fields to these entries or change our terminology if it would be beneficial to the larger community. A sample RDF follows:

<rdf:RDF xmlns:pleiades="http://pleiades.stoa.org/places/vocab#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:oac="http://www.openannotation.org/ns/" xml:base="http://awmc.unc.edu/api/omnia/">
<rdf:Description rdf:about="168940">
<oac:hasBody rdf:resource="http://pleiades.stoa.org/places/423025"/>
<oac:hasTarget rdf:resource="http://awmc.unc.edu/api/omnia/168940"/>
<dcterms:creator rdf:resource="http://awmc.unc.edu"/>
<dcterms:title>Rome</dcterms:title>
<dcterms:abstract>Urban area polygon</dcterms:abstract>
</rdf:Description>
</rdf:RDF>

We followed much of the same process in creating our “master” rdf file that holds all of our Pleiades aligned data.  The results of this work can be seen here.

We hope the Antiquity À-la-carte  application and our API  together provide an impetus to begin approaching not only the cultural geography of the ancient world but the underlying physical landscape as well. Sharing and further refining the complex geometries of our resources is one of our major goals, and we are excited about the prospect of providing a simple means of adding accurate geographical information to ancient linked data projects. Combined with projects like ORBIS and other Pelagios partners, we imagine that there will be many interesting ways to integrate accurate physical geography into the linked data world.

Although we do offer all of our map files for download, AWMC is eager to participate to a community model for hosting and serving our background tiles. The Pelagios community has already embarked on such an approach and AWMC would be happy to furnish it authoritative ancient world geographical data in a similar way for other projects. We welcome feedback from the Pelagios community as to how our data may be useful or if there are suggestions for increased functionality in either our À-la-carte application or API.

AWMC is especially grateful for the help of our colleagues at Pleiades, as well as Joe Ryan, UNC ITS Humanities Research Associate.

-- Jeffrey A. Becker, Ryan Horne & Richard Talbert
CB# 8110; 5010 W. R. Davis Library
The University of North Carolina
Chapel Hill NC  27599-8110 U.S.A.

Monday, 31 December 2012

Linking ORBIS to Pelagios

Parameterized route finding in ORBIS
ORBIS: The Stanford Geospatial Network Model of the Roman World has recently joined the Pelagios network, thanks to the encouragement and patient assistance of Leif, Elton and Rainer.

Our initial steps were these: (a) create an API allowing a few simple RESTful queries of the ORBIS database (orbis.stanford.edu/api), (b) publish an RDF file which maps our URIs for 402 of ORBIS’ 751 sites to Pleiades places, and (c) build a simple dynamic map landing page for the URIs.

Project background

The initial phase of the ORBIS project was completed with a web site launch in May, 2012. Development has largely paused for several months, but will resume in early 2013. The goal of the project is to model Roman communication costs in terms of both time and expense, and to permit scholars and the general public to interact with that model, by means of a route-finding web map and an interactive distance cartogram. By simulating movement along the principal routes of the Roman road network, the main navigable rivers, and hundreds of sea routes in the Mediterranean, Black Sea and coastal Atlantic, the model reconstructs the duration and financial cost of travel in antiquity. The purpose, development and use of the model and web application are described in considerable detail on the site.

Interactive distance cartogram in ORBIS, showing ‘grain-distance’ to Rome during June, in denarii
The ORBIS project is led by Walter Scheidel (Professor of Classics and History); the novel geospatial model, database and cartogram were developed by Elijah Meeks (Digital Humanities Specialist). Yours truly (Karl Grossner, Digital Humanities Research Developer) arrived to the project in time to become its web developer.

So, what does ORBIS add to the growing graph of annotations to Pleiades places that Pelagios enables? The initial answer is that for each of 402 places we can tell you which Pleiades places are directly connected to it by a single network segment. In the coming weeks we will be extending both our annotations and the range of API queries, and report that here.

ORBIS places

The ORBIS database includes 751 sites, most of them urban settlements but also including important promontories and mountain passes; 268 of these served as sea ports. ORBIS sites are drawn, with a few adjustments, from the Barrington Atlas of the Greek and Roman World (Talbert 2000). The Barrington map key categorization for size and importance of settlements is maintained, in five rank classes (in ORBIS: increments of 10, 60 to 100). Of the 751 sites, 402 have been identified as identical with Pleiades places, and this is the basis for ORBIS’ connection to the Linked Data cloud.

The road network encompasses 84,631 kilometers of roads and desert tracks, and 28,272 kilometers of navigable rivers and canals. This multi-modal terrestrial network is described in the spatial database in terms of 625 distinct road segments and 107 distinct river or canal reaches. As an aside, these segments and reaches are places as well—certainly events have occurred at, on, or near them. Granted the first order of business in our collective effort at large-scale digital historical gazetteers is point locations, principally for settlements. However, named and unnamed paths (e.g. roads, rivers) and potential or actual routes taken upon them (journeys or trajectories), are entities of interest as well—as sites of historical activity and events.

Creating an API

The ORBIS routing application calculates routes between sites, along a multimodal network comprising the terrestrial segments mentioned above, and a 0.1 degree lattice laid over the Mediterranean and Black Seas and North Atlantic Ocean. The route calculation accounts for 8 parameters, each with multiple possible values: start (639), destination (639), month (12), priority (3), network type (5! = 120), river vessel (2), sea vessel (2), land vehicle/mode (9), and price (3). Obviously, results for these billions of distinct combinations can’t be (and needn’t be) pre-calculated and published; a simplified API can deliver results programmatically. So, what to offer in an API? We have begun simply. You can request for example,
  • A dump of all 402 sites mapped to Pleiades places, in JSON format
    http://orbis.stanford.edu/api/sites
  • A listing of sites one network hop from a given site (using either Pleiades place ID or ORBIS site ID) by road or river, with segment length, e.g
    http://orbis.stanford.edu/api/sites/108772
  • A route between two places. There are four required parameters: start, destination, month and priority (fastest or shortest route). For example,
    http://orbis.stanford.edu/api/route_pl/79299/108772/6/1
    requests the shortest path between Aquae Sulis and Augusta Suessionum in June using Pleiades IDs—and returns a JSON object with the estimated trip distance and duration, and a sequence of 7 segments (6 road, 1 coastal sea). For each segment, distance, duration and type are returned as well.

API technical details

Because ORBIS uses PHP for database access, and the syntax we preferred uses slashes (like orbis.stanford.edu/{param1}/{param2}/{param3}, I found the Slim API framework (http://www.slimframework.com/) to be simple and effective. In our case this meant a central index.php referring to separate PHP scripts for each of our three offerings, and a single mod_rewrite statement added to our Apache web server configuration. The API queries are simplified version of existing queries in the ORBIS application. For further details, just contact me.

RDF publication

Pelagios required first and foremost a web-published RDF document describing (minimally) mappings between ORBIS sites and Pleiades places, in the form suggested by the Open Annotation Collaboration (openannotation.org ). One such entry is as follows:

<rdf:Description rdf:ID="orbis_50012">
    <rdf:type rdf:resource="http://www.openannotation.org/ns/Annotation"/>
    <oac:hasBody rdf:resource="http://pleiades.stoa.org/places/108751"/>
    <oac:hasTarget rdf:resource="http://orbis.stanford.edu/api/site/50012"/>
    <dcterms:creator rdf:resource="http://orbis.stanford.edu/"/>
    <dcterms:title>The Roman era place, Ara Agrippinensium</dcterms:title>
</rdf:Description>


Generating this document was straightforward for us; the ORBIS sites table has always included a Pleiades ID field, and we had already made 402 mappings there. A SQL query that concatenated the necessary XML markup with site numbers and Pleiades IDs was a simple matter. The file can be freely downloaded, but is presently useful only to Pelagios.

Web landing page

The URIs published in the above file have to resolve to a meaningful location. Navigating to http://orbis.stanford.edu/api/site/50012 loads a page with a small map with markers for that site and the sites directly connected by a single segment to it.

A few comments

The ORBIS site does offer the option to export lists of calculated routes as KML for Google mapping, or comma-delimited format (CSV) for more general use. This is good as far as it goes, but we are intrigued at the prospect of ORBIS routes and related data being mashed up in other applications, and see a potential ‘multiplier’ effect in this capability. The ORBIS project will also be a partner collection in Anvil Academic’s Built Upon digital publishing initiative, which may present novel opportunities for linked data applications.

Pelagios allows anyone referring to a Pleiades place to discover other annotations for it, now including those of ORBIS. However, given the parametric nature of ORBIS data, what can a simple static URI provide?  For the time being, this is only the set of Pleiades places connected to that place by a single terrestrial segment. This seems to me of limited value, although as a Linked Data devotee I understand my job is simply to publish data, enabling applications we can’t necessarily predict. The API we’ve developed to return parameterized routes appears more immediately useful, and in fact we know of one pending application related to paths between coin finds and nearby mints. The annotation provided through Pelagios could be extended, but how? For example, would it be useful to provide, for a given place, distances and durations to all places of a given size or importance? Suggestions are most welcome.

______________________

Talbert, R. J. A. (ed.) 2000. Barrington Atlas of the Greek and Roman World. Princeton.