Documentation
¶
Overview ¶
Package dpmaconnect provides a Go client for the DPMA Connect Plus API (DPMAregister web services) for accessing German patent, design, and trademark data from the German Patent and Trade Mark Office (DPMA).
Usage:
config := dpmaconnect.DefaultConfig() config.Username = "your-username" config.Password = "your-password" client, err := dpmaconnect.NewClient(config)
The client is safe for concurrent use by multiple goroutines.
Index ¶
- Constants
- func FormatDate(date time.Time) string
- func FormatPublicationWeek(year, week int) (string, error)
- func ParsePublicationWeek(pubWeek string) (year, week int, err error)
- func ValidateDesignQuery(q string) error
- func ValidatePatentQuery(q string) error
- func ValidatePeriod(period string) error
- func ValidateTrademarkQuery(q string) error
- type APIError
- type Client
- func (c *Client) GetApplicantCitationsXML(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetApplicantCitationsXMLStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetDesignBibliographicDataXML(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetDesignBibliographicDataXMLStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetDesignImage(ctx context.Context, designNumber, imageNumber string) ([]byte, error)
- func (c *Client) GetDesignImages(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetDesignImagesStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetDesignInfo(ctx context.Context, designNumber string) ([]byte, error)
- func (c *Client) GetDesignInfoParsed(ctx context.Context, designNumber string) (*DesignInfo, error)
- func (c *Client) GetDesignRegisterExtract(ctx context.Context, date time.Time, period string) ([]byte, error)
- func (c *Client) GetDesignRegisterExtractStream(ctx context.Context, date time.Time, period string, dst io.Writer) error
- func (c *Client) GetDesignThumbnail(ctx context.Context, designNumber, thumbnailNumber string) ([]byte, error)
- func (c *Client) GetDisclosureDocumentsPDF(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetDisclosureDocumentsPDFStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetDisclosureDocumentsXML(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetDisclosureDocumentsXMLStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetEuropeanPatentSpecificationsPDF(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetEuropeanPatentSpecificationsPDFStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetEuropeanPatentSpecificationsXML(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetEuropeanPatentSpecificationsXMLStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetPatentInfo(ctx context.Context, registeredNumber string) ([]byte, error)
- func (c *Client) GetPatentInfoByPublicationNumber(ctx context.Context, publicationNumber string) (*PatentInfo, error)
- func (c *Client) GetPatentInfoParsed(ctx context.Context, patentNumber string) (*PatentInfo, error)
- func (c *Client) GetPatentPublicationPDF(ctx context.Context, documentID string) ([]byte, error)
- func (c *Client) GetPatentRegisterExtract(ctx context.Context, date time.Time, period string) ([]byte, error)
- func (c *Client) GetPatentRegisterExtractStream(ctx context.Context, date time.Time, period string, dst io.Writer) error
- func (c *Client) GetPatentSpecificationsPDF(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetPatentSpecificationsPDFStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetPatentSpecificationsXML(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetPatentSpecificationsXMLStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetPublicationDataXML(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetPublicationDataXMLStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetSearchableFullText(ctx context.Context, documentID string) ([]byte, error)
- func (c *Client) GetTrademarkBibDataApplied(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetTrademarkBibDataAppliedStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetTrademarkBibDataRegistered(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetTrademarkBibDataRegisteredStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetTrademarkBibDataRejected(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetTrademarkBibDataRejectedStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetTrademarkImage(ctx context.Context, applicationNumber string) ([]byte, error)
- func (c *Client) GetTrademarkInfo(ctx context.Context, applicationNumber string) ([]byte, error)
- func (c *Client) GetTrademarkInfoParsed(ctx context.Context, applicationNumber string) (*TrademarkInfo, error)
- func (c *Client) GetTrademarkRegisterExtract(ctx context.Context, date time.Time, period string) ([]byte, error)
- func (c *Client) GetTrademarkRegisterExtractStream(ctx context.Context, date time.Time, period string, dst io.Writer) error
- func (c *Client) GetTrademarkThumbnail(ctx context.Context, applicationNumber string) ([]byte, error)
- func (c *Client) GetUtilityModelsPDF(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetUtilityModelsPDFStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetUtilityModelsXML(ctx context.Context, year, week int) ([]byte, error)
- func (c *Client) GetUtilityModelsXMLStream(ctx context.Context, year, week int, dst io.Writer) error
- func (c *Client) GetVersion(ctx context.Context, service string) (string, error)
- func (c *Client) SearchDesigns(ctx context.Context, query string) ([]byte, error)
- func (c *Client) SearchDesignsParsed(ctx context.Context, query string) (*DesignSearchResult, error)
- func (c *Client) SearchPatents(ctx context.Context, query string) ([]byte, error)
- func (c *Client) SearchPatentsParsed(ctx context.Context, query string) (*PatentSearchResult, error)
- func (c *Client) SearchTrademarks(ctx context.Context, query string) ([]byte, error)
- func (c *Client) SearchTrademarksParsed(ctx context.Context, query string) (*TrademarkSearchResult, error)
- type Config
- type DataNotAvailableError
- type DesignHit
- type DesignInfo
- type DesignSearchResult
- type ErrorResponse
- type NotFoundError
- type Party
- type PatentDocumentRef
- type PatentHit
- type PatentInfo
- type PatentPublication
- type PatentSearchResult
- type TrademarkClass
- type TrademarkHit
- type TrademarkInfo
- type TrademarkSearchResult
- type XMLParseError
Constants ¶
const ( PeriodDaily = "daily" PeriodWeekly = "weekly" PeriodMonthly = "monthly" PeriodYearly = "yearly" )
Period constants for register extract queries
const ( ServicePatent = "DPMAregisterPatService" ServiceDesign = "DPMAregisterGsmService" ServiceTrademark = "DPMAregisterMarkeService" )
Service name constants for GetVersion
Variables ¶
This section is empty.
Functions ¶
func FormatDate ¶
FormatDate formats a time.Time into YYYY-MM-DD format for register extract queries. The date is formatted in the input's location (no timezone conversion). Example: FormatDate(time.Date(2024, 10, 23, 0, 0, 0, 0, time.UTC)) returns "2024-10-23"
func FormatPublicationWeek ¶
FormatPublicationWeek formats year and week into YYYYWW format. Returns an error if year < 1 or week is outside [1, 53]. Example: FormatPublicationWeek(2024, 45) returns "202445"
func ParsePublicationWeek ¶
ParsePublicationWeek parses a publication week string (YYYYWW) into year and week integers Returns an error if the format is invalid
func ValidateDesignQuery ¶
ValidateDesignQuery parses and validates a query against design field codes. Returns nil if valid, or an error describing the validation failure.
func ValidatePatentQuery ¶
ValidatePatentQuery parses and validates a query against patent field codes. Returns nil if valid, or an error describing the validation failure.
func ValidatePeriod ¶
ValidatePeriod checks that a period string is one of the valid values.
func ValidateTrademarkQuery ¶
ValidateTrademarkQuery parses and validates a query against trademark field codes. Returns nil if valid, or an error describing the validation failure.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the main DPMA Connect Plus API client. It is safe for concurrent use by multiple goroutines.
func (*Client) GetApplicantCitationsXML ¶
GetApplicantCitationsXML downloads applicant citations as XML for a publication week
func (*Client) GetApplicantCitationsXMLStream ¶
func (c *Client) GetApplicantCitationsXMLStream(ctx context.Context, year, week int, dst io.Writer) error
GetApplicantCitationsXMLStream downloads applicant citations as XML and writes to dst
func (*Client) GetDesignBibliographicDataXML ¶
GetDesignBibliographicDataXML downloads design bibliographic data as XML for a publication week
func (*Client) GetDesignBibliographicDataXMLStream ¶
func (c *Client) GetDesignBibliographicDataXMLStream(ctx context.Context, year, week int, dst io.Writer) error
GetDesignBibliographicDataXMLStream downloads design bibliographic data as XML and writes to dst
func (*Client) GetDesignImage ¶
func (c *Client) GetDesignImage(ctx context.Context, designNumber, imageNumber string) ([]byte, error)
GetDesignImage downloads a design image by design number and image number
func (*Client) GetDesignImages ¶
GetDesignImages downloads design images for a publication week
func (*Client) GetDesignImagesStream ¶
GetDesignImagesStream downloads design images and writes to dst
func (*Client) GetDesignInfo ¶
GetDesignInfo retrieves design information by design number
func (*Client) GetDesignInfoParsed ¶
GetDesignInfoParsed retrieves design info and returns parsed data.
func (*Client) GetDesignRegisterExtract ¶
func (c *Client) GetDesignRegisterExtract(ctx context.Context, date time.Time, period string) ([]byte, error)
GetDesignRegisterExtract downloads design register extract data for a date and period
func (*Client) GetDesignRegisterExtractStream ¶
func (c *Client) GetDesignRegisterExtractStream(ctx context.Context, date time.Time, period string, dst io.Writer) error
GetDesignRegisterExtractStream downloads design register extract data and writes to dst
func (*Client) GetDesignThumbnail ¶
func (c *Client) GetDesignThumbnail(ctx context.Context, designNumber, thumbnailNumber string) ([]byte, error)
GetDesignThumbnail downloads a design thumbnail by design number and thumbnail number
func (*Client) GetDisclosureDocumentsPDF ¶
GetDisclosureDocumentsPDF downloads disclosure documents as PDF for a publication week
func (*Client) GetDisclosureDocumentsPDFStream ¶
func (c *Client) GetDisclosureDocumentsPDFStream(ctx context.Context, year, week int, dst io.Writer) error
GetDisclosureDocumentsPDFStream downloads disclosure documents as PDF and writes to dst
func (*Client) GetDisclosureDocumentsXML ¶
GetDisclosureDocumentsXML downloads disclosure documents (A) as XML for a publication week
func (*Client) GetDisclosureDocumentsXMLStream ¶
func (c *Client) GetDisclosureDocumentsXMLStream(ctx context.Context, year, week int, dst io.Writer) error
GetDisclosureDocumentsXMLStream downloads disclosure documents as XML and writes to dst
func (*Client) GetEuropeanPatentSpecificationsPDF ¶
func (c *Client) GetEuropeanPatentSpecificationsPDF(ctx context.Context, year, week int) ([]byte, error)
GetEuropeanPatentSpecificationsPDF downloads European patent specifications as PDF for a publication week
func (*Client) GetEuropeanPatentSpecificationsPDFStream ¶
func (c *Client) GetEuropeanPatentSpecificationsPDFStream(ctx context.Context, year, week int, dst io.Writer) error
GetEuropeanPatentSpecificationsPDFStream downloads European patent specifications as PDF and writes to dst
func (*Client) GetEuropeanPatentSpecificationsXML ¶
func (c *Client) GetEuropeanPatentSpecificationsXML(ctx context.Context, year, week int) ([]byte, error)
GetEuropeanPatentSpecificationsXML downloads European patent specifications as XML for a publication week
func (*Client) GetEuropeanPatentSpecificationsXMLStream ¶
func (c *Client) GetEuropeanPatentSpecificationsXMLStream(ctx context.Context, year, week int, dst io.Writer) error
GetEuropeanPatentSpecificationsXMLStream downloads European patent specifications as XML and writes to dst
func (*Client) GetPatentInfo ¶
GetPatentInfo retrieves patent information by registered number (digits only, including check digit).
func (*Client) GetPatentInfoByPublicationNumber ¶
func (c *Client) GetPatentInfoByPublicationNumber(ctx context.Context, publicationNumber string) (*PatentInfo, error)
GetPatentInfoByPublicationNumber resolves a DE publication number (e.g. "DE102019200907A1") to a registered number via search and returns the parsed patent info.
func (*Client) GetPatentInfoParsed ¶
GetPatentInfoParsed retrieves patent info and returns parsed bibliographic data. Accepts either a bare registered number (e.g., "100273629") or a DE patent number with country prefix and/or kind code (e.g., "DE10027362C2", "DE102019200907A1"). For non-registered numbers, it resolves via publication number search automatically.
func (*Client) GetPatentPublicationPDF ¶
GetPatentPublicationPDF downloads a single patent publication in PDF format
func (*Client) GetPatentRegisterExtract ¶
func (c *Client) GetPatentRegisterExtract(ctx context.Context, date time.Time, period string) ([]byte, error)
GetPatentRegisterExtract downloads patent register extract data for a date and period
func (*Client) GetPatentRegisterExtractStream ¶
func (c *Client) GetPatentRegisterExtractStream(ctx context.Context, date time.Time, period string, dst io.Writer) error
GetPatentRegisterExtractStream downloads patent register extract data and writes to dst
func (*Client) GetPatentSpecificationsPDF ¶
GetPatentSpecificationsPDF downloads patent specifications as PDF for a publication week
func (*Client) GetPatentSpecificationsPDFStream ¶
func (c *Client) GetPatentSpecificationsPDFStream(ctx context.Context, year, week int, dst io.Writer) error
GetPatentSpecificationsPDFStream downloads patent specifications as PDF and writes to dst
func (*Client) GetPatentSpecificationsXML ¶
GetPatentSpecificationsXML downloads patent specifications (B, C) as XML for a publication week
func (*Client) GetPatentSpecificationsXMLStream ¶
func (c *Client) GetPatentSpecificationsXMLStream(ctx context.Context, year, week int, dst io.Writer) error
GetPatentSpecificationsXMLStream downloads patent specifications as XML and writes to dst
func (*Client) GetPublicationDataXML ¶
GetPublicationDataXML downloads publication data as XML for a publication week
func (*Client) GetPublicationDataXMLStream ¶
func (c *Client) GetPublicationDataXMLStream(ctx context.Context, year, week int, dst io.Writer) error
GetPublicationDataXMLStream downloads publication data as XML and writes to dst
func (*Client) GetSearchableFullText ¶
GetSearchableFullText retrieves the searchable full text for a document
func (*Client) GetTrademarkBibDataApplied ¶
GetTrademarkBibDataApplied downloads trademark bibliographic data (applied) for a publication week
func (*Client) GetTrademarkBibDataAppliedStream ¶
func (c *Client) GetTrademarkBibDataAppliedStream(ctx context.Context, year, week int, dst io.Writer) error
GetTrademarkBibDataAppliedStream downloads trademark bib data (applied) and writes to dst
func (*Client) GetTrademarkBibDataRegistered ¶
GetTrademarkBibDataRegistered downloads trademark bibliographic data (registered) for a publication week
func (*Client) GetTrademarkBibDataRegisteredStream ¶
func (c *Client) GetTrademarkBibDataRegisteredStream(ctx context.Context, year, week int, dst io.Writer) error
GetTrademarkBibDataRegisteredStream downloads trademark bib data (registered) and writes to dst
func (*Client) GetTrademarkBibDataRejected ¶
GetTrademarkBibDataRejected downloads trademark bibliographic data (rejected) for a publication week
func (*Client) GetTrademarkBibDataRejectedStream ¶
func (c *Client) GetTrademarkBibDataRejectedStream(ctx context.Context, year, week int, dst io.Writer) error
GetTrademarkBibDataRejectedStream downloads trademark bib data (rejected) and writes to dst
func (*Client) GetTrademarkImage ¶
GetTrademarkImage downloads a trademark image by application number
func (*Client) GetTrademarkInfo ¶
GetTrademarkInfo retrieves trademark information by application number
func (*Client) GetTrademarkInfoParsed ¶
func (c *Client) GetTrademarkInfoParsed(ctx context.Context, applicationNumber string) (*TrademarkInfo, error)
GetTrademarkInfoParsed retrieves trademark info and returns parsed data.
func (*Client) GetTrademarkRegisterExtract ¶
func (c *Client) GetTrademarkRegisterExtract(ctx context.Context, date time.Time, period string) ([]byte, error)
GetTrademarkRegisterExtract downloads trademark register extract data for a date and period
func (*Client) GetTrademarkRegisterExtractStream ¶
func (c *Client) GetTrademarkRegisterExtractStream(ctx context.Context, date time.Time, period string, dst io.Writer) error
GetTrademarkRegisterExtractStream downloads trademark register extract data and writes to dst
func (*Client) GetTrademarkThumbnail ¶
func (c *Client) GetTrademarkThumbnail(ctx context.Context, applicationNumber string) ([]byte, error)
GetTrademarkThumbnail downloads a trademark thumbnail by application number
func (*Client) GetUtilityModelsPDF ¶
GetUtilityModelsPDF downloads utility models as PDF for a publication week
func (*Client) GetUtilityModelsPDFStream ¶
func (c *Client) GetUtilityModelsPDFStream(ctx context.Context, year, week int, dst io.Writer) error
GetUtilityModelsPDFStream downloads utility models as PDF and writes to dst
func (*Client) GetUtilityModelsXML ¶
GetUtilityModelsXML downloads utility models (U) as XML for a publication week
func (*Client) GetUtilityModelsXMLStream ¶
func (c *Client) GetUtilityModelsXMLStream(ctx context.Context, year, week int, dst io.Writer) error
GetUtilityModelsXMLStream downloads utility models as XML and writes to dst
func (*Client) GetVersion ¶
GetVersion retrieves version information for a service
func (*Client) SearchDesigns ¶
SearchDesigns executes a design expert search query
func (*Client) SearchDesignsParsed ¶
func (c *Client) SearchDesignsParsed(ctx context.Context, query string) (*DesignSearchResult, error)
SearchDesignsParsed executes a design search and returns parsed results.
func (*Client) SearchPatents ¶
SearchPatents executes a patent/utility model expert search query
func (*Client) SearchPatentsParsed ¶
func (c *Client) SearchPatentsParsed(ctx context.Context, query string) (*PatentSearchResult, error)
SearchPatentsParsed executes a patent search and returns parsed results.
func (*Client) SearchTrademarks ¶
SearchTrademarks executes a trademark expert search query
func (*Client) SearchTrademarksParsed ¶
func (c *Client) SearchTrademarksParsed(ctx context.Context, query string) (*TrademarkSearchResult, error)
SearchTrademarksParsed executes a trademark search and returns parsed results.
type Config ¶
type Config struct {
BaseURL string
Username string
Password string
Timeout time.Duration // HTTP client timeout (default: 20 minutes for bulk downloads)
HTTPClient *http.Client // Optional custom HTTP client; if set, Timeout is ignored
}
Config holds client configuration.
If HTTPClient is set, Timeout is ignored and the custom client's timeout applies instead. Callers should configure timeouts on the custom client directly.
type DataNotAvailableError ¶
type DataNotAvailableError struct{}
DataNotAvailableError represents data unavailable for requested period
func (*DataNotAvailableError) Error ¶
func (e *DataNotAvailableError) Error() string
type DesignHit ¶
type DesignHit struct {
DesignIdentifier string
ApplicationNumber string
RegistrationNumber string
Title string
Applicant string
ClassNumber string
Status string
ApplicationDate string
RegistrationDate string
PublicationDate string
}
DesignHit represents a single design search result entry.
type DesignInfo ¶
type DesignInfo struct {
DesignIdentifier string
ApplicationNumber string
RegistrationNumber string
ApplicationDate string
RegistrationDate string
Title string
Status string
Applicants []Party
ClassNumber string
ClassDescription string
}
DesignInfo holds parsed design register info (ST86).
func ParseDesignInfo ¶
func ParseDesignInfo(data []byte) (*DesignInfo, error)
ParseDesignInfo parses a design info XML response (ST86 format).
type DesignSearchResult ¶
type DesignSearchResult struct {
TotalHits int
Hits []DesignHit
RawXML []byte // original XML response bytes
}
DesignSearchResult holds parsed design search results.
func ParseDesignSearch ¶
func ParseDesignSearch(data []byte) (*DesignSearchResult, error)
ParseDesignSearch parses a design search XML response.
type ErrorResponse ¶
type ErrorResponse struct {
XMLName xml.Name `xml:"Transaction"`
TradeMarkBody transactionBody `xml:"TradeMarkTransactionBody"`
DesignBody transactionBody `xml:"DesignTransactionBody"`
PatentBody transactionBody `xml:"PatentTransactionBody"`
}
ErrorResponse represents the XML error response structure from DPMA API. The DPMA API uses different body element names depending on the service:
- TradeMarkTransactionBody (trademark service)
- DesignTransactionBody (design service)
- PatentTransactionBody (patent service)
All share the same nested TransactionErrorDetails structure. We parse all three variants and use whichever has error content.
type NotFoundError ¶
NotFoundError represents resource not found errors
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type PatentDocumentRef ¶
PatentDocumentRef represents an application or document reference.
type PatentHit ¶
type PatentHit struct {
LeadingRegisteredNumber string
RegisteredNumber string
Type string // "Patent", "Utility model"
LegalStatus string
Title string
Applicants []string
IPCClasses []string // main + further classifications
ApplicationDate string
PublicationDate string
RegistrationDate string
}
PatentHit represents a single patent search result entry.
type PatentInfo ¶
type PatentInfo struct {
Publications []PatentPublication
ApplicationRef PatentDocumentRef
Title string
IPCClasses []string
Applicants []Party
Inventors []Party
IPRightType string // patent, gebrauchsmuster, schutzzertifikat, etc.
Status string // anhaengig-in-kraft, nicht-anhaengig-erloschen
Abstract string
FilingDate string
FirstPubDate string
}
PatentInfo holds parsed patent register info (ST36 bibliographic data).
func ParsePatentInfo ¶
func ParsePatentInfo(data []byte) (*PatentInfo, error)
ParsePatentInfo parses a patent info XML response (ST36 format).
type PatentPublication ¶
PatentPublication represents a publication reference within patent info.
type PatentSearchResult ¶
type PatentSearchResult struct {
TotalHits int
Hits []PatentHit
RawXML []byte // original XML response bytes
}
PatentSearchResult holds parsed patent search results.
func ParsePatentSearch ¶
func ParsePatentSearch(data []byte) (*PatentSearchResult, error)
ParsePatentSearch parses a patent search XML response.
type TrademarkClass ¶
TrademarkClass represents a Nice classification entry.
type TrademarkHit ¶
type TrademarkHit struct {
ApplicationNumber string
MarkText string
MarkFeature string // wortmarke, wort-bildmarke, etc.
Classification string
Status string
ApplicationDate string
RegistrationDate string
Applicant string
}
TrademarkHit represents a single trademark search result entry.
type TrademarkInfo ¶
type TrademarkInfo struct {
ApplicationNumber string
RegistrationNumber string
ApplicationDate string
RegistrationDate string
ExpiryDate string
Status string
MarkFeature string
MarkText string
Applicants []Party
Classifications []TrademarkClass
}
TrademarkInfo holds parsed trademark register info (ST66).
func ParseTrademarkInfo ¶
func ParseTrademarkInfo(data []byte) (*TrademarkInfo, error)
ParseTrademarkInfo parses a trademark info XML response (ST66 format).
type TrademarkSearchResult ¶
type TrademarkSearchResult struct {
TotalHits int
Hits []TrademarkHit
RawXML []byte // original XML response bytes
}
TrademarkSearchResult holds parsed trademark search results.
func ParseTrademarkSearch ¶
func ParseTrademarkSearch(data []byte) (*TrademarkSearchResult, error)
ParseTrademarkSearch parses a trademark search XML response.
type XMLParseError ¶
type XMLParseError struct {
Operation string // e.g. "ParsePatentSearch"
Err error // underlying xml.Unmarshal error
}
XMLParseError indicates a failure to parse XML response data.
func (*XMLParseError) Error ¶
func (e *XMLParseError) Error() string
func (*XMLParseError) Unwrap ¶
func (e *XMLParseError) Unwrap() error
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package generated provides primitives to interact with the openapi HTTP API.
|
Package generated provides primitives to interact with the openapi HTTP API. |
|
Package query provides a query parser and validator for DPMAregister expert search syntax.
|
Package query provides a query parser and validator for DPMAregister expert search syntax. |