Difference between revisions of "Equivalent XPath and APS Queries"
Line 258: | Line 258: | ||
*** <code>INVT:ZIP</code> | *** <code>INVT:ZIP</code> | ||
− | === scirefs ( | + | === scirefs (all are strings) === |
* '''CITATION_DESCRIPTION''' | * '''CITATION_DESCRIPTION''' |
Revision as of 14:10, 21 June 2017
Equivalent XPath and APS Queries | |
---|---|
Project Information | |
Project Title | Equivalent XPath and APS Queries |
Owner | Oliver Chang, Ed Egan |
Start Date | June 2017 |
Deadline | June 2017 |
Primary Billing | |
Notes | |
Has project status | Active |
Copyright © 2016 edegan.com. All Rights Reserved. |
Current Status for Granted Patents implementation
Contents
How it works currently
Only has the intelligence from E:\McNair\PatentData\Processed\xmlparser_4.5_4.4_4.3.pl
.
That is to say, it only explicitly covers versions 4.3, 4.4, and 4.5 utility patents.
Plant, reissue, and design patents contain a nonempty intersection with these attributes but have their own quirks.
The actual code to do this XML parsing is at E:\McNair\Projects\SimplerPatentData\src\main\java\org\bakerinstitute\mcnair\uspto_granted\XmlParser.java
with the end goal to create an in-memory representation of a granted patent as a E:\McNair\Projects\SimplerPatentData\src\main\java\org\bakerinstitute\mcnair\models\GrantedPatent.java
data structure.
To learn about the fields that a model contains, look at the class Model.Metadata which should implement interface TableMetadata
. In particular, this bunch of constant data describes the mapping of enum fields to table column names as well as the types of columns.
For an example, we can tell that GrantedPatent
is a struct that contains the following data:
private final Map<GrantedPatent.Fields, String> strings; private final Map<GrantedPatent.Fields, Double> numbers; private final List<Citation> citations; private final List<Sciref> scirefs; private final List<Inventor> inventors; private final List<AssignmentSummary> assignments; private final List<Lawyer> lawyers;
TODO Query Equivalences
strings
- PATENT_TYPE
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/application-reference/@appl-type
- APS
PATN:APT
- XML 4.3, 4.4, 4.5
- TITLE
- XML 4.3, 4.4, 4.5
//invention-title
- APS
PATN:TTL
- XML 4.3, 4.4, 4.5
- PCT_DOCUMENT_NUMBER
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/pct-or-regional-filing-data/document-id/doc-number
- APS
PCTA:PCN
- XML 4.3, 4.4, 4.5
- PATENT_COUNTRY
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/publication-reference/document-id/country
- APS
- ?
- XML 4.3, 4.4, 4.5
- PATENT_NUMBER
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/publication-reference/document-id/doc-number
- APS
PATN:WKU
- XML 4.3, 4.4, 4.5
- PATENT_KIND
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/publication-reference/document-id/doc-number/kind
- APS
- ?
- XML 4.3, 4.4, 4.5
- PATENT_GRANT_DATE
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/publication-reference/document-id/date
- APS
PATN:ISD
- XML 4.3, 4.4, 4.5
- APPLICATION_NUMBER
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/application-reference/document-id/doc-number
- APS
PATN:APN
- XML 4.3, 4.4, 4.5
- APPLICATION_FILING_DATE
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/application-reference/document-id/date
- APS
PATN:APD
- XML 4.3, 4.4, 4.5
- PRIORITY_CLAIMS_DATE
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/priority-claims/priority-claim/date
- APS
PRIR:APD
- XML 4.3, 4.4, 4.5
- PRIORITY_CLAIMS_COUNTRY
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/priority-claims/priority-claim/country
- APS
PRIR:CNT
- XML 4.3, 4.4, 4.5
- PRIORITY_CLAIMS_PATENT_NUMBER
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/priority-claims/priority-claim/doc-number
- APS
PRIR:APN
- XML 4.3, 4.4, 4.5
- IPCR_SUBCLASS
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/classifications-ipcr/classification-ipcr/section
+//us-bibliographic-data-grant/classifications-ipcr/classification-ipcr/class
+//us-bibliographic-data-grant/classifications-ipcr/classification-ipcr/subclass
- APS
- ?
- XML 4.3, 4.4, 4.5
- IPCR_MAIN_GROUP
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/classifications-ipcr/classification-ipcr/main-group
- APS
- ?
- XML 4.3, 4.4, 4.5
- IPCR_SUB_GROUP
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/classifications-ipcr/classification-ipcr/subgroup
- APS
- ?
- XML 4.3, 4.4, 4.5
- CPC_SUBCLASS
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/classifications-cpc/main-cpc/classification-cpc/section
+//us-bibliographic-data-grant/classifications-cpc/main-cpc/classification-cpc/class
+//us-bibliographic-data-grant/classifications-cpc/main-cpc/classification-cpc/subclass
- APS
- ?
- XML 4.3, 4.4, 4.5
- CPC_MAIN_GROUP
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/classifications-cpc/main-cpc/classification-cpc/main-group
- APS
- ?
- XML 4.3, 4.4, 4.5
- CPC_SUB_GROUP
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/classifications-cpc/main-cpc/classification-cpc/subgroup
- APS
- ?
- XML 4.3, 4.4, 4.5
- CLASSIFICATION_NATIONAL_COUNTRY
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
//us-bibliographic-data-grant/classification-national/country
//us-bibliographic-data-grant/us-field-of-classification-search/classification-national/country
- APS
- ?
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
- CLASSIFICATION_NATIONAL_CLASS
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
//us-bibliographic-data-grant/classification-national/main-classification
//us-bibliographic-data-grant/us-field-of-classification-search/classification-national/country
- APS
- ?
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
- PRIMARY_EXAMINER_FIRST_NAME
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/examiners/primary-examiner/first-name
- APS
PATN:EXP
(whole name)
- XML 4.3, 4.4, 4.5
- PRIMARY_EXAMINER_LAST_NAME
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/examiners/primary-examiner/last-name
- APS
- N/A (
PATN:EXP
has whole name)
- N/A (
- XML 4.3, 4.4, 4.5
- PRIMARY_EXAMINER_DEPARTMENT
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/examiners/primary-examiner/department
- APS
- ?
- XML 4.3, 4.4, 4.5
numbers
- NUMBER_OF_CLAIMS
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/number-of-claims
- APS
PATN:NCL
- XML 4.3, 4.4, 4.5
citations (all are strings)
- SEQUENCE
- XML 4.3, 4.4, 4.5
//us-parties/inventors/inventor/sequence
- XML 4.0, 4.1, 4.2
//parties/applicants/applicant/sequence
- APS
- ?
- XML 4.3, 4.4, 4.5
- LAST_NAME
- XML 4.3, 4.4, 4.5
//us-parties/inventors/inventor/addressbook/last-name
- XML 4.0, 4.1, 4.2
//parties/applicants/applicant/addressbook/last-name
- APS
- N/A (see ORG_NAME)
- XML 4.3, 4.4, 4.5
- FIRST_NAME
- XML 4.3, 4.4, 4.5
//us-parties/inventors/inventor/addressbook/first-name
- XML 4.0, 4.1, 4.2
//parties/applicants/applicant/addressbook/first-name
- APS
- N/A (see ORG_NAME)
- XML 4.3, 4.4, 4.5
- ORG_NAME
- XML 4.3, 4.4, 4.5
//us-parties/inventors/inventor/addressbook/orgname
- XML 4.0, 4.1, 4.2
//parties/applicants/applicant/addressbook/orgname
- APS
INVT:NAM
(whole name, might be of an individual)
- XML 4.3, 4.4, 4.5
- CITY
- XML 4.3, 4.4, 4.5
- ?
- XML 4.0, 4.1, 4.2
- ?
- APS
INVT:CTY
- XML 4.3, 4.4, 4.5
- COUNTRY
- XML 4.3, 4.4, 4.5
- ?
- XML 4.0, 4.1, 4.2
- ?
- APS
INVT:CNT
- XML 4.3, 4.4, 4.5
- STATE
- XML 4.3, 4.4, 4.5
- ?
- XML 4.0, 4.1, 4.2
- ?
- APS
INVT:STA
- XML 4.3, 4.4, 4.5
- ADDRESS
- XML 4.3, 4.4, 4.5
- ?
- XML 4.0, 4.1, 4.2
- ?
- APS
INVT:STR
- XML 4.3, 4.4, 4.5
- POSTCODE
- XML 4.3, 4.4, 4.5
- ?
- XML 4.0, 4.1, 4.2
- ?
- APS
INVT:ZIP
- XML 4.3, 4.4, 4.5
scirefs (all are strings)
- CITATION_DESCRIPTION
- XML 4.3, 4.4, 4.5
//us-bibliographic-data-grant/us-references-cited/us-citation/nplcit/othercit
- XML 4.0, 4.1, 4.2
//us-bibliographic-data-grant/references-cited/citation/nplcit/othercit
- APS
- ?
- XML 4.3, 4.4, 4.5
inventors (all are strings)
- SEQUENCE
- XML 4.3, 4.4, 4.5
//us-parties/inventors/inventor/sequence
- XML 4.0, 4.1, 4.2
//parties/applicants/applicant/sequence
- XML 4.3, 4.4, 4.5
- LAST_NAME
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
//us-parties/inventors/inventor/addressbook/last-name
//us-parties/inventors/inventor/last-name
- XML 4.0, 4.1, 4.2 (first listed is highest preference)
//parties/applicants/applicant/addressbook/last-name
//parties/applicants/applicant/last-name
- APS
- N/A (see ORG_NAME)
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
- FIRST_NAME
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
//us-parties/inventors/inventor/addressbook/first-name
//us-parties/inventors/inventor/first-name/
- XML 4.0, 4.1, 4.2 (first listed is highest preference)
//parties/applicants/applicant/addressbook/first-name
//parties/applicants/applicant/first-name
- APS
- N/A (see ORG_NAME
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
- ORG_NAME
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
//us-parties/inventors/inventor/addressbook/orgname
//us-parties/inventors/inventor/orgname/
- XML 4.0, 4.1, 4.2 (first listed is highest preference)
//parties/applicants/applicant/addressbook/orgname
//parties/applicants/applicant/orgname
- APS
INVT:NAM
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
- CITY
- XML 4.3, 4.4, 4.5
- ?
- APS
INVT:CTY
- XML 4.3, 4.4, 4.5
- COUNTRY
- XML 4.3, 4.4, 4.5
- ?
- APS
INVT:CNT
- XML 4.3, 4.4, 4.5
- STATE
- XML 4.3, 4.4, 4.5
- ?
- APS
INVT:STA
- XML 4.3, 4.4, 4.5
- ADDRESS
- XML 4.3, 4.4, 4.5
- ?
- APS
INVT:STR
- XML 4.3, 4.4, 4.5
- POSTCODE
- XML 4.3, 4.4, 4.5
- ?
- APS
INVT:ZIP
- XML 4.3, 4.4, 4.5
assignments (only strings)
- LAST_NAME
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
//assignees/assignee/addressbook/last-name
//assignees/assignee/last-name
- APS
- N/A (see ORG_NAME)
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
- FIRST_NAME
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
//assignees/assignee/addressbook/first-name
//assignees/assignee/first-name/
- APS
- N/A (see ORG_NAME
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
- ORG_NAME
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
//assignees/assignee/addressbook/orgname
//assignees/assigneeorgname/
- APS
ASSG:NAM
- XML 4.3, 4.4, 4.5 (first listed is highest preference)
- CITY
- XML 4.3, 4.4, 4.5
- ?
- APS
ASSG:CTY
- XML 4.3, 4.4, 4.5
- COUNTRY
- XML 4.3, 4.4, 4.5
- ?
- APS
ASSG:CNT
- XML 4.3, 4.4, 4.5
- STATE
- XML 4.3, 4.4, 4.5
- ?
- APS
ASSG:STA
- XML 4.3, 4.4, 4.5
- ADDRESS
- XML 4.3, 4.4, 4.5
- ?
- APS
ASSG:STR
- XML 4.3, 4.4, 4.5
- POSTCODE
- XML 4.3, 4.4, 4.5
- ?
- APS
ASSG:ZIP
- XML 4.3, 4.4, 4.5
lawyers (only strings)
Examples
TODO