wipo-gbd-transformation 1.1.105__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gbdtransformation/__init__.py +0 -0
- gbdtransformation/brands/__init__.py +44 -0
- gbdtransformation/brands/aetm/__init__.py +5 -0
- gbdtransformation/brands/aetm/filters.py +84 -0
- gbdtransformation/brands/aetm/schema +87 -0
- gbdtransformation/brands/aetm/template.yml +1 -0
- gbdtransformation/brands/aetm/tests/__init__.py +0 -0
- gbdtransformation/brands/altm/__init__.py +6 -0
- gbdtransformation/brands/altm/filters.py +107 -0
- gbdtransformation/brands/altm/schema +83 -0
- gbdtransformation/brands/altm/template.yml +1 -0
- gbdtransformation/brands/altm/tests/__init__.py +0 -0
- gbdtransformation/brands/altm/tests/altm.xml +93 -0
- gbdtransformation/brands/aptm/__init__.py +15 -0
- gbdtransformation/brands/aptm/filters.py +80 -0
- gbdtransformation/brands/aptm/schema +87 -0
- gbdtransformation/brands/aptm/template.yml +1 -0
- gbdtransformation/brands/aptm/tests/__init__.py +0 -0
- gbdtransformation/brands/attm/__init__.py +6 -0
- gbdtransformation/brands/attm/filters.py +76 -0
- gbdtransformation/brands/attm/schema +52 -0
- gbdtransformation/brands/attm/template.yml +85 -0
- gbdtransformation/brands/autm/__init__.py +2 -0
- gbdtransformation/brands/autm/filters.py +222 -0
- gbdtransformation/brands/autm/schema +91 -0
- gbdtransformation/brands/autm/template.yml +157 -0
- gbdtransformation/brands/bgtm/__init__.py +5 -0
- gbdtransformation/brands/bgtm/filters.py +112 -0
- gbdtransformation/brands/bgtm/schema +314 -0
- gbdtransformation/brands/bgtm/template.yml +154 -0
- gbdtransformation/brands/bhtm/__init__.py +12 -0
- gbdtransformation/brands/bhtm/filters.py +87 -0
- gbdtransformation/brands/bhtm/schema +87 -0
- gbdtransformation/brands/bhtm/template.yml +1 -0
- gbdtransformation/brands/bhtm/tests/__init__.py +0 -0
- gbdtransformation/brands/bntm/__init__.py +2 -0
- gbdtransformation/brands/bntm/filters.py +75 -0
- gbdtransformation/brands/bntm/schema +87 -0
- gbdtransformation/brands/bntm/template.yml +1 -0
- gbdtransformation/brands/bntm/tests/__init__.py +0 -0
- gbdtransformation/brands/brtm/__init__.py +3 -0
- gbdtransformation/brands/brtm/filters.py +169 -0
- gbdtransformation/brands/brtm/schema +86 -0
- gbdtransformation/brands/brtm/template.yml +22 -0
- gbdtransformation/brands/brtm/tests/__init__.py +0 -0
- gbdtransformation/brands/brtm/tests/test01.xml +53 -0
- gbdtransformation/brands/bttm/__init__.py +10 -0
- gbdtransformation/brands/bttm/filters.py +80 -0
- gbdtransformation/brands/bttm/schema +87 -0
- gbdtransformation/brands/bttm/template.yml +1 -0
- gbdtransformation/brands/bttm/tests/__init__.py +0 -0
- gbdtransformation/brands/bwtm/__init__.py +13 -0
- gbdtransformation/brands/bwtm/filters.py +90 -0
- gbdtransformation/brands/bwtm/schema +87 -0
- gbdtransformation/brands/bwtm/template.yml +1 -0
- gbdtransformation/brands/bwtm/tests/__init__.py +0 -0
- gbdtransformation/brands/bztm/__init__.py +16 -0
- gbdtransformation/brands/bztm/filters.py +77 -0
- gbdtransformation/brands/bztm/schema +87 -0
- gbdtransformation/brands/bztm/template.yml +1 -0
- gbdtransformation/brands/bztm/tests/__init__.py +0 -0
- gbdtransformation/brands/catm/__init__.py +10 -0
- gbdtransformation/brands/catm/filters.py +272 -0
- gbdtransformation/brands/catm/schema +804 -0
- gbdtransformation/brands/catm/template.yml +230 -0
- gbdtransformation/brands/chtm/__init__.py +6 -0
- gbdtransformation/brands/chtm/filters.py +161 -0
- gbdtransformation/brands/chtm/schema +79 -0
- gbdtransformation/brands/chtm/template.yml +121 -0
- gbdtransformation/brands/cltm/__init__.py +2 -0
- gbdtransformation/brands/cltm/filters.py +80 -0
- gbdtransformation/brands/cltm/schema +86 -0
- gbdtransformation/brands/cltm/template.yml +1 -0
- gbdtransformation/brands/cltm/tests/__init__.py +0 -0
- gbdtransformation/brands/crtm/__init__.py +5 -0
- gbdtransformation/brands/crtm/filters.py +196 -0
- gbdtransformation/brands/crtm/schema +86 -0
- gbdtransformation/brands/crtm/template.yml +1 -0
- gbdtransformation/brands/crtm/tests/__init__.py +0 -0
- gbdtransformation/brands/cutm/__init__.py +10 -0
- gbdtransformation/brands/cutm/filters.py +94 -0
- gbdtransformation/brands/cutm/schema +86 -0
- gbdtransformation/brands/cutm/template.yml +4 -0
- gbdtransformation/brands/cutm/tests/__init__.py +0 -0
- gbdtransformation/brands/detm/__init__.py +19 -0
- gbdtransformation/brands/detm/filters.py +75 -0
- gbdtransformation/brands/detm/schema +511 -0
- gbdtransformation/brands/detm/template.yml +151 -0
- gbdtransformation/brands/dktm/__init__.py +7 -0
- gbdtransformation/brands/dktm/filters.py +90 -0
- gbdtransformation/brands/dktm/schema +95 -0
- gbdtransformation/brands/dktm/template.yml +114 -0
- gbdtransformation/brands/dztm/__init__.py +10 -0
- gbdtransformation/brands/dztm/filters.py +81 -0
- gbdtransformation/brands/dztm/schema +87 -0
- gbdtransformation/brands/dztm/template.yml +1 -0
- gbdtransformation/brands/dztm/tests/__init__.py +0 -0
- gbdtransformation/brands/eetm/__init__.py +8 -0
- gbdtransformation/brands/eetm/filters.py +115 -0
- gbdtransformation/brands/eetm/schema +48 -0
- gbdtransformation/brands/eetm/template.yml +98 -0
- gbdtransformation/brands/egtm/__init__.py +5 -0
- gbdtransformation/brands/egtm/filters.py +73 -0
- gbdtransformation/brands/egtm/schema +87 -0
- gbdtransformation/brands/egtm/template.yml +1 -0
- gbdtransformation/brands/egtm/tests/__init__.py +0 -0
- gbdtransformation/brands/emtm/__init__.py +3 -0
- gbdtransformation/brands/emtm/filters.py +96 -0
- gbdtransformation/brands/emtm/schema +314 -0
- gbdtransformation/brands/emtm/template.yml +125 -0
- gbdtransformation/brands/estm/__init__.py +3 -0
- gbdtransformation/brands/estm/filters.py +110 -0
- gbdtransformation/brands/estm/schema +99 -0
- gbdtransformation/brands/estm/template.yml +144 -0
- gbdtransformation/brands/filters.py +125 -0
- gbdtransformation/brands/frtm/__init__.py +2 -0
- gbdtransformation/brands/frtm/filters.py +172 -0
- gbdtransformation/brands/frtm/schema +300 -0
- gbdtransformation/brands/frtm/template.yml +203 -0
- gbdtransformation/brands/gbtm/__init__.py +3 -0
- gbdtransformation/brands/gbtm/filters.py +122 -0
- gbdtransformation/brands/gbtm/schema +362 -0
- gbdtransformation/brands/gbtm/template.yml +147 -0
- gbdtransformation/brands/gdtm/__init__.py +5 -0
- gbdtransformation/brands/gdtm/filters.py +68 -0
- gbdtransformation/brands/gdtm/schema +87 -0
- gbdtransformation/brands/gdtm/template.yml +1 -0
- gbdtransformation/brands/gdtm/tests/__init__.py +0 -0
- gbdtransformation/brands/getm/__init__.py +3 -0
- gbdtransformation/brands/getm/filters.py +68 -0
- gbdtransformation/brands/getm/schema +209 -0
- gbdtransformation/brands/getm/template.yml +142 -0
- gbdtransformation/brands/ghtm/__init__.py +12 -0
- gbdtransformation/brands/ghtm/filters.py +74 -0
- gbdtransformation/brands/ghtm/schema +86 -0
- gbdtransformation/brands/ghtm/template.yml +1 -0
- gbdtransformation/brands/ghtm/tests/__init__.py +0 -0
- gbdtransformation/brands/gmtm/__init__.py +7 -0
- gbdtransformation/brands/gmtm/filters.py +70 -0
- gbdtransformation/brands/gmtm/schema +86 -0
- gbdtransformation/brands/gmtm/template.yml +1 -0
- gbdtransformation/brands/gmtm/tests/__init__.py +0 -0
- gbdtransformation/brands/gstm/__init__.py +2 -0
- gbdtransformation/brands/gstm/filters.py +75 -0
- gbdtransformation/brands/gstm/template.gs.yml +56 -0
- gbdtransformation/brands/gstm/template.yml +32 -0
- gbdtransformation/brands/hrtm/__init__.py +3 -0
- gbdtransformation/brands/hrtm/filters.py +158 -0
- gbdtransformation/brands/hrtm/schema +43 -0
- gbdtransformation/brands/hrtm/template.yml +205 -0
- gbdtransformation/brands/idtm/__init__.py +12 -0
- gbdtransformation/brands/idtm/filters.py +95 -0
- gbdtransformation/brands/idtm/schema +86 -0
- gbdtransformation/brands/idtm/template.yml +1 -0
- gbdtransformation/brands/idtm/tests/__init__.py +0 -0
- gbdtransformation/brands/idtm/tests/translation.xml +106 -0
- gbdtransformation/brands/idtm/tests/unicode.xml +120 -0
- gbdtransformation/brands/iltm/__init__.py +2 -0
- gbdtransformation/brands/iltm/filters.py +91 -0
- gbdtransformation/brands/iltm/schema +87 -0
- gbdtransformation/brands/iltm/template.yml +213 -0
- gbdtransformation/brands/iltm/tests/__init__.py +0 -0
- gbdtransformation/brands/iltm/tests/cancellations.xml +156 -0
- gbdtransformation/brands/iltm/tests/collcert.xml +51 -0
- gbdtransformation/brands/iltm/tests/eventdata.xml +83 -0
- gbdtransformation/brands/iltm/tests/international.xml +80 -0
- gbdtransformation/brands/iltm/tests/markfeature.xml +117 -0
- gbdtransformation/brands/iltm/tests/noevents.xml +44 -0
- gbdtransformation/brands/iltm/tests/opposition.xml +147 -0
- gbdtransformation/brands/iltm/tests/tlit.xml +77 -0
- gbdtransformation/brands/intm/__init__.py +6 -0
- gbdtransformation/brands/intm/filters.py +75 -0
- gbdtransformation/brands/intm/schema +127 -0
- gbdtransformation/brands/intm/template.yml +112 -0
- gbdtransformation/brands/ipas/__init__.py +0 -0
- gbdtransformation/brands/ipas/filters.py +203 -0
- gbdtransformation/brands/ipas/template.yml +185 -0
- gbdtransformation/brands/istm/__init__.py +10 -0
- gbdtransformation/brands/istm/filters.py +60 -0
- gbdtransformation/brands/istm/schema +53 -0
- gbdtransformation/brands/istm/template.yml +119 -0
- gbdtransformation/brands/ittm/__init__.py +6 -0
- gbdtransformation/brands/ittm/filters.py +114 -0
- gbdtransformation/brands/ittm/schema +104 -0
- gbdtransformation/brands/ittm/template.yml +107 -0
- gbdtransformation/brands/jotm/__init__.py +8 -0
- gbdtransformation/brands/jotm/filters.py +61 -0
- gbdtransformation/brands/jotm/schema +86 -0
- gbdtransformation/brands/jotm/template.yml +1 -0
- gbdtransformation/brands/jotm/tests/__init__.py +0 -0
- gbdtransformation/brands/jotm/tests/test.xml +84 -0
- gbdtransformation/brands/jptm/__init__.py +6 -0
- gbdtransformation/brands/jptm/filters.py +79 -0
- gbdtransformation/brands/jptm/schema +39 -0
- gbdtransformation/brands/jptm/template.yml +113 -0
- gbdtransformation/brands/ketm/__init__.py +9 -0
- gbdtransformation/brands/ketm/filters.py +77 -0
- gbdtransformation/brands/ketm/schema +86 -0
- gbdtransformation/brands/ketm/template.yml +1 -0
- gbdtransformation/brands/ketm/tests/__init__.py +0 -0
- gbdtransformation/brands/kgtm/__init__.py +6 -0
- gbdtransformation/brands/kgtm/filters.py +67 -0
- gbdtransformation/brands/kgtm/schema +27 -0
- gbdtransformation/brands/kgtm/template.yml +58 -0
- gbdtransformation/brands/khtm/__init__.py +14 -0
- gbdtransformation/brands/khtm/filters.py +134 -0
- gbdtransformation/brands/khtm/schema +86 -0
- gbdtransformation/brands/khtm/template.yml +1 -0
- gbdtransformation/brands/khtm/tests/__init__.py +0 -0
- gbdtransformation/brands/khtm/tests/khtm.xml +122 -0
- gbdtransformation/brands/krtm/__init__.py +6 -0
- gbdtransformation/brands/krtm/filters.py +136 -0
- gbdtransformation/brands/krtm/schema +179 -0
- gbdtransformation/brands/krtm/template.yml +186 -0
- gbdtransformation/brands/kwtm/__init__.py +2 -0
- gbdtransformation/brands/kwtm/filters.py +69 -0
- gbdtransformation/brands/kwtm/schema +86 -0
- gbdtransformation/brands/kwtm/template.yml +1 -0
- gbdtransformation/brands/kwtm/tests/__init__.py +0 -0
- gbdtransformation/brands/kwtm/tests/test.xml +84 -0
- gbdtransformation/brands/kztm/__init__.py +242 -0
- gbdtransformation/brands/kztm/filters.py +140 -0
- gbdtransformation/brands/kztm/schema +36 -0
- gbdtransformation/brands/kztm/template.yml +117 -0
- gbdtransformation/brands/latm/__init__.py +7 -0
- gbdtransformation/brands/latm/filters.py +93 -0
- gbdtransformation/brands/latm/schema +86 -0
- gbdtransformation/brands/latm/template.yml +1 -0
- gbdtransformation/brands/latm/tests/__init__.py +0 -0
- gbdtransformation/brands/latm/tests/test.xml +112 -0
- gbdtransformation/brands/lktm/__init__.py +5 -0
- gbdtransformation/brands/lktm/filters.py +83 -0
- gbdtransformation/brands/lktm/schema +87 -0
- gbdtransformation/brands/lktm/template.yml +1 -0
- gbdtransformation/brands/lktm/tests/__init__.py +0 -0
- gbdtransformation/brands/matm/__init__.py +3 -0
- gbdtransformation/brands/matm/filters.py +36 -0
- gbdtransformation/brands/matm/schema +33 -0
- gbdtransformation/brands/matm/template.yml +72 -0
- gbdtransformation/brands/mctm/__init__.py +3 -0
- gbdtransformation/brands/mctm/filters.py +65 -0
- gbdtransformation/brands/mctm/schema +128 -0
- gbdtransformation/brands/mctm/template.yml +122 -0
- gbdtransformation/brands/mdtm/__init__.py +3 -0
- gbdtransformation/brands/mdtm/filters.py +64 -0
- gbdtransformation/brands/mdtm/schema +128 -0
- gbdtransformation/brands/mdtm/template.yml +122 -0
- gbdtransformation/brands/metm/__init__.py +5 -0
- gbdtransformation/brands/metm/filters.py +87 -0
- gbdtransformation/brands/metm/schema +87 -0
- gbdtransformation/brands/metm/template.yml +1 -0
- gbdtransformation/brands/metm/tests/__init__.py +0 -0
- gbdtransformation/brands/mgtm/__init__.py +7 -0
- gbdtransformation/brands/mgtm/filters.py +73 -0
- gbdtransformation/brands/mgtm/schema +86 -0
- gbdtransformation/brands/mgtm/template.yml +1 -0
- gbdtransformation/brands/mgtm/tests/__init__.py +0 -0
- gbdtransformation/brands/mgtm/tests/test.xml +107 -0
- gbdtransformation/brands/mktm/__init__.py +6 -0
- gbdtransformation/brands/mktm/filters.py +63 -0
- gbdtransformation/brands/mktm/schema +80 -0
- gbdtransformation/brands/mktm/template.yml +112 -0
- gbdtransformation/brands/mntm/__init__.py +11 -0
- gbdtransformation/brands/mntm/filters.py +99 -0
- gbdtransformation/brands/mntm/schema +86 -0
- gbdtransformation/brands/mntm/template.yml +1 -0
- gbdtransformation/brands/mntm/tests/__init__.py +0 -0
- gbdtransformation/brands/mwtm/__init__.py +11 -0
- gbdtransformation/brands/mwtm/filters.py +80 -0
- gbdtransformation/brands/mwtm/schema +86 -0
- gbdtransformation/brands/mwtm/template.yml +1 -0
- gbdtransformation/brands/mwtm/tests/__init__.py +0 -0
- gbdtransformation/brands/mxtm/__init__.py +6 -0
- gbdtransformation/brands/mxtm/filters.py +77 -0
- gbdtransformation/brands/mxtm/schema +81 -0
- gbdtransformation/brands/mxtm/template.yml +127 -0
- gbdtransformation/brands/mytm/__init__.py +17 -0
- gbdtransformation/brands/mytm/filters.py +125 -0
- gbdtransformation/brands/mytm/schema +86 -0
- gbdtransformation/brands/mytm/template.yml +1 -0
- gbdtransformation/brands/mytm/tests/__init__.py +0 -0
- gbdtransformation/brands/mytm/tests/example.xml +132 -0
- gbdtransformation/brands/mytm/tests/mytm.xml +132 -0
- gbdtransformation/brands/mztm/__init__.py +14 -0
- gbdtransformation/brands/mztm/filters.py +89 -0
- gbdtransformation/brands/mztm/schema +86 -0
- gbdtransformation/brands/mztm/template.yml +1 -0
- gbdtransformation/brands/mztm/tests/__init__.py +0 -0
- gbdtransformation/brands/natm/__init__.py +11 -0
- gbdtransformation/brands/natm/filters.py +88 -0
- gbdtransformation/brands/natm/schema +86 -0
- gbdtransformation/brands/natm/template.yml +1 -0
- gbdtransformation/brands/natm/tests/__init__.py +0 -0
- gbdtransformation/brands/notm/__init__.py +5 -0
- gbdtransformation/brands/notm/filters.py +170 -0
- gbdtransformation/brands/notm/template.yml +289 -0
- gbdtransformation/brands/nztm/__init__.py +3 -0
- gbdtransformation/brands/nztm/filters.py +126 -0
- gbdtransformation/brands/nztm/schema +197 -0
- gbdtransformation/brands/nztm/template.yml +161 -0
- gbdtransformation/brands/oatm/__init__.py +18 -0
- gbdtransformation/brands/oatm/filters.py +82 -0
- gbdtransformation/brands/oatm/schema +87 -0
- gbdtransformation/brands/oatm/template.yml +1 -0
- gbdtransformation/brands/oatm/tests/__init__.py +0 -0
- gbdtransformation/brands/omtm/__init__.py +5 -0
- gbdtransformation/brands/omtm/filters.py +60 -0
- gbdtransformation/brands/omtm/schema +86 -0
- gbdtransformation/brands/omtm/template.yml +1 -0
- gbdtransformation/brands/omtm/tests/__init__.py +0 -0
- gbdtransformation/brands/omtm/tests/test.xml +84 -0
- gbdtransformation/brands/patm/__init__.py +8 -0
- gbdtransformation/brands/patm/filters.py +149 -0
- gbdtransformation/brands/patm/template.yml +40 -0
- gbdtransformation/brands/petm/__init__.py +6 -0
- gbdtransformation/brands/petm/filters.py +90 -0
- gbdtransformation/brands/petm/schema +114 -0
- gbdtransformation/brands/petm/template.yml +143 -0
- gbdtransformation/brands/pgtm/__init__.py +5 -0
- gbdtransformation/brands/pgtm/filters.py +76 -0
- gbdtransformation/brands/pgtm/schema +86 -0
- gbdtransformation/brands/pgtm/template.yml +1 -0
- gbdtransformation/brands/pgtm/tests/__init__.py +0 -0
- gbdtransformation/brands/pgtm/tests/pgtm.xml +128 -0
- gbdtransformation/brands/phtm/__init__.py +14 -0
- gbdtransformation/brands/phtm/filters.py +169 -0
- gbdtransformation/brands/phtm/schema +79 -0
- gbdtransformation/brands/phtm/schema.classic +50 -0
- gbdtransformation/brands/phtm/template.classic.yml +102 -0
- gbdtransformation/brands/phtm/template.yml +189 -0
- gbdtransformation/brands/pttm/__init__.py +0 -0
- gbdtransformation/brands/pttm/filters.py +0 -0
- gbdtransformation/brands/pttm/schema +0 -0
- gbdtransformation/brands/pttm/template.yml +0 -0
- gbdtransformation/brands/pytm/__init__.py +6 -0
- gbdtransformation/brands/pytm/filters.py +136 -0
- gbdtransformation/brands/pytm/template.yml +40 -0
- gbdtransformation/brands/qatm/__init__.py +5 -0
- gbdtransformation/brands/qatm/filters.py +81 -0
- gbdtransformation/brands/qatm/schema +87 -0
- gbdtransformation/brands/qatm/template.yml +1 -0
- gbdtransformation/brands/qatm/tests/__init__.py +0 -0
- gbdtransformation/brands/rotm/__init__.py +3 -0
- gbdtransformation/brands/rotm/filters.py +82 -0
- gbdtransformation/brands/rotm/schema +128 -0
- gbdtransformation/brands/rotm/template.yml +121 -0
- gbdtransformation/brands/rstm/__init__.py +5 -0
- gbdtransformation/brands/rstm/filters.py +88 -0
- gbdtransformation/brands/rstm/schema +86 -0
- gbdtransformation/brands/rstm/template.yml +1 -0
- gbdtransformation/brands/rstm/tests/__init__.py +0 -0
- gbdtransformation/brands/rutm/__init__.py +14 -0
- gbdtransformation/brands/rutm/filters.py +82 -0
- gbdtransformation/brands/rutm/schema +94 -0
- gbdtransformation/brands/rutm/template.yml +105 -0
- gbdtransformation/brands/sdtm/__init__.py +5 -0
- gbdtransformation/brands/sdtm/filters.py +59 -0
- gbdtransformation/brands/sdtm/schema +86 -0
- gbdtransformation/brands/sdtm/template.yml +1 -0
- gbdtransformation/brands/sdtm/tests/__init__.py +0 -0
- gbdtransformation/brands/sdtm/tests/test.xml +84 -0
- gbdtransformation/brands/sgtm/__init__.py +16 -0
- gbdtransformation/brands/sgtm/filters.py +177 -0
- gbdtransformation/brands/sgtm/schema +213 -0
- gbdtransformation/brands/sgtm/template.article6ter.yml +48 -0
- gbdtransformation/brands/sgtm/template.r13.yml +45 -0
- gbdtransformation/brands/sgtm/template.trademark.yml +148 -0
- gbdtransformation/brands/sgtm/template.yml +9 -0
- gbdtransformation/brands/smtm/__init__.py +6 -0
- gbdtransformation/brands/smtm/filters.py +77 -0
- gbdtransformation/brands/smtm/schema +86 -0
- gbdtransformation/brands/smtm/template.yml +1 -0
- gbdtransformation/brands/smtm/tests/__init__.py +0 -0
- gbdtransformation/brands/smtm/tests/test.xml +133 -0
- gbdtransformation/brands/solrjtm/__init__.py +1 -0
- gbdtransformation/brands/solrjtm/filters.py +85 -0
- gbdtransformation/brands/solrjtm/template.yml +195 -0
- gbdtransformation/brands/st66tm/__init__.py +1 -0
- gbdtransformation/brands/st66tm/filters.py +33 -0
- gbdtransformation/brands/st66tm/st66tm.tmpl +219 -0
- gbdtransformation/brands/sttm/__init__.py +18 -0
- gbdtransformation/brands/sttm/filters.py +72 -0
- gbdtransformation/brands/sttm/schema +83 -0
- gbdtransformation/brands/sttm/template.yml +1 -0
- gbdtransformation/brands/sttm/tests/__init__.py +0 -0
- gbdtransformation/brands/sztm/__init__.py +14 -0
- gbdtransformation/brands/sztm/filters.py +72 -0
- gbdtransformation/brands/sztm/schema +86 -0
- gbdtransformation/brands/sztm/template.yml +1 -0
- gbdtransformation/brands/sztm/tests/__init__.py +0 -0
- gbdtransformation/brands/thtm/__init__.py +2 -0
- gbdtransformation/brands/thtm/filters.py +86 -0
- gbdtransformation/brands/thtm/schema +86 -0
- gbdtransformation/brands/thtm/template.yml +175 -0
- gbdtransformation/brands/thtm/tests/__init__.py +0 -0
- gbdtransformation/brands/thtm/tests/test.xml +84 -0
- gbdtransformation/brands/tntm/__init__.py +16 -0
- gbdtransformation/brands/tntm/filters.py +89 -0
- gbdtransformation/brands/tntm/schema +87 -0
- gbdtransformation/brands/tntm/template.yml +1 -0
- gbdtransformation/brands/tntm/tests/__init__.py +0 -0
- gbdtransformation/brands/totm/__init__.py +5 -0
- gbdtransformation/brands/totm/filters.py +72 -0
- gbdtransformation/brands/totm/schema +86 -0
- gbdtransformation/brands/totm/template.yml +1 -0
- gbdtransformation/brands/totm/tests/__init__.py +0 -0
- gbdtransformation/brands/totm/tests/nofeature.xml +106 -0
- gbdtransformation/brands/totm/tests/syntax.xml +162 -0
- gbdtransformation/brands/totm/tests/test.xml +84 -0
- gbdtransformation/brands/tttm/__init__.py +17 -0
- gbdtransformation/brands/tttm/filters.py +79 -0
- gbdtransformation/brands/tttm/schema +87 -0
- gbdtransformation/brands/tttm/template.yml +1 -0
- gbdtransformation/brands/tttm/tests/__init__.py +0 -0
- gbdtransformation/brands/uatm/__init__.py +18 -0
- gbdtransformation/brands/uatm/filters.py +70 -0
- gbdtransformation/brands/uatm/schema +158 -0
- gbdtransformation/brands/uatm/template.yml +148 -0
- gbdtransformation/brands/ustm/__init__.py +187 -0
- gbdtransformation/brands/ustm/filters.py +227 -0
- gbdtransformation/brands/ustm/schema +2183 -0
- gbdtransformation/brands/ustm/template.yml +219 -0
- gbdtransformation/brands/uytm/__init__.py +3 -0
- gbdtransformation/brands/uytm/filters.py +64 -0
- gbdtransformation/brands/uytm/schema +106 -0
- gbdtransformation/brands/uytm/template.yml +137 -0
- gbdtransformation/brands/vctm/__init__.py +5 -0
- gbdtransformation/brands/vctm/filters.py +75 -0
- gbdtransformation/brands/vctm/schema +87 -0
- gbdtransformation/brands/vctm/template.yml +1 -0
- gbdtransformation/brands/vctm/tests/__init__.py +0 -0
- gbdtransformation/brands/vntm/__init__.py +9 -0
- gbdtransformation/brands/vntm/filters.py +84 -0
- gbdtransformation/brands/vntm/schema +86 -0
- gbdtransformation/brands/vntm/template.yml +1 -0
- gbdtransformation/brands/vntm/tests/__init__.py +0 -0
- gbdtransformation/brands/vutm/__init__.py +5 -0
- gbdtransformation/brands/vutm/filters.py +67 -0
- gbdtransformation/brands/vutm/schema +83 -0
- gbdtransformation/brands/vutm/template.yml +1 -0
- gbdtransformation/brands/vutm/tests/__init__.py +0 -0
- gbdtransformation/brands/whoinn/__init__.py +6 -0
- gbdtransformation/brands/whoinn/filters.py +46 -0
- gbdtransformation/brands/whoinn/schema +4 -0
- gbdtransformation/brands/whoinn/template.yml +45 -0
- gbdtransformation/brands/wo6ter/__init__.py +1 -0
- gbdtransformation/brands/wo6ter/filters.py +88 -0
- gbdtransformation/brands/wo6ter/template.yml +88 -0
- gbdtransformation/brands/woao/__init__.py +1 -0
- gbdtransformation/brands/woao/filters.py +107 -0
- gbdtransformation/brands/woao/schema +116 -0
- gbdtransformation/brands/woao/template.yml +90 -0
- gbdtransformation/brands/woptm/__init__.py +3 -0
- gbdtransformation/brands/woptm/filters.py +42 -0
- gbdtransformation/brands/woptm/template.yml +2 -0
- gbdtransformation/brands/wotm/__init__.py +3 -0
- gbdtransformation/brands/wotm/filters.py +127 -0
- gbdtransformation/brands/wotm/schema +218 -0
- gbdtransformation/brands/wotm/template.yml +220 -0
- gbdtransformation/brands/wstm/__init__.py +6 -0
- gbdtransformation/brands/wstm/filters.py +67 -0
- gbdtransformation/brands/wstm/schema +86 -0
- gbdtransformation/brands/wstm/template.yml +1 -0
- gbdtransformation/brands/wstm/tests/__init__.py +0 -0
- gbdtransformation/brands/wstm/tests/test.xml +132 -0
- gbdtransformation/brands/xxxx/__init__.py +6 -0
- gbdtransformation/brands/xxxx/filters.py +60 -0
- gbdtransformation/brands/xxxx/schema +4 -0
- gbdtransformation/brands/xxxx/template.yml +363 -0
- gbdtransformation/brands/zmtm/__init__.py +12 -0
- gbdtransformation/brands/zmtm/filters.py +79 -0
- gbdtransformation/brands/zmtm/schema +86 -0
- gbdtransformation/brands/zmtm/template.yml +1 -0
- gbdtransformation/brands/zmtm/tests/__init__.py +0 -0
- gbdtransformation/brands/zwtm/__init__.py +3 -0
- gbdtransformation/brands/zwtm/filters.py +86 -0
- gbdtransformation/brands/zwtm/schema +86 -0
- gbdtransformation/brands/zwtm/template.yml +1 -0
- gbdtransformation/brands/zwtm/tests/__init__.py +0 -0
- gbdtransformation/common/__init__.py +383 -0
- gbdtransformation/common/filters.py +418 -0
- gbdtransformation/common/jpap/__init__.py +1 -0
- gbdtransformation/common/jpap/filters.py +83 -0
- gbdtransformation/common/jpap/template.yml +37 -0
- gbdtransformation/common/jpbase/__init__.py +1 -0
- gbdtransformation/common/jpbase/filters.py +93 -0
- gbdtransformation/common/jpbase/template.yml +51 -0
- gbdtransformation/common/jprp/__init__.py +1 -0
- gbdtransformation/common/jprp/filters.py +86 -0
- gbdtransformation/common/jprp/template.yml +51 -0
- gbdtransformation/common/navigation.tmpl +12 -0
- gbdtransformation/commons/__init__.py +0 -0
- gbdtransformation/commons/emap/__init__.py +1 -0
- gbdtransformation/commons/emap/filters.py +16 -0
- gbdtransformation/commons/emap/template.yml +55 -0
- gbdtransformation/commons/emrp/__init__.py +1 -0
- gbdtransformation/commons/emrp/filters.py +14 -0
- gbdtransformation/commons/emrp/template.yml +53 -0
- gbdtransformation/commons/filters.py +3 -0
- gbdtransformation/designs/__init__.py +8 -0
- gbdtransformation/designs/alid/__init__.py +5 -0
- gbdtransformation/designs/alid/filters.py +69 -0
- gbdtransformation/designs/alid/schema +89 -0
- gbdtransformation/designs/alid/template.yml +1 -0
- gbdtransformation/designs/bnid/__init__.py +5 -0
- gbdtransformation/designs/bnid/filters.py +61 -0
- gbdtransformation/designs/bnid/schema +80 -0
- gbdtransformation/designs/bnid/template.yml +1 -0
- gbdtransformation/designs/bwid/__init__.py +6 -0
- gbdtransformation/designs/bwid/filters.py +64 -0
- gbdtransformation/designs/bwid/schema +101 -0
- gbdtransformation/designs/bwid/template.yml +1 -0
- gbdtransformation/designs/crid/__init__.py +5 -0
- gbdtransformation/designs/crid/filters.py +63 -0
- gbdtransformation/designs/crid/schema +94 -0
- gbdtransformation/designs/crid/template.yml +1 -0
- gbdtransformation/designs/cuid/__init__.py +5 -0
- gbdtransformation/designs/cuid/filters.py +60 -0
- gbdtransformation/designs/cuid/schema +98 -0
- gbdtransformation/designs/cuid/template.yml +1 -0
- gbdtransformation/designs/egid/__init__.py +5 -0
- gbdtransformation/designs/egid/filters.py +62 -0
- gbdtransformation/designs/egid/schema +82 -0
- gbdtransformation/designs/egid/template.yml +1 -0
- gbdtransformation/designs/filters.py +73 -0
- gbdtransformation/designs/idid/__init__.py +5 -0
- gbdtransformation/designs/idid/filters.py +67 -0
- gbdtransformation/designs/idid/schema +102 -0
- gbdtransformation/designs/idid/template.yml +1 -0
- gbdtransformation/designs/ipas/__init__.py +0 -0
- gbdtransformation/designs/ipas/filters.py +181 -0
- gbdtransformation/designs/ipas/template.yml +174 -0
- gbdtransformation/designs/joid/__init__.py +6 -0
- gbdtransformation/designs/joid/filters.py +62 -0
- gbdtransformation/designs/joid/schema +97 -0
- gbdtransformation/designs/joid/template.yml +1 -0
- gbdtransformation/designs/keid/__init__.py +5 -0
- gbdtransformation/designs/keid/filters.py +62 -0
- gbdtransformation/designs/keid/schema +99 -0
- gbdtransformation/designs/keid/template.yml +1 -0
- gbdtransformation/designs/khid/__init__.py +5 -0
- gbdtransformation/designs/khid/filters.py +63 -0
- gbdtransformation/designs/khid/schema +100 -0
- gbdtransformation/designs/khid/template.yml +1 -0
- gbdtransformation/designs/laid/__init__.py +5 -0
- gbdtransformation/designs/laid/filters.py +61 -0
- gbdtransformation/designs/laid/schema +94 -0
- gbdtransformation/designs/laid/template.yml +1 -0
- gbdtransformation/designs/mnid/__init__.py +6 -0
- gbdtransformation/designs/mnid/filters.py +62 -0
- gbdtransformation/designs/mnid/schema +98 -0
- gbdtransformation/designs/mnid/template.yml +1 -0
- gbdtransformation/designs/myid/__init__.py +5 -0
- gbdtransformation/designs/myid/filters.py +60 -0
- gbdtransformation/designs/myid/schema +95 -0
- gbdtransformation/designs/myid/template.yml +1 -0
- gbdtransformation/designs/phid/__init__.py +5 -0
- gbdtransformation/designs/phid/filters.py +70 -0
- gbdtransformation/designs/phid/schema +95 -0
- gbdtransformation/designs/phid/template.yml +1 -0
- gbdtransformation/designs/sgid/__init__.py +6 -0
- gbdtransformation/designs/sgid/filters.py +66 -0
- gbdtransformation/designs/sgid/schema +115 -0
- gbdtransformation/designs/sgid/template.yml +1 -0
- gbdtransformation/designs/thid/__init__.py +4 -0
- gbdtransformation/designs/thid/filters.py +64 -0
- gbdtransformation/designs/thid/schema +98 -0
- gbdtransformation/designs/thid/template.yml +1 -0
- gbdtransformation/designs/tnid/__init__.py +5 -0
- gbdtransformation/designs/tnid/filters.py +66 -0
- gbdtransformation/designs/tnid/schema +96 -0
- gbdtransformation/designs/tnid/template.yml +1 -0
- gbdtransformation/designs/vnid/__init__.py +5 -0
- gbdtransformation/designs/vnid/filters.py +62 -0
- gbdtransformation/designs/vnid/schema +97 -0
- gbdtransformation/designs/vnid/template.yml +1 -0
- gbdtransformation/designs/woid/__init__.py +2 -0
- gbdtransformation/designs/woid/filters.py +372 -0
- gbdtransformation/designs/woid/schema +592 -0
- gbdtransformation/designs/woid/template.yml +516 -0
- gbdtransformation/designs/xxid/__init__.py +2 -0
- gbdtransformation/designs/xxid/filters.py +60 -0
- gbdtransformation/designs/xxid/schema +4 -0
- gbdtransformation/designs/xxid/template.yml +358 -0
- gbdtransformation/execs-nico.py +709 -0
- gbdtransformation/execs.py +734 -0
- gbdtransformation/gbd-transform.exec.tgz +0 -0
- gbdtransformation/parser.py +190 -0
- gbdtransformation/renders.py +149 -0
- gbdtransformation/utilities/ISOCountryCodeType-V2006.xsd +1245 -0
- gbdtransformation/utilities/ISOCurrencyCodeType-V2001.xsd +855 -0
- gbdtransformation/utilities/ISOLanguageCodeType-V2002.xsd +715 -0
- gbdtransformation/utilities/WIPOST3CodeType-V2007.xsd +1151 -0
- gbdtransformation/utilities/__init__.py +0 -0
- gbdtransformation/utilities/st66.dot +2828 -0
- gbdtransformation/utilities/st66.pdf +0 -0
- gbdtransformation/utilities/st66.py +38700 -0
- gbdtransformation/utilities/st66.xsd +4174 -0
- schemas/ShazamConfig.py +35 -0
- schemas/__init__.py +0 -0
- schemas/schema_extractor.py +300 -0
- wipo_gbd_transformation-1.1.105.dist-info/LICENSE.md +687 -0
- wipo_gbd_transformation-1.1.105.dist-info/METADATA +25 -0
- wipo_gbd_transformation-1.1.105.dist-info/RECORD +607 -0
- wipo_gbd_transformation-1.1.105.dist-info/WHEEL +5 -0
- wipo_gbd_transformation-1.1.105.dist-info/entry_points.txt +6 -0
- wipo_gbd_transformation-1.1.105.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# standard gbd definitions
|
|
2
|
+
from gbdtransformation.brands import kinds as std_kinds
|
|
3
|
+
from gbdtransformation.brands import status as std_status
|
|
4
|
+
from gbdtransformation.brands import features as std_features
|
|
5
|
+
from gbdtransformation.brands import events as std_events
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
# namespaces defined in XML and to be ignored in procecssing
|
|
8
|
+
ignore_namespace = []
|
|
9
|
+
|
|
10
|
+
def get_type(lisbon):
|
|
11
|
+
return lisbon.NUMBER._KIND
|
|
12
|
+
|
|
13
|
+
def get_names(names):
|
|
14
|
+
joined = []
|
|
15
|
+
if not isinstance(names, list):
|
|
16
|
+
names = [names]
|
|
17
|
+
for name in names:
|
|
18
|
+
joined.append(name)
|
|
19
|
+
|
|
20
|
+
return ' / '.join(joined)
|
|
21
|
+
|
|
22
|
+
def get_gbd_status(status):
|
|
23
|
+
if status == 'A': return 'Registered'
|
|
24
|
+
if status == 'C': return 'Ended'
|
|
25
|
+
|
|
26
|
+
raise Exception('Status %s not mapped' % status)
|
|
27
|
+
|
|
28
|
+
def get_office_status(status):
|
|
29
|
+
if status == 'A': return 'Active'
|
|
30
|
+
if status == 'C': return 'Cancelled'
|
|
31
|
+
|
|
32
|
+
def get_st13_lisbon(lisbon, appdate):
|
|
33
|
+
# remove special characters
|
|
34
|
+
|
|
35
|
+
appnum = lisbon.NUMBER['__value']
|
|
36
|
+
if not appnum:
|
|
37
|
+
raise Exception("No appnumber provided")
|
|
38
|
+
if not appdate:
|
|
39
|
+
appdate = '0000'
|
|
40
|
+
return 'WO81%s%s' % (appdate[:4], appnum.zfill(9))
|
|
41
|
+
|
|
42
|
+
def get_pub(lisbon):
|
|
43
|
+
pub = lisbon.PUB
|
|
44
|
+
if pub:
|
|
45
|
+
if ':' in pub:
|
|
46
|
+
tmp = pub.split(':')
|
|
47
|
+
try:
|
|
48
|
+
date = datetime.strptime(tmp[1].strip(), "%U/%Y")
|
|
49
|
+
date = date.strftime('%Y-%m-%d')
|
|
50
|
+
except:
|
|
51
|
+
date = None
|
|
52
|
+
return tmp[0].replace('N\u00b0', '').strip(), date
|
|
53
|
+
return pub.replace('N\u00b0', '').strip(), None
|
|
54
|
+
return None, None
|
|
55
|
+
|
|
56
|
+
def get_events(lisbon):
|
|
57
|
+
types = [{
|
|
58
|
+
'key': 'REFUSALGR',
|
|
59
|
+
'gbd_type': 'Rejected',
|
|
60
|
+
'type': 'Refusal'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
'key': 'MODIFICATIONGR',
|
|
64
|
+
'gbd_type': 'Published',
|
|
65
|
+
'type': 'Modification'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
'key': 'WITHDGR',
|
|
69
|
+
'gbd_type': 'Withdrawn',
|
|
70
|
+
'type': 'Withdrawal'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
'key': 'GRANTGR',
|
|
74
|
+
'gbd_type': 'Registered',
|
|
75
|
+
'type': 'Grant'
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
'key': 'RENUNCIATION_RULE16GR',
|
|
79
|
+
'gbd_type': 'Ended',
|
|
80
|
+
'type': 'Cancelled'
|
|
81
|
+
},
|
|
82
|
+
]
|
|
83
|
+
to_return = []
|
|
84
|
+
for ttype in types:
|
|
85
|
+
events = lisbon.get(ttype['key'], [])
|
|
86
|
+
if not isinstance(events, list):
|
|
87
|
+
events = [events]
|
|
88
|
+
for event in events:
|
|
89
|
+
ev_key = list(event.keys())[0]
|
|
90
|
+
sub_events = event[ev_key]
|
|
91
|
+
if not isinstance(sub_events, list):
|
|
92
|
+
sub_events = [sub_events]
|
|
93
|
+
for tmp in sub_events:
|
|
94
|
+
pdf = tmp.get('PDF', None)
|
|
95
|
+
to_return.append({
|
|
96
|
+
'kind': ttype['type'],
|
|
97
|
+
'gbd_kind': ttype['gbd_type'],
|
|
98
|
+
'date': tmp.get('DATE', None),
|
|
99
|
+
'country': tmp.get('CC', None),
|
|
100
|
+
'extra': pdf
|
|
101
|
+
})
|
|
102
|
+
return to_return
|
|
103
|
+
|
|
104
|
+
def to_link(val):
|
|
105
|
+
if val:
|
|
106
|
+
return 'https://www.wipo.int/ipdl/jsp/data.jsp?TYPE=PDF&SOURCE=LISBON&KEY=' + val
|
|
107
|
+
return None
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/LISBON
|
|
2
|
+
__/APPGR
|
|
3
|
+
____/APP
|
|
4
|
+
__/APPWAGR
|
|
5
|
+
____/APP
|
|
6
|
+
__/AREAGR
|
|
7
|
+
____/AREA
|
|
8
|
+
____/AREA[@LANG=EN]
|
|
9
|
+
____/AREA[@LANG=ES]
|
|
10
|
+
____/AREA[@LANG=FR]
|
|
11
|
+
__/CANCELLATION
|
|
12
|
+
____/PDF
|
|
13
|
+
__/CATEGORYGR
|
|
14
|
+
____/SUB-CAT
|
|
15
|
+
__/CATEGORYGR[@ID=BEV]
|
|
16
|
+
__/CATEGORYGR[@ID=DAIRY]
|
|
17
|
+
__/CATEGORYGR[@ID=FOOD]
|
|
18
|
+
__/CATEGORYGR[@ID=FRUITS]
|
|
19
|
+
__/CATEGORYGR[@ID=MEAT]
|
|
20
|
+
__/CATEGORYGR[@ID=NONFOOD]
|
|
21
|
+
__/CATEGORYGR[@ID=TEXTILE]
|
|
22
|
+
__/CATEGORYGR[@ID=VEGE]
|
|
23
|
+
__/CATEGORYGR[@ID=WINES]
|
|
24
|
+
__/COO
|
|
25
|
+
____/CC
|
|
26
|
+
__/GENEVEACT
|
|
27
|
+
__/GENEVE_ACT
|
|
28
|
+
____/CC
|
|
29
|
+
__/GRANTGR
|
|
30
|
+
____/GRANT
|
|
31
|
+
______/CC
|
|
32
|
+
______/DATE
|
|
33
|
+
______/PDF
|
|
34
|
+
__/HOLGR
|
|
35
|
+
____/HOL
|
|
36
|
+
____/HOL[@LANG=EN]
|
|
37
|
+
____/HOL[@LANG=ES]
|
|
38
|
+
____/HOL[@LANG=FR]
|
|
39
|
+
__/INVGR
|
|
40
|
+
____/INV
|
|
41
|
+
______/CC
|
|
42
|
+
______/DATE
|
|
43
|
+
______/PDF
|
|
44
|
+
__/LEGALGR
|
|
45
|
+
____/LEGAL
|
|
46
|
+
______/TEXT
|
|
47
|
+
____/LEGAL[@LANG=EN]
|
|
48
|
+
____/LEGAL[@LANG=ES]
|
|
49
|
+
____/LEGAL[@LANG=FR]
|
|
50
|
+
__/LISBONACT
|
|
51
|
+
__/MODIFICATIONGR
|
|
52
|
+
____/MODIFICATION
|
|
53
|
+
______/DATE
|
|
54
|
+
______/MOD_TYPE
|
|
55
|
+
______/PDF
|
|
56
|
+
__/NOTIFICATION
|
|
57
|
+
____/DATE_END_REFUS
|
|
58
|
+
____/DATE_NOTIF
|
|
59
|
+
__/NOTIFICATION_EXCEPTION
|
|
60
|
+
____/NOTIF_EXCEPTION
|
|
61
|
+
______/CP
|
|
62
|
+
______/DATE_ACK
|
|
63
|
+
__/NUMBER
|
|
64
|
+
__/NUMBER[@KIND=AO]
|
|
65
|
+
__/NUMBER[@ORGLANG=EN]
|
|
66
|
+
__/NUMBER[@ORGLANG=ES]
|
|
67
|
+
__/NUMBER[@ORGLANG=FR]
|
|
68
|
+
__/NUMBER[@STATUS=A]
|
|
69
|
+
__/NUMBER[@STATUS=C]
|
|
70
|
+
__/PERIODGR
|
|
71
|
+
____/PERIOD
|
|
72
|
+
______/CC
|
|
73
|
+
______/DATE
|
|
74
|
+
______/PDF
|
|
75
|
+
__/PRODUCTGR
|
|
76
|
+
____/PRODUCT
|
|
77
|
+
____/PRODUCT[@LANG=EN]
|
|
78
|
+
____/PRODUCT[@LANG=ES]
|
|
79
|
+
____/PRODUCT[@LANG=FR]
|
|
80
|
+
__/PUB
|
|
81
|
+
__/REFUSALGR
|
|
82
|
+
____/REFUSAL
|
|
83
|
+
______/CC
|
|
84
|
+
______/DATE
|
|
85
|
+
______/GROUNDS
|
|
86
|
+
________/GROUND
|
|
87
|
+
______/PDF
|
|
88
|
+
____/REFUSAL[@KIND=PARTIAL]
|
|
89
|
+
__/REG
|
|
90
|
+
____/CERTIF
|
|
91
|
+
____/DATE
|
|
92
|
+
__/RENUNCIATION_RULE16GR
|
|
93
|
+
____/RENUNCIATION_RULE16
|
|
94
|
+
______/CC
|
|
95
|
+
______/DATE
|
|
96
|
+
______/PDF
|
|
97
|
+
__/TRANSLATGR
|
|
98
|
+
____/TRANSLAT
|
|
99
|
+
____/TRANSLAT[@LANG=AR]
|
|
100
|
+
____/TRANSLAT[@LANG=CN]
|
|
101
|
+
____/TRANSLAT[@LANG=DE]
|
|
102
|
+
____/TRANSLAT[@LANG=EN]
|
|
103
|
+
____/TRANSLAT[@LANG=ES]
|
|
104
|
+
____/TRANSLAT[@LANG=FR]
|
|
105
|
+
____/TRANSLAT[@LANG=LA]
|
|
106
|
+
____/TRANSLAT[@LANG=PT]
|
|
107
|
+
____/TRANSLAT[@LANG=RU]
|
|
108
|
+
__/TRANSLIT
|
|
109
|
+
__/WITHDGR
|
|
110
|
+
____/WITHD
|
|
111
|
+
______/CC
|
|
112
|
+
______/DATE
|
|
113
|
+
______/DET
|
|
114
|
+
______/GROUNDS
|
|
115
|
+
________/GROUND
|
|
116
|
+
______/PDF
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{% from 'navigation.tmpl' import match %}
|
|
2
|
+
|
|
3
|
+
{% set _space = " " %}
|
|
4
|
+
|
|
5
|
+
type: {{ LISBON.NUMBER._KIND }}
|
|
6
|
+
kind:
|
|
7
|
+
- Other
|
|
8
|
+
|
|
9
|
+
markFeature: Word
|
|
10
|
+
|
|
11
|
+
registrationOfficeCode: LISBON
|
|
12
|
+
designatedCountries:
|
|
13
|
+
- XX
|
|
14
|
+
|
|
15
|
+
reference:
|
|
16
|
+
office: {{ LISBON.COO.CC }}
|
|
17
|
+
|
|
18
|
+
st13: {{ LISBON | get_st13_lisbon(LISBON.REG.DATE | convertdate('%d/%m/%Y')) }}
|
|
19
|
+
registrationNumber: {{ LISBON.NUMBER._KIND | append(_space, LISBON.NUMBER.__value) }}
|
|
20
|
+
registrationDate: {{ LISBON.REG.DATE | convertdate('%d/%m/%Y') }}
|
|
21
|
+
applicationLanguageCode: {{ LISBON.NUMBER._ORGLANG | lower}}
|
|
22
|
+
|
|
23
|
+
officeStatus: {{ LISBON.NUMBER._STATUS | get_office_status }}
|
|
24
|
+
gbdStatus: {{ LISBON.NUMBER._STATUS | get_gbd_status }}
|
|
25
|
+
|
|
26
|
+
markDisclaimerDetails:
|
|
27
|
+
{% call(desc) match('LEGAL', LISBON.LEGALGR) %}
|
|
28
|
+
{% call(tmp) match('TEXT', desc) %}
|
|
29
|
+
- text: {{ tmp }}
|
|
30
|
+
languageCode: {{ tmp | guess_language(desc._LANG) | lower }}
|
|
31
|
+
{% endcall %}
|
|
32
|
+
{% endcall %}
|
|
33
|
+
|
|
34
|
+
wordMarkSpecification:
|
|
35
|
+
markVerbalElement:
|
|
36
|
+
- languageCode: {{ LISBON.NUMBER._ORGLANG | lower }}
|
|
37
|
+
text: {{ LISBON.APPGR.APP | get_names }}
|
|
38
|
+
|
|
39
|
+
markTranslation:
|
|
40
|
+
{% call(verbal) match('TRANSLAT', LISBON.TRANSLATGR) %}
|
|
41
|
+
- languageCode: {{ verbal | guess_language(verbal._LANG) | lower }}
|
|
42
|
+
text: {{ verbal }}
|
|
43
|
+
{% endcall %}
|
|
44
|
+
|
|
45
|
+
markTransliteration: {{ LISBON.TRANSLIT }}
|
|
46
|
+
|
|
47
|
+
goodsServicesUnclassified:
|
|
48
|
+
{% call(verbal) match('PRODUCT', LISBON.PRODUCTGR) %}
|
|
49
|
+
{{ verbal._LANG | lower | field_name }}:
|
|
50
|
+
- {{ verbal }}
|
|
51
|
+
{% endcall %}
|
|
52
|
+
|
|
53
|
+
publications:
|
|
54
|
+
- identifier: {{ LISBON.PUB }}
|
|
55
|
+
|
|
56
|
+
applicants:
|
|
57
|
+
- fullName:
|
|
58
|
+
{% call(HOL) match('HOL', LISBON.HOLGR) %}
|
|
59
|
+
- text: {{ HOL.__value }}
|
|
60
|
+
languageCode: {{ HOL.__value | guess_language(HOL._LANG) | lower }}
|
|
61
|
+
{% endcall %}
|
|
62
|
+
countryCode: {{ LISBON.COO.CC }}
|
|
63
|
+
|
|
64
|
+
events:
|
|
65
|
+
{% for event in LISBON | get_events %}
|
|
66
|
+
- officeKind: {{ event.kind }}
|
|
67
|
+
gbdKind: {{ event.gbd_kind }}
|
|
68
|
+
date: {{ event.date | convertdate('%d.%m.%Y') }}
|
|
69
|
+
country: {{ event.country }}
|
|
70
|
+
{% if event.extra %}
|
|
71
|
+
doc: {{ event.extra | to_link }}
|
|
72
|
+
{% endif %}
|
|
73
|
+
{% endfor %}
|
|
74
|
+
|
|
75
|
+
extra:
|
|
76
|
+
area:
|
|
77
|
+
{% call(area) match('AREA', LISBON.AREAGR) %}
|
|
78
|
+
- text: {{ area.__value }}
|
|
79
|
+
languageCode: {{ area.__value | guess_language(area._LANG) | lower }}
|
|
80
|
+
{% endcall %}
|
|
81
|
+
lisbonact: {{ LISBON.LISBONACT | get_true_or_false }}
|
|
82
|
+
geneveact: {{ LISBON.GENEVEACT | get_true_or_false }}
|
|
83
|
+
geneveactcc:
|
|
84
|
+
{% call (cc) match ('GENEVE_ACT.CC', LISBON)%}
|
|
85
|
+
- {{ cc }}
|
|
86
|
+
{% endcall %}
|
|
87
|
+
cancellationdoc: {{ LISBON.CANCELLATION.PDF }}
|
|
88
|
+
regdoc: {{ LISBON.REG.CERTIF }}
|
|
89
|
+
pdf: {{ LISBON.REG.NOTIF | to_link }}
|
|
90
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
from gbdtransformation.brands.wotm.filters import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def is_pending(tm):
|
|
5
|
+
return True
|
|
6
|
+
|
|
7
|
+
def get_status(tm):
|
|
8
|
+
if tm.ApplicationNumber:
|
|
9
|
+
return ('Pending', 'Pending subsequent designation')
|
|
10
|
+
else:
|
|
11
|
+
return ('Pending', 'Pending application')
|
|
12
|
+
|
|
13
|
+
def st13(tm, apprefs, regrefs):
|
|
14
|
+
appnum = tm['http://www.wipo.int/standards/XMLSchema/trademarks_WO_Pending_Number']
|
|
15
|
+
|
|
16
|
+
if len(regrefs):
|
|
17
|
+
type = 'pending-%s' % ('basicregistrationnumber')
|
|
18
|
+
# it happens to have pending with no Basic ApplicationNumber/RegistrationNumber (bof)
|
|
19
|
+
else:
|
|
20
|
+
# elif len(apprefs):
|
|
21
|
+
type = 'pending-%s' % ('basicapplicationnumber')
|
|
22
|
+
|
|
23
|
+
return std_st13(appnum.replace('PEND', ''), type=type, office='WO', roffice=tm.ReceivingOfficeCode)
|
|
24
|
+
|
|
25
|
+
def get_application_date(tm):
|
|
26
|
+
ib_recieving_date = tm.MarkRecordDetails['http://www.wipo.int/standards/XMLSchema/trademarks_WO_IBReceiptDate']
|
|
27
|
+
|
|
28
|
+
if(ib_recieving_date):
|
|
29
|
+
return ib_recieving_date
|
|
30
|
+
|
|
31
|
+
raise Exception('could not find IBReceiptDate')
|
|
32
|
+
|
|
33
|
+
# for pending, get from MarkRecordDetails (subsequent designations)
|
|
34
|
+
def get_designations(tm):
|
|
35
|
+
try:
|
|
36
|
+
countries = tm.MarkRecordDetails.DesignatedCountryDetails.DesignatedCountry
|
|
37
|
+
except:
|
|
38
|
+
raise Exception('No DesignatedCountryDetails. Do not Import')
|
|
39
|
+
|
|
40
|
+
if not isinstance(countries, list):
|
|
41
|
+
countries = [countries]
|
|
42
|
+
return countries
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
import re
|
|
3
|
+
|
|
4
|
+
from gbdtransformation.brands.filters import st13 as std_st13
|
|
5
|
+
from gbdtransformation.brands.filters import split_vienna as std_split_vienna
|
|
6
|
+
|
|
7
|
+
# namespaces defined in XML and to be ignored in procecssing
|
|
8
|
+
ignore_namespace = [
|
|
9
|
+
'http://www.wipo.int/standards/XMLSchema/trademarks'
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
def split_vienna(code):
|
|
13
|
+
if not code: return ''
|
|
14
|
+
if len(code) == 4: code = '%s00' % code
|
|
15
|
+
|
|
16
|
+
return std_split_vienna(code)
|
|
17
|
+
|
|
18
|
+
def translate_kind(kind):
|
|
19
|
+
if not kind: return ['Individual']
|
|
20
|
+
|
|
21
|
+
if kind == 'Individual': return ['Individual']
|
|
22
|
+
if kind == 'Collective': return ['Collective']
|
|
23
|
+
|
|
24
|
+
return ['Other']
|
|
25
|
+
#raise Exception('kind "%s" is not mapped.' % kind)
|
|
26
|
+
|
|
27
|
+
def translate_feature(feature):
|
|
28
|
+
if not feature: return 'Undefined'
|
|
29
|
+
|
|
30
|
+
if feature == 'Figurative': return 'Figurative'
|
|
31
|
+
if feature == 'Word': return 'Word'
|
|
32
|
+
if feature == '3-D': return 'Three dimensional'
|
|
33
|
+
if feature == 'Sound': return 'Sound'
|
|
34
|
+
if feature == 'Colour': return 'Colour'
|
|
35
|
+
if feature == 'Position': return 'Position'
|
|
36
|
+
|
|
37
|
+
return 'Other'
|
|
38
|
+
#raise Exception('Feature "%s" unmapped' % feature)
|
|
39
|
+
|
|
40
|
+
def get_entity_kind(entity):
|
|
41
|
+
if entity.ApplicantLegalEntity: return 'Legal entity'
|
|
42
|
+
else: return ''
|
|
43
|
+
|
|
44
|
+
def get_refs(brefs):
|
|
45
|
+
if not isinstance(brefs, list):
|
|
46
|
+
brefs = [brefs]
|
|
47
|
+
|
|
48
|
+
apprefs = []
|
|
49
|
+
regrefs = []
|
|
50
|
+
|
|
51
|
+
for bref in brefs:
|
|
52
|
+
if bref.BasicApplicationDetails:
|
|
53
|
+
zref = bref.BasicApplicationDetails.BasicApplication
|
|
54
|
+
if(zref.BasicApplicationNumber):
|
|
55
|
+
apprefs.append({'number': zref.BasicApplicationNumber,
|
|
56
|
+
'date': zref.BasicApplicationDate})
|
|
57
|
+
if bref.BasicRegistrationDetails:
|
|
58
|
+
zref = bref.BasicRegistrationDetails.BasicRegistration
|
|
59
|
+
if zref.BasicRegistrationNumber:
|
|
60
|
+
regrefs.append({'number': zref.BasicRegistrationNumber,
|
|
61
|
+
'date': zref.BasicRegistrationDate})
|
|
62
|
+
return (apprefs, regrefs)
|
|
63
|
+
|
|
64
|
+
def get_entity_name_and_address(adrbook):
|
|
65
|
+
name_lines = adrbook.Name.FreeFormatName.FreeFormatNameDetails.FreeFormatNameLine
|
|
66
|
+
try:
|
|
67
|
+
addr_lines = adrbook.Address.FreeFormatAddress.FreeFormatAddressLine
|
|
68
|
+
except:
|
|
69
|
+
addr_lines = []
|
|
70
|
+
|
|
71
|
+
if not isinstance(name_lines, list): name_lines = [name_lines]
|
|
72
|
+
if not isinstance(addr_lines, list): addr_lines = [addr_lines]
|
|
73
|
+
|
|
74
|
+
# sometime we have empty tags !
|
|
75
|
+
name_lines = [n for n in name_lines if n]
|
|
76
|
+
addr_lines = [n.rstrip(',') for n in addr_lines if n]
|
|
77
|
+
|
|
78
|
+
return (', '.join(name_lines), ', '.join(addr_lines))
|
|
79
|
+
|
|
80
|
+
def get_designations(tm):
|
|
81
|
+
if tm.DesignatedCountryDetails:
|
|
82
|
+
countries = tm.DesignatedCountryDetails.DesignatedCountry
|
|
83
|
+
else:
|
|
84
|
+
countries = []
|
|
85
|
+
if not isinstance(countries, list):
|
|
86
|
+
countries = [countries]
|
|
87
|
+
return countries
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def get_designations_madrid(tm):
|
|
91
|
+
madrid = []
|
|
92
|
+
madrid96 = []
|
|
93
|
+
if tm.DesignatedCountryDetails:
|
|
94
|
+
countries = tm.DesignatedCountryDetails.DesignatedCountry
|
|
95
|
+
if not isinstance(countries, list):
|
|
96
|
+
tmp = []
|
|
97
|
+
tmp.append(countries)
|
|
98
|
+
countries = tmp
|
|
99
|
+
for c in countries:
|
|
100
|
+
if c.get('DesignatedUnderCode') != 'Protocol':
|
|
101
|
+
madrid96.append(c.DesignatedCountryCode)
|
|
102
|
+
else:
|
|
103
|
+
madrid.append(c.DesignatedCountryCode)
|
|
104
|
+
return madrid, madrid96
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def get_status(tm):
|
|
108
|
+
if tm.ExpiryDate:
|
|
109
|
+
today = datetime.datetime.today().strftime('%Y-%m-%d')
|
|
110
|
+
if today > tm.ExpiryDate: return ('Expired', 'Expired')
|
|
111
|
+
# TOASK: no expiry date => Expired ?
|
|
112
|
+
else:
|
|
113
|
+
return ('Expired', 'Expired')
|
|
114
|
+
|
|
115
|
+
return ('Registered', 'Registered')
|
|
116
|
+
|
|
117
|
+
def st13(tm, apprefs, regrefs):
|
|
118
|
+
appnum = tm.ApplicationNumber
|
|
119
|
+
return std_st13(appnum, office='WO', type='registered', sanitize=False)
|
|
120
|
+
|
|
121
|
+
def get_application_date(tm):
|
|
122
|
+
if tm.ApplicationDate and len(tm.ApplicationDate.strip().replace('-', '')):
|
|
123
|
+
return tm.ApplicationDate
|
|
124
|
+
|
|
125
|
+
def get_expiry_date(tm):
|
|
126
|
+
if tm.ExpiryDate and len(tm.ExpiryDate.strip().replace('-', '')):
|
|
127
|
+
return tm.ExpiryDate
|