Table of contents


Overview

The following gives a short overview about the project's structure:

ARMEP
├── /documents
│   └── :id
├── /map
├── /about
└── /documentation

Filters Help

From both the "documents" or the "map"-perspective all data records in the ARMEP database can be filtered by either thier metadata or their actual textual content:

Filtering by Metadata

All data can be filtered by fifteen metadata categories. This functionality can be accessed via the top bar. If two or more metadata categories are selected at once resulting data items must contain all of those. Within each metadata category multiple selections can be made. If so, valid data items may contain only of the selected fields. The metadata filter is connected with a logical “and” to the content filter.

Filtering by Content

All data can be filtered by four different categories of content (translations, transliterations, lemmata and signs). If tokens from multiple lists are selected then they interconnect with a logical “and” while tokens of the same category connect with a logical “or”. The content filter is connected with a logical “and” to the metadata filter.


Documents Help

Document retrieval is done via the Documents link. On this page you can manage the books.

The displayed list gives an overwiew of all data records in the ARMEP - database

Using the above panel: upload documents can be filtered and searched.

By clicking data records then detailed infomation to each item is shown: Using the above panel:

Aside from general information detail views may also display:


Map Help

The following gives a brief summary of the map tools functionalities and features.

Base Map

The interactive map displays the find spots of about 23,500 inscribed artifacts, all of which bear cuneiform texts written in the Akkadian and Sumerian languages. To provide users with the best possible overview of the places where these rich and varied texts originate (or still exist today), the find spots are displayed as clusters when the map is initially loaded (or is reset). When a cluster is hovered over, the mouseover hover box shows the names of all locations. City/location clusters separate when one zooms in on that particular section of the map.

Custer Overview

For an overview of the item(s) in a cluster, click on any cluster circle. The interface will load a dialogue box showing the “descriptor” (a text’s modern designation or primary publication), “genre” (the category of literature), and “period” (when the text was composed) of the available text(s). The order of each column can be sorted (alphabetically), in either ascending or descending order. The displayed information can be searched using the search filter. To get additional information on the find spot, click on the underlined name at the top of the dialogue box, in the area with the changing images.

Single Items

To access the “Single Item” view of a text, click on the desired row in the “Cluster Overview” (described above). ARMEP will load a second dialogue box showing the text’s designation, provenience, language and script, genre, period (in which the text was written), ruler (during whose reign the text was composed), date (of composition), material (upon which the text was inscribed), (the type of) object, the text's author (if known) and a link to its edition (transliteration and translation) on Oracc (shown inside the red oval in the screenshot). Use the “Previous” and “Next” buttons to navigate between the “Single Item” views of the available texts. Click on the “Detail View” button to view photographs and/or editions of the texts (if they are currently available).

REST API

This section lists the available URLs of ARMEP's REST API. Each entry gives the request method (GET, POST or DELETE) in square brackets, the request path and the layout of the response data is listed. Additionally for POST requests the expected layout of the POST data is listed. You have to replace the parameters in the request path by valid ids:

Filters

Both routes api/documents and api/documents-list can be filtered by either meta data or textual content. Therefore in post data the following filters can be stated:

{
  "ancient_author": [...],
  "date_of_origin": [...],
  "dynastic_seat": [...],
  "genre": [...],
  "language": [...],
  "material": [...],
  "object_type": [...],
  "period": [...],
  "projects": [...],
  "provenience": [...],
  "ruler": [...],
  "script": [...],
  "tokens": {"transliterations": {},"lemmata":{},"translations":{},"signs":{}}
}

The tokens field can contain objects of the four different content layers translations,lemmata,translations and signs. Each entry has the form {"token":"document_id"}. If one field contains multiple entries, then these a fields are interpreted as a logical or. The fields itself are connected via a logical and.

[GET] api/filters

Returns filter lists to all meta data categories

Response data

{
  "authors":[...],
  "dates":[...],
  "dynastic_seats":[...],
  "genres":[...],
  "languages":[...],
  "materials":[...],
  "objects":[...],
  "periods":[...],
  "projects":[...],
  "proveniences":[...],
  "rulers":[...],
  "scripts":[...]
}

Document Routes

In this section all API routes, concerning documents are described.

[POST] api/documents

Returns documents in JSON-format

Query String Parameters

See Filters

Response data

[
    {
      "descriptor":"...",
      "genre":"...",
      "period":"...",
      "provenience":"...",
      "id":"..."
    },
    ...
]

[POST] api/documents_list

Returns documents in JSON-format as required by DataTables.js .

Form data

Response data

{
  "data": [
    [
      "descriptor",
      "genre",
      "period",
      "provenience",
      "id"
    ],
    ...
  ]
}

[GET] api/docments/?id=document_id

Returns a single document.

Example response

{
  "ancient_author:" ""
  "date_of_origin": ""
  "designation": "BMS 38"
  "display_name": "BMS 38"
  "dynastic_seat": ""
  "genre": "Prayer/Incantation"
  "id": "2316"
  "id_composite": "P452899"
  "language": "Akkadian"
  "lat": "36.358684"
  "lng": "43.151937"
  "material": "clay"
  "object_type": "tablet"
  "period": "Neo-Assyrian"
  "pleiades_id": "874621"
  "popular_name": ""
  "provenience": "Nineveh"
  "ruler": ""
  "script": ""
  "title": ""
  "vol_title": ""
}

Tokens Routes

Routes, adressing queries on the content (tokens) of stored documents.

[GET] api/token_list

Lists all tokens to one of four available token indices (translations,transliterations,lemmata,signs)

Query String Parameters

translations|transliterations|lemmata|signs

Response data

[
  token1,
  token2,
  token3,
  ...
]

[POST] api/tokens_document_ids

Returns document_ids to a set of query tokens.

Request data

{
  "transliterations": [
    [
      "token1":"token1_id",
      "token2":"token3_id",
      "token3":"token3_id",
      ...
    ],
     "lemmata": [
    ...
    ],
    "translations": [
    ...
    ]
    "signs": [
    ...
    ]
  ]
}

Response data

{
  "transliterations": [
    [
      "token1":"document1_id,document2_id,document3_id,...",
      "token2":"document1_id,document2_id,document3_id,...",
      "token3":"document1_id,document2_id,document3_id,...",
      ...
    ],
     "lemmata": [
    ...
    ],
    "translations": [
    ...
    ]
    "signs": [
    ...
    ]
  ]
}

Other Routes

[GET] api/cdli_link/?id=document_id

Tries to find a cdli link by a given document_id

Response

HTML content from CDLI

[POST] api/oracc_link/?id=document_id

Tries to find a oracc link by a given document_id

Request data

'oracc-link-with-document_id'

Response

HTML content from ORACC