{ "info": { "author": "LD4Apps Team", "author_email": "frankb@ca.ibm.com", "bugtrack_url": null, "classifiers": [], "description": "LD4Apps (Linked Data for Applications)\r\n======================================\r\n\r\nLD4Apps is an Apache2 licensed Python library for Linked Data for Applications (LDA).\r\nLDA helps you implement applications that will be part of a bigger coherent system, for \r\nexample a web-site made up of multiple applications that talk to each other. LDA\r\napplications are system components that communicate entirely through HTTP/REST\r\ninterfaces.\r\n\r\nInstallation\r\n------------\r\n\r\nTo install LD4Apps:\r\n\r\n.. code-block:: bash\r\n\r\n pip install ld4apps\r\n\r\nThe LDA framework requires a running back-end database for storing application data. \r\nThe default storage implementation uses MongoDB, so the fastest way to get started is\r\nto simply go to the `MongoDB download page `_ and download \r\nthe appropriate version for your OS.\r\n\r\nOnce MongoDB has downloaded, execute the following commands:\r\n\r\n.. code-block:: bash\r\n\r\n cd /bin\r\n mongod\r\n\r\nAt this point, MonoDB should be running and listening on its default host and port (localhost:27017).\r\n\r\nTo configure LDA with the MongoDB server, 3 environment variables also need to be set:\r\n \r\n1. MONGODB_DB_HOST - hostname of the MONGODB server to use\r\n2. MONGODB_DB_PORT - the MONGDOB server port\r\n3. APP_NAME - the name of you application, which is used as the DB name where the resources will be stored\r\n\r\nExample\r\n-------\r\n\r\nYou can create a Linked-Data resource using the *ld4apps.lda* module like this:\r\n\r\n.. code-block:: python\r\n\r\n >>> import os\r\n >>> os.environ['MONGODB_DB_HOST'] = 'localhost'\r\n >>> os.environ['MONGODB_DB_PORT'] = '27017'\r\n >>> os.environ['APP_NAME'] = 'teststore'\r\n >>> from ld4apps import lda\r\n >>> foo_container_environ = {'HTTP_HOST': 'localhost', 'PATH_INFO': '/tst/foo', 'QUERY_STRING': ''}\r\n >>> new_foo_resource = {'rdfs_label': 'my foo', 'rdf_type': 'http://example.org#Foo'}\r\n >>> body, status, headers = lda.create_document(foo_container_environ, new_foo_resource, 'in_foo_container')\r\n INFO:ld4apps.mongodbstorage.operation_primitives:created document http://localhost/tst/foo/4.1\r\n >>> status\r\n 201\r\n >>> import json\r\n >>> print json.dumps(body, indent=4)\r\n {\r\n \"ce_owner\": \"http://localhost/unknown_user/da36bb01-0d1c-438a-9d00-9940085aae20\",\r\n \"rdfs_label\": \"my foo\",\r\n \"in_foo_container\": \"http://localhost/tst/foo\",\r\n \"ce_lastModified\": \"2015-04-28T18:30:40.993176+00:00\",\r\n \"dc_created\": \"2015-04-28T18:30:40.993176+00:00\",\r\n \"ac_resource-group\": \"http://localhost/\",\r\n \"_subject\": \"http://localhost/tst/foo/3.2\",\r\n \"ce_revision\": \"0\",\r\n \"ce_lastModifiedBy\": \"http://localhost/unknown_user/da36bb01-0d1c-438a-9d00-9940085aae20\",\r\n \"dc_creator\": \"http://localhost/unknown_user/da36bb01-0d1c-438a-9d00-9940085aae20\",\r\n \"rdf_type\": \"http://example.org#Foo\"\r\n }\r\n\r\nAn example using ld4apps along with `Flask `_ to implement a simple \"todo list\" web-server \r\ncan be found here: https://github.com/ld4apps/lda-examples/tree/ld4apps/todo-flask.\r\n\r\nDocumentation\r\n-------------\r\n\r\nDocumentation is available at http://ld4apps.github.io/.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ld4apps/lda-serverlib/tree/ld4apps", "keywords": null, "license": "Apache Software License", "maintainer": null, "maintainer_email": null, "name": "ld4apps", "package_url": "https://pypi.org/project/ld4apps/", "platform": "any", "project_url": "https://pypi.org/project/ld4apps/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ld4apps/lda-serverlib/tree/ld4apps" }, "release_url": "https://pypi.org/project/ld4apps/0.9.7/", "requires_dist": null, "requires_python": null, "summary": "Linked Data for Applications Server Library", "version": "0.9.7" }, "last_serial": 1544277, "releases": { "0.9.1": [ { "comment_text": "", "digests": { "md5": "7f7ae3d5ebb64765edf1043bdc63bacd", "sha256": "b84ba7c0cd3c8d0463a5a4dd08e5549ca4f3301b98cdd11afcb19de129d5432b" }, "downloads": -1, "filename": "ld4apps-0.9.1.tar.gz", "has_sig": false, "md5_digest": "7f7ae3d5ebb64765edf1043bdc63bacd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42206, "upload_time": "2015-04-27T22:01:12", "url": "https://files.pythonhosted.org/packages/74/bc/494c7074051e0794e9f61944ac674627b1235bd7076c8684756ef765dacb/ld4apps-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "ba1a396d195078b8d0fd13ac975da71d", "sha256": "a43ff7edccdd4a02e77d56ed2e87a7958cadcbbc7db138b96baa8e3e37cc9eff" }, "downloads": -1, "filename": "ld4apps-0.9.2.tar.gz", "has_sig": false, "md5_digest": "ba1a396d195078b8d0fd13ac975da71d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42207, "upload_time": "2015-04-28T13:57:17", "url": "https://files.pythonhosted.org/packages/d8/b4/2dc1ab74d994c2437f406cf1e52e03a36f7834ed9b96e6daf395c893804f/ld4apps-0.9.2.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "3d7ae18e5ae6acb49b0f78673dfbcfb9", "sha256": "a546065801191c83d7006e65c10da4876b4c53ad75fd509f86ad1df44f7334d0" }, "downloads": -1, "filename": "LD4Apps-0.9.3.tar.gz", "has_sig": false, "md5_digest": "3d7ae18e5ae6acb49b0f78673dfbcfb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44614, "upload_time": "2015-04-28T21:20:49", "url": "https://files.pythonhosted.org/packages/e3/2a/016e1098fa7c3f8a4a17630ef0b85bcea72163f86eb90a3fc6df41a74149/LD4Apps-0.9.3.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "88eeb5b1c8d4b8393c10b0635c0d958f", "sha256": "f7a3e22ac536f429d9be69d79b8e581f5118fa2eb30ac3b6dce130d833130133" }, "downloads": -1, "filename": "LD4Apps-0.9.4.tar.gz", "has_sig": false, "md5_digest": "88eeb5b1c8d4b8393c10b0635c0d958f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44710, "upload_time": "2015-04-30T20:51:44", "url": "https://files.pythonhosted.org/packages/ff/98/fc2ab0950f849fbcf9e144d72c32448fea794a7bc285aa24c5820824aef4/LD4Apps-0.9.4.tar.gz" } ], "0.9.5": [ { "comment_text": "", "digests": { "md5": "92157e45fe21c43362ccfffd88bdfbd3", "sha256": "ba6185371854e2d2587c1e37f4fd30482bdd51fd6935d64d72b3bfde65a483dc" }, "downloads": -1, "filename": "LD4Apps-0.9.5.tar.gz", "has_sig": false, "md5_digest": "92157e45fe21c43362ccfffd88bdfbd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45013, "upload_time": "2015-05-01T15:39:57", "url": "https://files.pythonhosted.org/packages/05/b8/d1e69e6092f53f08592dea7cc8ab8b951b5c144a82e1afb15a71ff10b306/LD4Apps-0.9.5.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "eb989dd76e7efd179160ee8e2fb51b2d", "sha256": "97762d1eb5fbd1a81afc23f4daa52bd31af5afd16bc15d0beb62d15cf38b8269" }, "downloads": -1, "filename": "LD4Apps-0.9.6.tar.gz", "has_sig": false, "md5_digest": "eb989dd76e7efd179160ee8e2fb51b2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49100, "upload_time": "2015-05-06T15:42:19", "url": "https://files.pythonhosted.org/packages/f9/0d/0073bf5a25e1f3b4b0b9a88bbbe432ee77647130cf23b96e04ffdc528c7b/LD4Apps-0.9.6.tar.gz" } ], "0.9.7": [ { "comment_text": "", "digests": { "md5": "af9a23cfb033150a63c891bcd93c3c94", "sha256": "d7232c066b004b7a88f327fb9dbd3d50e55408c6a1777a6d824e90f9c3a61278" }, "downloads": -1, "filename": "LD4Apps-0.9.7.tar.gz", "has_sig": false, "md5_digest": "af9a23cfb033150a63c891bcd93c3c94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49220, "upload_time": "2015-05-12T19:46:47", "url": "https://files.pythonhosted.org/packages/f9/8e/0f2949c6f9d3e2ffa36d2a8894a44a433c0e77aa21d155c047cfbbad2b9d/LD4Apps-0.9.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "af9a23cfb033150a63c891bcd93c3c94", "sha256": "d7232c066b004b7a88f327fb9dbd3d50e55408c6a1777a6d824e90f9c3a61278" }, "downloads": -1, "filename": "LD4Apps-0.9.7.tar.gz", "has_sig": false, "md5_digest": "af9a23cfb033150a63c891bcd93c3c94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49220, "upload_time": "2015-05-12T19:46:47", "url": "https://files.pythonhosted.org/packages/f9/8e/0f2949c6f9d3e2ffa36d2a8894a44a433c0e77aa21d155c047cfbbad2b9d/LD4Apps-0.9.7.tar.gz" } ] }