{"id":37073402,"url":"https://github.com/wefindx/metawiki","last_synced_at":"2026-01-14T08:37:00.402Z","repository":{"id":57441152,"uuid":"161397063","full_name":"wefindx/metawiki","owner":"wefindx","description":"Simple map for urls of concept definitions across notable sources.","archived":false,"fork":false,"pushed_at":"2019-11-11T06:46:35.000Z","size":63,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T21:56:04.693Z","etag":null,"topics":["concept-mapping","namespacing","url-shortener"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wefindx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-11T21:38:49.000Z","updated_at":"2025-02-13T16:33:24.000Z","dependencies_parsed_at":"2022-09-02T08:21:09.225Z","dependency_job_id":null,"html_url":"https://github.com/wefindx/metawiki","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wefindx/metawiki","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wefindx%2Fmetawiki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wefindx%2Fmetawiki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wefindx%2Fmetawiki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wefindx%2Fmetawiki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wefindx","download_url":"https://codeload.github.com/wefindx/metawiki/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wefindx%2Fmetawiki/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:31:27.429Z","status":"ssl_error","status_checked_at":"2026-01-14T08:31:19.098Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["concept-mapping","namespacing","url-shortener"],"created_at":"2026-01-14T08:36:59.713Z","updated_at":"2026-01-14T08:37:00.382Z","avatar_url":"https://github.com/wefindx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# metawiki\n\n_Namespaces are one honking great idea -- let's do more of those!_\n\nIn order to refer to a concept unambiguously, these days, it is easiest to use URL to a dictionary word online. However, these URLs are long. Using a hash function or compressor like md5, zlib, etc. for URLs are not convenient, because results are not human-readable.\n\nTHUS:\n\nIt makes sense to define a specific **[MAP](/metawiki/map.py)** function, that implements a namespace to refer to all concepts on the web. Mostly, concepts are defined on wikis, so call it - `metawiki`.\n\n`pip install metawiki`\n\n```python\n\u003e\u003e\u003e from metawiki import (\n    url2name,\n    name2url\n)\n```\n\n## [GitHub  wikis](https://help.github.com/en/github/building-a-strong-community/about-wikis) (GH namespace)\nAll wikis of GitHub repositories under users and organizations.\n\n```\n\u003e\u003e\u003e url2name('https://github.com/infamily/indb/wiki/percent-change#1hourly')\n'GH:infamily/indb/percent-change#1hourly'\n\n\u003e\u003e\u003e name2url('GH:infamily/terms/level')\nhttps://github.com/infamily/terms/wiki/level\n```\n\nIn addition, namespace **GHF** also exists, to refer to files on GitHub repositories:\n```\n\u003e\u003e\u003e url2name('https://github.com/wefindx/metawiki/metawiki/map.py')\n'GHF:wefindx/metawiki/metawiki/map.py'\n\n\u003e\u003e\u003e name2url('GHF:wefindx/metawiki/metawiki/map.py')\n'https://github.com/wefindx/metawiki/blob/master/metawiki/map.py'\n```\n\nThe reason we use `/` instead of `.` for namespacing in each source, is because this makes it usable as keys in the key-value databases, that rely on `.` for queries.\n\nThe general resulting pattern, is, e.g.:\n\n```\nNamespace:Path/In/Organization/Concept#Format\n\n# E.g.\nGH:nasa/terms/precession#\u003csome metric or measure\u003e\n```\n\n## [Wikidata](https://www.wikidata.org/) (WD namespace)\n\nThe Wikidata namespace. All concepts and relations from WikiData.\n```\n\u003e\u003e\u003e url2name('https://www.wikidata.org/wiki/Q1347367')\n'WD:Q1347367'\n\n\u003e\u003e\u003e name2url('WD:Q1347367')\n'https://www.wikidata.org/wiki/Q1347367'\n\n\u003e\u003e\u003e url2name('https://www.wikidata.org/wiki/Property:P31')\n'WD:P31'\n...\n```\n\n## [LOV](https://lov.linkeddata.es/dataset/lov/vocabs/) (a-loc..zbwext namespaces)\n\nThe LOV namespaces. (Most of the semantic web, as defined through RDF initiative.)\n\nGet the newest after importing metawiki with `metawiki.data.update_lov()`.\n\n\n_Feel free to PR, to extend the [map](/metawiki/map.py)._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwefindx%2Fmetawiki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwefindx%2Fmetawiki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwefindx%2Fmetawiki/lists"}