https://github.com/sixarm/sixarm_ruby_uspto
SixArm.com » Ruby » USPTO: United States Patent and Trademark Office
https://github.com/sixarm/sixarm_ruby_uspto
gem patent ruby trademark uspto
Last synced: 4 months ago
JSON representation
SixArm.com » Ruby » USPTO: United States Patent and Trademark Office
- Host: GitHub
- URL: https://github.com/sixarm/sixarm_ruby_uspto
- Owner: SixArm
- License: other
- Created: 2012-05-19T14:14:12.000Z (about 14 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T09:21:25.000Z (about 1 year ago)
- Last Synced: 2025-10-06T11:42:17.925Z (9 months ago)
- Topics: gem, patent, ruby, trademark, uspto
- Language: Ruby
- Size: 300 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# SixArm.com → Ruby →
USPTO: United State Patent and Trademark Office
[](http://badge.fury.io/rb/sixarm_ruby_uspto)
[](https://travis-ci.org/SixArm/sixarm_ruby_uspto)
[](https://codeclimate.com/github/SixArm/sixarm_ruby_uspto/maintainability)
* Git:
* Doc:
* Gem:
* Contact: Joel Parker Henderson,
* Project: [changes](CHANGES.md), [license](LICENSE.md), [contributing](CONTRIBUTING.md).
## Introduction
Provides a "Patent" class for working with USPTO Gazette XML.
See USPTO Bulk Downloads: Patent Grant Full Text:
http://www.google.com/googlebooks/uspto-patents-grants-text.html
For docs go to
## Install
### Gem
To install this gem in your shell or terminal:
gem install sixarm_ruby_uspto
### Gemfile
To add this gem to your Gemfile:
gem 'sixarm_ruby_uspto'
### Require
To require the gem in your code:
require 'sixarm_ruby_uspto'
## Examples
require "sixarm_ruby_uspto"
require "nokogiri"
text = File.read("patent.xml")
doc = Nokogiri.XML(text)
patent = Patent.new(:doc => doc)
patent.id #=> "US1234"
patent.date #=> "20120101"
patent.claims #=> XML element of claim items