graph patent citation USPTO database graphscraper webscraper
Project description
USPTO-patent-citation-graph
Graph that downloads patent citation data from USPTO's PatentsView API on-demand and stores it locally in an SQL database (and in memory) for fast access later.
The project is based on the graphscraper project, please see that project for the details of the graph API.
Installation
Install the latest version of the project from the Python Package Index using pip install uspto-patent-citation-graph
.
Getting started
Creating a graph instance that will use a default, on-disk SQLite database:
from uspto_patent_citation_graph import USPTOPatentCitationGraph
graph = USPTOPatentCitationGraph(None)
Loading a node that is not in the local database yet:
# `can_validate_and_load=True` tells the graph's node list that it is allowed to
# load data from the PatentsView API. Its default value is `False`, and the
# argument can be omitted if the given patent is already in the local database.
patent_number = "4733665" # Stent patent
stent_patent = graph.nodes.get_node_by_name(patent_number, can_validate_and_load=True)
Accessing a node's neighbors (cited and cited-by patents):
print(f"Neighbors of {stent_patent.name}:")
for neighbor in stent_patent.neighbors:
print(f" - {neighbor.name}: {neighbor.external_id}")
Community guidelines
Any form of constructive contribution is welcome:
- Questions, feedback, bug reports: please open an issue in the issue tracker of the project or contact the repository owner by email, whichever you feel appropriate.
- Contribution to the software: please open an issue in the issue tracker of the project that describes the changes you would like to make to the software and open a pull request with the changes. The description of the pull request must references the corresponding issue.
The following types of contribution are especially appreciated:
License - MIT
The library is open-sourced under the conditions of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file uspto-patent-citation-graph-0.2109.0.tar.gz
.
File metadata
- Download URL: uspto-patent-citation-graph-0.2109.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 979f68c438fa0d14ce9f8a2b0484dc91504edb7a8417b6b78eb378d803e9243d |
|
MD5 | bcb5fec33e3e7b5f3d57678a4b37d58e |
|
BLAKE2b-256 | 59e52081e134c081d9f5df94b0ed86d38da1fa424697fe2a174ead4eb5e30917 |
File details
Details for the file uspto_patent_citation_graph-0.2109.0-py3-none-any.whl
.
File metadata
- Download URL: uspto_patent_citation_graph-0.2109.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcc4c3c89452afd4dfc5fea5e0930c6ef2ae7224c8e7857ce68bd029820d2327 |
|
MD5 | ddb74af0a78b70256faccd6bb4a6a522 |
|
BLAKE2b-256 | 57f33e6581f2396fc0b77de574b8591da90474f4d1074edbb77ac15013335c45 |