{ "info": { "author": "Yves Raimond", "author_email": "yves.raimond@bbc.co.uk", "bugtrack_url": null, "classifiers": [], "description": "RDFSim\n======\n\nThis Python library helps generating a vector space from very large hierarchies encoded in RDF. An obvious example application is to generate a vector space from a SKOS hierarchy or an RDFS subclass hierarchy.\n\nGetting started\n---------------\n\nRunning the tests:\n\n $ nosetests\n\nInstalling:\n \n $ python setup.py install\n\nExample use\n-----------\n\n $ wget http://downloads.dbpedia.org/3.7/en/skos_categories_en.nt.bz2\n $ bunzip2 skos_categories_en.nt.bz2\n $ python\n >>> from rdfsim.space import Space\n >>> space = Space('skos_categories_en.nt')\n >>> space.similarity_uri(category1, category2)\n\nConstructing a vector space for the entire DBpedia SKOS category\nhierarchy (3M triples) takes a couple of minutes on a commodity laptop, \nand has a memory footprint of about 500M.\n\nAlternatively, a subset of it is available in the examples/ directory.\n\nHow it works\n------------\n\nFor each topic t in the hierarchy, we consider the set of its parents\nparents(t, k) at a level k. We construct a vector for each t in a space\nwhere each dimension corresponds to a topic d in the hierarchy. The value\nof t on dimension d is defined as follows:\n\n t_d = \\sum_{k = 0}^{max_depth} \\sum_{d \\in parents(t, k)} decay^k\n\nwhere max_depth and decay are two parameters, which can be used to influence\nhow much importance we attach to ancestors that are high in the\ncategory hierarchy.\n\nThey can be specified as follows:\n\n >>> Space.max_depth = 8\n >>> Space.decay = 0.9\n\nLicensing terms and authorship\n------------------------------\n\nSee 'COPYING' and 'AUTHORS' files.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "rdfsim", "package_url": "https://pypi.org/project/rdfsim/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/rdfsim/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/rdfsim/0.3/", "requires_dist": null, "requires_python": null, "summary": "Modelling RDF data as a vector space", "version": "0.3" }, "last_serial": 1139442, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "18ab78576e4360fa5831f7d5c0c1dc87", "sha256": "6a1b3b3f8586bdf7a8e97729350790b27bb57a9ab5ba4ba47e200a5287a9300b" }, "downloads": -1, "filename": "rdfsim-0.1.tar.gz", "has_sig": false, "md5_digest": "18ab78576e4360fa5831f7d5c0c1dc87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3530, "upload_time": "2013-01-23T15:47:32", "url": "https://files.pythonhosted.org/packages/99/2e/5f4febdfe805cc38b2292beeb5a2b044a2a7fef88320bc6cee9adcd92ae4/rdfsim-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "788a88d987357f0c28d1d7df1a50334b", "sha256": "973d8754de0009fa5736c7b535fa9f8efe6b775c89c09e123488ba207c3df19c" }, "downloads": -1, "filename": "rdfsim-0.2.tar.gz", "has_sig": false, "md5_digest": "788a88d987357f0c28d1d7df1a50334b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3537, "upload_time": "2013-01-25T17:56:06", "url": "https://files.pythonhosted.org/packages/a4/d2/3fe3bfcc3e8f6cf23ac34522935b752ff980fbb55888b4f727b3075ee4fe/rdfsim-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "9d0132f7bfa995f6a99f56417e56deb6", "sha256": "f649e5eefe7bcb4d3d3921375ea6621527c2befa1dca25a416e8e94bb413f6de" }, "downloads": -1, "filename": "rdfsim-0.3.tar.gz", "has_sig": false, "md5_digest": "9d0132f7bfa995f6a99f56417e56deb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3559, "upload_time": "2014-06-27T09:00:05", "url": "https://files.pythonhosted.org/packages/37/02/e641b435d141660b0c68db827f6833f664203efb7501dad0a10b361d926a/rdfsim-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9d0132f7bfa995f6a99f56417e56deb6", "sha256": "f649e5eefe7bcb4d3d3921375ea6621527c2befa1dca25a416e8e94bb413f6de" }, "downloads": -1, "filename": "rdfsim-0.3.tar.gz", "has_sig": false, "md5_digest": "9d0132f7bfa995f6a99f56417e56deb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3559, "upload_time": "2014-06-27T09:00:05", "url": "https://files.pythonhosted.org/packages/37/02/e641b435d141660b0c68db827f6833f664203efb7501dad0a10b361d926a/rdfsim-0.3.tar.gz" } ] }