Go API Client for the European Patent Office Bulk Data Sets and DocDB Data.
Alpha Version
Sebastian Erhardt
The structs for the DocDB data are generated from the xsd files provided by the EPO.
The xgen library was used to generate the structs.
xgen -i /path/to/your/xsd -o /path/to/your/output -l Go
EPO_USERNAME=XYZ
EPO_PASSWORD=XXXXXX
go get -u github.com/max-planck-innovation-competition/go-epo-bdds
There are separate packages for the bulk data service and the DocDB data.
With the bulk data service package, you can download the data from the EPO. Among other digital data sets, the EPO provides the DocDB data.
With the DocDB package, you can process the DocDB data.
To interact with the bulk data service, you can use the epo_bdds
package.
package main
import (
"github.com/max-planck-innovation-competition/go-epo-bdds/pkg/epo_bdds"
)
func main() {
// Get the authorization token
token, err := epo_bdds.GetAuthorizationToken()
if err != nil {
log.Fatal(err)
}
// get the products
products, err := epo_bdds.GetProducts(token)
...
}
The epo_docdb
package provides the code to process the EPO DocDB data.
It can be used to ingest the data into any database or any file format.
See the DocDB README for more information.