{"id":18650250,"url":"https://github.com/zuki/ruby-bibframe","last_synced_at":"2025-11-05T11:30:26.928Z","repository":{"id":18642263,"uuid":"21848835","full_name":"zuki/ruby-bibframe","owner":"zuki","description":null,"archived":false,"fork":false,"pushed_at":"2014-08-21T08:11:05.000Z","size":424,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T13:10:20.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/zuki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-15T06:22:46.000Z","updated_at":"2014-07-15T06:24:31.000Z","dependencies_parsed_at":"2022-09-05T22:50:39.229Z","dependency_job_id":null,"html_url":"https://github.com/zuki/ruby-bibframe","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/zuki%2Fruby-bibframe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2Fruby-bibframe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2Fruby-bibframe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2Fruby-bibframe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuki","download_url":"https://codeload.github.com/zuki/ruby-bibframe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239457659,"owners_count":19642092,"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":"2024-11-07T06:43:03.507Z","updated_at":"2025-11-05T11:30:26.862Z","avatar_url":"https://github.com/zuki.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bibframe\n\n[marc2bibframe](https://github.com/lcnetdev/marc2bibframe)のXQueryをRubyに変換した、MARCXMLレコードを[Bibframe](http://www.loc.gov/bibframe/)形式に変換するRubyGem。\n\n## インストール\n\n以下をアプリケーションのGemfileに追加する:\n\n    gem 'ruby-bibframe', :git =\u003e \"https://github.com/zuki/ruby-bibframe.git\"\n\nbundleコマンドを実行する:\n\n    $ bundle\n\n## 利用法\n\n````\nrequire 'rdf'\nrequire 'marc'\nrequire 'bibframe'\nrequire 'rdf/rdfxml'\n\nreader = MARC::XMLReader.new('/path/to/MARCXML.xml')\nrepo = RDF::Repository.new\n# 典拠IDを付加し、名前付きグラフにする\nfor record in reader\n\trepo \u003c\u003c Bibframe::BFRDF(record, resolve: true, repository: repo).graph\nend\n\nRDF::RDFXML::Writer.open('/path/to/output.rdf') do |writer|\n  writer \u003c\u003c repo\nend\n````\n\n## TODO\n\n- Testの追加\n- コードのリファイン\n- Bibframeの進捗状況に合わせた改訂\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuki%2Fruby-bibframe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuki%2Fruby-bibframe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuki%2Fruby-bibframe/lists"}