{"id":24557790,"url":"https://github.com/timclicks/okrand","last_synced_at":"2025-04-19T03:15:15.838Z","repository":{"id":138084401,"uuid":"2368741","full_name":"timClicks/okrand","owner":"timClicks","description":"A MARC21 to RDF converter","archived":false,"fork":false,"pushed_at":"2011-09-13T03:02:40.000Z","size":106,"stargazers_count":6,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T03:05:18.776Z","etag":null,"topics":[],"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/timClicks.png","metadata":{"files":{"readme":"README","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":"2011-09-12T02:22:22.000Z","updated_at":"2013-12-04T02:34:30.000Z","dependencies_parsed_at":"2023-04-25T15:47:39.883Z","dependency_job_id":null,"html_url":"https://github.com/timClicks/okrand","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/timClicks%2Fokrand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timClicks%2Fokrand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timClicks%2Fokrand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timClicks%2Fokrand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timClicks","download_url":"https://codeload.github.com/timClicks/okrand/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249598185,"owners_count":21297464,"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":[],"created_at":"2025-01-23T05:29:32.621Z","updated_at":"2025-04-19T03:15:15.796Z","avatar_url":"https://github.com/timClicks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿okrand - a MARC21 to RDF converter \n\nabout\n=====\n\nsoftware\n--------\n\nThis tool was originally used to convert the \nNational Library of New Zealand's MARC21 \ncatalogue to RDF. It should be sufficiently \ngeneric to do the task for any MARC21 file.\n\nThe conversion process loses some data. If \nyou know of an RDF vocabularly that matches \nMARC21 perfectly, please contact the author.\n\nOnce converted, your \n\n\nname\n----\n\nMarc Okrand invented Klingon. MARC21 seems \nlike Klingon for computers.\n\ndependencies\n============\n \nokrand depends on two libraries to do its\nheavy lifting:\n\n  RDFLib \u003chttp://code.google.com/p/rdflib\u003e\n  pymarc \u003chttps://github.com/edsu/pymarc\u003e\n\nBoth can be installed via the command line\nwith pip or easy_install:\n\n   $ pip install rdflib pymarc\n   $ easy_install rdflib pymarc\n\n\nusage\n=====\n\nNo command line usage yet. Open up a Python\ninterpreter and run the main function.\n\nBy example\n----------\n\n\n1.  You want to parse catalog.mrc in memory:\n\n    \u003e\u003e\u003e import okrand     \n    \u003e\u003e\u003e graph = okrand.main('catalog.mrc')\n\n2.  You want to parse a compressed \n    catalog.mrc.gz file and store the graph\n    on disk so that it can be used by RDFlib:\n\n    \u003e\u003e\u003e okrand.main('catalog.mrc', \n    ...     store_type='Sleepycat', \n    ...     store_id='my_catalog',\n    ...     graph_id='my_catalog',\n    ...     gzipped=True)\n\n    Note: store_id and graph_id are arbitrary, \n    but are strongly recommended for \n    disk-based stores. \n\n\nIf you would like to serialize the graph, call \nyou can do so from the resulting object:\n\n    \u003e\u003e\u003e graph.serialize('mycatalog.n3', \n    ...     format='n3')\n\n\nlicence\n======\n\nAPGL v3. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimclicks%2Fokrand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimclicks%2Fokrand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimclicks%2Fokrand/lists"}