{ "info": { "author": "Matteo Romanello", "author_email": "matteo.romanello@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Science/Research", "Operating System :: POSIX", "Programming Language :: Python :: 2.7" ], "description": "# HuCit Knowledge Base\n\n## Status\n\n[![PyPI version](https://badge.fury.io/py/hucitlib.svg)](https://badge.fury.io/py/hucitlib)\n[![Build Status](http://img.shields.io/travis/mromanello/hucit_kb.svg)](https://travis-ci.org/mromanello/hucit_kb)\n[![codecov](https://codecov.io/gh/mromanello/hucit_kb/branch/master/graph/badge.svg)](https://codecov.io/gh/mromanello/hucit_kb)\n\n## Description\n\nThe HuCit KB is a knowledge base about classical (Greek and Latin) texts, developed with the precise aim of supporting the automatic extraction of bibliographic references to such texts.\n\nThe data model of the HuCit KB is based on the following ontologies:\n\n* [CIDOC-CRM](http://www.cidoc-crm.org/)\n* [FRBRoo](http://www.cidoc-crm.org/frbroo/)\n* [HuCit](http://www.essepuntato.it/lode/owlapi/http://purl.org/net/hucit)\n\nIt builds upon and connects with the following resources:\n\n* [Classical Works Knowledge Base](http://cwkb.org/linkedopendata)\n* [Perseus Catalog](http://catalog.perseus.org)\n* [Perseus Digital Library](http://perseus.tufts.edu)\n* [Wikidata](http://wikidata.org)\n* [VIAF](http://viaf.org)\n\n## Installation\n\n git clone https://github.com/mromanello/hucit_kb.git\n cd hucit_kb\n python setup.py install\n\nOr via `pip`:\n\n pip install hucitlib\n\n## Command Line\n\nThe library comes with a (development) Command Line Interface.\n\nTo see the documentation, try running:\n\n hucit --help\n\nFor example, you can search works by name:\n\n hucit find \"Iliad\"\n\nor look up authors/works by CTS URNs:\n\n hucit find urn:cts:greekLit:tlg0012.tlg001\n\n## Stats\n\n### Basic stats\n\n| | Total | Min | Max | Mean | Variance |\n|:---------------------|--------:|------:|------:|---------:|-----------:|\n| Author names | 4842 | 1 | 27 | 3.12791 | 9.81298 |\n| Author abbreviations | 774 | 0 | 2 | 0.5 | 0.26309 |\n| Work titles | 10354 | 1 | 31 | 1.99154 | 6.4174 |\n| Work abbreviations | 2377 | 0 | 3 | 0.457203 | 0.574496 |\n\n### LOD stats\n\n| | link to Perseus Catalog (%) | link to CWKB (%) | link to VIAF (%) | link to Wikidata (%) |\n|:--------|-------------------------------:|--------------------:|--------------------:|------------------------:|\n| Authors | 4.91 | 100.00 | 5.88 | 4.91 |\n\n## Example\n\nThis is an example of how to use the HuCit KB programmatically:\n\n```python\n\n>>> import pprint\n>>> import pkg_resources\n>>> from knowledge_base import KnowledgeBase\n\n>>> virtuoso_cfg_file = pkg_resources.resource_filename('knowledge_base','config/virtuoso.ini')\n\n>>> kb = KnowledgeBase(virtuoso_cfg_file)\n\n>>> search_results = kb.search('Omero')\n\n>>> print result.to_json()\n{\n \"name_abbreviations\": [\n \"Hom.\"\n ],\n \"urn\": \"urn:cts:greekLit:tlg0012\",\n \"works\": [\n {\n \"urn\": \"urn:cts:greekLit:tlg0012.tlg001\",\n \"titles\": [\n {\n \"language\": \"it\",\n \"label\": \"Iliade\"\n },\n {\n \"language\": \"la\",\n \"label\": \"Ilias\"\n },\n {\n \"language\": \"en\",\n \"label\": \"Iliad\"\n },\n {\n \"language\": \"de\",\n \"label\": \"Ilias\"\n },\n {\n \"language\": \"fr\",\n \"label\": \"L'Iliade\"\n }\n ],\n \"uri\": \"http://purl.org/hucit/kb/works/2815\",\n \"title_abbreviations\": [\n \"Il.\"\n ]\n },\n {\n \"urn\": \"urn:cts:greekLit:tlg0012.tlg002\",\n \"titles\": [\n {\n \"language\": \"en\",\n \"label\": \"Odyssey\"\n },\n {\n \"language\": \"de\",\n \"label\": \"Odyssee\"\n },\n {\n \"language\": \"la\",\n \"label\": \"Odyssea\"\n },\n {\n \"language\": \"fr\",\n \"label\": \"l'Odyss\\u00e9e\"\n },\n {\n \"language\": \"it\",\n \"label\": \"Odissea\"\n }\n ],\n \"uri\": \"http://purl.org/hucit/kb/works/2816\",\n \"title_abbreviations\": [\n \"Od.\",\n \"Odyss.\"\n ]\n },\n {\n \"urn\": \"urn:cts:cwkb:927.2814\",\n \"titles\": [\n {\n \"language\": \"la\",\n \"label\": \"Epigrammata\"\n }\n ],\n \"uri\": \"http://purl.org/hucit/kb/works/2814\",\n \"title_abbreviations\": [\n \"epigr.\"\n ]\n }\n ],\n \"uri\": \"http://purl.org/hucit/kb/authors/927\",\n \"names\": [\n {\n \"language\": \"fr\",\n \"label\": \"Hom\\u00e8re\"\n },\n {\n \"language\": \"la\",\n \"label\": \"Homerus\"\n },\n {\n \"language\": null,\n \"label\": \"Homeros\"\n },\n {\n \"language\": \"en\",\n \"label\": \"Homer\"\n },\n {\n \"language\": \"it\",\n \"label\": \"Omero\"\n }\n ]\n}\n```\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mromanello/hucit_kb/", "keywords": "", "license": "GPL v3", "maintainer": "", "maintainer_email": "", "name": "hucitlib", "package_url": "https://pypi.org/project/hucitlib/", "platform": "", "project_url": "https://pypi.org/project/hucitlib/", "project_urls": { "Homepage": "https://github.com/mromanello/hucit_kb/" }, "release_url": "https://pypi.org/project/hucitlib/0.2.9/", "requires_dist": [ "docopt", "pyCTS", "surf (>=1.1.9)" ], "requires_python": "", "summary": "", "version": "0.2.9" }, "last_serial": 3428771, "releases": { "0.2.8": [ { "comment_text": "", "digests": { "md5": "f0c828d963818e097a618ea9779dfd0a", "sha256": "2a59ec0f904eef3ac215290cc5f7dbb506072cf514e8cb582da1b039d2d457d4" }, "downloads": -1, "filename": "hucitlib-0.2.8-py2-none-any.whl", "has_sig": false, "md5_digest": "f0c828d963818e097a618ea9779dfd0a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2525716, "upload_time": "2017-10-20T14:09:19", "url": "https://files.pythonhosted.org/packages/45/e7/b5e9f90414b9b6c62d9cc945e2273a7f3f7ae243f5a1232a974566f35572/hucitlib-0.2.8-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2a41879218043f91e0834ce80bac322d", "sha256": "f5f5bb90e6c31b84b822f74074ec953931dc980868707988e7ded75a88cfcd9c" }, "downloads": -1, "filename": "hucitlib-0.2.8.tar.gz", "has_sig": false, "md5_digest": "2a41879218043f91e0834ce80bac322d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1945531, "upload_time": "2017-10-20T14:09:23", "url": "https://files.pythonhosted.org/packages/80/8a/768433eba0d9ae07efae3b4f170a6c15dd9484296ab5c05aba292fe91c17/hucitlib-0.2.8.tar.gz" } ], "0.2.9": [ { "comment_text": "", "digests": { "md5": "39316091d534c7d133bf73c401069aff", "sha256": "c9f67223b8fbf383352ab7d2abc0a4dc766f5d9cef4f53da76a32cb7f08cbef6" }, "downloads": -1, "filename": "hucitlib-0.2.9-py2-none-any.whl", "has_sig": false, "md5_digest": "39316091d534c7d133bf73c401069aff", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2465229, "upload_time": "2017-12-19T16:01:04", "url": "https://files.pythonhosted.org/packages/0e/53/67e4647211c6aa4b0f200b92a171cb52401439b55bcbdd263fb2ff9d2e99/hucitlib-0.2.9-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "39316091d534c7d133bf73c401069aff", "sha256": "c9f67223b8fbf383352ab7d2abc0a4dc766f5d9cef4f53da76a32cb7f08cbef6" }, "downloads": -1, "filename": "hucitlib-0.2.9-py2-none-any.whl", "has_sig": false, "md5_digest": "39316091d534c7d133bf73c401069aff", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2465229, "upload_time": "2017-12-19T16:01:04", "url": "https://files.pythonhosted.org/packages/0e/53/67e4647211c6aa4b0f200b92a171cb52401439b55bcbdd263fb2ff9d2e99/hucitlib-0.2.9-py2-none-any.whl" } ] }