{ "info": { "author": "Kim Nilsson", "author_email": "kim.nilsson@dohi.se", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 2.7" ], "description": "# RDF to HTML converter\n\nThe RDF to HTML converter aims to provide documentation for RDF files by generating\na more human readable version of the data.\n\nThe converter currently supports splitting all subjects of an RDF file into separate paragraphs,\neach with a title, type and description. Each paragraph can then be expanded to show all data\ncontained in the file.\n\nTo further improve the readability, the converter also tries to download the specification\nfor all predicates in the file. This allows it to generate a more readable version of the predicates\nas well.\n\nThe HTML files output by the converter will be HTML files with a language suffix (.en, .sv, etc.)\nto allow tools such as Apache mod_negotiation to serve different languages based on the users\npreferences.\n\n## Setup\n* Create a virtual environment and activate it `virtualenv venv; . venv/bin/activate`\n* Run `python setup.py install` you will now have an executable named `rdf-to-html` in your path\n* Or install it via PyPi `pip install rdf-to-html`\n\n## Run\n\n usage: rdf-to-html [-h] [--languages LANGUAGES] [--watch] [--verbose]\n [--log-file LOG_FILE]\n DCAT_FILE [DCAT_FILE ...] OUTPUT_DIR\n\n RDF to HTML converter.\n\n positional arguments:\n DCAT_FILE DCAT file\n OUTPUT_DIR Output directory\n\n optional arguments:\n -h, --help show this help message and exit\n --languages LANGUAGES\n Languages (on ISO-369-* format) to generate separated\n by comma (,). If omitted all encountered languages are\n generated.\n --watch Watch input files for changes and run the conversion\n when a change occurs.\n --verbose Only log critical events\n --log-file LOG_FILE File to log to. If omitted logging will be sent to\n stdout\n\n\n### Examples\nThe easiest way to run the converter is to simply run in on a single file.\nWhich will create one HTML file for each language present in the DCAT file.\n\n rdf-to-html DCAT_FILE OUTPUT_DIR\n\nIf you only want to generate HTML for specific languages you can specify them as\nflags to the application. If the languages specified aren't exactly the same those encountered in the DCAT file, the program will exit.\nThis functionallity is mainly included to avoid to generate output for DCAT files containing typos in the language tags.\n\n rdf-to-html --languages en,sv DCAT_FILE OUTPUT_DIR\n\nThe typical use case is to setup the script to watch for changes in one or more RDF files.\nThis will enable you to always have an up to date human readable version of your datafile.\nTo do this setup the following code to be run when the server starts.\n\n rdf-to-html --watch DCAT_FILE [DCAT_FILE ...] OUTPUT_DIR\n\n**Note** The watch is bound to a specific inode, not a filename, which means that the script\nwill still monitor the same file if you move/rename it.\n\nAn example HTML page generated by the converter can be found [here](http://opennorth.se/datasets/dcat).\n\n## Develop\nThe generated files can of course be opened manually, but for convenience\na development web server is included at `devel/webserver.py`.\n\nJust run `python webserver.py` in the folder where you have your\ngenerated HTML-files and you can view them in your browser `localhost:8080/YOUR_FILE`.\n\n## CKAN extension\nThis repository includes code to upload data from an RDF file to CKAN in order to show metadata about datasets. The upload script will utilize the extras field in CKAN to store this data. To \ndisplay the data display these nicely you should install [this](https://github.com/openumea/ckanext-rdf-to-html) extension.\n\nFor more information on how to use this extension please refer to the readme [here](https://github.com/openumea/ckanext-rdf-to-html)\n\n## Acknowledgements\n\nThis application was developed by [Dohi Agency](http://dohi.se/agency) in cooperation with\n[Ume\u00e5 Kommun](http://umea.se) in a project financed by\n[Internetfonden](https://www.iis.se/vad-vi-gor/internetfonden/).", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "Open Data,Linked Open Data,RDF,DCAT", "license": "EUPL v1.1", "maintainer": null, "maintainer_email": null, "name": "rdf-to-html", "package_url": "https://pypi.org/project/rdf-to-html/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/rdf-to-html/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/rdf-to-html/1.1.0/", "requires_dist": null, "requires_python": null, "summary": "RDF to HTML converter", "version": "1.1.0" }, "last_serial": 1850180, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "578e285254109b3a75e379b26f7b70ae", "sha256": "c41b22f195f3d2444ef5416c73462edc50ef002ec8486b5ad4b35feebcc5c79f" }, "downloads": -1, "filename": "rdf_to_html-1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "578e285254109b3a75e379b26f7b70ae", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 18588, "upload_time": "2015-11-18T14:13:28", "url": "https://files.pythonhosted.org/packages/5b/59/5e3cececebc788a7b3753d01b2cc7862c0eb88b09265f6bfe13326f0699e/rdf_to_html-1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "24cb6fb9a61bbd49aecac6fad0beb403", "sha256": "6de9a71a125011baf76b6b8cc5c0f2631595ece247224192dce4b0c65d2c63fc" }, "downloads": -1, "filename": "rdf-to-html-1.0.tar.gz", "has_sig": false, "md5_digest": "24cb6fb9a61bbd49aecac6fad0beb403", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11976, "upload_time": "2015-11-18T14:13:23", "url": "https://files.pythonhosted.org/packages/c5/fe/8433c592fac3bd6f31b0e28699e8d666d49820d260be1d978b3db9624a16/rdf-to-html-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "089f1e8099e06af7fc06d44086921428", "sha256": "ea8fc7ae89384ac522bb5af06cc56900883515fc09607d67198f6a9b5a076e90" }, "downloads": -1, "filename": "rdf_to_html-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "089f1e8099e06af7fc06d44086921428", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 18982, "upload_time": "2015-12-03T12:59:28", "url": "https://files.pythonhosted.org/packages/28/0b/05a1d1cb677737c97ce0199eb64613c0738f0100f4bd6758e55cc481a3f9/rdf_to_html-1.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "58578271c7d5e0d43bfad21433404083", "sha256": "299d498218214c94ef5184f8d64df0f6b1d779df484951920ba63342fe98ee9d" }, "downloads": -1, "filename": "rdf-to-html-1.0.1.tar.gz", "has_sig": false, "md5_digest": "58578271c7d5e0d43bfad21433404083", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12161, "upload_time": "2015-12-03T12:59:32", "url": "https://files.pythonhosted.org/packages/d9/f4/cafd39ec372ee5239cb67b68cc6b5f8b98968eb94c3212102f245adbd439/rdf-to-html-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "4fe83a72044214249705cb151f51e000", "sha256": "0eb152016a9afd788231d8dc8cfc9cb65bb9a5478472fd3c5b48fef271b2223b" }, "downloads": -1, "filename": "rdf_to_html-1.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "4fe83a72044214249705cb151f51e000", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 23969, "upload_time": "2015-12-07T14:42:01", "url": "https://files.pythonhosted.org/packages/86/ff/acea1b2c1b25a8bdc0a9cd8856bed555ccea286cfa6521b7707c66dd3c70/rdf_to_html-1.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8cabfcbbc195d76de08f9e55662300be", "sha256": "e075cc2f69a42dd029bc7b25ced81802fb3faf3a3c94e9137ff722930b50a17e" }, "downloads": -1, "filename": "rdf-to-html-1.1.0.tar.gz", "has_sig": false, "md5_digest": "8cabfcbbc195d76de08f9e55662300be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14176, "upload_time": "2015-12-07T14:41:57", "url": "https://files.pythonhosted.org/packages/59/cd/182f0a75020be2854441aae4d33e827d80855ca5479a9f04d4dcb938ccf0/rdf-to-html-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4fe83a72044214249705cb151f51e000", "sha256": "0eb152016a9afd788231d8dc8cfc9cb65bb9a5478472fd3c5b48fef271b2223b" }, "downloads": -1, "filename": "rdf_to_html-1.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "4fe83a72044214249705cb151f51e000", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 23969, "upload_time": "2015-12-07T14:42:01", "url": "https://files.pythonhosted.org/packages/86/ff/acea1b2c1b25a8bdc0a9cd8856bed555ccea286cfa6521b7707c66dd3c70/rdf_to_html-1.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8cabfcbbc195d76de08f9e55662300be", "sha256": "e075cc2f69a42dd029bc7b25ced81802fb3faf3a3c94e9137ff722930b50a17e" }, "downloads": -1, "filename": "rdf-to-html-1.1.0.tar.gz", "has_sig": false, "md5_digest": "8cabfcbbc195d76de08f9e55662300be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14176, "upload_time": "2015-12-07T14:41:57", "url": "https://files.pythonhosted.org/packages/59/cd/182f0a75020be2854441aae4d33e827d80855ca5479a9f04d4dcb938ccf0/rdf-to-html-1.1.0.tar.gz" } ] }