{"id":21198598,"url":"https://github.com/natlibfi/skosify","last_synced_at":"2025-07-10T06:30:41.188Z","repository":{"id":30960008,"uuid":"34518149","full_name":"NatLibFi/Skosify","owner":"NatLibFi","description":"Validate, convert and improve SKOS vocabularies","archived":false,"fork":false,"pushed_at":"2021-08-31T10:50:22.000Z","size":297,"stargazers_count":60,"open_issues_count":12,"forks_count":8,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-06-09T23:02:40.914Z","etag":null,"topics":["code4lib","converter","skos","thesaurus","validate"],"latest_commit_sha":null,"homepage":"http://skosify.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NatLibFi.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-24T12:44:39.000Z","updated_at":"2025-05-13T07:08:04.000Z","dependencies_parsed_at":"2022-09-08T19:13:01.496Z","dependency_job_id":null,"html_url":"https://github.com/NatLibFi/Skosify","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/NatLibFi/Skosify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2FSkosify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2FSkosify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2FSkosify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2FSkosify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NatLibFi","download_url":"https://codeload.github.com/NatLibFi/Skosify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2FSkosify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264538580,"owners_count":23624436,"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":["code4lib","converter","skos","thesaurus","validate"],"created_at":"2024-11-20T19:52:36.110Z","updated_at":"2025-07-10T06:30:40.959Z","avatar_url":"https://github.com/NatLibFi.png","language":"Python","readme":".. image:: https://badge.fury.io/py/skosify.svg\n   :target: https://badge.fury.io/py/skosify.svg    \n.. image:: https://travis-ci.org/NatLibFi/Skosify.svg?branch=master\n   :target: https://travis-ci.org/NatLibFi/Skosify\n.. image:: https://readthedocs.org/projects/skosify/badge/?version=latest\n   :target: http://skosify.rtfd.io/ \n.. image:: https://codecov.io/gh/NatLibFi/Skosify/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/NatLibFi/Skosify\n\nPython script for converting to `SKOS \u003chttp://www.w3.org/2004/02/skos/\u003e`_.\n\nThis program accepts a thesaurus-like vocabulary expressed as RDFS, OWL or\nSKOS as input. It produces a clean SKOS representation, which attempts to\nrepresent the input data losslessly using SKOS best practices. When given\nSKOS as input, it will be cleaned up, validated and enriched to follow\nthe SKOS specification and related best practices.\n\nInstallation\n============\n\nSkosify requires Python 3.6+.\n\n.. code-block:: console\n\n    pip install --upgrade skosify\n\nUsage\n=====\n\nAs command line script:\n\n.. code-block:: console\n\n    skosify myvoc.owl -o myvoc-skos.ttl --label \"My Ontology\"\n\nThis will read the file ``myvoc.owl`` in RDF/XML format and write SKOS file ``myvoc-skos.ttl`` in Turtle format, setting the name of the Concept Scheme to ``My Ontology``.\n\nRun ``skosify --help`` for more usage information.\n\nAs Python library:\n\n.. code-block:: python\n\n    import skosify  # contains skosify, config, and infer\n\n    voc = skosify.skosify('myontology.owl', label='My Ontology')\n    voc.serialize(destination='myontology-skos.rdf', format='xml')\n\n    rdf = Graph()\n    rdf.parse('myontology.owl')\n    config = skosify.config('owl2skos.cfg')\n    voc = skosify.skosify(rdf, **config)\n\n    skosify.infer.skos_related(rdf)\n    skosify.infer.skos_topConcept(rdf):\n    skosify.infer.skos_hierarchical(rdf, narrower=True)\n    skosify.infer.skos_transitive(rdf, narrower=True)\n\n    skosify.infer.rdfs_classes(rdf)\n    skosify.infer.rdfs_properties(rdf)\n\nSee `the API Reference \u003chttp://skosify.readthedocs.io/en/latest/api.html\u003e`_ for documentation of the public API of this module. Everything not listed there might change in a future version.\n\nAdditional documentation can be found `in the GitHub project wiki \u003chttps://github.com/NatLibFi/Skosify/wiki\u003e`_\n\n\nAdditional scripts\n==================\n\nThe `scripts` directory contains two additional scripts to be used together with Skosify:\n\n* `skosify.cgi` a web application to use Skosify\n* `sparqldump.py` a command line client to download RDF via a SPARQL endpoint\n\nAuthor and Contributors\n=======================\n\n-  Osma Suominen\n-  Jakob Voß\n-  Dan Michael O. Heggø\n-  Alex Kourijoki\n\nSee also\n========\n\nSee `background` for history, related works, publications etc.\n\n.. background: docs/background.rst\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlibfi%2Fskosify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatlibfi%2Fskosify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlibfi%2Fskosify/lists"}