{"id":18377071,"url":"https://github.com/bbc/rdfspace","last_synced_at":"2025-10-14T02:09:44.843Z","repository":{"id":10080926,"uuid":"12137906","full_name":"bbc/rdfspace","owner":"bbc","description":"RDFSpace constructs a vector space from any RDF dataset which can be used for computing similarities between resources in that dataset.","archived":false,"fork":false,"pushed_at":"2013-11-08T11:14:28.000Z","size":402,"stargazers_count":40,"open_issues_count":0,"forks_count":7,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-10-14T02:09:44.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"alexandru/scala-best-practices","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-15T15:37:08.000Z","updated_at":"2025-07-11T16:53:36.000Z","dependencies_parsed_at":"2022-09-22T03:42:52.250Z","dependency_job_id":null,"html_url":"https://github.com/bbc/rdfspace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bbc/rdfspace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Frdfspace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Frdfspace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Frdfspace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Frdfspace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbc","download_url":"https://codeload.github.com/bbc/rdfspace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Frdfspace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017668,"owners_count":26086124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T00:26:05.213Z","updated_at":"2025-10-14T02:09:44.825Z","avatar_url":"https://github.com/bbc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"RDFSpace\n========\n\nThis Python library helps generating a low-dimensional vector space from very large RDF graphs in a reasonable time.\nFor example it is possible to process large sections of DBpedia on a commodity laptop. Once this\nspace is generated, it can be used to compute fast similarities between URIs, or to compute\nthe Eigenvector Centrality (~pagerank) of URIs.\n\nGetting started\n---------------\n\nSetting up:\n\n    $ apt-get install python-pip python-librdf python-numpy python-scipy python-nose\n\nInstalling:\n \n    $ python setup.py install\n    # (You might have to run that twice to get around https://github.com/piskvorky/sparsesvd/pull/4)\n\nRunning the tests:\n\n    $ nosetests\n\nOr from pypi:\n\n    $ pip install rdfspace\n\nExample use\n-----------\n\n    $ cd examples\n    $ gunzip influencedby.nt.gz\n    $ python\n    \u003e\u003e\u003e import rdfspace\n    \u003e\u003e\u003e from rdfspace.space import Space\n    \u003e\u003e\u003e space = Space('influencedby.nt', ignored_predicates=['http://www.w3.org/1999/02/22-rdf-syntax-ns#type'], rank=50)\n    \u003e\u003e\u003e space.similarity('http://dbpedia.org/resource/JavaScript', 'http://dbpedia.org/resource/ECMAScript')\n    \u003e\u003e\u003e space.centrality('http://dbpedia.org/resource/JavaScript')\n    \u003e\u003e\u003e space.similarity('http://dbpedia.org/resource/Albert_Camus', 'http://dbpedia.org/resource/JavaScript')\n    \u003e\u003e\u003e space.centrality('http://dbpedia.org/resource/Albert_Camus')\n    \u003e\u003e\u003e space.similar('http://dbpedia.org/resource/Albert_Camus')\n\nHow it works\n------------\n\nRDFSpace construct a sparse adjacency matrix from an input RDF file.\nWe perform Singular Value Decomposition on this sparse adjacency matrix\nto approximate this space, which gives us a lower-dimensional space\ncapturing URI similarities. This space can then be used for a wide range\nof uses, e.g. automated tagging, disambiguation, etc.\n\n\nLicensing terms and authorship\n------------------------------\n\nSee 'COPYING' and 'AUTHORS' files.\n\nAll code here, except where otherwise indicated, is licensed under\nthe GNU Affero General Public License version 3. This license includes\nmany restrictions. If this causes a problem, please contact us.\nSee \"AUTHORS\" for contact details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbc%2Frdfspace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbc%2Frdfspace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbc%2Frdfspace/lists"}