diff --git a/jupyter/GAapiTutorial.ipynb b/jupyter/GAapiTutorial.ipynb index eafbd36a68aa2662f555d3fa0b62c52f92601ced..fbf0eec3dcc445bcb6cd9271e3e8b10242eacd62 100644 --- a/jupyter/GAapiTutorial.ipynb +++ b/jupyter/GAapiTutorial.ipynb @@ -9,11 +9,7 @@ "\n", "The purpose of this notebook is to document the API of the Greek Anthology's project. It is available at http://anthologiagraeca.org/api.\n", " \n", - "## General information\n", - "\n", - "### Access the API\n", - "\n", - "We will start by importing different useful libraries and define our first variables for the requests.\n" + "## General information" ] }, { @@ -23,6 +19,9 @@ "metadata": {}, "outputs": [], "source": [ + "# Importation of the useful libraries \n", + "# Definition of our variables for the requests \n", + "\n", "import requests\n", "import json\n", "\n", @@ -39,7 +38,7 @@ "id": "initial-integration", "metadata": {}, "source": [ - "The variable `data` gives us, in json format, the available endpoints" + "Here are the avaiable endpoins:" ] }, { @@ -81,11 +80,7 @@ "id": "higher-bronze", "metadata": {}, "source": [ - "### The endpoint *passages*\n", - "\n", - "The first endpoint (`passages`) is the most important : it contains a list of all the epigrams. Let us have a look at it. \n", - "\n", - "With the variable \"epigrams\", we directly make a request to the API (its URL is built thanks to the variables defined above and below)." + "The most important one is the first one: `passages` which contains a list of all the epigrams. Let us have a look at it:" ] }, { @@ -95,16 +90,8 @@ "metadata": {}, "outputs": [], "source": [ - "epigrams = '/passages'\n", - "epigrams_res = requests.get(url+epigrams_ep,parameters).json()" - ] - }, - { - "cell_type": "markdown", - "id": "fb4eb48c", - "metadata": {}, - "source": [ - "The result of our request provides us with a lot information related to the passages, as seen below : " + "epigrams_ep = '/passages'\n", + "epigrams = requests.get(url+epigrams_ep,parameters).json()" ] }, { @@ -1825,7 +1812,7 @@ } ], "source": [ - "epigrams_res" + "epigrams" ] }, { @@ -1833,7 +1820,7 @@ "id": "shaped-compound", "metadata": {}, "source": [ - "As you can see, we have for now 4134 epigrams - the value of `count` :" + "As you can see, we have for now 4134 epigrams - the value of `count`." ] }, { @@ -1854,19 +1841,17 @@ } ], "source": [ - "epigrams_res['count']" + "epigrams['count']" ] }, { "cell_type": "markdown", - "id": "8ae7a2bd", + "id": "annual-louisiana", "metadata": {}, "source": [ - "### Pagination\n", - "\n", - "As you might have noticed, all of the information are not displayed on the block above: the list is pagined and one can navigate the pages using the values of `next` and `previous`.\n", + "The list is pagined and one can navigate the pages using the values of `next` and `previous`.\n", "\n", - "By default, each pages has: " + "Each pages has: " ] }, { @@ -1887,7 +1872,7 @@ } ], "source": [ - "len(epigrams_res['results'])" + "len(epigrams['results'])" ] }, { @@ -1903,6 +1888,26 @@ "execution_count": 68, "id": "religious-smart", "metadata": {}, + "outputs": [], + "source": [ + "parameters.update({'limit':100})" + ] + }, + { + "cell_type": "code", + "execution_count": 69, + "id": "bacterial-villa", + "metadata": {}, + "outputs": [], + "source": [ + "epigrams = requests.get(url+epigrams_ep,parameters).json()" + ] + }, + { + "cell_type": "code", + "execution_count": 70, + "id": "vocational-somerset", + "metadata": {}, "outputs": [ { "data": { @@ -1910,1058 +1915,994 @@ "100" ] }, - "execution_count": 68, + "execution_count": 70, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "parameters.update({'limit':100})\n", + "len(epigrams['results'])" + ] + }, + { + "cell_type": "markdown", + "id": "informed-algorithm", + "metadata": {}, + "source": [ + "It is possible to filter this list by book (only the epigrams belonging to one particular book), author's main name (their English name) or keyword id.\n", "\n", - "epigrams_res = requests.get(url+epigrams_ep,parameters).json()\n", + "For example: https://anthologiagraeca.org/api/passages/?book__number=5&author__main_name=Meleager&keyword__number=1\n", "\n", - "len(epigrams_res['results'])" + "Will give all the epigrams written by Meleager belonging to book 5 and described with the keyword `1` (Elegiac couplet)." ] }, { "cell_type": "markdown", - "id": "informed-algorithm", + "id": "awful-school", "metadata": {}, "source": [ - "This list can be filtered : \n", - "- by book (rendering only the epigrams belonging to one particular book) \n", - "- by author's main name (their English name)\n", - "- by keyword id (which can be found on the platform : *e.g.* https://anthologiagraeca.org/keywords/1/ is the URL for the keyword \"Elegiac couplet\" ; the id is \"1\". \n", + "## Data about epigrams\n", "\n", - "> For example: https://anthologiagraeca.org/api/passages/?book__number=5&author__main_name=Meleager&keyword__number=1 will give all the epigrams written by Meleager belonging to book 5 and described with the keyword `1` (Elegiac couplet).\n", + "Let us have a look at the data avaiable for each epigram. Most of these data are present in the list of epigrams (`epigrams['results]`), but each epigram has its own endpoint.\n", "\n", + "The endpoint of each is structured on the basis of its book and its number.\n", "\n", - "In this next cellule, `alldata` contains all the passages' data for all of our 4134 epigrams! " + "The Greek Anthology has 16 books, as you can see here:" ] }, { "cell_type": "code", - "execution_count": 76, - "id": "541fbd67", - "metadata": { - "scrolled": true - }, + "execution_count": 71, + "id": "boolean-binary", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "16\n" + ] + } + ], + "source": [ + "number_of_books = requests.get('https://anthologiagraeca.org/api/books/').json()['count']\n", + "print(number_of_books)" + ] + }, + { + "cell_type": "markdown", + "id": "speaking-messaging", + "metadata": {}, + "source": [ + "An epigram is normally identified by a number (for exemple 1 or 145).\n", + "\n", + "Sometimes there are two or more epigrams for the same number. In these cases letters are used. For exemple 122a.\n", + "\n", + "Based on this information the epigrem endpoind will be structured as foolows:\n", + "\n", + "`/passages/urn:cts:greekLit:tlg7000.tlg001.ag:`+bookNumber`.`+epigramNumber+epigramLetter\n", + "\n", + "This url is avaiable in the list of epigrams as one can see in the filed `url` of each result (let us take the first one here):\n" + ] + }, + { + "cell_type": "code", + "execution_count": 72, + "id": "peaceful-equality", + "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "{'count': 4134,\n", - " 'next': None,\n", - " 'previous': 'https://anthologiagraeca.org/api/passages/?format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&format=json&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&limit=100&page=41',\n", - " 'results': [{'id': 3695,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 355,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.355',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.355/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.355/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'οὔπω σοι μογÎοντι ΤÏχη πόÏεν ἄξια νίκης:\\n νῖκαι Î³á½°Ï Ï„á¿†Ï‚ σῆς μείζονες εá½Ï„υχίης.\\n\\n ἀλλὰ μÎÏει Ï€Ïώτῳ σταθεÏá¿· καὶ á¼€Ïείονι μίμνοις\\n τὴν φθονεÏὴν τήκων δυσμενÎων κÏαδίην,\\n\\n οἵ, σÎθεν εἰσοÏόωντες ἀεὶ νικῶσαν ἱμάσθλην,\\n μÎμφονται σφετÎÏην αἰὲν ἀτασθαλίην.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3573,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 356,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.356',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.356/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.356/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'ἄλλοις μὲν γεÏάων Ï€Ïόφασις χÏόνος: οἱ δ᾽ á¼Ï€á½¶ νίκαις\\nκÏινόμενοι πολιῆς οὠχατÎουσι κόμης,\\n ἀλλ᾽ á¼€Ïετῆς, ὅθεν εὖχος ἀνάπτεται. εἷς ἀπὸ τοίων\\nΠοÏφÏÏιος δώÏων δὶς λάχεν ἀγλαÎην,\\n\\n οá½Îº á¼Ï„Îων δεκάδας, νίκης δ᾽ ἑκατοντάδας αá½Ï‡á¿¶Î½\\nπολλάς, καὶ πάσας συγγενÎας ΧαÏίτων.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 4133,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 357,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.357',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.357/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.357/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'Ἀγχίσην ΚυθÎÏεια, καὶ Ἐνδυμίωνα Σελήνη\\nφίλατο μυθεῦνται τοῖα παλαιγενÎες.\\n νῦν δὲ νÎος τις μῦθος ἀείσεται, ὡς τάχα Îίκη\\nὄμματα καὶ δίφÏους φίλατο ΠοÏφυÏίου.'}],\n", - " 'authors': [{'tlg_id': 'tlg-4062',\n", - " 'names': [{'name': 'Leontius Scholasticus', 'language': 'eng'},\n", - " {'name': 'Λεόντιος ο σχολαστικός', 'language': 'grc'},\n", - " {'name': 'Léontios le scholastique', 'language': 'fra'}]}],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 4075,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 358,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.358',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.358/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.358/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'Ï€ÏεσβυτÎÏους κοῦÏος μὲν á¼ÏŽÎ½, Ï€ÏÎσβυς δΠτε κοÏÏους\\nνικᾷς, τεθÏίππων κÎντοÏας ἀθλοφόÏων.\\nἓξ δ᾽ á¼Ï„Îων ἀνÏσας δεκάδας, στήλην á¼Ï€á½¶ νίκαις\\nεἷλες, Καλλιόπα, νεÏματι κοιÏανίης,\\n\\n ὄφÏα μÎνοι καὶ ἔπειτα τεὸν κλÎος. αἴθε τοι εἴη,\\nὡς κλÎος ἀθάνατον, καὶ δÎμας ἀθάνατον.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 4107,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 359,\n", + "'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:1.1/?format=json'" + ] + }, + "execution_count": 72, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "epigrams['results'][0]['url']" + ] + }, + { + "cell_type": "markdown", + "id": "graduate-envelope", + "metadata": {}, + "source": [ + "Let us have a look at the epigram 6.13, which means the epigram number 13 of the book 6:" + ] + }, + { + "cell_type": "code", + "execution_count": 73, + "id": "invalid-observer", + "metadata": {}, + "outputs": [], + "source": [ + "ep6_13 = requests.get('https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.13').json()" + ] + }, + { + "cell_type": "code", + "execution_count": 74, + "id": "biological-chicken", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'id': 394,\n", + " 'book': {'url': 'https://anthologiagraeca.org/api/books/5/', 'number': 6},\n", + " 'fragment': 13,\n", + " 'sub_fragment': '',\n", + " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:6.13',\n", + " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.13/',\n", + " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.13/',\n", + " 'manuscripts': ['http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A142.jpg/pct:10.614886731391586,73.26114119117034,50.355987055016186,4.664723032069971/full/0/default.jpg',\n", + " 'http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A143.jpg/pct:30.37231055564613,13.349681305818653,51.660362990702126,7.613758509494807/full/0/default.jpg'],\n", + " 'texts': [{'language': 'grc',\n", + " 'text': 'οἱ Ï„Ïισσοί τοι ταῦτα τὰ δίκτυα θῆκαν ὅμαιμοι,\\nἀγÏότα Πάν, ἄλλης ἄλλος ἀπ᾽ ἀγÏεσίης:\\nὧν ἀπὸ μὲν πτηνῶν ΠίγÏης τάδε, ταῦτα δὲ Δᾶμις\\nτετÏαπόδων, ÎšÎ»ÎµÎ¯Ï„Ï‰Ï Î´á¾½ á½ Ï„Ïίτος εἰναλίων.\\nἀνθ᾽ ὧν τῷ μὲν Ï€Îμπε δι᾽ á¼ ÎÏος εὔστοχον ἄγÏην,\\nτῷ δὲ διὰ δÏυμῶν, τῷ δὲ δι᾽ ἠϊόνων. '},\n", + " {'language': 'ita',\n", + " 'text': 'Tre fratelli ti hanno dedicato queste reti,\\nPan cacciatore, ognuna proveniente da una caccia differente.\\nPigre queste di uccelli, Damis queste,\\ndi bestie feroci, Cleitore, il terzo, di animali marini.\\nIn cambio dai una caccia fortunata al primo in aria\\nal secondo nei boschi e al terzo sulle rive.'},\n", + " {'language': 'fra',\n", + " 'text': \"Ces trois frères t'ont dédié ces filets,\\nPan chasseur, chacun issu d'une chasse différente.\\nPigres celles-ci, d'oiseaux, Damis celle-ci,\\nde bêtes féroces, Cléitor, le troisième, d'animaux marins.\\nEn échange donne une bonne chasse au premier dans l'air,\\nau deuxième dans les bois et au troisième sur les rivages.\"},\n", + " {'language': 'fra',\n", + " 'text': \"Les trois frères t'ont consacré, chasseur Pan, ces filets, pris par chacun à son genre de chasse: Pigrès, pour les oiseaux; Damis, pour les quadrupèdes; Cléitor, pour le peuple de la mer. Envoie-leur en échange une bonne chasse à l'un par les airs, au second par les bois, à l'autre par les grèves.\"},\n", + " {'language': 'eng',\n", + " 'text': 'Huntsman Pan, the three brothers dedicated these nets to thee, each from a different chase: Pigres these from fowl, Damis these from beast, and Clitor his from the denizens of the deep. In return for which send them easily caught game, to the first through the air, to the second through the woods, and to the third through the shore-water.'}],\n", + " 'authors': [{'tlg_id': 'tlg-1458',\n", + " 'names': [{'name': 'Leonidas of Tarentum', 'language': 'eng'},\n", + " {'name': 'Λεωνίδας ὠΤαÏαντῖνος', 'language': 'grc'},\n", + " {'name': 'Leonida di Taranto', 'language': 'ita'},\n", + " {'name': 'Λεωνίδας ᾿ΑλεξανδÏεύς', 'language': 'grc'},\n", + " {'name': \"Léonidas d'Alexandrie\", 'language': 'fra'},\n", + " {'name': 'Leonidas of Alexandria', 'language': 'eng'}]}],\n", + " 'cities': [],\n", + " 'keywords': [{'id': 1,\n", + " 'names': [{'name': 'distique élégiaque', 'language': 'fra'},\n", + " {'name': 'distico elegiaco', 'language': 'ita'},\n", + " {'name': 'Elegiac couplet', 'language': 'eng'}],\n", + " 'category': [{'name': 'Formes métriques', 'language': 'fra'},\n", + " {'name': 'Metric forms', 'language': 'eng'},\n", + " {'name': 'Metra', 'language': 'lat'},\n", + " {'name': 'Forme metriche', 'language': 'ita'},\n", + " {'name': 'Formas métricas', 'language': 'por'}]},\n", + " {'id': 4,\n", + " 'names': [{'name': 'époque hellénistique', 'language': 'fra'},\n", + " {'name': 'epoca ellenistica', 'language': 'ita'},\n", + " {'name': 'hellenistic period', 'language': 'eng'}],\n", + " 'category': [{'name': 'Époques', 'language': 'fra'},\n", + " {'name': 'Periods', 'language': 'eng'},\n", + " {'name': 'Tempora', 'language': 'lat'},\n", + " {'name': 'Periodi', 'language': 'ita'},\n", + " {'name': 'Épocas', 'language': 'por'}]},\n", + " {'id': 73,\n", + " 'names': [{'name': 'Validé par William', 'language': 'fra'}],\n", + " 'category': [{'name': 'Validation', 'language': 'fra'},\n", + " {'name': 'Validation', 'language': 'eng'},\n", + " {'name': 'Contralectus', 'language': 'lat'},\n", + " {'name': 'Validazione', 'language': 'ita'},\n", + " {'name': 'Validação', 'language': 'por'}]},\n", + " {'id': 186,\n", + " 'names': [{'name': 'dedicatory', 'language': 'eng'},\n", + " {'name': 'votif (anathématique)', 'language': 'fra'}],\n", + " 'category': [{'name': 'Genres', 'language': 'fra'},\n", + " {'name': 'Genres', 'language': 'eng'},\n", + " {'name': 'Genera', 'language': 'lat'},\n", + " {'name': 'Generi', 'language': 'ita'},\n", + " {'name': 'Gêneros', 'language': 'por'}]},\n", + " {'id': 234,\n", + " 'names': [{'name': 'Damis', 'language': 'eng'}],\n", + " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", + " {'name': 'Quoted persons', 'language': 'eng'},\n", + " {'name': 'Homines memorati', 'language': 'lat'},\n", + " {'name': 'Persone citate', 'language': 'ita'},\n", + " {'name': 'Pessoas citadas', 'language': 'por'}]},\n", + " {'id': 270,\n", + " 'names': [{'name': 'Chasse', 'language': 'fra'}],\n", + " 'category': [{'name': 'Motifs', 'language': 'fra'},\n", + " {'name': 'Motifs', 'language': 'eng'},\n", + " {'name': 'Themata', 'language': 'lat'},\n", + " {'name': 'Motivi', 'language': 'ita'},\n", + " {'name': 'Motivos', 'language': 'por'}]},\n", + " {'id': 492,\n", + " 'names': [{'name': 'Pan', 'language': 'eng'}],\n", + " 'category': [{'name': 'Divinités', 'language': 'fra'},\n", + " {'name': 'Deities', 'language': 'eng'},\n", + " {'name': 'Divinitates', 'language': 'lat'},\n", + " {'name': 'Divinità ', 'language': 'ita'},\n", + " {'name': 'Divindades', 'language': 'por'}]},\n", + " {'id': 574,\n", + " 'names': [{'name': 'ΠίγÏης', 'language': 'grc'},\n", + " {'name': 'Pigrès', 'language': 'fra'}],\n", + " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", + " {'name': 'Quoted persons', 'language': 'eng'},\n", + " {'name': 'Homines memorati', 'language': 'lat'},\n", + " {'name': 'Persone citate', 'language': 'ita'},\n", + " {'name': 'Pessoas citadas', 'language': 'por'}]},\n", + " {'id': 575,\n", + " 'names': [{'name': 'ΚλείτωÏ', 'language': 'grc'},\n", + " {'name': 'Cléitor', 'language': 'fra'}],\n", + " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", + " {'name': 'Quoted persons', 'language': 'eng'},\n", + " {'name': 'Homines memorati', 'language': 'lat'},\n", + " {'name': 'Persone citate', 'language': 'ita'},\n", + " {'name': 'Pessoas citadas', 'language': 'por'}]}],\n", + " 'scholia': [{'book': 6,\n", + " 'fragment': 13,\n", " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.359',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.359/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.359/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'σῆς τόδε διφÏελάτειÏα τὸ χάλκεον ἄνθετο Îίκα\\nεἴκηλον μοÏφᾶς, Καλλιόπα, ζαθÎας,\\n Ï€ÏÎσβυς ὅτι σφÏιγόωντας á¼Î½ ἱπποδάμῳ πλÎον ἀλκᾷ\\n νίκησας, γεÏαÏοὺς δ᾽ ὢν νÎος á¼Î½ σοφίῃ.\\n\\n ἔνθεν á¼Î»ÎµÏ…θεÏόπαις ΒενÎτων σÎο πήξατο δῆμος\\n δοιά, τὰ μὲν Ï„Îχνας ἆθλα, τὰ δὲ σθÎνεος.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3867,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 360,\n", + " 'number': 1,\n", + " 'url': '/passages/urn:cts:greekLit:tlg5011.tlg001.sag:6.13.1/'},\n", + " {'book': 6,\n", + " 'fragment': 13,\n", " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.360',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.360/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.360/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'σὸν γῆÏας νεότητα τεὴν ὑπεÏÎδÏαμε νίκαις,\\n καὶ πάντων κÏατÎεις πάντοτε, Καλλιόπα.\\n ἔνθεν ἄναξ καὶ δῆμος á¼Î»ÎµÏθεÏος αὖθις á¼Î³ÎµÎ¯Ïει\\nτοῦτο γÎÏας, σοφίης μνῆμα καὶ ἠνοÏÎης:.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3536,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 361,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.361',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.361/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.361/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'οὗτος, á¼Î³ÎµÏσιθÎατÏε, τεὸς Ï„Ïπος, ὅν τοι á¼Î³ÎµÎ¯Ïει\\nἑσμὸς á¼€Ïιζήλων, Καλλιόπα, στεφάνων.\\nοὔτε Î³á½°Ï á¼¡Î½Î¯Î¿Ï‡ÏŒÏ‚ σε παÏήπαφεν, οὔτε χαλινοῖς\\nδÏσστομος ἱππείη σοῖς ἀπίθησε γÎνυς.\\n\\n μοῦνος δὴ νίκης γÎÏας ἄÏνυσαι. ἦ παÏá½° πᾶσι\\n δόξαν ἔχεις ἀεθλῶν ἆθλα λιπεῖν ἑτÎÏοις,'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3729,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 362,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.362',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.362/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.362/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'Καλλιόπα κλυτόμοχθε, τί σοι πλÎον, ὅττι γεÏαίÏει\\n εἰκόνι χαλκοτÏπῳ σοὺς βασιλεὺς καμάτους,\\n δῆμος ὠμυÏιόφωνος, ὅλη πτόλις; εὖτε καὶ αá½Ï„á½´\\n δυσμενÎων παλάμη σοῖς á¼Ï€Îνευσε πόνοις.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3652,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 363,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.363',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.363/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.363/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'μητÎÏες εá½Î¬Î¸Î»Ï‰Î½ γεÏάων φÏÎνες, οὠκÏάτος ἥβης,\\nοὠτάχος ἱπποσÏνης, οὠχÏόνος εá½Ï„υχίης.\\n ἱλήκοι, Φαυστῖνε, τεὸς νόος, á¾§ τάδε πάντα\\nἕσπεται, á¾§ Îίκη σÏντÏοφος ἀθάνατος.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3905,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 364,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.364',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.364/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.364/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'Ï€Ïίν σε νÎον, Φαυστῖνε, νόος πεφόβητο γεÏόντων:\\n νῦν δΠσε Ï€Ïεσβυγενῆ κάÏτος ἔφÏιξε νÎων.\\nδεÏτεÏα δ᾽ εὕÏετο πάντα τεὸς πόνος, á½…Ï‚ σε γεÏαίÏει\\n Ï€ÏÎσβυν á¼Î½ ἠιθÎοις, á¼Î½ δὲ γÎÏουσι νÎον.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3811,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 365,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.365',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.365/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.365/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'á¼Î¾ÏŒÏ„ε Κωνσταντῖνος ἔδυ δόμον Ἄϊδος εἴσω,\\n πλῆτο κατηφείης ἱπποσÏνης στάδιον,\\n τεÏπωλὴ δ᾽ ἀπÎλειπε θεήμονας: οá½Î´á¾½ á¼Î½ ἀγυιαῖς\\n κείνας τὰς φιλίας á¼ÏƒÏ„ὶν ἰδεῖν á¼”Ïιδας.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 4115,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 366,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.366',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.366/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.366/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'εἰκόνα, Κωνσταντῖνε, τεὴν ἀνÎθεντο πολῖται,\\nμυÏόμενοι, ψυχῆς Ï„ÎÏψιν ἀποιχομÎνης.\\n σοὶ κλÎος á½Ï€Ï€ÏŒÏ„ε δῆμος á¼Ï€ÎµÏƒÏ†Ïήγιζε θανόντι,\\n μνήσατο σῶν καμάτων καὶ μετὰ πότμον ἄναξ:\\n\\n οὕνεκεν ἱπποσÏνης φιλοκÎÏτομος ὤλετο Ï„Îχνη,\\ná¼Î½ σοὶ παυσαμÎνη πᾶσα καὶ á¼€ÏξαμÎνη.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3668,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 367,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.367',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.367/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.367/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'εἰσÎτι μὲν ζώοντι πόλις ποτὲ Κωνσταντίνῳ\\nεἰκόνα χαλκείην βαιὸν ἔκÏινε γÎÏας:\\nᾔδεε Î³á½°Ï Ï€á¾¶Ï‚ δῆμος ὅσους á¼Ï€á½¶ κÏδεϊ νίκης\\n αἰὲν ἀεθλεÏων ἀμφÎθετο στεφάνους.\\n\\n ὡς δ᾽ ἔθανεν, ποθÎουσα, φίλον Ï„Ïπον ἄνθετο τοῦδε,\\nὄφÏα καὶ á¼ÏƒÏƒÎ¿Î¼Îνοις μνῆστιν ἔχοι καμάτων.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3930,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 368,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.368',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.368/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.368/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'οἱ Î’Îνετοι Î Ïασίνοισιν á¼Î½Î±Î½Ï„ίοι αἰὲν á¼ÏŒÎ½Ï„ες\\n εἰς ἕν᾽ á½Î¼Î¿Ï†ÏοσÏνης á¼Î¾ÎµÎ²ÏŒÎ·ÏƒÎ±Î½ á½…Ïον,\\nὥστε σε, Κωνσταντῖνε, λαβεῖν á¼Ï€Î¹Ï„Ïμβιον εὖχος,\\nπᾶσιν ἀειδόμενον, πᾶσιν á¼€Ïεσκόμενον.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3603,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 369,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.369',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.369/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.369/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'Ἀντολίης, δÏσιός τε, μεσημβÏίης τε, καὶ ἄÏκτου\\nσὸς δÏόμος ὑψιφαὴς ἀμφιβÎβηκεν á½…Ïους,\\n ἄφθιτε Κωνσταντῖνε. θανεῖν δΠσε μή τις á¼Î½Î¯ÏƒÏ€á¿ƒ:\\n τῶν Î³á½°Ï á¼€Î½Î¹ÎºÎ®Ï„Ï‰Î½ ἅπτεται οá½Î´á¾½ Ἀίδης.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3674,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 370,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.370',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.370/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.370/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'á¼Î³Î³Ïθι τῆς σφετÎÏης γενεῆς λάχεν εἰκόνα τήνδε:\\nἔπÏεπε Î³á½°Ï Ï„Ïισσοῖς εἰν ἑνὶ χῶÏον ἔχειν,\\nοἳ καὶ á¼Î½á½¶ σταδίοις á¼€Ïετῆς κλÎος εἴκελον εὗÏον,\\n νηÏίθμων στεφάνων á¼ÏƒÎ¼á½¸Î½ ἑλόντες ἴσον.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 4110,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 371,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.371',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.371/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.371/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'τὸν Φαυστινιάδην πόλις ἄνθετο Κωνσταντῖνον,\\nγείτονα μὲν γενεῆς, κÏÎσσονα δ᾽ ἡνιόχων.\\n\\n δὴν Î³á½°Ï á¼€ÎµÎ¸Î»ÎµÏσας οá½Îº ἤμβÏοτεν, ἀλλ᾽ á¼Ï€á½¶ νίκῃ\\n παÏσατο, σὺν νίκῃ καὶ πάÏος á¼€Ïξάμενος,\\n\\n ὃν καὶ κοῦÏον á¼ÏŒÎ½Ï„α παλαίτεÏοι ἡνιοχῆες,\\n στεψάμενοι σταδίοις, εἷσαν ἀγωνοθÎτην.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3863,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 372,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.372',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.372/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.372/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'σοὶ τόδε, Κωνσταντῖνε, τεὴ Ï„Ïοφὸς ὤπασε Îίκη\\n παιδόθεν ἑσπομÎνη πᾶσαν á¼Ï†á¾½ ἡλικίην.\\n Ï€Îντε Î³á½°Ï á¼Î½ σταδίοις δεκάδας τελÎσας á¼Î½Î¹Î±Ï…τῶν,\\nοá½Î´á¾½ ἴσον, οá½Î´á¾½ ὀλίγον εὕÏεο λειπόμενον.\\n\\n ἀλλ᾽ ἔτι κουÏίζων τε καὶ ἄχνοος ἄνδÏας á¼Î½Î¯ÎºÎ±Ï‚,\\nἥλικας ἡβήσας, γηÏαλÎος δὲ νÎους.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3949,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 373,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.373',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.373/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.373/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'ἤθελε Κωνσταντῖνον ἀεὶ πτόλις ἡνιοχεÏειν:\\n ἤθελεν, ἀλλὰ πόθῳ οá½Îº á¼Ï€Îνευσε ΦÏσις.\\nἔνθεν ἑῶν τόδ᾽ ἄγαλμα παÏαίφασιν εὗÏεν á¼Ïώτων,\\nὄφÏα ἑ μὴ λήθη καὶ χÏόνος ἀμφιβάλοι,\\n\\n ἀλλὰ μÎνοι ποθÎουσιν á¼”Ïως, ζῆλος δ᾽ á¼Î»Î±Ï„ῆÏσι,\\n κόσμος δὲ σταδίοις, á¼ÏƒÏƒÎ¿Î¼Îνοις δὲ φάτις.\\nκαί τις ἰδὼν μετόπισθε χεÏείονας ἡνιοχῆας\\nὀλβίσσει Ï€ÏοτÎÏην, á¼¥ μιν ἴδεν, γενεήν.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3656,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 374,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.374',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.374/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.374/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'Ï€Îντε καὶ εἴκοσι μοῦνος á¼€Îθλια Κωνσταντῖνος\\n εἰς μίαν á¼ ÏιγÎνειαν ἑλὼν, ἤμειψε μὲν ἵππους\\n\\n ἀντιπάλοις: κείνους δὲ λαβών, οὓς Ï€Ïόσθεν á¼Î½Î¯ÎºÎ±,\\n τοῖς αá½Ï„οῖς πάλιν εἷλε μίαν τε καὶ εἴκοσι νίκας.\\n\\n πολλάκι δ᾽ ἀμφοτÎÏων μεÏÎων á¼”Ïις ἔμπεσε δήμῳ,\\nτίς μιν ἔχοι: κείνῳ δὲ δόσαν κÏίσιν á¼Îº δÏο Ï€Îπλων.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3517,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 375,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.375',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.375/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.375/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'ἔγÏεο, Κωνσταντῖνε: τί χάλκεον ὕπνον ἰαÏεις;\\n σεῖο δίφÏους ποθÎει δῆμος á¼Î½á½¶ σταδίοις,\\n σῆς τε διδασκαλίης á¼Ï€Î¹Î´ÎµÏ…Îες ἡνιοχῆες\\nεἵαται á½€Ïφανικοῖς παισὶν á½Î¼Î¿Î¹ÏŒÏ„ατοι.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3983,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 376,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.376',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.376/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.376/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'ἀμφοτÎÏοις εἷς μοῦνος á¼€ÏιστεÏσας παÏá½° δήμοις\\n κῦδος ἀπ᾽ ἀμφοτÎÏων ἔλλαχεν Οá½Ïάνιος,\\nεἰσÎτι διφÏεÏων. τὸ δΠοἱ γÎÏας ἤλυθε Ï€Ïῶτον\\ná¼Îº Î Ïασίνων, οἷς δὴ γείτονα χῶÏον ἔχει.\\n\\n αá½Ï„οὶ καὶ σταδίοιο πεπαυμÎνον ἤγαγον αὖθις\\ná¼Ï‚ δίφÏους, νίκης μνωόμενοι Ï€ÏοτÎÏης.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 4134,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 377,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.377',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.377/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.377/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'παυσάμενον σταδίων βασιλεὺς á¼Ï€á¾½ ἀγακλÎι νίκῃ\\nαὖθις á½‘Ï€á½²Ï Î´Î¯Ï†Ïων βῆσεν ἀεθλοφόÏων\\nοá½Ïάνιον δήμοισι, φÎÏων φÎÏων χάÏιν οὠποθÎει γὰÏ\\nἡ πόλις Οá½Ïανίου νόσφιν ἀεθλοσÏνας.\\n\\n τοὔνεκα διφÏεÏοντα τὸ δεÏτεÏον, ὑστατίης τε\\n νίκης καὶ Ï€ÏοτÎÏης στῆσεν ἀγασσαμÎνη.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 4067,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 378,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.378',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.378/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.378/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'οá½Ïάνιος Îίκαιαν ἔχει Ï€Îλας á½Ï€Î»Î¿Ï„ÎÏην τε\\n Ῥώμην, τῆς μὲν á¼ÏŽÎ½, τῇ δ᾽ ἔνι κῦδος ἑλών.\\nνικᾷ δ᾽ ἀμφοτÎÏωθεν, á¼Ï€Îµá½¶ πεÏιδÎξιος ἦεν\\nτῇ καὶ τῇ Ï€ÏοθÎειν á¼ á½² παÏεξελάαν.\\n\\n τοὔνεκα καὶ χÏυσÎῳ μιν ἀνεγÏάψαντο μετάλλῳ,\\n κυδίστῳ κτεάνων κÏδιμον ἡνίοχον.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 4066,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 379,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.379',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.379/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.379/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'τὸν θÏασὺν ἡνιοχῆα λελασμÎνον á¼…Ïματος ἄθλων\\n á¼Î½Î¸Î¬Î´á¾½ Ἀναστάσιον κείμενον οὖδας ἔχει,\\nὃς τόσσους ἀνεδήσατο Ï€Ïὶν στεφάνους, ὅσα ἄλλοι\\nἔδÏακον ἡνιόχων ἤματα ἱππασίης.'}],\n", - " 'authors': [{'tlg_id': 'tlg-4049',\n", - " 'names': [{'name': 'thomas', 'language': 'grc'}]}],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3535,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 380,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.380',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.380/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.380/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'á¼Î½ γῇ κÏατήσας παντὸς á¼Ïματηλάτου\\n καλῶς á¼Ï€Î®Ïθη καὶ Ï€Ïὸς αἰθÎÏα Ï„ÏÎχειν\\nΠοÏφÏÏιος, τὸ θαῦμα δήμου ΒενÎτων.\\n νικῶν Î³á½°Ï Î¿á½—Ï„Î¿Ï‚ πάντα γῆς διφÏηλάτην,\\n\\n ἄνεισιν, ὡς ἂν καὶ σὺν ἡλίῳ δÏάμῃ.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3818,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 381,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.381',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.381/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.381/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'ἴουλον ἀνθῶν Ï€Ïῶτον οὗτος ἡνίας\\n ΠοÏφÏÏιος Κάλχαντος εἷλκε ΒενÎτου.\\ná¼ÎºÏ€Î»Î®Ï„τομαι δὲ πῶς γÏάφει Ï‡Îµá½¶Ï á¼Î¼Ï€Î½ÏŒÎ¿Ï…Ï‚\\nτοÏτου τις ἵππους. ^ καὶ Î³á½°Ï á¼‚Î½ πλήξῃ πάλιν,\\n\\n οἶμαι, δÏαμεῖται νῖκος εὑÏεῖν καὶ πάλιν.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3894,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 382,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.382',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.382/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.382/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'σκόπει τὸ δÏᾶμα μηχανουÏγοῦ τοῦ δόμου:\\nεἰ μὴ Î³á½°Ï á¼ÏƒÏ„Îγαστο καÏτεÏá¾· σκÎÏ€á¾,\\n Ï€Ïὸς οá½Ïανοὺς ἂν ὦÏτο Φαυστῖνος Ï„ÏÎχων\\nὡς ζῶν σὺν ἵπποις, τὸ κλÎος Ï€Ïὶν Î Ïασίνων.\\n\\n ἆÏον στÎγος γάÏ, καὶ φθάνει Ï€Ïὸς αἰθÎÏα.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 4009,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 383,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.383',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.383/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.383/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'Φαυστῖνος οὗτος, ὠπÏὶν á¼Ïματηλάτης,\\nὃν δῆμος εὑÏὼν τοῦ μÎÏους τῶν Î Ïασίνων\\n τὴν ἧτταν ἠγνόησε παντελῶς δÏόμῳ.\\nγÎÏων μὲν ἦν γάÏ, ὡς βλÎπεις: τὸ δὲ σθÎνος\\n\\n ἦν τις νεάζων, οá½Î´á¾½ ὅλως ἡττημÎνος.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3638,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 384,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.384',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.384/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.384/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'λευκοῦ μεθÎλκων ἡνίας Κωνσταντίνος,\\nἂν μὴ καθεῖÏκτο στεÏÏότητι τοῦ δόμου,\\nτοὺς Ï„Ïεῖς á¼Î½Î¯ÎºÎ±, Ï€Ïῶτος αἰθÎÏα φθάνων.\\n πνοῆς ἄνευθεν εἶδες αἰθεÏοδÏόμον:\\n\\n Ï„Îχνη με πείθει τοῦτον ἔμπνοον βλÎπειν.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3558,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 385,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.385',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.385/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.385/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'Κωνσταντίνος γ᾽ ἦν, ἀλλὰ τοῖς πάλαι χÏόνοις\\n λευκῆς χÏόας Ï„ÎθÏιππον ἕλκων εá½ÏƒÏ„Ïόφως.\\nἀφ᾽ οὗ δὲ τοῦτον á¼¥Ïπασεν ΧάÏων, ἔδυ\\nτὸ φῶς á¼Î¼Î¯Î»Î»Î·Ï‚ ἱππικῶν δÏομημάτων,\\n\\n καὶ πᾶσα Ï„ÎÏψις τοῦ θεάτÏου, καὶ Ï„Îχνη.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 4125,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 386,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.386',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.386/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.386/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'Ï‡Îµá½¶Ï Î¿á¼¶Î´Îµ γεννᾶν τοὺς πάλαι τεθνηκότας.\\nἸουλιανὸς καὶ Î³á½°Ï á½¡Ï‚ πάλαι σθÎνει,\\nἕλκων, μεθÎλκων Ῥουσίου τὰς ἡνίας:\\n καὶ νῦν γÏαφεὶς ἕστηκεν ὑψοῦ σὺν δίφÏῳ:\\n\\n τὸ νεῦμα Ï‡Îµá½¶Ï Î¼Îνει δÎ: τὴν νÏσσαν δότε.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3523,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 387,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.387',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.387/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.387/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'Ἰουλιανὸς οὗτος á¼…Ïμα Ῥουσίου\\n ἔχων, á¼Î½Î¯ÎºÎ± τοὺς á¼Î½Î±Î½Ï„ίους δÏόμῳ.\\n ἀλλ᾽ εἰ γÏαφεὺς παÏεῖχε καὶ πνοῆς χάÏιν,\\nἕτοιμός á¼ÏƒÏ„ι καὶ πάλιν διφÏηλάτης\\n\\n καὶ Ï€Ïόσθεν á¼Î»Î¸Îµá¿–ν, καὶ λαβεῖν καὶ τὸ στÎφος.'}],\n", - " 'authors': [],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []},\n", - " {'id': 3946,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/16/?format=json',\n", - " 'number': 16},\n", - " 'fragment': 388,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:16.388',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.388/?format=json',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:16.388/',\n", - " 'manuscripts': [],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'ΣτÎφος πλÎκων ποθ᾽, εὗÏον\\ná¼Î½ τοῖς ῥόδοις ἜÏωτα:\\n καὶ τῶν πτεÏῶν κατασχὼν,\\n á¼Î²Î¬Ï€Ï„ις1á¾½ εἰς τὸν οἶνον.\\n\\n λαβὼν δ᾽ ἔπιον αá½Ï„όν\\n καὶ νῦν ἔσω μελῶν μου\\nπτεÏοῖσι γαÏγαλίζει.'}],\n", - " 'authors': [{'tlg_id': 'tlg-4050',\n", - " 'names': [{'name': 'Ἰουλιανὸς ὠΑἰγύπτιος', 'language': 'grc'},\n", - " {'name': \"Julien l'Égyptien\", 'language': 'fra'},\n", - " {'name': 'Julianus', 'language': 'eng'}]}],\n", - " 'cities': [],\n", - " 'keywords': [],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []}]}" + " 'number': 2,\n", + " 'url': '/passages/urn:cts:greekLit:tlg5011.tlg001.sag:6.13.2/'}],\n", + " 'comments': [{'description': ['# Fresque de Pompéi\\n\\n Cette épigramme est représentée, selon Gutzwiller, dans une fresque de Pompéi'],\n", + " 'language': ['fra']},\n", + " {'description': [\"# Imitations de 6.13\\n\\n C'est vraisemblablement cette pièce de Léonidas qui a inspiré les épigr. 11-16 et 179-187, entre autres 14 (d'Antipater) et 16 (d'Archias), qui n'en sont que des imitations assez serviles. Elle était, en tous cas, une des plus classiques de toute la série; car c'est celle-là qu'on avait gravée sur le mur d'une maison de Pompéi pour servir de légende à une scène où était peinte cette offrande de trois chasseurs; mais il ne subsiste, des trois distiques que comportait l'inscription, que cinq lettres disséminées et les six premières du v. 6; et il a fallu toute la perspicacité de Dilthey pour y reconnaître des fragments de notre épigramme. \\n-P. Waltz \"],\n", + " 'language': ['fra']}],\n", + " 'external_references': [],\n", + " 'internal_references': [{'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.11/',\n", + " 'reference_type': 'Default'},\n", + " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.14/',\n", + " 'reference_type': 'Default'},\n", + " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.179/',\n", + " 'reference_type': 'Default'},\n", + " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.186/',\n", + " 'reference_type': 'Default'},\n", + " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.187/',\n", + " 'reference_type': 'Default'}],\n", + " 'media': []}" + ] + }, + "execution_count": 74, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ep6_13" + ] + }, + { + "cell_type": "markdown", + "id": "residential-encyclopedia", + "metadata": {}, + "source": [ + "The epigram number is in the key `fragment` and the letter (when it has one) in the key `sub_fragment`)" + ] + }, + { + "cell_type": "markdown", + "id": "impaired-percentage", + "metadata": {}, + "source": [ + "### Images of the manuscript (Codex Palatinus 23)\n", + "\n", + "For each epigram one can retrieve a list of the IIIf images of the Codex Palatinus 23 (digitalized high quality version avaiable on the Heidelberg Library website) which correspons to the epigram in the key `manuscripts`.\n", + "\n", + "(For more information about the manuscript and its images, cf. the section \"Manuscript Annotation API\" in this document.)" + ] + }, + { + "cell_type": "code", + "execution_count": 75, + "id": "martial-blowing", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "['http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A142.jpg/pct:10.614886731391586,73.26114119117034,50.355987055016186,4.664723032069971/full/0/default.jpg',\n", + " 'http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A143.jpg/pct:30.37231055564613,13.349681305818653,51.660362990702126,7.613758509494807/full/0/default.jpg']" + ] + }, + "execution_count": 75, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ep6_13['manuscripts']" + ] + }, + { + "cell_type": "markdown", + "id": "english-warren", + "metadata": {}, + "source": [ + "### Texts\n", + "\n", + "Each epigram has a list of texts wich are associated to it. These are one or more greek editions of the text and a set of translations:" + ] + }, + { + "cell_type": "code", + "execution_count": 76, + "id": "filled-spencer", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[{'language': 'grc',\n", + " 'text': 'οἱ Ï„Ïισσοί τοι ταῦτα τὰ δίκτυα θῆκαν ὅμαιμοι,\\nἀγÏότα Πάν, ἄλλης ἄλλος ἀπ᾽ ἀγÏεσίης:\\nὧν ἀπὸ μὲν πτηνῶν ΠίγÏης τάδε, ταῦτα δὲ Δᾶμις\\nτετÏαπόδων, ÎšÎ»ÎµÎ¯Ï„Ï‰Ï Î´á¾½ á½ Ï„Ïίτος εἰναλίων.\\nἀνθ᾽ ὧν τῷ μὲν Ï€Îμπε δι᾽ á¼ ÎÏος εὔστοχον ἄγÏην,\\nτῷ δὲ διὰ δÏυμῶν, τῷ δὲ δι᾽ ἠϊόνων. '},\n", + " {'language': 'ita',\n", + " 'text': 'Tre fratelli ti hanno dedicato queste reti,\\nPan cacciatore, ognuna proveniente da una caccia differente.\\nPigre queste di uccelli, Damis queste,\\ndi bestie feroci, Cleitore, il terzo, di animali marini.\\nIn cambio dai una caccia fortunata al primo in aria\\nal secondo nei boschi e al terzo sulle rive.'},\n", + " {'language': 'fra',\n", + " 'text': \"Ces trois frères t'ont dédié ces filets,\\nPan chasseur, chacun issu d'une chasse différente.\\nPigres celles-ci, d'oiseaux, Damis celle-ci,\\nde bêtes féroces, Cléitor, le troisième, d'animaux marins.\\nEn échange donne une bonne chasse au premier dans l'air,\\nau deuxième dans les bois et au troisième sur les rivages.\"},\n", + " {'language': 'fra',\n", + " 'text': \"Les trois frères t'ont consacré, chasseur Pan, ces filets, pris par chacun à son genre de chasse: Pigrès, pour les oiseaux; Damis, pour les quadrupèdes; Cléitor, pour le peuple de la mer. Envoie-leur en échange une bonne chasse à l'un par les airs, au second par les bois, à l'autre par les grèves.\"},\n", + " {'language': 'eng',\n", + " 'text': 'Huntsman Pan, the three brothers dedicated these nets to thee, each from a different chase: Pigres these from fowl, Damis these from beast, and Clitor his from the denizens of the deep. In return for which send them easily caught game, to the first through the air, to the second through the woods, and to the third through the shore-water.'}]" + ] + }, + "execution_count": 76, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ep6_13['texts']" + ] + }, + { + "cell_type": "markdown", + "id": "induced-range", + "metadata": {}, + "source": [ + "### Authors\n", + "\n", + "All the epigrams in our database should have at least the greek text.\n", + "\n", + "An epigram is almost always associated to one or more authors (it depends on the attributions which are often uncertain):" + ] + }, + { + "cell_type": "code", + "execution_count": 77, + "id": "chronic-giving", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[{'tlg_id': 'tlg-1458',\n", + " 'names': [{'name': 'Leonidas of Tarentum', 'language': 'eng'},\n", + " {'name': 'Λεωνίδας ὠΤαÏαντῖνος', 'language': 'grc'},\n", + " {'name': 'Leonida di Taranto', 'language': 'ita'},\n", + " {'name': 'Λεωνίδας ᾿ΑλεξανδÏεύς', 'language': 'grc'},\n", + " {'name': \"Léonidas d'Alexandrie\", 'language': 'fra'},\n", + " {'name': 'Leonidas of Alexandria', 'language': 'eng'}]}]" + ] + }, + "execution_count": 77, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ep6_13['authors']" + ] + }, + { + "cell_type": "markdown", + "id": "146f924b", + "metadata": {}, + "source": [ + "### Keywords\n", + "\n", + "Each epigram can be associated with some keywords.\n", + "\n", + "One can have more information about the keywords on its own endpoint, structured as follow : \n", + "\n", + "`https://anthologiagraeca.org/api/keywords/`+keyword_id " + ] + }, + { + "cell_type": "code", + "execution_count": 78, + "id": "f68ced91", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[{'id': 1,\n", + " 'names': [{'name': 'distique élégiaque', 'language': 'fra'},\n", + " {'name': 'distico elegiaco', 'language': 'ita'},\n", + " {'name': 'Elegiac couplet', 'language': 'eng'}],\n", + " 'category': [{'name': 'Formes métriques', 'language': 'fra'},\n", + " {'name': 'Metric forms', 'language': 'eng'},\n", + " {'name': 'Metra', 'language': 'lat'},\n", + " {'name': 'Forme metriche', 'language': 'ita'},\n", + " {'name': 'Formas métricas', 'language': 'por'}]},\n", + " {'id': 4,\n", + " 'names': [{'name': 'époque hellénistique', 'language': 'fra'},\n", + " {'name': 'epoca ellenistica', 'language': 'ita'},\n", + " {'name': 'hellenistic period', 'language': 'eng'}],\n", + " 'category': [{'name': 'Époques', 'language': 'fra'},\n", + " {'name': 'Periods', 'language': 'eng'},\n", + " {'name': 'Tempora', 'language': 'lat'},\n", + " {'name': 'Periodi', 'language': 'ita'},\n", + " {'name': 'Épocas', 'language': 'por'}]},\n", + " {'id': 73,\n", + " 'names': [{'name': 'Validé par William', 'language': 'fra'}],\n", + " 'category': [{'name': 'Validation', 'language': 'fra'},\n", + " {'name': 'Validation', 'language': 'eng'},\n", + " {'name': 'Contralectus', 'language': 'lat'},\n", + " {'name': 'Validazione', 'language': 'ita'},\n", + " {'name': 'Validação', 'language': 'por'}]},\n", + " {'id': 186,\n", + " 'names': [{'name': 'dedicatory', 'language': 'eng'},\n", + " {'name': 'votif (anathématique)', 'language': 'fra'}],\n", + " 'category': [{'name': 'Genres', 'language': 'fra'},\n", + " {'name': 'Genres', 'language': 'eng'},\n", + " {'name': 'Genera', 'language': 'lat'},\n", + " {'name': 'Generi', 'language': 'ita'},\n", + " {'name': 'Gêneros', 'language': 'por'}]},\n", + " {'id': 234,\n", + " 'names': [{'name': 'Damis', 'language': 'eng'}],\n", + " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", + " {'name': 'Quoted persons', 'language': 'eng'},\n", + " {'name': 'Homines memorati', 'language': 'lat'},\n", + " {'name': 'Persone citate', 'language': 'ita'},\n", + " {'name': 'Pessoas citadas', 'language': 'por'}]},\n", + " {'id': 270,\n", + " 'names': [{'name': 'Chasse', 'language': 'fra'}],\n", + " 'category': [{'name': 'Motifs', 'language': 'fra'},\n", + " {'name': 'Motifs', 'language': 'eng'},\n", + " {'name': 'Themata', 'language': 'lat'},\n", + " {'name': 'Motivi', 'language': 'ita'},\n", + " {'name': 'Motivos', 'language': 'por'}]},\n", + " {'id': 492,\n", + " 'names': [{'name': 'Pan', 'language': 'eng'}],\n", + " 'category': [{'name': 'Divinités', 'language': 'fra'},\n", + " {'name': 'Deities', 'language': 'eng'},\n", + " {'name': 'Divinitates', 'language': 'lat'},\n", + " {'name': 'Divinità ', 'language': 'ita'},\n", + " {'name': 'Divindades', 'language': 'por'}]},\n", + " {'id': 574,\n", + " 'names': [{'name': 'ΠίγÏης', 'language': 'grc'},\n", + " {'name': 'Pigrès', 'language': 'fra'}],\n", + " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", + " {'name': 'Quoted persons', 'language': 'eng'},\n", + " {'name': 'Homines memorati', 'language': 'lat'},\n", + " {'name': 'Persone citate', 'language': 'ita'},\n", + " {'name': 'Pessoas citadas', 'language': 'por'}]},\n", + " {'id': 575,\n", + " 'names': [{'name': 'ΚλείτωÏ', 'language': 'grc'},\n", + " {'name': 'Cléitor', 'language': 'fra'}],\n", + " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", + " {'name': 'Quoted persons', 'language': 'eng'},\n", + " {'name': 'Homines memorati', 'language': 'lat'},\n", + " {'name': 'Persone citate', 'language': 'ita'},\n", + " {'name': 'Pessoas citadas', 'language': 'por'}]}]" + ] + }, + "execution_count": 78, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ep6_13['keywords']" + ] + }, + { + "cell_type": "code", + "execution_count": 79, + "id": "ab6d207f", + "metadata": {}, + "outputs": [], + "source": [ + "keyword_1 = requests.get(\"https://anthologiagraeca.org/api/keywords/1/\").json()" + ] + }, + { + "cell_type": "code", + "execution_count": 80, + "id": "1007c1ab", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'id': 1,\n", + " 'url': 'https://anthologiagraeca.org/api/keywords/1/',\n", + " 'category': {'id': 1,\n", + " 'url': 'https://anthologiagraeca.org/api/keyword_categories/1/',\n", + " 'names': [{'name': 'Formes métriques', 'language': 'fra'},\n", + " {'name': 'Metric forms', 'language': 'eng'},\n", + " {'name': 'Metra', 'language': 'lat'},\n", + " {'name': 'Forme metriche', 'language': 'ita'},\n", + " {'name': 'Formas métricas', 'language': 'por'}]},\n", + " 'names': [{'name': 'distique élégiaque', 'language': 'fra'},\n", + " {'name': 'distico elegiaco', 'language': 'ita'},\n", + " {'name': 'Elegiac couplet', 'language': 'eng'}],\n", + " 'alternative_urns': [{'urn': 'https://www.wikidata.org/wiki/Q2082412'}]}" + ] + }, + "execution_count": 80, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "keyword_1" + ] + }, + { + "cell_type": "markdown", + "id": "contained-christmas", + "metadata": {}, + "source": [ + "keywords are organized in `categories` and each keyword **must** belong to a category.\n", + "\n", + "The list of the categories is here: https://anthologiagraeca.org/api/keyword_categories/" + ] + }, + { + "cell_type": "markdown", + "id": "american-activity", + "metadata": {}, + "source": [ + "### Cities (places)\n", + "\n", + "An epigram can be associated with some places (cities or countries or whatever can have geocoordinates). Epigram 6.13 has no cities associated. Let us look to another epigram:" + ] + }, + { + "cell_type": "code", + "execution_count": 81, + "id": "alike-kazakhstan", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[{'id': 45, 'names': [{'name': 'Lindus', 'language': 'eng'}]},\n", + " {'id': 61,\n", + " 'names': [{'name': 'Atenas', 'language': 'por'},\n", + " {'name': 'Classical Athens', 'language': 'eng'},\n", + " {'name': 'Antigua Atenas', 'language': 'spa'},\n", + " {'name': 'Athènes', 'language': 'fra'},\n", + " {'name': 'Atene', 'language': 'ita'},\n", + " {'name': 'Athenae antiquae', 'language': 'lat'}]},\n", + " {'id': 73,\n", + " 'names': [{'name': 'Sparta', 'language': 'eng'},\n", + " {'name': 'Sparte', 'language': 'fra'},\n", + " {'name': 'Esparta', 'language': 'spa'},\n", + " {'name': 'Sparta', 'language': 'ita'},\n", + " {'name': 'Sparta', 'language': 'lat'},\n", + " {'name': 'Esparta', 'language': 'por'}]},\n", + " {'id': 78,\n", + " 'names': [{'name': 'Antigua Corinto', 'language': 'spa'},\n", + " {'name': 'Ancient Corinth', 'language': 'eng'},\n", + " {'name': 'Corinthe antique', 'language': 'fra'},\n", + " {'name': 'Corinto', 'language': 'ita'}]},\n", + " {'id': 89,\n", + " 'names': [{'name': 'Mytilene', 'language': 'eng'},\n", + " {'name': 'Mytilène', 'language': 'fra'},\n", + " {'name': 'Mitilene', 'language': 'spa'},\n", + " {'name': 'Mitilene', 'language': 'ita'},\n", + " {'name': 'Mytilene', 'language': 'lat'}]},\n", + " {'id': 128,\n", + " 'names': [{'name': 'Milet', 'language': 'fra'},\n", + " {'name': 'Mileto', 'language': 'spa'},\n", + " {'name': 'Mileto', 'language': 'por'},\n", + " {'name': 'Mileto', 'language': 'ita'},\n", + " {'name': 'Miletus', 'language': 'eng'},\n", + " {'name': 'Miletus', 'language': 'lat'},\n", + " {'name': 'Mileto', 'language': 'spa'},\n", + " {'name': 'Mileto', 'language': 'por'},\n", + " {'name': 'Milet', 'language': 'fra'},\n", + " {'name': 'Mileto', 'language': 'ita'},\n", + " {'name': 'Miletus', 'language': 'eng'},\n", + " {'name': 'Miletus', 'language': 'lat'}]},\n", + " {'id': 129,\n", + " 'names': [{'name': 'Priene', 'language': 'eng'},\n", + " {'name': 'Priene', 'language': 'spa'},\n", + " {'name': 'Priène', 'language': 'fra'},\n", + " {'name': 'Priene', 'language': 'ita'},\n", + " {'name': 'Priene', 'language': 'por'},\n", + " {'name': 'Priene', 'language': 'lat'}]}]" ] }, - "execution_count": 76, + "execution_count": 81, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "url = 'http://anthologiagraeca.org/api/passages'\n", - "results = []\n", - "pagination = True\n", - "while pagination == True :\n", - " alldata = requests.get(url, parameters).json()\n", - " for result in alldata['results'] :\n", - " results.append(result)\n", - " if alldata['next'] is None:\n", - " pagination = False\n", - " else:\n", - " url = alldata['next']\n", - " \n", - "alldata" + "ep7_81 = requests.get('https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:7.81').json()\n", + "ep7_81['cities']" + ] + }, + { + "cell_type": "markdown", + "id": "norman-drilling", + "metadata": {}, + "source": [ + "And let us have a look to one of these cities:" ] }, { "cell_type": "code", - "execution_count": 77, - "id": "73c932c5", + "execution_count": 82, + "id": "local-assessment", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "4134" + "{'url': 'https://anthologiagraeca.org/api/cities/89/',\n", + " 'names': [{'name': 'Mytilene', 'language': 'eng'},\n", + " {'name': 'Mytilène', 'language': 'fra'},\n", + " {'name': 'Mitilene', 'language': 'spa'},\n", + " {'name': 'Mitilene', 'language': 'ita'},\n", + " {'name': 'Mytilene', 'language': 'lat'}],\n", + " 'alternative_urns': ['https://www.wikidata.org/wiki/Q42295059',\n", + " 'https://pleiades.stoa.org/places/550763'],\n", + " 'unique_id': 95,\n", + " 'longitude': None,\n", + " 'latitude': None,\n", + " 'descriptions': [],\n", + " 'created_at': '2021-09-09T19:09:12.954728Z',\n", + " 'updated_at': '2021-09-09T19:09:12.954734Z'}" ] }, - "execution_count": 77, + "execution_count": 82, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "len(results)" + "Mytilene = requests.get('https://anthologiagraeca.org/api/cities/89').json()\n", + "Mytilene" ] }, { "cell_type": "markdown", - "id": "awful-school", + "id": "cooked-purchase", "metadata": {}, "source": [ - "## Data about epigrams\n", + "### Scholia\n", + "\n", + "Many epigrams are associated with scholia: the scholia on the Codex palatinus 23." + ] + }, + { + "cell_type": "code", + "execution_count": 83, + "id": "noted-singer", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[{'book': 6,\n", + " 'fragment': 13,\n", + " 'sub_fragment': '',\n", + " 'number': 1,\n", + " 'url': '/passages/urn:cts:greekLit:tlg5011.tlg001.sag:6.13.1/'},\n", + " {'book': 6,\n", + " 'fragment': 13,\n", + " 'sub_fragment': '',\n", + " 'number': 2,\n", + " 'url': '/passages/urn:cts:greekLit:tlg5011.tlg001.sag:6.13.2/'}]" + ] + }, + "execution_count": 83, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ep6_13['scholia']" + ] + }, + { + "cell_type": "markdown", + "id": "aerial-premiere", + "metadata": {}, + "source": [ + "Each scholium is identified by the epigram to which it is a scholium plus a number. For exemple the second scholium of the epigram 6.13 will be the scholium 6.13.2.\n", + "\n", + "The urn of a scholium will be structured as follows:\n", + "\n", + "`/passages/urn:cts:greekLit:tlg5011.tlg001.sag:`+bookNumber.+epigramNumber+epigramLetter`.`+scholiumNumber\n", + "\n", + "For example:\n", "\n", - "Let us now have a look at the data available for each epigram. Most of these data are present in the list of epigrams (`epigrams['results']`), but each epigram has its own endpoint, structured on the basis of its book and its number.\n", + "`/passages/urn:cts:greekLit:tlg5011.tlg001.sag:6.13.2/`\n", "\n", - "The *Greek Anthology* has 16 books, as you can see here:" + "A scholium contains very similar information as an epigram: texts in different languages, the picture of the manuscript etc.\n", + "\n", + "**Attention** the texts opening a book have been identified as scholia to the epigram 0 of the book. For example 5.0.1 or 5.0.2 or 12.0.1" ] }, { "cell_type": "code", - "execution_count": 78, - "id": "boolean-binary", + "execution_count": 84, + "id": "expired-miller", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "16\n" + "{'id': 1999, 'url': 'https://anthologiagraeca.org/api/scholia/urn:cts:greekLit:tlg5011.tlg001.sag:5.0.1/', 'urn': 'urn:cts:greekLit:tlg5011.tlg001.sag:5.0.1', 'web_url': '/passages/urn:cts:greekLit:tlg5011.tlg001.sag:5.0.1/', 'manuscripts': ['http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A087.jpg/pct:9.335021316210499,67.9883147400695,17.828050776662216,8.264462809917363/full/0/default.jpg'], 'texts': [{'language': 'grc', 'text': 'á¼€Ïχή τῶν á¼Ïωτικὼν á¼Ï€Î¹Î³Ïαμμάτων'}, {'language': 'por', 'text': 'InÃcio dos epigramas eróticos.'}, {'language': 'fra', 'text': 'Le début des épigrammes érotiques.'}], 'cities': [], 'keywords': [], 'passage': {'book': 5, 'fragment': 0, 'sub_fragment': '', 'url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:5.0/'}, 'comments': [{'description': ['Lemmatiste: L.'], 'language': ['fra']}], 'media': []}\n", + "{'id': 2000, 'url': 'https://anthologiagraeca.org/api/scholia/urn:cts:greekLit:tlg5011.tlg001.sag:5.0.2/', 'urn': 'urn:cts:greekLit:tlg5011.tlg001.sag:5.0.2', 'web_url': '/passages/urn:cts:greekLit:tlg5011.tlg001.sag:5.0.2/', 'manuscripts': [' http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A088.jpg/pct:9.57839977186465,5.684292685810079,77.95889161681437,5.6234937070427575/full/0/default.jpg'], 'texts': [{'language': 'grc', 'text': 'á¼€Ïχή τῶν á¼Ïωτικῶν ÎπιγÏαμμάτων - διαφόÏων ποιητῶν'}, {'language': 'por', 'text': 'InÃcio dos epigramas eróticos - de diferentes poetas.'}, {'language': 'fra', 'text': 'Le début des épigrammes érotiques - de différentes auteurs.'}], 'cities': [], 'keywords': [], 'passage': {'book': 5, 'fragment': 0, 'sub_fragment': '', 'url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:5.0/'}, 'comments': [], 'media': []}\n", + "{'id': 816, 'url': 'https://anthologiagraeca.org/api/scholia/urn:cts:greekLit:tlg5011.tlg001.sag:12.0.2/', 'urn': 'urn:cts:greekLit:tlg5011.tlg001.sag:12.0.2', 'web_url': '/passages/urn:cts:greekLit:tlg5011.tlg001.sag:12.0.2/', 'manuscripts': ['http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A569.jpg/pct:12.639237143536691,11.953945008805782,63.97128581066486,12.422816818582767/full/0/default.jpg'], 'texts': [{'language': 'grc', 'text': 'καὶ τίς ἂν εἴην εἰ πάντων σοι τῶν εἰÏημÎνων τὴν γνῶσιν á¼ÎºÎ¸Îμενος τῶν ΣτÏάτωνος τῶν ΣαÏδιανοῦ Παιδικὴν Μοῦσαν á¼Ï€ÎµÎºÏυψάμην, ἣν αá½Ï„ὸς παίζων Ï€Ïὸς τοὺς πλησίον á¼Ï€ÎµÎ´ÎµÎ¯ÎºÎ½Ï…το, Ï„ÎÏψιν οἰκείαν τὴν ἀπαγγελίαν τῶν á¼Ï€Î¹Î³Ïαμμάτων, οὠτὸν νοῦν, ποιοÏμενος. ἔχου τοίνυν τῶν ἑξῆς: á¼Î½ χοÏείαις Î³á½°Ï á¼¥ γε σώφÏων, κατὰ τὸν Ï„Ïαγικόν, οὠδιαφθαÏήσεται.'}, {'language': 'grc', 'text': 'καὶ τίς ἂν εἴην εἰ πάντων σοι τῶν εἰÏημÎνων τὴν γνῶσιν á¼ÎºÎ¸Îμενος τὴν ΣτÏάτωνος τοῦ ΣαÏδιανοῦ Παιδικὴν Μοῦσαν á¼Ï€ÎµÎºÏυψάμην, ἣν αá½Ï„ὸς παίζων Ï€Ïὸς τοὺς πλησίον á¼Ï€ÎµÎ´ÎµÎ¯ÎºÎ½Ï…το, Ï„ÎÏψιν οἰκείαν τὴν ἀπαγγελίαν τῶν á¼Ï€Î¹Î³Ïαμμάτων, οὠτὸν νοῦν, ποιοÏμενος. ἔχου τοίνυν τῶν ἑξῆς: á¼Î½ χοÏείαις Î³á½°Ï á¼¥ γε σώφÏων, κατὰ τὸν Ï„Ïαγικόν, οὠδιαφθαÏήσεται.'}, {'language': 'eng', 'text': 'And what kind of man should I be, reader, if after setting forth all that precedes for thee to study, I were to conceal the Puerile Muse of Strato of Barclis, which he used to recite to those about him in sport, taking personal delight in the diction of the epigrams, not in their meaning. Apply thyself then to what follows, for “in dances,†as the tragic poet says, \"a chaste woman will not be corrupted.â€'}, {'language': 'fra', 'text': \"Et qui serais-je si après t'avoir donné la connaissance de toutes les choses dites, je te cachais la Muse garçonnière de Straton de Sardes, que lui-même en jouant récitait à ceux qui l'entouraient, en se faisant une joie personnelles de la récitation des épigrammes et non de leur sens. Voilà pour toi ce qui suit: dans les danses en effet, comme le dit le poète tragique, une femme chaste ne peut pas être corrompue.\"}], 'cities': [], 'keywords': [], 'passage': {'book': 12, 'fragment': 0, 'sub_fragment': '', 'url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:12.0/'}, 'comments': [], 'media': []}\n" ] } ], "source": [ - "number_of_books = requests.get('https://anthologiagraeca.org/api/books/').json()['count']\n", - "\n", - "print(number_of_books)" + "sc5_0_1 = requests.get('https://anthologiagraeca.org/api/scholia/urn:cts:greekLit:tlg5011.tlg001.sag:5.0.1/').json()\n", + "print(sc5_0_1)\n", + "sc5_0_2 = requests.get('https://anthologiagraeca.org/api/scholia/urn:cts:greekLit:tlg5011.tlg001.sag:5.0.2/').json()\n", + "print(sc5_0_2)\n", + "sc12_0_2 = requests.get('https://anthologiagraeca.org/api/scholia/urn:cts:greekLit:tlg5011.tlg001.sag:12.0.2/').json()\n", + "print(sc12_0_2)" ] }, { "cell_type": "markdown", - "id": "speaking-messaging", + "id": "explicit-finland", "metadata": {}, "source": [ - "An epigram is normally identified by a number (for exemple 1 or 145).\n", + "### Comments\n", "\n", - "Sometimes there are two or more epigrams for the same number. In these cases letters are used (*e.g.* 132a).\n", + "An epigram can have comments, a sort of footnotes about the epigram as a whole of some part of it. These comments can be multilingual and they sometimes contain some markdown markup:" + ] + }, + { + "cell_type": "code", + "execution_count": 85, + "id": "detected-extraction", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[{'description': ['# Fresque de Pompéi\\n\\n Cette épigramme est représentée, selon Gutzwiller, dans une fresque de Pompéi'],\n", + " 'language': ['fra']},\n", + " {'description': [\"# Imitations de 6.13\\n\\n C'est vraisemblablement cette pièce de Léonidas qui a inspiré les épigr. 11-16 et 179-187, entre autres 14 (d'Antipater) et 16 (d'Archias), qui n'en sont que des imitations assez serviles. Elle était, en tous cas, une des plus classiques de toute la série; car c'est celle-là qu'on avait gravée sur le mur d'une maison de Pompéi pour servir de légende à une scène où était peinte cette offrande de trois chasseurs; mais il ne subsiste, des trois distiques que comportait l'inscription, que cinq lettres disséminées et les six premières du v. 6; et il a fallu toute la perspicacité de Dilthey pour y reconnaître des fragments de notre épigramme. \\n-P. Waltz \"],\n", + " 'language': ['fra']}]" + ] + }, + "execution_count": 85, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ep6_13['comments']" + ] + }, + { + "cell_type": "markdown", + "id": "fluid-suite", + "metadata": {}, + "source": [ + "### External references\n", "\n", - "Based on this information the epigram endpoind will be structured as follows:\n", + "An epigram can be linked to some external source. The idea of the project is to develop an edition which can take into account some \"weak links\" between the anthological material and some other cultural artefacts. This links are subjective and they do not want to be considered as \"scietific\". They can be link to a pop song, for example.\n", "\n", - "`/passages/urn:cts:greekLit:tlg7000.tlg001.ag:`+bookNumber`.`+epigramNumber+epigramLetter\n", + "They are just hyperlinks. For example:" + ] + }, + { + "cell_type": "code", + "execution_count": 86, + "id": "mental-young", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[{'title': 'Jacques Lazure, Le Blaffart (2018)',\n", + " 'url': 'https://opuscules.ca/article-alire?article=202248'},\n", + " {'title': 'Charles Baudelaire, Remords Posthumes (1857)',\n", + " 'url': 'https://poesie.webnet.fr/lesgrandsclassiques/Poemes/charles_baudelaire/remords_posthume'},\n", + " {'title': 'Mylène Farmer, Regrets (1991)',\n", + " 'url': 'https://www.youtube.com/watch?v=ph6piqBnkgU'}]" + ] + }, + "execution_count": 86, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ep7_710 = requests.get('https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:7.710').json()\n", + "ep7_710['external_references']" + ] + }, + { + "cell_type": "markdown", + "id": "trained-glasgow", + "metadata": {}, + "source": [ + "### Internal references\n", "\n", - "> an example from the platform: https://anthologiagraeca.org/passages/urn:cts:greekLit:tlg7000.tlg001.ag:12.132a/\n", + "Internal references are links to some other epigram of the anthology. The relationship is symmetrical. The link can be of many tipes: an epigram can be the variation of another (and different kind of variation) or just have a vague link.\n", "\n", - "This url is avaiable in the list of epigrams as one can see in the field `url` of each result (let us take the first one here):" + "For the moment the type of internal reference has not been specified - it will probably always be \"default\"." ] }, { "cell_type": "code", - "execution_count": 80, - "id": "peaceful-equality", + "execution_count": 87, + "id": "christian-mercury", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:1.1/?format=json'" + "[{'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.11/',\n", + " 'reference_type': 'Default'},\n", + " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.14/',\n", + " 'reference_type': 'Default'},\n", + " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.179/',\n", + " 'reference_type': 'Default'},\n", + " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.186/',\n", + " 'reference_type': 'Default'},\n", + " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.187/',\n", + " 'reference_type': 'Default'}]" ] }, - "execution_count": 80, + "execution_count": 87, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "epigrams_res['results'][0]['url']" + "ep6_13['internal_references']" ] }, { "cell_type": "markdown", - "id": "graduate-envelope", + "id": "hired-search", "metadata": {}, "source": [ - "Let us have a look at the epigram 6.13, which means the epigram number 13 of the book 6:" + "## Wikidata and other identifiers\n", + "\n", + "Almost all the objects in our data are aligned with a wikidata id. It is the case for `authors`, `keywords` and `cities`. The wikidata id can be found in the field `alternative_urns`.\n", + "\n", + "Let us look for an author: " ] }, { "cell_type": "code", - "execution_count": 83, - "id": "invalid-observer", + "execution_count": 88, + "id": "fitting-finding", + "metadata": {}, + "outputs": [], + "source": [ + "meleager = requests.get('https://anthologiagraeca.org/api/authors/1').json()" + ] + }, + { + "cell_type": "code", + "execution_count": 89, + "id": "interracial-battle", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "{'id': 394,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/5/', 'number': 6},\n", - " 'fragment': 13,\n", - " 'sub_fragment': '',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:6.13',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.13/',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.13/',\n", - " 'manuscripts': ['http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A142.jpg/pct:10.614886731391586,73.26114119117034,50.355987055016186,4.664723032069971/full/0/default.jpg',\n", - " 'http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A143.jpg/pct:30.37231055564613,13.349681305818653,51.660362990702126,7.613758509494807/full/0/default.jpg'],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'οἱ Ï„Ïισσοί τοι ταῦτα τὰ δίκτυα θῆκαν ὅμαιμοι,\\nἀγÏότα Πάν, ἄλλης ἄλλος ἀπ᾽ ἀγÏεσίης:\\nὧν ἀπὸ μὲν πτηνῶν ΠίγÏης τάδε, ταῦτα δὲ Δᾶμις\\nτετÏαπόδων, ÎšÎ»ÎµÎ¯Ï„Ï‰Ï Î´á¾½ á½ Ï„Ïίτος εἰναλίων.\\nἀνθ᾽ ὧν τῷ μὲν Ï€Îμπε δι᾽ á¼ ÎÏος εὔστοχον ἄγÏην,\\nτῷ δὲ διὰ δÏυμῶν, τῷ δὲ δι᾽ ἠϊόνων. '},\n", - " {'language': 'ita',\n", - " 'text': 'Tre fratelli ti hanno dedicato queste reti,\\nPan cacciatore, ognuna proveniente da una caccia differente.\\nPigre queste di uccelli, Damis queste,\\ndi bestie feroci, Cleitore, il terzo, di animali marini.\\nIn cambio dai una caccia fortunata al primo in aria\\nal secondo nei boschi e al terzo sulle rive.'},\n", - " {'language': 'fra',\n", - " 'text': \"Ces trois frères t'ont dédié ces filets,\\nPan chasseur, chacun issu d'une chasse différente.\\nPigres celles-ci, d'oiseaux, Damis celle-ci,\\nde bêtes féroces, Cléitor, le troisième, d'animaux marins.\\nEn échange donne une bonne chasse au premier dans l'air,\\nau deuxième dans les bois et au troisième sur les rivages.\"},\n", - " {'language': 'fra',\n", - " 'text': \"Les trois frères t'ont consacré, chasseur Pan, ces filets, pris par chacun à son genre de chasse: Pigrès, pour les oiseaux; Damis, pour les quadrupèdes; Cléitor, pour le peuple de la mer. Envoie-leur en échange une bonne chasse à l'un par les airs, au second par les bois, à l'autre par les grèves.\"},\n", - " {'language': 'eng',\n", - " 'text': 'Huntsman Pan, the three brothers dedicated these nets to thee, each from a different chase: Pigres these from fowl, Damis these from beast, and Clitor his from the denizens of the deep. In return for which send them easily caught game, to the first through the air, to the second through the woods, and to the third through the shore-water.'}],\n", - " 'authors': [{'tlg_id': 'tlg-1458',\n", - " 'names': [{'name': 'Leonidas of Tarentum', 'language': 'eng'},\n", - " {'name': 'Λεωνίδας ὠΤαÏαντῖνος', 'language': 'grc'},\n", - " {'name': 'Leonida di Taranto', 'language': 'ita'},\n", - " {'name': 'Λεωνίδας ᾿ΑλεξανδÏεύς', 'language': 'grc'},\n", - " {'name': \"Léonidas d'Alexandrie\", 'language': 'fra'},\n", - " {'name': 'Leonidas of Alexandria', 'language': 'eng'}]}],\n", - " 'cities': [],\n", - " 'keywords': [{'id': 1,\n", - " 'names': [{'name': 'distique élégiaque', 'language': 'fra'},\n", - " {'name': 'distico elegiaco', 'language': 'ita'},\n", - " {'name': 'Elegiac couplet', 'language': 'eng'}],\n", - " 'category': [{'name': 'Formes métriques', 'language': 'fra'},\n", - " {'name': 'Metric forms', 'language': 'eng'},\n", - " {'name': 'Metra', 'language': 'lat'},\n", - " {'name': 'Forme metriche', 'language': 'ita'},\n", - " {'name': 'Formas métricas', 'language': 'por'}]},\n", - " {'id': 4,\n", - " 'names': [{'name': 'époque hellénistique', 'language': 'fra'},\n", - " {'name': 'epoca ellenistica', 'language': 'ita'},\n", - " {'name': 'hellenistic period', 'language': 'eng'}],\n", - " 'category': [{'name': 'Époques', 'language': 'fra'},\n", - " {'name': 'Periods', 'language': 'eng'},\n", - " {'name': 'Tempora', 'language': 'lat'},\n", - " {'name': 'Periodi', 'language': 'ita'},\n", - " {'name': 'Épocas', 'language': 'por'}]},\n", - " {'id': 73,\n", - " 'names': [{'name': 'Validé par William', 'language': 'fra'}],\n", - " 'category': [{'name': 'Validation', 'language': 'fra'},\n", - " {'name': 'Validation', 'language': 'eng'},\n", - " {'name': 'Contralectus', 'language': 'lat'},\n", - " {'name': 'Validazione', 'language': 'ita'},\n", - " {'name': 'Validação', 'language': 'por'}]},\n", - " {'id': 186,\n", - " 'names': [{'name': 'dedicatory', 'language': 'eng'},\n", - " {'name': 'votif (anathématique)', 'language': 'fra'}],\n", - " 'category': [{'name': 'Genres', 'language': 'fra'},\n", - " {'name': 'Genres', 'language': 'eng'},\n", - " {'name': 'Genera', 'language': 'lat'},\n", - " {'name': 'Generi', 'language': 'ita'},\n", - " {'name': 'Gêneros', 'language': 'por'}]},\n", - " {'id': 234,\n", - " 'names': [{'name': 'Damis', 'language': 'eng'}],\n", - " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", - " {'name': 'Quoted persons', 'language': 'eng'},\n", - " {'name': 'Homines memorati', 'language': 'lat'},\n", - " {'name': 'Persone citate', 'language': 'ita'},\n", - " {'name': 'Pessoas citadas', 'language': 'por'}]},\n", - " {'id': 270,\n", - " 'names': [{'name': 'Chasse', 'language': 'fra'}],\n", - " 'category': [{'name': 'Motifs', 'language': 'fra'},\n", - " {'name': 'Motifs', 'language': 'eng'},\n", - " {'name': 'Themata', 'language': 'lat'},\n", - " {'name': 'Motivi', 'language': 'ita'},\n", - " {'name': 'Motivos', 'language': 'por'}]},\n", - " {'id': 492,\n", - " 'names': [{'name': 'Pan', 'language': 'eng'}],\n", - " 'category': [{'name': 'Divinités', 'language': 'fra'},\n", - " {'name': 'Deities', 'language': 'eng'},\n", - " {'name': 'Divinitates', 'language': 'lat'},\n", - " {'name': 'Divinità ', 'language': 'ita'},\n", - " {'name': 'Divindades', 'language': 'por'}]},\n", - " {'id': 574,\n", - " 'names': [{'name': 'ΠίγÏης', 'language': 'grc'},\n", - " {'name': 'Pigrès', 'language': 'fra'}],\n", - " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", - " {'name': 'Quoted persons', 'language': 'eng'},\n", - " {'name': 'Homines memorati', 'language': 'lat'},\n", - " {'name': 'Persone citate', 'language': 'ita'},\n", - " {'name': 'Pessoas citadas', 'language': 'por'}]},\n", - " {'id': 575,\n", - " 'names': [{'name': 'ΚλείτωÏ', 'language': 'grc'},\n", - " {'name': 'Cléitor', 'language': 'fra'}],\n", - " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", - " {'name': 'Quoted persons', 'language': 'eng'},\n", - " {'name': 'Homines memorati', 'language': 'lat'},\n", - " {'name': 'Persone citate', 'language': 'ita'},\n", - " {'name': 'Pessoas citadas', 'language': 'por'}]}],\n", - " 'scholia': [{'book': 6,\n", - " 'fragment': 13,\n", - " 'sub_fragment': '',\n", - " 'number': 1,\n", - " 'url': '/passages/urn:cts:greekLit:tlg5011.tlg001.sag:6.13.1/'},\n", - " {'book': 6,\n", - " 'fragment': 13,\n", - " 'sub_fragment': '',\n", - " 'number': 2,\n", - " 'url': '/passages/urn:cts:greekLit:tlg5011.tlg001.sag:6.13.2/'}],\n", - " 'comments': [{'description': ['# Fresque de Pompéi\\n\\n Cette épigramme est représentée, selon Gutzwiller, dans une fresque de Pompéi'],\n", - " 'language': ['fra']},\n", - " {'description': [\"# Imitations de 6.13\\n\\n C'est vraisemblablement cette pièce de Léonidas qui a inspiré les épigr. 11-16 et 179-187, entre autres 14 (d'Antipater) et 16 (d'Archias), qui n'en sont que des imitations assez serviles. Elle était, en tous cas, une des plus classiques de toute la série; car c'est celle-là qu'on avait gravée sur le mur d'une maison de Pompéi pour servir de légende à une scène où était peinte cette offrande de trois chasseurs; mais il ne subsiste, des trois distiques que comportait l'inscription, que cinq lettres disséminées et les six premières du v. 6; et il a fallu toute la perspicacité de Dilthey pour y reconnaître des fragments de notre épigramme. \\n-P. Waltz \"],\n", - " 'language': ['fra']}],\n", - " 'external_references': [],\n", - " 'internal_references': [{'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.11/',\n", - " 'reference_type': 'Default'},\n", - " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.14/',\n", - " 'reference_type': 'Default'},\n", - " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.179/',\n", - " 'reference_type': 'Default'},\n", - " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.186/',\n", - " 'reference_type': 'Default'},\n", - " {'to_passage': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.187/',\n", - " 'reference_type': 'Default'}],\n", - " 'media': []}" + "{'id': 1,\n", + " 'url': 'https://anthologiagraeca.org/api/authors/1/',\n", + " 'names': [{'name': 'Callimachus', 'language': 'eng'},\n", + " {'name': 'Καλλίμαχος', 'language': 'grc'},\n", + " {'name': 'Callimaque', 'language': 'fra'}],\n", + " 'alternative_urns': ['https://www.wikidata.org/wiki/Q192417',\n", + " 'http://data.perseus.org/catalog/urn:cts:greekLit:tlg0533'],\n", + " 'city_born': {'url': 'https://anthologiagraeca.org/api/cities/1/',\n", + " 'names': [{'name': 'Cyrène', 'language': 'fra'},\n", + " {'name': 'Cirene', 'language': 'spa'},\n", + " {'name': 'Cirene', 'language': 'por'},\n", + " {'name': 'Cyrene', 'language': 'eng'},\n", + " {'name': 'Cyrene', 'language': 'lat'},\n", + " {'name': 'Cirene', 'language': 'ita'}],\n", + " 'alternative_urns': ['https://anthologia.ecrituresnumeriques.ca/api/v1/cities/3',\n", + " 'https://www.wikidata.org/wiki/Q44112',\n", + " 'https://pleiades.stoa.org/places/373778'],\n", + " 'unique_id': 3,\n", + " 'longitude': '32.80799',\n", + " 'latitude': '21.86616',\n", + " 'descriptions': [],\n", + " 'created_at': '2021-04-08T21:27:25.373000Z',\n", + " 'updated_at': '2021-04-08T21:27:25.373000Z'},\n", + " 'city_died': {'url': 'https://anthologiagraeca.org/api/cities/2/',\n", + " 'names': [{'name': 'Alexandrie', 'language': 'fra'},\n", + " {'name': 'Alexandria', 'language': 'eng'},\n", + " {'name': 'ἈλεξάνδÏεια', 'language': 'grc'}],\n", + " 'alternative_urns': ['https://anthologia.ecrituresnumeriques.ca/api/v1/cities/4',\n", + " 'https://www.wikidata.org/wiki/Q87',\n", + " 'https://pleiades.stoa.org/places/727070'],\n", + " 'unique_id': 4,\n", + " 'longitude': '31.20010',\n", + " 'latitude': '29.91857',\n", + " 'descriptions': [],\n", + " 'created_at': '2021-04-08T21:27:25.384000Z',\n", + " 'updated_at': '2021-04-08T21:27:25.384000Z'},\n", + " 'born_range_year_date': None,\n", + " 'died_range_year_date': None,\n", + " 'unique_id': 1,\n", + " 'created_at': '2021-04-08T21:27:25.392000Z',\n", + " 'updated_at': '2021-04-08T21:27:25.392000Z',\n", + " 'validation': 0,\n", + " 'tlg_id': 'tlg-0533',\n", + " 'main_name': 'Callimachus',\n", + " 'descriptions': [],\n", + " 'images': []}" ] }, - "execution_count": 83, + "execution_count": 89, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "ep6_13 = requests.get('https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:6.13').json()\n", - "\n", - "ep6_13" + "meleager" ] }, { "cell_type": "code", - "execution_count": 85, - "id": "biological-chicken", - "metadata": { - "scrolled": true - }, + "execution_count": 90, + "id": "genuine-happiness", + "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "{'id': 3199,\n", - " 'book': {'url': 'https://anthologiagraeca.org/api/books/8/', 'number': 12},\n", - " 'fragment': 132,\n", - " 'sub_fragment': 'a',\n", - " 'urn': 'urn:cts:greekLit:tlg7000.tlg001.ag:12.132a',\n", - " 'url': 'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:12.132a/',\n", - " 'web_url': '/passages/urn:cts:greekLit:tlg7000.tlg001.ag:12.132a/',\n", - " 'manuscripts': ['http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A589.jpg/pct:11.78916,41.5646,60.6891,16.87853/full/0/default.jpg'],\n", - " 'texts': [{'language': 'grc',\n", - " 'text': 'ἆ ψυχὴ βαÏÏμοχθε, σὺ δ᾽ ἄÏτι μὲν á¼Îº πυÏὸς αἴθῃ,\\n ἄÏτι δ᾽ ἀναψÏχεις, πνεῦμ᾽ ἀναλεξαμÎνη.\\nτί κλαίεις; τὸν ἄτεγκτον ὅτ᾽ á¼Î½ κόλποισιν ἜÏωτα\\n ἔτÏεφες, οá½Îº ᾔδεις ὡς á¼Ï€á½¶ σοὶ Ï„ÏÎφετο;\\n\\n οá½Îº ᾔδεις; νῦν γνῶθι καλῶν ἄλλαγμα Ï„Ïοφείων,\\nÏ€á¿¦Ï á¼…Î¼Î± καὶ ψυχÏὰν δεξαμÎνη χιόνα.\\n αá½Ï„á½´ ταῦθ᾽ εἵλου: φÎÏε τὸν πόνον. ἄξια πάσχεις\\nὧν ἔδÏας, ὀπτῷ καιομÎνη μÎλιτι.'},\n", - " {'language': 'eng',\n", - " 'text': 'O sore-afflicted soul, now thou bumest in the fire and now thou revivest, recovering thy breath. Why dost thou weep? When thou didst nurse merciless Love in thy bosom knewest thou not that he was being nursed for thy bane ? Didst thou not know it ? Now learn to know the pay of thy good nursing, receiving from him fire and cold snow therewith. Thyself thou hast chosen this ; bear the pain. Thou sufferest the due guerdon of what thou hast done, burnt by his boiling honey.'},\n", - " {'language': 'fra',\n", - " 'text': 'Oh\\xa0! mon âme accablée de souffrances, tantôt c’est le feu qui te brûle, tantôt tu reprends vie en retrouvant le souffle\\xa0! Tu pleures\\xa0? Lorsque dans ton sein tu nourrissais l’impitoyable Amour, ne savais-tu pas que c’était contre toi que tu le nourrissais\\xa0? Tu ne le savais pas\\xa0? Vois maintenant le salaire de tes bons soins\\xa0: tu reçois tout ensemble feu et neige glacée\\xa0! C’est toi, toi qu’il l’a choisi\\xa0! Supporte ta douleur\\xa0! Juste souffrance de tes actes, la brûlure du miel ardent\\xa0!'}],\n", - " 'authors': [{'tlg_id': 'tlg-1492',\n", - " 'names': [{'name': 'ΜελÎαγÏος', 'language': 'grc'},\n", - " {'name': 'Meleager', 'language': 'eng'},\n", - " {'name': 'Méléagre', 'language': 'fra'}]}],\n", - " 'cities': [],\n", - " 'keywords': [{'id': 1,\n", - " 'names': [{'name': 'distique élégiaque', 'language': 'fra'},\n", - " {'name': 'distico elegiaco', 'language': 'ita'},\n", - " {'name': 'Elegiac couplet', 'language': 'eng'}],\n", - " 'category': [{'name': 'Formes métriques', 'language': 'fra'},\n", - " {'name': 'Metric forms', 'language': 'eng'},\n", - " {'name': 'Metra', 'language': 'lat'},\n", - " {'name': 'Forme metriche', 'language': 'ita'},\n", - " {'name': 'Formas métricas', 'language': 'por'}]},\n", - " {'id': 3,\n", - " 'names': [{'name': 'erotic', 'language': 'eng'},\n", - " {'name': 'érotic', 'language': 'fra'},\n", - " {'name': 'erotico', 'language': 'ita'}],\n", - " 'category': [{'name': 'Genres', 'language': 'fra'},\n", - " {'name': 'Genres', 'language': 'eng'},\n", - " {'name': 'Genera', 'language': 'lat'},\n", - " {'name': 'Generi', 'language': 'ita'},\n", - " {'name': 'Gêneros', 'language': 'por'}]},\n", - " {'id': 4,\n", - " 'names': [{'name': 'époque hellénistique', 'language': 'fra'},\n", - " {'name': 'epoca ellenistica', 'language': 'ita'},\n", - " {'name': 'hellenistic period', 'language': 'eng'}],\n", - " 'category': [{'name': 'Époques', 'language': 'fra'},\n", - " {'name': 'Periods', 'language': 'eng'},\n", - " {'name': 'Tempora', 'language': 'lat'},\n", - " {'name': 'Periodi', 'language': 'ita'},\n", - " {'name': 'Épocas', 'language': 'por'}]},\n", - " {'id': 181,\n", - " 'names': [{'name': 'Couronne de Méléagre', 'language': 'fra'}],\n", - " 'category': [{'name': 'Collections', 'language': 'fra'},\n", - " {'name': 'Collections', 'language': 'eng'},\n", - " {'name': 'Collecteana', 'language': 'lat'},\n", - " {'name': 'Collezioni', 'language': 'ita'},\n", - " {'name': 'Coleções', 'language': 'por'}]}],\n", - " 'scholia': [],\n", - " 'comments': [],\n", - " 'external_references': [],\n", - " 'internal_references': [],\n", - " 'media': []}" + "['https://www.wikidata.org/wiki/Q192417',\n", + " 'http://data.perseus.org/catalog/urn:cts:greekLit:tlg0533']" ] }, - "execution_count": 85, + "execution_count": 90, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "ep12_132a = requests.get('https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:12.132a').json()\n", - "\n", - "ep12_132a" + "meleager['alternative_urns']" ] }, { "cell_type": "markdown", - "id": "residential-encyclopedia", + "id": "placed-mailing", "metadata": {}, "source": [ - "The epigram's number is in the key `fragment` and the letter (when it has one) in the key `sub_fragment`)" + "Other identifiers can be found in alternative_urns: for exemple the TLG for authors (look above) and the pleiades id for places:" + ] + }, + { + "cell_type": "code", + "execution_count": 91, + "id": "nearby-vault", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "['https://www.wikidata.org/wiki/Q42295059',\n", + " 'https://pleiades.stoa.org/places/550763']" + ] + }, + "execution_count": 91, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "Mytilene['alternative_urns']" ] }, { @@ -2991,7 +2932,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 92, "id": "transsexual-salad", "metadata": {}, "outputs": [], @@ -3018,7 +2959,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 93, "id": "pursuant-helena", "metadata": {}, "outputs": [ @@ -10830,7 +10771,7 @@ " 'created': '2021-09-27T13:06:19.432Z'}]}" ] }, - "execution_count": 16, + "execution_count": 93, "metadata": {}, "output_type": "execute_result" } @@ -10839,237 +10780,18 @@ "getAnnotations(590,599)" ] }, - { - "cell_type": "markdown", - "id": "8897a281", - "metadata": {}, - "source": [ - "For each epigram one can retrieve a list of the IIIf images of the Codex Palatinus 23 which correspons to the epigram in the keymanuscripts." - ] - }, - { - "cell_type": "code", - "execution_count": 17, - "id": "ee7447d2", - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "['http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A142.jpg/pct:10.614886731391586,73.26114119117034,50.355987055016186,4.664723032069971/full/0/default.jpg',\n", - " 'http://digi.ub.uni-heidelberg.de/iiif/2/cpgraec23%3A143.jpg/pct:30.37231055564613,13.349681305818653,51.660362990702126,7.613758509494807/full/0/default.jpg']" - ] - }, - "execution_count": 17, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "ep6_13['manuscripts']" - ] - }, - { - "cell_type": "markdown", - "id": "a1098a33", - "metadata": {}, - "source": [ - "Each epigram has a list of texts wich are associated to it. These are one or more greek editions of the text and a set of translations:" - ] - }, - { - "cell_type": "code", - "execution_count": 18, - "id": "ded7887f", - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "[{'language': 'grc',\n", - " 'text': 'οἱ Ï„Ïισσοί τοι ταῦτα τὰ δίκτυα θῆκαν ὅμαιμοι,\\nἀγÏότα Πάν, ἄλλης ἄλλος ἀπ᾽ ἀγÏεσίης:\\nὧν ἀπὸ μὲν πτηνῶν ΠίγÏης τάδε, ταῦτα δὲ Δᾶμις\\nτετÏαπόδων, ÎšÎ»ÎµÎ¯Ï„Ï‰Ï Î´á¾½ á½ Ï„Ïίτος εἰναλίων.\\nἀνθ᾽ ὧν τῷ μὲν Ï€Îμπε δι᾽ á¼ ÎÏος εὔστοχον ἄγÏην,\\nτῷ δὲ διὰ δÏυμῶν, τῷ δὲ δι᾽ ἠϊόνων. '},\n", - " {'language': 'ita',\n", - " 'text': 'Tre fratelli ti hanno dedicato queste reti,\\nPan cacciatore, ognuna proveniente da una caccia differente.\\nPigre queste di uccelli, Damis queste,\\ndi bestie feroci, Cleitore, il terzo, di animali marini.\\nIn cambio dai una caccia fortunata al primo in aria\\nal secondo nei boschi e al terzo sulle rive.'},\n", - " {'language': 'fra',\n", - " 'text': \"Ces trois frères t'ont dédié ces filets,\\nPan chasseur, chacun issu d'une chasse différente.\\nPigres celles-ci, d'oiseaux, Damis celle-ci,\\nde bêtes féroces, Cléitor, le troisième, d'animaux marins.\\nEn échange donne une bonne chasse au premier dans l'air,\\nau deuxième dans les bois et au troisième sur les rivages.\"},\n", - " {'language': 'fra',\n", - " 'text': \"Les trois frères t'ont consacré, chasseur Pan, ces filets, pris par chacun à son genre de chasse: Pigrès, pour les oiseaux; Damis, pour les quadrupèdes; Cléitor, pour le peuple de la mer. Envoie-leur en échange une bonne chasse à l'un par les airs, au second par les bois, à l'autre par les grèves.\"},\n", - " {'language': 'eng',\n", - " 'text': 'Huntsman Pan, the three brothers dedicated these nets to thee, each from a different chase: Pigres these from fowl, Damis these from beast, and Clitor his from the denizens of the deep. In return for which send them easily caught game, to the first through the air, to the second through the woods, and to the third through the shore-water.'}]" - ] - }, - "execution_count": 18, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "ep6_13['texts']" - ] - }, - { - "cell_type": "markdown", - "id": "4fa1df86", - "metadata": {}, - "source": [ - "All the epigrams in our database should have at least the greek text." - ] - }, - { - "cell_type": "markdown", - "id": "4a4002d2", - "metadata": {}, - "source": [ - "Each epigram is associated to a list of keywords : " - ] - }, - { - "cell_type": "code", - "execution_count": 19, - "id": "f68ced91", - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "[{'id': 1,\n", - " 'names': [{'name': 'distique élégiaque', 'language': 'fra'},\n", - " {'name': 'distico elegiaco', 'language': 'ita'},\n", - " {'name': 'Elegiac couplet', 'language': 'eng'}],\n", - " 'category': [{'name': 'Formes métriques', 'language': 'fra'},\n", - " {'name': 'Metric forms', 'language': 'eng'},\n", - " {'name': 'Metra', 'language': 'lat'},\n", - " {'name': 'Forme metriche', 'language': 'ita'},\n", - " {'name': 'Formas métricas', 'language': 'por'}]},\n", - " {'id': 4,\n", - " 'names': [{'name': 'époque hellénistique', 'language': 'fra'},\n", - " {'name': 'epoca ellenistica', 'language': 'ita'},\n", - " {'name': 'hellenistic period', 'language': 'eng'}],\n", - " 'category': [{'name': 'Époques', 'language': 'fra'},\n", - " {'name': 'Periods', 'language': 'eng'},\n", - " {'name': 'Tempora', 'language': 'lat'},\n", - " {'name': 'Periodi', 'language': 'ita'},\n", - " {'name': 'Épocas', 'language': 'por'}]},\n", - " {'id': 73,\n", - " 'names': [{'name': 'Validé par William', 'language': 'fra'}],\n", - " 'category': [{'name': 'Validation', 'language': 'fra'},\n", - " {'name': 'Validation', 'language': 'eng'},\n", - " {'name': 'Contralectus', 'language': 'lat'},\n", - " {'name': 'Validazione', 'language': 'ita'},\n", - " {'name': 'Validação', 'language': 'por'}]},\n", - " {'id': 186,\n", - " 'names': [{'name': 'dedicatory', 'language': 'eng'},\n", - " {'name': 'votif (anathématique)', 'language': 'fra'}],\n", - " 'category': [{'name': 'Genres', 'language': 'fra'},\n", - " {'name': 'Genres', 'language': 'eng'},\n", - " {'name': 'Genera', 'language': 'lat'},\n", - " {'name': 'Generi', 'language': 'ita'},\n", - " {'name': 'Gêneros', 'language': 'por'}]},\n", - " {'id': 234,\n", - " 'names': [{'name': 'Damis', 'language': 'eng'}],\n", - " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", - " {'name': 'Quoted persons', 'language': 'eng'},\n", - " {'name': 'Homines memorati', 'language': 'lat'},\n", - " {'name': 'Persone citate', 'language': 'ita'},\n", - " {'name': 'Pessoas citadas', 'language': 'por'}]},\n", - " {'id': 270,\n", - " 'names': [{'name': 'Chasse', 'language': 'fra'}],\n", - " 'category': [{'name': 'Motifs', 'language': 'fra'},\n", - " {'name': 'Motifs', 'language': 'eng'},\n", - " {'name': 'Themata', 'language': 'lat'},\n", - " {'name': 'Motivi', 'language': 'ita'},\n", - " {'name': 'Motivos', 'language': 'por'}]},\n", - " {'id': 492,\n", - " 'names': [{'name': 'Pan', 'language': 'eng'}],\n", - " 'category': [{'name': 'Divinités', 'language': 'fra'},\n", - " {'name': 'Deities', 'language': 'eng'},\n", - " {'name': 'Divinitates', 'language': 'lat'},\n", - " {'name': 'Divinità ', 'language': 'ita'},\n", - " {'name': 'Divindades', 'language': 'por'}]},\n", - " {'id': 574,\n", - " 'names': [{'name': 'ΠίγÏης', 'language': 'grc'},\n", - " {'name': 'Pigrès', 'language': 'fra'}],\n", - " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", - " {'name': 'Quoted persons', 'language': 'eng'},\n", - " {'name': 'Homines memorati', 'language': 'lat'},\n", - " {'name': 'Persone citate', 'language': 'ita'},\n", - " {'name': 'Pessoas citadas', 'language': 'por'}]},\n", - " {'id': 575,\n", - " 'names': [{'name': 'ΚλείτωÏ', 'language': 'grc'},\n", - " {'name': 'Cléitor', 'language': 'fra'}],\n", - " 'category': [{'name': 'Personnes citées', 'language': 'fra'},\n", - " {'name': 'Quoted persons', 'language': 'eng'},\n", - " {'name': 'Homines memorati', 'language': 'lat'},\n", - " {'name': 'Persone citate', 'language': 'ita'},\n", - " {'name': 'Pessoas citadas', 'language': 'por'}]}]" - ] - }, - "execution_count": 19, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "ep6_13['keywords']" - ] - }, - { - "cell_type": "markdown", - "id": "146f924b", - "metadata": {}, - "source": [ - "One can have more information about the keywords on its own endpoint, structured as follow : \n", - "\n", - "`https://anthologiagraeca.org/api/keywords/`+keyword_id " - ] - }, { "cell_type": "code", - "execution_count": 22, - "id": "ab6d207f", + "execution_count": null, + "id": "d8282b21", "metadata": {}, "outputs": [], - "source": [ - "keyword_1 = requests.get(\"https://anthologiagraeca.org/api/keywords/1/\").json()" - ] - }, - { - "cell_type": "code", - "execution_count": 23, - "id": "1007c1ab", - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "{'id': 1,\n", - " 'url': 'https://anthologiagraeca.org/api/keywords/1/',\n", - " 'category': {'id': 1,\n", - " 'url': 'https://anthologiagraeca.org/api/keyword_categories/1/',\n", - " 'names': [{'name': 'Formes métriques', 'language': 'fra'},\n", - " {'name': 'Metric forms', 'language': 'eng'},\n", - " {'name': 'Metra', 'language': 'lat'},\n", - " {'name': 'Forme metriche', 'language': 'ita'},\n", - " {'name': 'Formas métricas', 'language': 'por'}]},\n", - " 'names': [{'name': 'distique élégiaque', 'language': 'fra'},\n", - " {'name': 'distico elegiaco', 'language': 'ita'},\n", - " {'name': 'Elegiac couplet', 'language': 'eng'}],\n", - " 'alternative_urns': [{'urn': 'https://www.wikidata.org/wiki/Q2082412'}]}" - ] - }, - "execution_count": 23, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "keyword_1" - ] + "source": [] }, { "cell_type": "code", "execution_count": null, - "id": "d8282b21", + "id": "tight-mapping", "metadata": {}, "outputs": [], "source": []