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,144 @@
|
|
|
1
|
+
{% from 'navigation.tmpl' import match %}
|
|
2
|
+
|
|
3
|
+
{% set TradeMark = Transaction.TradeMarkTransactionBody.TransactionContentDetails.TransactionData.TradeMarkDetails.TradeMark %}
|
|
4
|
+
{% set status = TradeMark.MarkCurrentStatusCode | translate_status %}
|
|
5
|
+
|
|
6
|
+
st13: {{ TradeMark.ApplicationNumber | st13('ES', appdate=TradeMark.ApplicationDate) }}
|
|
7
|
+
gbdStatus: {{ status }}
|
|
8
|
+
registrationOfficeCode: {{ TradeMark.RegistrationOfficeCode }}
|
|
9
|
+
type: TRADEMARK
|
|
10
|
+
|
|
11
|
+
{% if not status == 'Delete' %}
|
|
12
|
+
kind: {{ TradeMark.KindMark | translate_kind }}
|
|
13
|
+
markFeature: {{ TradeMark.MarkFeature | translate_feature }}
|
|
14
|
+
designatedCountries:
|
|
15
|
+
- {{ TradeMark.RegistrationOfficeCode }}
|
|
16
|
+
applicationNumber: {{ TradeMark.ApplicationNumber }}
|
|
17
|
+
applicationDate: {{ TradeMark.ApplicationDate | convertdate('%Y-%m-%d') }}
|
|
18
|
+
registrationNumber: {{ TradeMark | get_registration_nb(TradeMark.MarkCurrentStatusCode) }}
|
|
19
|
+
registrationDate: {{ TradeMark.RegistrationDate }}
|
|
20
|
+
applicationLanguageCode: {{ TradeMark.ApplicationLanguageCode }}
|
|
21
|
+
officeStatus: {{ TradeMark.MarkCurrentStatusCode }}
|
|
22
|
+
statusDate: {{ TradeMark.MarkCurrentStatusDate | convertdate('%Y-%m-%d') }}
|
|
23
|
+
|
|
24
|
+
markDisclaimerDetails:
|
|
25
|
+
{% call(desc) match('MarkDisclaimerDetails.MarkDisclaimer', TradeMark) %}
|
|
26
|
+
- text: {{ desc }}
|
|
27
|
+
languageCode: {{ desc | guess_language(TradeMark.ApplicationLanguageCode) }}
|
|
28
|
+
{% endcall %}
|
|
29
|
+
|
|
30
|
+
markDescriptionDetails:
|
|
31
|
+
{% call(desc) match('MarkDisclaimerDetails.MarkDisclaimer', TradeMark) %}
|
|
32
|
+
- text: {{ desc }}
|
|
33
|
+
languageCode: {{ desc | guess_language(TradeMark.ApplicationLanguageCode) }}
|
|
34
|
+
{% endcall %}
|
|
35
|
+
|
|
36
|
+
wordMarkSpecification:
|
|
37
|
+
markVerbalElement:
|
|
38
|
+
{% call(desc) match('WordMarkSpecification.MarkVerbalElementText', TradeMark) %}
|
|
39
|
+
- text: {{ desc }}
|
|
40
|
+
languageCode: {{ desc | guess_language(TradeMark.ApplicationLanguageCode) }}
|
|
41
|
+
{% endcall %}
|
|
42
|
+
|
|
43
|
+
markImageDetails:
|
|
44
|
+
{% call(img) match('MarkImageDetails.MarkImage', TradeMark) %}
|
|
45
|
+
- name: {{ img.MarkImageURI }}
|
|
46
|
+
colourIndicator: {{ img.MarkImageColourClaimedText | get_true_or_false }}
|
|
47
|
+
colourClaimed:
|
|
48
|
+
{% call(desc) match('MarkImageColourClaimedText', img) %}
|
|
49
|
+
- text: {{ desc }}
|
|
50
|
+
languageCode: {{ desc | guess_language(TradeMark.ApplicationLanguageCode) }}
|
|
51
|
+
{% endcall %}
|
|
52
|
+
classification:
|
|
53
|
+
kind: Vienna
|
|
54
|
+
code:
|
|
55
|
+
{% call(code) match('MarkImageCategory.CategoryCodeDetails.CategoryCode', img) %}
|
|
56
|
+
- {{ code }}
|
|
57
|
+
{% endcall %}
|
|
58
|
+
{% endcall %}
|
|
59
|
+
|
|
60
|
+
markSoundDetails:
|
|
61
|
+
{% call(sound) match('MarkSoundDetails.MarkSound', TradeMark) %}
|
|
62
|
+
- filename: {{ sound.MarkSoundFilename }}
|
|
63
|
+
fileformat: {{ sound.MarkSoundFileFormat }}
|
|
64
|
+
{% endcall %}
|
|
65
|
+
|
|
66
|
+
markVideoDetails:
|
|
67
|
+
{% call(video) match('MarkVideoDetails.MarkVideo', TradeMark) %}
|
|
68
|
+
- filename: {{ video.MarkVideoFilename }}
|
|
69
|
+
fileformat: {{ video.MarkVideoFileFormat }}
|
|
70
|
+
{% endcall %}
|
|
71
|
+
|
|
72
|
+
{% set nc_gs = TradeMark.GoodsServicesDetails.GoodsServices.ClassDescriptionDetails.ClassDescription | get_goods_services %}
|
|
73
|
+
{% if (nc_gs.keys() | length) > 0 %}
|
|
74
|
+
goodsServicesClassification:
|
|
75
|
+
kind: Nice
|
|
76
|
+
version: {{ ASK_THE_OFFICE }}
|
|
77
|
+
class:
|
|
78
|
+
{% for nc in nc_gs.keys() %}
|
|
79
|
+
- code: {{ nc | int }}
|
|
80
|
+
{% if nc_gs[nc]['terms'] %}
|
|
81
|
+
terms:
|
|
82
|
+
{{ nc_gs[nc]['terms'] | guess_language(nc_gs[nc]['lang'], TradeMark.ApplicationLanguageCode) | field_name}}:
|
|
83
|
+
{% for gsline in nc_gs[nc]['terms'] | remove_trailing('.', '-') | split_terms %}
|
|
84
|
+
- {{ gsline | lower }}
|
|
85
|
+
{% endfor %}
|
|
86
|
+
{% endif %}
|
|
87
|
+
{% endfor %}
|
|
88
|
+
{% endif %}
|
|
89
|
+
|
|
90
|
+
priorities:
|
|
91
|
+
{% call(priority) match('PriorityDetails.Priority', TradeMark) %}
|
|
92
|
+
- countryCode: {{ priority.PriorityCountryCode }}
|
|
93
|
+
number: {{ priority.PriorityNumber }}
|
|
94
|
+
date: {{ priority.PriorityDate }}
|
|
95
|
+
{% endcall %}
|
|
96
|
+
|
|
97
|
+
publications:
|
|
98
|
+
{% call(publication) match('PublicationDetails.Publication', TradeMark) %}
|
|
99
|
+
- identifier: {{ publication.PublicationIdentifier }}
|
|
100
|
+
date: {{ publication.PublicationDate }}
|
|
101
|
+
section: {{ publication.PublicationSection }}
|
|
102
|
+
{% endcall %}
|
|
103
|
+
|
|
104
|
+
applicants:
|
|
105
|
+
{% call(Applicant) match('ApplicantDetails.Applicant', TradeMark) %}
|
|
106
|
+
- identifier: {{ Applicant.ApplicantIdentifier }}
|
|
107
|
+
{% call(nameline) match('FormattedNameAddress.Name.FormattedName', Applicant.ApplicantAddressBook) %}
|
|
108
|
+
kind: {{ nameline | get_entity_kind}}
|
|
109
|
+
fullName:
|
|
110
|
+
- text: {{ nameline | get_entity_name}}
|
|
111
|
+
languageCode: es
|
|
112
|
+
{% endcall %}
|
|
113
|
+
fullAddress:
|
|
114
|
+
{% call(adrline) match('FormattedNameAddress.Address.FormattedAddress', Applicant.ApplicantAddressBook) %}
|
|
115
|
+
- text: {{ adrline | get_entity_addr}}
|
|
116
|
+
languageCode: es
|
|
117
|
+
{% endcall %}
|
|
118
|
+
{% call(adrline) match('FormattedNameAddress.Address', Applicant.ApplicantAddressBook) %}
|
|
119
|
+
countryCode: {{ adrline.AddressCountryCode }}
|
|
120
|
+
{% endcall %}
|
|
121
|
+
{% endcall %}
|
|
122
|
+
|
|
123
|
+
representatives:
|
|
124
|
+
{% call(Representative) match('RepresentativeDetails.Representative', TradeMark) %}
|
|
125
|
+
{% if not Representative.RepresentativeIdentifier.endswith('-null') %}
|
|
126
|
+
- identifier: {{ Representative.RepresentativeIdentifier }}
|
|
127
|
+
{% call(nameline) match('FormattedNameAddress.Name.FormattedName', Representative.RepresentativeAddressBook) %}
|
|
128
|
+
kind: {{ nameline | get_entity_kind}}
|
|
129
|
+
fullName:
|
|
130
|
+
- text: {{ nameline | get_entity_name}}
|
|
131
|
+
languageCode: {{ nameline | guess_language('es') }}
|
|
132
|
+
{% endcall %}
|
|
133
|
+
fullAddress:
|
|
134
|
+
{% call(adrline) match('FormattedNameAddress.Address.FormattedAddress', Representative.RepresentativeAddressBook) %}
|
|
135
|
+
- text: {{ adrline | get_entity_addr}}
|
|
136
|
+
languageCode: {{ adrline | guess_language('es') }}
|
|
137
|
+
{% endcall %}
|
|
138
|
+
{% call(adrline) match('FormattedNameAddress.Address', Representative.RepresentativeAddressBook) %}
|
|
139
|
+
countryCode: {{ adrline.AddressCountryCode }}
|
|
140
|
+
{% endcall %}
|
|
141
|
+
{% endif %}
|
|
142
|
+
{% endcall %}
|
|
143
|
+
|
|
144
|
+
{% endif %}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import re
|
|
2
|
+
|
|
3
|
+
from gbdtransformation.brands import st13_identifier
|
|
4
|
+
from gbdtransformation.common.filters import *
|
|
5
|
+
|
|
6
|
+
def parseStatus(x):
|
|
7
|
+
return x
|
|
8
|
+
|
|
9
|
+
def parse_version(x):
|
|
10
|
+
return x
|
|
11
|
+
|
|
12
|
+
def split_vienna(data, separator='.'):
|
|
13
|
+
"""when the class is xxyyzz"""
|
|
14
|
+
if not len(data) == 6:
|
|
15
|
+
raise Exception('cannot split vienna "%s"' % data)
|
|
16
|
+
return separator.join([data[:2], data[2:4], data[4:6]])
|
|
17
|
+
|
|
18
|
+
def pad_vienna(data, separator='.'):
|
|
19
|
+
"""Convert to vienna style with padding"""
|
|
20
|
+
if separator in data:
|
|
21
|
+
slice = data.split('.')
|
|
22
|
+
return slice[0].zfill(2) + '.' + pad_vienna('.'.join(slice[1:]))
|
|
23
|
+
return data.zfill(2)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# create synonyms for application/registration numbers
|
|
27
|
+
# type = appnum | regnum
|
|
28
|
+
def create_synonyms(original, office, numtype, lenient=False):
|
|
29
|
+
if not original: return []
|
|
30
|
+
original = str(original)
|
|
31
|
+
if not office: return [original]
|
|
32
|
+
# collections are usually office code followed with tm: xxtm
|
|
33
|
+
collection = '%stm' % office.lower()
|
|
34
|
+
# some exceptions:
|
|
35
|
+
if office == 'WHO': collection = 'whoinn'
|
|
36
|
+
|
|
37
|
+
# get the appnum_mask / regnum_mask
|
|
38
|
+
try:
|
|
39
|
+
module_pckg = load_collection_package('brands', collection)
|
|
40
|
+
masks = getattr(module_pckg, '%s_mask' % numtype)
|
|
41
|
+
if not isinstance(masks, list): masks = [masks]
|
|
42
|
+
# set when making synonyms for reference numbers
|
|
43
|
+
if lenient:
|
|
44
|
+
masks.append('(.*)')
|
|
45
|
+
except (AttributeError, ModuleNotFoundError) as e:
|
|
46
|
+
masks = ['(.*)']
|
|
47
|
+
|
|
48
|
+
# match the regex
|
|
49
|
+
matches = None
|
|
50
|
+
for mask in masks:
|
|
51
|
+
regex = re.compile(mask)
|
|
52
|
+
matches = regex.search(original)
|
|
53
|
+
if matches:
|
|
54
|
+
break
|
|
55
|
+
if not matches:
|
|
56
|
+
return [original]
|
|
57
|
+
masked = ''.join([m for m in matches.groups() if m])
|
|
58
|
+
|
|
59
|
+
synonyms = []
|
|
60
|
+
def _to_synonyms(value):
|
|
61
|
+
synonyms.append(value)
|
|
62
|
+
value = remove_special(value)
|
|
63
|
+
synonyms.append(value)
|
|
64
|
+
value = remove_non_numeric(value)
|
|
65
|
+
synonyms.append(value)
|
|
66
|
+
value = remove_leading(value, '0')
|
|
67
|
+
synonyms.append(value)
|
|
68
|
+
|
|
69
|
+
_to_synonyms(masked)
|
|
70
|
+
_to_synonyms(original)
|
|
71
|
+
|
|
72
|
+
return set(synonyms)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
# TRADEMARK is a safe default here
|
|
76
|
+
def st13(appnum, office, type='TRADEMARK', appdate=None, roffice=None, sanitize=True):
|
|
77
|
+
if not appnum:
|
|
78
|
+
return None
|
|
79
|
+
# collections are usually office code followed with tm: xxtm
|
|
80
|
+
collection = '%stm' % office.lower()
|
|
81
|
+
# some exceptions:
|
|
82
|
+
if office == 'WHO': collection = 'whoinn'
|
|
83
|
+
|
|
84
|
+
module_pckg = load_collection_package('brands', collection)
|
|
85
|
+
try:
|
|
86
|
+
masks = getattr(module_pckg, 'appnum_mask')
|
|
87
|
+
if not isinstance(masks, list): masks = [masks]
|
|
88
|
+
except:
|
|
89
|
+
masks = ['(.*)']
|
|
90
|
+
|
|
91
|
+
try:
|
|
92
|
+
source = getattr(module_pckg, 'source')
|
|
93
|
+
except:
|
|
94
|
+
source = 'national'
|
|
95
|
+
matches = None
|
|
96
|
+
for mask in masks:
|
|
97
|
+
regex = re.compile('^%s$' % mask)
|
|
98
|
+
matches = regex.search(appnum)
|
|
99
|
+
if matches:
|
|
100
|
+
break
|
|
101
|
+
|
|
102
|
+
if not matches:
|
|
103
|
+
raise Exception('could not apply appnum mask %s on %s' % (mask, appnum))
|
|
104
|
+
|
|
105
|
+
#print(appnum, ''.join(matches.groups()))
|
|
106
|
+
appnum = ''.join(matches.groups())
|
|
107
|
+
|
|
108
|
+
prefix = st13_identifier[source.lower()][type.lower()]
|
|
109
|
+
if sanitize:
|
|
110
|
+
# remove special characters
|
|
111
|
+
special_chars = re.compile(r'\W')
|
|
112
|
+
appnum = special_chars.sub('', appnum)
|
|
113
|
+
|
|
114
|
+
# reference office (only relevant for madrid)
|
|
115
|
+
if roffice:
|
|
116
|
+
appnum = '%s%s' % (roffice.upper(), appnum)
|
|
117
|
+
|
|
118
|
+
st13 = '%s%s' % (office.upper(), prefix)
|
|
119
|
+
if appdate:
|
|
120
|
+
st13 = '%s%s' % (st13, appdate[:4])
|
|
121
|
+
|
|
122
|
+
# add application number and zfill till 17
|
|
123
|
+
return '%s%s' % (st13, appnum.zfill(17 - len(st13)))
|
|
124
|
+
|
|
125
|
+
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
ignore_namespace = [
|
|
4
|
+
'http://www.inpi.fr/schemas/frst66/v1_00_11',
|
|
5
|
+
'http://www.inpi.fr/schemas/frst66/v1_00_12',
|
|
6
|
+
'http://www.inpi.fr/schemas/frst66/v1_00_13'
|
|
7
|
+
]
|
|
8
|
+
|
|
9
|
+
def translate_kind(kind):
|
|
10
|
+
if not kind: return ['Individual']
|
|
11
|
+
|
|
12
|
+
kind = kind.lower()
|
|
13
|
+
if kind == 'collective de certification': return ['Certificate', 'Collective']
|
|
14
|
+
if kind == 'collective': return ['Collective']
|
|
15
|
+
if kind == 'guarantee': return ['Certificate']
|
|
16
|
+
if kind == 'other': return ['Other']
|
|
17
|
+
if kind == 'marque collective de certification': return ['Certificate', 'Collective']
|
|
18
|
+
|
|
19
|
+
raise Exception('"%s" kind not mapped' % kind)
|
|
20
|
+
|
|
21
|
+
def translate_status(trademark):
|
|
22
|
+
if trademark._operationCode == 'Delete':
|
|
23
|
+
return 'Delete'
|
|
24
|
+
|
|
25
|
+
status = trademark.MarkCurrentStatusCode
|
|
26
|
+
status = status.lower()
|
|
27
|
+
|
|
28
|
+
if status == "marque renouvelée": return "Registered"
|
|
29
|
+
if status == "renouvellement demandé": return "Registered"
|
|
30
|
+
if status == "marque enregistrée": return "Registered"
|
|
31
|
+
|
|
32
|
+
if status == "marque expirée": return "Expired"
|
|
33
|
+
if status == "marque ayant fait l'objet d'une renonciation totale": return "Expired"
|
|
34
|
+
|
|
35
|
+
if status == "marque annulée": return "Ended"
|
|
36
|
+
if status == "marque déchue": return "Ended"
|
|
37
|
+
if status == "demande totalement rejetée": return "Ended"
|
|
38
|
+
if status == "demande irrecevable après publication": return "Ended"
|
|
39
|
+
if status == "marque ayant fait l'objet d'un retrait total": return "Ended"
|
|
40
|
+
|
|
41
|
+
if status == "demande publiée": return "Pending"
|
|
42
|
+
if status == "demande non publiée": return "Pending"
|
|
43
|
+
if status == "demande déposée": return "Pending"
|
|
44
|
+
|
|
45
|
+
raise Exception('"%s" status not mapped' % status)
|
|
46
|
+
|
|
47
|
+
def translate_feature(feature):
|
|
48
|
+
# needed information from office
|
|
49
|
+
if not feature: return 'Undefined'
|
|
50
|
+
|
|
51
|
+
if feature == 'Word': return 'Word'
|
|
52
|
+
if feature == 'Figurative': return 'Figurative'
|
|
53
|
+
if feature == 'Combined': return 'Combined'
|
|
54
|
+
if feature == '3-D': return 'Three dimensional'
|
|
55
|
+
if feature == 'Form': return 'Three dimensional'
|
|
56
|
+
if feature == 'Hologram': return 'Hologram'
|
|
57
|
+
if feature == 'Sound': return 'Sound'
|
|
58
|
+
if feature == 'Colour': return 'Colour'
|
|
59
|
+
if feature == 'Position': return 'Position'
|
|
60
|
+
if feature == 'Pattern': return 'Pattern'
|
|
61
|
+
if feature == 'Motion': return 'Motion'
|
|
62
|
+
if feature == 'Multimedia': return 'Multimedia'
|
|
63
|
+
if feature == 'Other': return 'Other'
|
|
64
|
+
|
|
65
|
+
raise Exception('"%s" feature not mapped' % feature)
|
|
66
|
+
|
|
67
|
+
# -------------------------
|
|
68
|
+
# handling dates exceptions
|
|
69
|
+
# -------------------------
|
|
70
|
+
|
|
71
|
+
# registration number = application number
|
|
72
|
+
# in case the record has an Enregistrement recordal
|
|
73
|
+
def get_registration_number(trademark):
|
|
74
|
+
registeration_recordal = _get_registered_recordal(trademark)
|
|
75
|
+
if registeration_recordal:
|
|
76
|
+
return trademark.get('ApplicationNumber')
|
|
77
|
+
|
|
78
|
+
# registration date = date of Enregistrement recordal
|
|
79
|
+
def get_registration_date(trademark):
|
|
80
|
+
registeration_recordal = _get_registered_recordal(trademark)
|
|
81
|
+
|
|
82
|
+
return _get_recordal_date(registeration_recordal)
|
|
83
|
+
|
|
84
|
+
def get_publication_date(trademark):
|
|
85
|
+
publication_recordal = _get_publication_recordal(trademark)
|
|
86
|
+
|
|
87
|
+
return _get_recordal_date(publication_recordal)
|
|
88
|
+
|
|
89
|
+
def get_status_date(trademark):
|
|
90
|
+
recordals = _get_recordals(trademark)
|
|
91
|
+
if not len(recordals):
|
|
92
|
+
return None
|
|
93
|
+
|
|
94
|
+
# the last recordal is the latest
|
|
95
|
+
return _get_recordal_date(recordals[-1].get('BasicRecord'))
|
|
96
|
+
|
|
97
|
+
def _get_recordal_date(recordal):
|
|
98
|
+
if not recordal:
|
|
99
|
+
return None
|
|
100
|
+
|
|
101
|
+
pubdetails = recordal.get('RecordPublicationDetails', {}) \
|
|
102
|
+
.get('RecordPublication', {})
|
|
103
|
+
|
|
104
|
+
pub_date = pubdetails.get('PublicationDate', None)
|
|
105
|
+
|
|
106
|
+
# if no PublicationDate or it is malformed
|
|
107
|
+
# Ex: 3735098: 'PublicationDate': '2020-10-'
|
|
108
|
+
# => fall back to PublicationIdentifier
|
|
109
|
+
if pub_date and len(pub_date) < len('yyyy-mm-dd'):
|
|
110
|
+
# sometimes only the Identifier is provided (yyyy-ww)
|
|
111
|
+
# => deduce the date (friday of the week)
|
|
112
|
+
return _weeknb_to_date(pubdetails.get('PublicationIdentifier'))
|
|
113
|
+
else:
|
|
114
|
+
return pub_date
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
# get the Enregistrement recordal
|
|
119
|
+
def _get_registered_recordal(trademark):
|
|
120
|
+
recordals = _get_recordals(trademark)
|
|
121
|
+
for record in recordals:
|
|
122
|
+
brecord = record.get('BasicRecord', {})
|
|
123
|
+
brecordKind = brecord.get('BasicRecordKind', None)
|
|
124
|
+
if brecordKind and brecordKind.startswith('Enregistrement'):
|
|
125
|
+
return brecord
|
|
126
|
+
|
|
127
|
+
return None
|
|
128
|
+
|
|
129
|
+
# get the Publication recordal
|
|
130
|
+
def _get_publication_recordal(trademark):
|
|
131
|
+
recordals = _get_recordals(trademark)
|
|
132
|
+
for record in recordals:
|
|
133
|
+
brecord = record.get('BasicRecord', {})
|
|
134
|
+
brecordKind = brecord.get('BasicRecordKind', None)
|
|
135
|
+
if brecordKind and brecordKind.startswith('Publication'):
|
|
136
|
+
return brecord
|
|
137
|
+
|
|
138
|
+
return None
|
|
139
|
+
|
|
140
|
+
def _get_recordals(trademark):
|
|
141
|
+
recordals = trademark.get('MarkRecordDetails', {}).get('MarkRecord', [])
|
|
142
|
+
if not isinstance(recordals, list):
|
|
143
|
+
recordals = [recordals]
|
|
144
|
+
|
|
145
|
+
recordals = [r for r in recordals if r is not None]
|
|
146
|
+
|
|
147
|
+
return recordals
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
# ------------
|
|
151
|
+
# helpers
|
|
152
|
+
# ------------
|
|
153
|
+
# doing our best attempt
|
|
154
|
+
def _weeknb_to_date(weeknb):
|
|
155
|
+
try:
|
|
156
|
+
friday = datetime.datetime.strptime(weeknb + '-5', '%G-%V-%u')
|
|
157
|
+
return friday.strftime('%Y-%m-%d')
|
|
158
|
+
except:
|
|
159
|
+
return None
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
def get_full_address(address):
|
|
163
|
+
if not address:
|
|
164
|
+
return None
|
|
165
|
+
|
|
166
|
+
details = [address.AddressStreet, address.AddressPostOfficeBox, address.AddressPostcode, address.AddressCity]
|
|
167
|
+
details = [d for d in details if d]
|
|
168
|
+
line = ', '.join(details)
|
|
169
|
+
if line:
|
|
170
|
+
return line
|
|
171
|
+
else:
|
|
172
|
+
return None
|