{ "info": { "author": "David Larlet", "author_email": "david@larlet.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "redis_triplestore\n-----------------\n\nImplements a triplestore using Redis to store relations, in Python.\n\nRequires Redis 2.0+, newest version of redis-py and redis_wrap.\n\nredis-py can be downloaded from here:\n* http://github.com/andymccurdy/redis-py\n\nNote that you can use the requirements.txt file to install dependencies with pip.\n\nExamples\n--------\n\nAtribution::\n\n FOAF = Namespace('http://xmlns.com/foaf/0.1/')\n\n frodo = Resource('http://example.com/comte/frodo', **{\n FOAF.name: 'Frodo',\n FOAF.familyName: 'Baggins',\n })\n assert frodo[FOAF.name] == 'Frodo'\n \nPersistence::\n\n frodo = Resource('http://example.com/comte/frodo')\n assert frodo[FOAF.name] == 'Frodo'\n \n gandalf = Resource('http://example.com/wizards/gandalf', **{\n FOAF.name: 'Gandalf',\n FOAF.familyName: 'the White',\n })\n saruman = Resource('http://example.com/wizards/saruman', **{\n FOAF.name: 'Saruman',\n FOAF.familyName: 'of Many Colors',\n })\n \nRelations::\n\n frodo.add_relation(FOAF.knows, gandalf)\n assert frodo.relations(FOAF.knows) == [gandalf]\n gandalf.add_relation(FOAF.knows, saruman)\n assert gandalf.relations(FOAF.knows) == [saruman]\n assert gandalf.reversed_relations(FOAF.knows) == [frodo]\n frodo.add_relation(FOAF.knows, saruman)\n assert frodo.relations(FOAF.knows) == [gandalf, saruman]\n \nClean up::\n\n frodo.delete_relation(FOAF.knows, saruman)\n assert frodo.relations(FOAF.knows) == [gandalf]\n frodo.delete_relation(FOAF.knows, gandalf)\n gandalf.delete_relation(FOAF.knows, saruman)\n assert gandalf.relations(FOAF.knows) == []\n assert gandalf.reversed_relations(FOAF.knows) == []\n frodo.remove()\n gandalf.remove()\n saruman.remove()\n assert frodo[FOAF.name] == None\n\nCopyright: 2010 by David Larlet\nLicense: BSD.", "description_content_type": null, "docs_url": null, "download_url": "http://code.welldev.org/redis_triplestore/downloads/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://code.welldev.org/redis_triplestore/", "keywords": "redis triplestore", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "redis_triplestore", "package_url": "https://pypi.org/project/redis_triplestore/", "platform": "Any", "project_url": "https://pypi.org/project/redis_triplestore/", "project_urls": { "Download": "http://code.welldev.org/redis_triplestore/downloads/", "Homepage": "http://code.welldev.org/redis_triplestore/" }, "release_url": "https://pypi.org/project/redis_triplestore/0.1/", "requires_dist": null, "requires_python": null, "summary": "Implements a triplestore using Redis to store relations, in Python.", "version": "0.1" }, "last_serial": 798666, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6e28490a327bba1acd76124e9cc37f6d", "sha256": "d21b13ec11b63d08c02d44972322a569fbb6b2a927b3feec1831892579be7f63" }, "downloads": -1, "filename": "redis_triplestore-0.1.tar.gz", "has_sig": false, "md5_digest": "6e28490a327bba1acd76124e9cc37f6d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2493, "upload_time": "2010-12-02T18:34:36", "url": "https://files.pythonhosted.org/packages/7e/07/f354463dbad3be02cd8a669e9af7a0876bc5939ec530e62926c27fd99062/redis_triplestore-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6e28490a327bba1acd76124e9cc37f6d", "sha256": "d21b13ec11b63d08c02d44972322a569fbb6b2a927b3feec1831892579be7f63" }, "downloads": -1, "filename": "redis_triplestore-0.1.tar.gz", "has_sig": false, "md5_digest": "6e28490a327bba1acd76124e9cc37f6d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2493, "upload_time": "2010-12-02T18:34:36", "url": "https://files.pythonhosted.org/packages/7e/07/f354463dbad3be02cd8a669e9af7a0876bc5939ec530e62926c27fd99062/redis_triplestore-0.1.tar.gz" } ] }