diff --git a/jupyter/GAapiTutorial.ipynb b/jupyter/GAapiTutorial.ipynb index fbf0eec3dcc445bcb6cd9271e3e8b10242eacd62..c7b667dad60425edbe440ca371811890a52edd59 100644 --- a/jupyter/GAapiTutorial.ipynb +++ b/jupyter/GAapiTutorial.ipynb @@ -9,19 +9,18 @@ "\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" + "## Access the API\n", + "\n", + "We will start by importing different useful libraries and define our first variables for the requests." ] }, { "cell_type": "code", - "execution_count": 62, + "execution_count": 1, "id": "african-automation", "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", @@ -38,12 +37,12 @@ "id": "initial-integration", "metadata": {}, "source": [ - "Here are the avaiable endpoins:" + "The variable `data` gives us, in json format, the available endpoints" ] }, { "cell_type": "code", - "execution_count": 63, + "execution_count": 2, "id": "prostate-dietary", "metadata": {}, "outputs": [ @@ -66,7 +65,7 @@ " 'editions': 'https://anthologiagraeca.org/api/editions/?format=json'}" ] }, - "execution_count": 63, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } @@ -77,26 +76,38 @@ }, { "cell_type": "markdown", - "id": "higher-bronze", + "id": "699f6a09", "metadata": {}, "source": [ - "The most important one is the first one: `passages` which contains a list of all the epigrams. Let us have a look at it:" + "## 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)." ] }, { "cell_type": "code", - "execution_count": 64, + "execution_count": 4, "id": "sought-christian", "metadata": {}, "outputs": [], "source": [ - "epigrams_ep = '/passages'\n", - "epigrams = requests.get(url+epigrams_ep,parameters).json()" + "epigrams = '/passages'\n", + "epigrams_res = requests.get(url+epigrams,parameters).json()" + ] + }, + { + "cell_type": "markdown", + "id": "8687b0ba", + "metadata": {}, + "source": [ + "The result of our request provides us with a lot information related to the passages, as seen below : " ] }, { "cell_type": "code", - "execution_count": 65, + "execution_count": 5, "id": "reasonable-cross", "metadata": {}, "outputs": [ @@ -1806,13 +1817,13 @@ " 'media': []}]}" ] }, - "execution_count": 65, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "epigrams" + "epigrams_res" ] }, { @@ -1825,7 +1836,7 @@ }, { "cell_type": "code", - "execution_count": 66, + "execution_count": 8, "id": "champion-disposition", "metadata": {}, "outputs": [ @@ -1835,13 +1846,13 @@ "4134" ] }, - "execution_count": 66, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "epigrams['count']" + "epigrams_res['count']" ] }, { @@ -1849,14 +1860,16 @@ "id": "annual-louisiana", "metadata": {}, "source": [ - "The list is pagined and one can navigate the pages using the values of `next` and `previous`.\n", + "## 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", "\n", - "Each pages has: " + "By default, each pages has: " ] }, { "cell_type": "code", - "execution_count": 67, + "execution_count": 9, "id": "fourth-desperate", "metadata": {}, "outputs": [ @@ -1866,13 +1879,13 @@ "50" ] }, - "execution_count": 67, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "len(epigrams['results'])" + "len(epigrams_res['results'])" ] }, { @@ -1885,55 +1898,752 @@ }, { "cell_type": "code", - "execution_count": 68, + "execution_count": 11, "id": "religious-smart", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "100" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "parameters.update({'limit':100})" + "parameters.update({'limit':100})\n", + "\n", + "epigrams_res = requests.get(url+epigrams,parameters).json()\n", + "\n", + "len(epigrams_res['results'])" ] }, { - "cell_type": "code", - "execution_count": 69, - "id": "bacterial-villa", + "cell_type": "markdown", + "id": "informed-algorithm", "metadata": {}, - "outputs": [], "source": [ - "epigrams = requests.get(url+epigrams_ep,parameters).json()" + "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", + "\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", + "\n", + "\n", + "In this next cellule, `alldata` contains all the passages' data for all of our 4134 epigrams! " ] }, { "cell_type": "code", - "execution_count": 70, - "id": "vocational-somerset", + "execution_count": 12, + "id": "bdcc21d8", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "100" + "{'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", + " '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", + " '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': []}]}" ] }, - "execution_count": 70, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "len(epigrams['results'])" + "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" ] }, { - "cell_type": "markdown", - "id": "informed-algorithm", + "cell_type": "code", + "execution_count": 13, + "id": "bdef06da", "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "4134" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], "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", - "For example: https://anthologiagraeca.org/api/passages/?book__number=5&author__main_name=Meleager&keyword__number=1\n", - "\n", - "Will give all the epigrams written by Meleager belonging to book 5 and described with the keyword `1` (Elegiac couplet)." + "len(results)" ] }, { @@ -1943,16 +2653,14 @@ "source": [ "## Data about epigrams\n", "\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", + "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", "\n", - "The endpoint of each is structured on the basis of its book and its number.\n", - "\n", - "The Greek Anthology has 16 books, as you can see here:" + "The *Greek Anthology* has 16 books, as you can see here:" ] }, { "cell_type": "code", - "execution_count": 71, + "execution_count": 19, "id": "boolean-binary", "metadata": {}, "outputs": [ @@ -1966,6 +2674,7 @@ ], "source": [ "number_of_books = requests.get('https://anthologiagraeca.org/api/books/').json()['count']\n", + "\n", "print(number_of_books)" ] }, @@ -1976,18 +2685,20 @@ "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", + "Sometimes there are two or more epigrams for the same number. In these cases letters are used (*e.g.* 132a).\n", "\n", - "Based on this information the epigrem endpoind will be structured as foolows:\n", + "Based on this information the epigram endpoind will be structured as follows:\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" + "> an example from the platform: https://anthologiagraeca.org/passages/urn:cts:greekLit:tlg7000.tlg001.ag:12.132a/\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):" ] }, { "cell_type": "code", - "execution_count": 72, + "execution_count": 15, "id": "peaceful-equality", "metadata": {}, "outputs": [ @@ -1997,13 +2708,13 @@ "'https://anthologiagraeca.org/api/passages/urn:cts:greekLit:tlg7000.tlg001.ag:1.1/?format=json'" ] }, - "execution_count": 72, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "epigrams['results'][0]['url']" + "epigrams_res['results'][0]['url']" ] }, { @@ -2016,19 +2727,9 @@ }, { "cell_type": "code", - "execution_count": 73, + "execution_count": 16, "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": { @@ -2158,21 +2859,103 @@ " 'media': []}" ] }, - "execution_count": 74, + "execution_count": 16, "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" ] }, + { + "cell_type": "code", + "execution_count": 17, + "id": "biological-chicken", + "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': []}" + ] + }, + "execution_count": 17, + "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" + ] + }, { "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`)" + "The epigram's number is in the key `fragment` and the letter (when it has one) in the key `sub_fragment`)" ] }, { @@ -2182,16 +2965,18 @@ "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", + "For each epigram, the corresponding iiif coordinates can be found under the key `manuscript` (a high quality digitization of the *codex palatinus 23* is available on [the website of the Palatinate Library of Heidelberg](https://digi.ub.uni-heidelberg.de/diglit/cpgraec23/0079/image,info)). \n", "\n", - "(For more information about the manuscript and its images, cf. the section \"Manuscript Annotation API\" in this document.)" + "For more information about the manuscript and its images, cf. the section \"Manuscript Annotation API\" in this document. " ] }, { "cell_type": "code", - "execution_count": 75, + "execution_count": 18, "id": "martial-blowing", - "metadata": {}, + "metadata": { + "scrolled": true + }, "outputs": [ { "data": { @@ -2200,7 +2985,7 @@ " '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, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -2209,6 +2994,14 @@ "ep6_13['manuscripts']" ] }, + { + "cell_type": "markdown", + "id": "0795852c", + "metadata": {}, + "source": [ + "Two images are associated with epigram 6.13 since it spans two different pages. " + ] + }, { "cell_type": "markdown", "id": "english-warren", @@ -2216,12 +3009,12 @@ "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:" + "Each epigram has a list of texts wich are associated to it. All the epigrams in our database should have at least the greek text. An epigram can have more than one greek editions of the text and a set of translations in different languages :" ] }, { "cell_type": "code", - "execution_count": 76, + "execution_count": 22, "id": "filled-spencer", "metadata": {}, "outputs": [ @@ -2240,7 +3033,7 @@ " '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, + "execution_count": 22, "metadata": {}, "output_type": "execute_result" } @@ -2256,14 +3049,13 @@ "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):" + "An epigram is almost always associated to one or more authors (since the attributions are often uncertain):" ] }, { "cell_type": "code", - "execution_count": 77, + "execution_count": 23, "id": "chronic-giving", "metadata": {}, "outputs": [ @@ -2279,7 +3071,7 @@ " {'name': 'Leonidas of Alexandria', 'language': 'eng'}]}]" ] }, - "execution_count": 77, + "execution_count": 23, "metadata": {}, "output_type": "execute_result" } @@ -2295,16 +3087,18 @@ "source": [ "### Keywords\n", "\n", - "Each epigram can be associated with some keywords.\n", + "Each epigram can be associated with keywords.\n", + "\n", + "One can have more information about a keyword on its own endpoint, structured as follow : \n", "\n", - "One can have more information about the keywords on its own endpoint, structured as follow : \n", + "`https://anthologiagraeca.org/api/keywords/`+keyword_id \n", "\n", - "`https://anthologiagraeca.org/api/keywords/`+keyword_id " + "(the keyword id can be found here at the end of its URL on the platform, *e.g.* https://anthologiagraeca.org/keywords/1/ is the URL for the keyword \"Elegiac couplet\" ; the id is \"1\")." ] }, { "cell_type": "code", - "execution_count": 78, + "execution_count": 24, "id": "f68ced91", "metadata": {}, "outputs": [ @@ -2383,7 +3177,7 @@ " {'name': 'Pessoas citadas', 'language': 'por'}]}]" ] }, - "execution_count": 78, + "execution_count": 24, "metadata": {}, "output_type": "execute_result" } @@ -2394,7 +3188,7 @@ }, { "cell_type": "code", - "execution_count": 79, + "execution_count": 25, "id": "ab6d207f", "metadata": {}, "outputs": [], @@ -2404,7 +3198,7 @@ }, { "cell_type": "code", - "execution_count": 80, + "execution_count": 26, "id": "1007c1ab", "metadata": {}, "outputs": [ @@ -2426,7 +3220,7 @@ " 'alternative_urns': [{'urn': 'https://www.wikidata.org/wiki/Q2082412'}]}" ] }, - "execution_count": 80, + "execution_count": 26, "metadata": {}, "output_type": "execute_result" } @@ -2457,7 +3251,7 @@ }, { "cell_type": "code", - "execution_count": 81, + "execution_count": 27, "id": "alike-kazakhstan", "metadata": {}, "outputs": [ @@ -2512,7 +3306,7 @@ " {'name': 'Priene', 'language': 'lat'}]}]" ] }, - "execution_count": 81, + "execution_count": 27, "metadata": {}, "output_type": "execute_result" } @@ -2532,7 +3326,7 @@ }, { "cell_type": "code", - "execution_count": 82, + "execution_count": 28, "id": "local-assessment", "metadata": {}, "outputs": [ @@ -2555,7 +3349,7 @@ " 'updated_at': '2021-09-09T19:09:12.954734Z'}" ] }, - "execution_count": 82, + "execution_count": 28, "metadata": {}, "output_type": "execute_result" } @@ -2572,12 +3366,12 @@ "source": [ "### Scholia\n", "\n", - "Many epigrams are associated with scholia: the scholia on the Codex palatinus 23." + "On the *Codex Palatinus 23*, *scholia* are often associated to epigrams. Those *scholia* are also rendered on the platform and hence on the API. " ] }, { "cell_type": "code", - "execution_count": 83, + "execution_count": 30, "id": "noted-singer", "metadata": {}, "outputs": [ @@ -2596,7 +3390,7 @@ " 'url': '/passages/urn:cts:greekLit:tlg5011.tlg001.sag:6.13.2/'}]" ] }, - "execution_count": 83, + "execution_count": 30, "metadata": {}, "output_type": "execute_result" } @@ -2610,24 +3404,22 @@ "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", + "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 named 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", - "`/passages/urn:cts:greekLit:tlg5011.tlg001.sag:6.13.2/`\n", + "> For example: `/passages/urn:cts:greekLit:tlg5011.tlg001.sag:6.13.2/`\n", "\n", - "A scholium contains very similar information as an epigram: texts in different languages, the picture of the manuscript etc.\n", + "A scholium contains very similar information as an epigram: texts in different languages, the picture of the manuscript (in iiif), cities, keywords, commentaries.\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": 84, + "execution_count": 31, "id": "expired-miller", "metadata": {}, "outputs": [ @@ -2662,7 +3454,7 @@ }, { "cell_type": "code", - "execution_count": 85, + "execution_count": 32, "id": "detected-extraction", "metadata": {}, "outputs": [ @@ -2675,7 +3467,7 @@ " 'language': ['fra']}]" ] }, - "execution_count": 85, + "execution_count": 32, "metadata": {}, "output_type": "execute_result" } @@ -2691,14 +3483,14 @@ "source": [ "### External references\n", "\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", + "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 \"scientific\". They can be link to a pop song, for example.\n", "\n", "They are just hyperlinks. For example:" ] }, { "cell_type": "code", - "execution_count": 86, + "execution_count": 33, "id": "mental-young", "metadata": {}, "outputs": [ @@ -2713,7 +3505,7 @@ " 'url': 'https://www.youtube.com/watch?v=ph6piqBnkgU'}]" ] }, - "execution_count": 86, + "execution_count": 33, "metadata": {}, "output_type": "execute_result" } @@ -2730,14 +3522,16 @@ "source": [ "### Internal references\n", "\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", + "Internal references are links between epigrams of the anthology. The relationship is symmetrical. \n", "\n", - "For the moment the type of internal reference has not been specified - it will probably always be \"default\"." + "Many types of links are possible. An epigram can be the variation of another (and there are different kind of variation) or just have a vague link. \n", + "\n", + "This is still work in progress ; the type of internal reference will most probably always be \"default\"." ] }, { "cell_type": "code", - "execution_count": 87, + "execution_count": 34, "id": "christian-mercury", "metadata": {}, "outputs": [ @@ -2756,7 +3550,7 @@ " 'reference_type': 'Default'}]" ] }, - "execution_count": 87, + "execution_count": 34, "metadata": {}, "output_type": "execute_result" } @@ -2779,7 +3573,7 @@ }, { "cell_type": "code", - "execution_count": 88, + "execution_count": 35, "id": "fitting-finding", "metadata": {}, "outputs": [], @@ -2789,7 +3583,7 @@ }, { "cell_type": "code", - "execution_count": 89, + "execution_count": 36, "id": "interracial-battle", "metadata": {}, "outputs": [ @@ -2844,7 +3638,7 @@ " 'images': []}" ] }, - "execution_count": 89, + "execution_count": 36, "metadata": {}, "output_type": "execute_result" } @@ -2855,7 +3649,7 @@ }, { "cell_type": "code", - "execution_count": 90, + "execution_count": 37, "id": "genuine-happiness", "metadata": {}, "outputs": [ @@ -2866,7 +3660,7 @@ " 'http://data.perseus.org/catalog/urn:cts:greekLit:tlg0533']" ] }, - "execution_count": 90, + "execution_count": 37, "metadata": {}, "output_type": "execute_result" } @@ -2885,7 +3679,7 @@ }, { "cell_type": "code", - "execution_count": 91, + "execution_count": 38, "id": "nearby-vault", "metadata": {}, "outputs": [ @@ -2896,7 +3690,7 @@ " 'https://pleiades.stoa.org/places/550763']" ] }, - "execution_count": 91, + "execution_count": 38, "metadata": {}, "output_type": "execute_result" } @@ -2907,32 +3701,27 @@ }, { "cell_type": "markdown", - "id": "mechanical-harbor", + "id": "imported-kidney", "metadata": {}, "source": [ "## Manuscript Annotation API\n", "\n", - "It is an api developped by the Library of Heidelberg.\n", + "We will shortly describe the API developped by the Palatine Library of Heidelberg regarding the annotation of the manuscript. \n", "\n", + "All the annotations can be retrieved as follows:\n", "\n", - "Al the annotation can be retrieved as follows:" - ] - }, - { - "cell_type": "markdown", - "id": "imported-kidney", - "metadata": {}, - "source": [ "The manuscript has 649 pages. If one wants all the annotation `a` should be 0 and `b` 648. \n", "\n", "**It is only the Codex Palatinus 23 and not the Sup Graec 384!**\n", "\n", + "Indeed, the Palatine Library of Heidelberg contains the [first 13 books of the Palatine Anthology](https://digi.ub.uni-heidelberg.de/diglit/cpgraec23/0079/image,info) (from pages 49 to 614). Books 14 et 15 (pages 615 to 709) are held at the Bibliothèque Nationale de France under the name [*Parisinus Supplementum Graecum 384*](https://gallica.bnf.fr/ark:/12148/btv1b8470199g). \n", + "\n", "Let us look just at some annotations:" ] }, { "cell_type": "code", - "execution_count": 92, + "execution_count": 39, "id": "transsexual-salad", "metadata": {}, "outputs": [], @@ -2959,7 +3748,7 @@ }, { "cell_type": "code", - "execution_count": 93, + "execution_count": 40, "id": "pursuant-helena", "metadata": {}, "outputs": [ @@ -10771,7 +11560,7 @@ " 'created': '2021-09-27T13:06:19.432Z'}]}" ] }, - "execution_count": 93, + "execution_count": 40, "metadata": {}, "output_type": "execute_result" } @@ -10779,22 +11568,6 @@ "source": [ "getAnnotations(590,599)" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "d8282b21", - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "tight-mapping", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {