== TODO Query Equivalences ==Note: xpaths are for all design types (utility, reissue, plant, design) unless otherwise noted. Only granted patents have been checked so far. Notes to remember: All the text under each text file in E:\McNair\Projects\SimplerPatentData\data\examples\granted appears under the following lines of text, indicating that every XML should perhaps include these headers (the headers aren't closed anywhere in the text files in E:\McNair\Projects\SimplerPatentData\data\examples\granted; for example, there's no </us-patent-grant> towards the end of the text file. <nowiki><?xml version="1.0" encoding="UTF-8"?><!DOCTYPE us-patent-grant SYSTEM "us-patent-grant-v45-2014-04-03.dtd" [ ]><us-patent-grant</nowiki> Ignoring the above three lines for every text file (changes to XMLs can be made later with RegEx), the XMLs for ''sequence'', and ''last-name'', respectively, from the lines of code below it are: <nowiki>//us-bibliographic-data-grant/inventors/inventor/@sequence</nowiki> <nowiki>//us-bibliographic-data-grant/inventors/inventor/addressbook/last-name</nowiki> <nowiki><inventors><inventor sequence="001" designation="us-only"><addressbook><last-name>Kobelt</last-name><first-name>Markus</first-name><address><city>Buchs</city><country>CH</country></address></addressbook></inventor></nowiki> Also note: the lack of a certain entry for a certain version and type simply means that it was missing from the single example located in the E:\McNair\Projects\SimplerPatentData\data\examples\Patent Schema Reconciliation\granted file. The presence or lack of a certain entry could mean either that it is missing systematically (and would presumably be missing for all other examples of that version and type), or simply that that single example, in contrast to other examples for that version and type, lacked an entry. ==Granted==
** XML 4.1, 4.2, 4.3, 4.4, and 4.5, only for plant, reissue, and utility types*** <code>//us-bibliographic-data-grant/classifications-ipcr/classification-ipcr/section</code> + <code>//us-bibliographic-data-grant/classifications-ipcr/classification-ipcr/class</code> + <code>//us-bibliographic-data-grant/classifications-ipcr/classification-ipcr/subclass</code>***example: C
** APS
*** ?
* '''IPCR_MAIN_GROUP'''
** XML 4.1, 4.2, 4.3, 4.4, and 4.5, only for plant, reissue, and utility types
** for XML 4.35 utility, 4.4, 4.5reissue types*** <code>//us-bibliographic-data-grant/classifications-cpc/main-cpc/classification-cpc/section</code> + <code>//us-bibliographic-data-grant/classifications-cpc/main-cpc/classification-cpc/class</code> + <code>//us-bibliographic-data-grant/classifications-cpc/main-cpc/classification-cpc/subclass</code>example: C
*** <code>//us-bibliographic-data-grant/us-parties/inventorsus-applicants/inventorus-applicant/addressbook/first-name</code>***example: Nicholas George Alfred, Kevin
** XML 4.0, 4.1, 4.2
*** <code>//us-bibliographic-data-grant/parties/applicants/applicant/addressbook/first-name</code>***example: Gerhard
** APS
*** N/A (see '''ORG_NAME''')
* '''ORG_NAME'''
** XML 4v4.35 utility, 4.4reissue, 4.5plant*** <code>//us-bibliographic-data-grant/us-parties/inventorsus-applicants/inventorus-applicant/addressbook/orgname</code>** XML 4*examples: W.0Kordes' Söhne Rosenschulen GmbH & Co KG [this is one example, 4.1, 4.2*** <code>included to show the variety of characters//parties/applicants/applicant/addressbook/orgname</code>** APSsymbols included in orgnames]
*** <code>INVT:NAM</code> (whole name, might be of an individual)
* '''CITY'''
** XML v4.3-v4.5, all types*** <code>//us-bibliographic-data-grant/us-parties/us-applicants/us-applicant/addressbook/address/city</code>*** example:New York; México D. F.**XML v4.0-v4.2***<code>//us-bibliographic-data-grant/parties/applicants/applicant/addressbook/address/city</code>** APS*** <code>INVT:CTY</code> * '''COUNTRY'''** XML v4.3-v4.5, all types*** <code>//us-bibliographic-data-grant/us-parties/us-applicants/us-applicant/addressbook/address/country</code>*** example:New York; México D. F.**XML v4.0-v4.2, all types***<code>//us-bibliographic-data-grant/parties/applicants/applicant/addressbook/address/country</code>** APS*** <code>INVT:CNT</code> * '''STATE'''** XML v4.3-v4.5, all types*** <code>//us-bibliographic-data-grant/us-parties/us-applicants/us-applicant/addressbook/address/state</code>*** example:New York; México D. F.**XML v4.0-v4.2, all types***<code>//us-bibliographic-data-grant/parties/applicants/applicant/addressbook/address/state</code>** APS*** <code>INVT:STA</code> * '''ADDRESS'''** XML v4.3-v4.5, all types*** <code>//us-bibliographic-data-grant/us-parties/us-applicants/us-applicant/addressbook/address</code>*** example:New York; México D. F.** XML v4.0-v4.2, all types***<code>//us-bibliographic-data-grant/parties/applicants/applicant/addressbook/address</code>*** Examples: <nowiki><city>London</city><country>GB</country></nowiki> <nowiki><city>Coraopolis</city><state>PA</state><country>US</country></nowiki> * '''POSTCODE'''** XML v4.2 design*** Example: <code>//us-bibliographic-data-grant/parties/applicants/applicant/addressbook/address/postcode</code>** APS*** <code>INVT:ZIP</code> === scirefs (all are strings-unsure??) === ===Citations=== * '''CITATION_DESCRIPTION'''** XML 4.3design type, 4.4reissue type, 4.5all types*** <code>//us-bibliographic-data-grant/us-references-cited/us-citation/nplcit/othercit</code>***examples: ****www.bikesomewhere.com/bikesomewhere.cfm/product/7/4138/15270****Photograph that is representative of an angle-cut tip for a continuous geared hinge that was publicly used or on sale more than one (1) year prior to the filing date of U.S. Appl. No. 61/231,249, filed Aug. 4, 2009.** XML 4.0 reissue type, 4.1 plant type, 4.2 all types*** <code>//us-bibliographic-data-grant/references-cited/citation/nplcit/othercit</code>***example: http://www.cpvo.eu.int/module_tech/rights_granted.php?SPECIED=FIT02.** APS
*** ?
* '''CITATION NUMBER'''** XML v4.3-v4.5, design, reissue and utility types *** <code>//us-bibliographic-data-grant/us-references-cited/us-citation/patcit/num</code>***example: "00001"**XML v4.0-v4.2, design, reissue and utility types***example: "00001"*** <code>//us-bibliographic-data-grant/references-cited/citation/patcit/num</code> *'''NPL CITATION NUMBER'''**XML v4.5, v4.4 reissue, v4.3 design*** <code>//us-bibliographic-data-grant/us-references-cited/us-citation/nplcit/num</code>*** example:"00017"** XML v4.2 utility, reissue, design types, 4.1 plant type, v4.0 reissue type*** <code>//us-bibliographic-data-grant/references-cited/citation/nplcit/num</code>***example: "00007" *'''COUNTRY'''** XML v4.3-v4,5 design, reissue, utility types*** <code>//us-bibliographic-data-grant/us-references-cited/us-citation/patcit/document-id/country>***example: US** XML v4.0-v4.2 design, reissue, utility types*** <code>//us-bibliographic-data-grant/references-cited/citation/patcit/document-id/country></code>***example: US *'''CITATIONS DOC NUMBER'''** XML v4.3-v4.5 design, reissue, utility types*** <code>//us-bibliographic-data-grant/us-references-cited/us-citation/patcit/document-id/doc-number>***example: 19830700** XML v4.0-v4.2 design, reissue, utility types*** <code>//us-bibliographic-data-grant/references-cited/citation/patcit/document-id/doc-number></code>***example: 4393877 *'''CITATIONS KIND'''** XML v4.3-v4.5 design, reissue, utility types*** <code>//us-bibliographic-data-grant/us-references-cited/us-citation/patcit/document-id/kind>***example: B1** XML v4.0-v4.2 design, reissue, utility types*** <code>//us-bibliographic-data-grant/references-cited/citation/patcit/document-id/kind></code>***example: A *'''CITATIONS NAME'''** XML v4.3-v4.5 design, reissue, utility types*** <code>//us-bibliographic-data-grant/us-references-cited/us-citation/patcit/document-id/name>***example: Prairie et al.** XML v4.0-v4.2 design, reissue, utility types*** <code>//us-bibliographic-data-grant/references-cited/citation/patcit/document-id/name>***example: Imran et al. *'''CITATIONS DATE'''** XML v4.3-v4.5 design, reissue, utility types*** <code>//us-bibliographic-data-grant/us-references-cited/us-citation/patcit/document-id/date>***example: 20020500** XML v4.0-v4.2 design, reissue, utility types*** <code>//us-bibliographic-data-grant/references-cited/citation/patcit/document-id/date>***example: 19830700 === inventors (all are strings) === * '''SEQUENCE'''** XML 4.3, 4.14, 4.25, all types*** <code>//us-bibliographic-data-grant/us-parties/inventors/inventor/sequence</code>***examples: "001"; "002"** APS
Note: foreign countries had no listed state; territories or states were included in the city listing. For the sake of time these haven't been checked for being domestic; presumably some of these versions lack ''state'' entries.
** XML v4.5 types utility, plant, reissue; v4.4 plant, reissue, design types; v4.3 all types; v4.2 reissue, plant types; v4.1 all types; v4.0 utility and reissue types.
No address data exists for any versions or examples:
* '''CITY'''
** XML 4.3, 4.4, 4.5
*** ?
** APS*** <code>LREP:CTY</code> * '''COUNTRY'''** XML 4.03, 4.14, 4.25
*** ?
** APS
*** <code>INVTLREP:CNT</code>
* '''STATE'''
** XML 4.3, 4.4, 4.5
*** ?
** XML 4.0, 4.1, 4.2
*** ?
** APS
*** <code>INVTLREP:STA</code>
* '''ADDRESS'''
** XML 4.3, 4.4, 4.5
*** ?
** XML 4.0, 4.1, 4.2
*** ?
** APS
*** <code>INVTLREP:STR</code>
* '''POSTCODE'''
** XML 4.3, 4.4, 4.5
*** ?
** XML 4.0, 4.1, 4.2
*** ?
** APS
*** <code>INVTLREP:ZIP</code> ===citations header=== ==Applications==*The only examples in the applications folder were plant type v4.2-v4.4, and utility type v4.0-v4.4. Two files with v1.5 and v1.6 (of unknown type) were ignored. == Examples ==
=== scirefs (only strings) ===* APS
=== inventors (only strings) ===The first APS entry of <code>E:\McNair\Projects\SimplerPatentData\data\extracts\granted\pftaps19760106_wk01.txt</code> as a GrantedPatent is
<nowiki>strings: {PCT_DOCUMENT_NUMBER=null, PATENT_NUMBER=RE0286710, PATENT_GRANT_DATE=19760106, TITLE=Hydrophone damper assembly, APPLICATION_FILING_DATE=19740826, PRIMARY_EXAMINER_FIRST_NAME=Blix; Trygve M., PATENT_TYPE=2, APPLICATION_NUMBER=500649&, PRIORITY_CLAIMS_DATE=null, PRIORITY_CLAIMS_COUNTRY=null, PRIORITY_CLAIMS_PATENT_NUMBER=null}integers: {NUMBER_OF_CLAIMS= assignments (only 18}extras: {class org.bakerinstitute.mcnair.models.Citation=[], class org.bakerinstitute.mcnair.models.Sciref=[], class org.bakerinstitute.mcnair.models.Inventor=[strings) : {STATE=MI, ORG_NAME=Widenhofer; James W., COUNTRY=null, CITY=Jackson, ADDRESS=null, POSTCODE=null, CITING_PATENT=RE0286710}integers: {}], class org.bakerinstitute.mcnair.models.AssignmentSummary=[strings: {COUNTRY=null, CITING_PATENT=RE0286710, CITY=Jackson, POSTCODE=null, ORG_NAME=Sparton Corporation, STATE=MI}integers: {}], class org.bakerinstitute.mcnair.models.Lawyer=[strings: {FIRST_NAME=null, CITY=null, POSTCODE=null, COUNTRY=null, STATE=null, CITING_PATENT=RE0286710, ORG_NAME=Beaman & Beaman, ADDRESS=null}integers: {}]}</nowiki>
=== lawyers (only strings) ===* XML 4.5
== Examples ==The first XML entry of <code>E:\McNair\Projects\SimplerPatentData\data\extracts\granted\ipg161227.xml</code> as a GrantedPatent is