{"id":25205181,"url":"https://github.com/sparna-git/glottolog2rdf","last_synced_at":"2025-04-05T01:10:10.061Z","repository":{"id":50181725,"uuid":"224689924","full_name":"sparna-git/glottolog2rdf","owner":"sparna-git","description":"Glottolog 2 RDF conversion","archived":false,"fork":false,"pushed_at":"2022-12-08T03:15:06.000Z","size":29,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T21:11:19.586Z","etag":null,"topics":["glottolog","languages","linguistics","python3","rdf"],"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/sparna-git.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":"2019-11-28T16:15:17.000Z","updated_at":"2020-03-17T08:07:14.000Z","dependencies_parsed_at":"2023-01-25T03:45:11.018Z","dependency_job_id":null,"html_url":"https://github.com/sparna-git/glottolog2rdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparna-git%2Fglottolog2rdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparna-git%2Fglottolog2rdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparna-git%2Fglottolog2rdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparna-git%2Fglottolog2rdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparna-git","download_url":"https://codeload.github.com/sparna-git/glottolog2rdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271528,"owners_count":20911587,"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","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":["glottolog","languages","linguistics","python3","rdf"],"created_at":"2025-02-10T09:19:17.245Z","updated_at":"2025-04-05T01:10:10.039Z","avatar_url":"https://github.com/sparna-git.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Glottolog 2 RDF\n\nThis Python script converts the content of the [Glottolog GitHub repository](https://github.com/glottolog), source of the [Glottolog website](https://glottolog.org/) into RDF. It converts parts of the languoid data, and also some metadata about bibliographic references.\n\nThis allows to manipulate the data from Glottolog prior to one of its official release. Note that Glottolog offers official RDF releases from its [download page](https://glottolog.org/meta/downloads).\n\nThis script does _not_ generate an official Glottolog RDF release. The structure of the output graph differs from the official Glottolog RDF data.\n\nThe script generates an output Turtle file.\n\n## Prerequisites\n\nTo run this, you need :\n  \n  - Python 3 (this has been tested with Python 3.5)\n  - Git (to clone Glottolog repository - see below)\n\n\n## Prerequisites\n\nOn Ubuntu, install python-pkd-resources\n\n```\nsudo apt install python-pkg-resources\n```\n  \n## Setup the script\n\n1. Get a copy of this script, and `cd` into it :\n\n```\ngit clone https://github.com/sparna-git/glottolog2rdf.git\ncd glottolog2rdf\n```\n\n2. Open a new virtual environment and activate it\n\n```\npython3.5 -m venv glottolog2rdf-venv\nsource glottolog2rdf-venv/bin/activate\n```\n\n3. Install the dependencies in the virtual environment :\n\n```\npip install -r requirements.txt\n```\n\n## Get a copy of Glottolog repository\n\n```\ngit clone https://github.com/glottolog/glottolog.git\n```\n\nThe Glottolog repository is ~600Mb.\n\n\n## Run the Glottolog 2 RDF conversion\n\nThe script takes 2 parameters :\n  1. Path to source Glottolog repository\n  2. Path to output Turtle file\n  \nTo run it, make sure you are in the virtual environment, and run `main.py` with the 2 arguments :\n\n```\npython3.5 main.py '/path/to/glottolog' output-full-glottolog.ttl\n```\n\nThe process takes about 90 minutes to complete, depending on your hardware.\n\nThe conversion generates ~ 2.2 million triples.\n\n## Tests\n\nUsage : `python -m pytest`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparna-git%2Fglottolog2rdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparna-git%2Fglottolog2rdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparna-git%2Fglottolog2rdf/lists"}