{"id":21328435,"url":"https://github.com/mrcook/gutenberg_rdf","last_synced_at":"2025-10-29T14:35:17.776Z","repository":{"id":11281712,"uuid":"13690777","full_name":"mrcook/gutenberg_rdf","owner":"mrcook","description":"A Ruby wrapper for the Project Gutenberg RDF catalog files","archived":false,"fork":false,"pushed_at":"2019-07-11T22:27:15.000Z","size":45,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T03:16:21.021Z","etag":null,"topics":["gem","gutenberg","rdf","ruby","ruby-gem","rubygem","wrapper-library"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/gutenberg_rdf","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/mrcook.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":"2013-10-18T21:57:55.000Z","updated_at":"2020-06-23T16:07:04.000Z","dependencies_parsed_at":"2022-09-19T09:00:28.312Z","dependency_job_id":null,"html_url":"https://github.com/mrcook/gutenberg_rdf","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mrcook/gutenberg_rdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcook%2Fgutenberg_rdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcook%2Fgutenberg_rdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcook%2Fgutenberg_rdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcook%2Fgutenberg_rdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrcook","download_url":"https://codeload.github.com/mrcook/gutenberg_rdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcook%2Fgutenberg_rdf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264958135,"owners_count":23689006,"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":["gem","gutenberg","rdf","ruby","ruby-gem","rubygem","wrapper-library"],"created_at":"2024-11-21T21:28:59.755Z","updated_at":"2025-10-29T14:35:17.690Z","avatar_url":"https://github.com/mrcook.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gutenberg RDF\n\nGutenberg RDF is a Ruby wrapper for the Project Gutenberg RDF catalog book files,\nproviding an API to all the metadata contained within.\n\nThe official RDF catalog can be found here: http://www.gutenberg.org/wiki/Gutenberg:Feeds\n\n\n## Requirements\n\n* Ruby 2.0 - this is so we get UTF-8 by default\n\nNOTE: In around April 2014 PG changed the XML format in their RDF files\nconsiderably, so this GEM will no longer work on files from before that date.\nPlease make sure to download the latest catalog using the link above.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'gutenberg_rdf'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install gutenberg_rdf\n\n## Usage\n\n    require 'gutenberg_rdf'\n\n    book = GutenbergRdf.parse('/path/to/pg2746.rdf')\n\n    puts book.id\n    #=\u003e \"2746\"\n\n    puts book.type\n    #=\u003e \"Text\"\n\n    puts book.title\n    #=\u003e \"Urbain Grandier\"\n\n    puts book.subtitle\n    #=\u003e \"Celebrated Crimes\"\n\n    puts book.authors.first.fullname\n    #=\u003e \"Alexandre Dumas\"\n\n    puts book.subjects.first\n    #=\u003e \"Crime\"\n\n    puts book.published\n    #=\u003e \"2004-09-22\"\n\n    puts book.publisher\n    #=\u003e \"Project Gutenberg\"\n\n    puts book.rights\n    #=\u003e \"Public domain in the USA.\"\n\n    puts book.language\n    #=\u003e \"en\"\n\n    puts book.covers.first\n    #=\u003e \"http://www.gutenberg.org/ebooks/2746.cover.medium\"\n\n    puts book.ebooks[1].uri\n    #=\u003e \"http://www.gutenberg.org/files/2746/2746-h/2746-h.htm\"\n\n    puts book.ebooks[1].media_type\n    #=\u003e \"text/html\"\n\n    puts book.ebooks[1].encoding\n    #=\u003e \"us-ascii\"\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrcook%2Fgutenberg_rdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrcook%2Fgutenberg_rdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrcook%2Fgutenberg_rdf/lists"}