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,170 @@
|
|
|
1
|
+
import re
|
|
2
|
+
|
|
3
|
+
def translate_kind(kind):
|
|
4
|
+
if not kind: return 'Individual'
|
|
5
|
+
|
|
6
|
+
if kind.lower() == 'individual mark': return 'Individual'
|
|
7
|
+
if kind.lower() == 'trademark': return 'Individual'
|
|
8
|
+
if kind.lower() == 'collective mark': return 'Collective'
|
|
9
|
+
if kind.lower() == 'guarantee' or kind.lower() =='guarantee mark': return 'Collective'
|
|
10
|
+
if kind.lower() == 'certificate' or kind.lower() =='certificate mark': return 'Certificate'
|
|
11
|
+
if kind.lower() == 'certification' or kind.lower() =='certification mark': return 'Certificate'
|
|
12
|
+
|
|
13
|
+
return 'Other'
|
|
14
|
+
#raise Exception('kind "%s" is not mapped.' % kind)
|
|
15
|
+
|
|
16
|
+
def translate_status(status):
|
|
17
|
+
if not status: return 'Ended'
|
|
18
|
+
|
|
19
|
+
if status in ['Registered',
|
|
20
|
+
'Granted']:
|
|
21
|
+
return 'Registered'
|
|
22
|
+
|
|
23
|
+
if status in ['Pending']:
|
|
24
|
+
return 'Pending'
|
|
25
|
+
|
|
26
|
+
if status in ['Refused',
|
|
27
|
+
'Shelved',
|
|
28
|
+
'Finally shelved',
|
|
29
|
+
'Ceased',
|
|
30
|
+
'Ceased/cancelled',
|
|
31
|
+
'Withdrawn',
|
|
32
|
+
'Rejected']:
|
|
33
|
+
return 'Ended'
|
|
34
|
+
|
|
35
|
+
return 'Unknown'
|
|
36
|
+
#raise Exception('Status "%s" unmapped' % status)
|
|
37
|
+
|
|
38
|
+
def translate_feature(feature):
|
|
39
|
+
"""translation of mark feature"""
|
|
40
|
+
if not feature: return 'Undefined'
|
|
41
|
+
feature = feature.upper()
|
|
42
|
+
if feature == 'COMBINED/FIGURATIVE MARK': return 'Combined'
|
|
43
|
+
if feature == 'FIGURATIVE MARK': return 'Figurative'
|
|
44
|
+
if feature == 'WORD MARK': return 'Word'
|
|
45
|
+
if feature == '3D-MARK': return "Three dimensional"
|
|
46
|
+
if feature == '3D MARK': return "Three dimensional"
|
|
47
|
+
if feature == 'SOUND MARK': return 'Sound'
|
|
48
|
+
if feature == 'COLOR MARK': return 'Colour'
|
|
49
|
+
if feature == 'MOTION MARK': return 'Motion'
|
|
50
|
+
if feature == 'MULTIMEDIA MARK': return 'Multimedia'
|
|
51
|
+
if feature == 'POSITION MARK': return 'Position'
|
|
52
|
+
if feature == 'PATTERN MARK': return 'Pattern'
|
|
53
|
+
if feature == 'HOLOGRAM MARK': return 'Hologram'
|
|
54
|
+
if feature == 'TRACER MARK': return 'Tracer'
|
|
55
|
+
if feature == 'OLFACTORY MARK': return 'Olfactory'
|
|
56
|
+
if feature == 'OLFACTIVE MARK': return 'Olfactory'
|
|
57
|
+
if feature == 'STYLIZED CHARACTERS': return 'Stylized characters'
|
|
58
|
+
if feature == 'STYLIZED CHARACTERS MARK': return 'Stylized characters'
|
|
59
|
+
|
|
60
|
+
return 'Unknown'
|
|
61
|
+
|
|
62
|
+
# raise Exception to recognize unmapped values
|
|
63
|
+
#raise Exception('Feature "%s" unmapped' % feature)
|
|
64
|
+
|
|
65
|
+
def get_local_text(node):
|
|
66
|
+
if node is None:
|
|
67
|
+
return None
|
|
68
|
+
if "$" in node:
|
|
69
|
+
return node["$"]
|
|
70
|
+
|
|
71
|
+
def get_local_texts(nodes):
|
|
72
|
+
if nodes is None:
|
|
73
|
+
return None
|
|
74
|
+
text = ""
|
|
75
|
+
start = True
|
|
76
|
+
for node in nodes:
|
|
77
|
+
if "$" in node:
|
|
78
|
+
if start:
|
|
79
|
+
start = False
|
|
80
|
+
else:
|
|
81
|
+
text += ", "
|
|
82
|
+
text += node["$"]
|
|
83
|
+
return text
|
|
84
|
+
|
|
85
|
+
def get_full_address(postalStructuredAddress):
|
|
86
|
+
if postalStructuredAddress is None:
|
|
87
|
+
return
|
|
88
|
+
result = ""
|
|
89
|
+
if "addressLineText" in postalStructuredAddress:
|
|
90
|
+
for addressLineText in postalStructuredAddress["addressLineText"]:
|
|
91
|
+
# always empty, which is good
|
|
92
|
+
"""
|
|
93
|
+
if hasattr(addressLineText, '__value'):
|
|
94
|
+
if len(result) > 0:
|
|
95
|
+
result += ", "
|
|
96
|
+
result += addressLineText.__value
|
|
97
|
+
"""
|
|
98
|
+
if "cityName" in postalStructuredAddress:
|
|
99
|
+
if len(result) > 0:
|
|
100
|
+
result += ", "
|
|
101
|
+
result += postalStructuredAddress["cityName"]
|
|
102
|
+
if "countryCode" in postalStructuredAddress:
|
|
103
|
+
result += ", " + postalStructuredAddress["countryCode"]
|
|
104
|
+
if "postalCode" in postalStructuredAddress:
|
|
105
|
+
result += " " + postalStructuredAddress["postalCode"]
|
|
106
|
+
if len(result) == 0:
|
|
107
|
+
return
|
|
108
|
+
else:
|
|
109
|
+
return result.strip()
|
|
110
|
+
|
|
111
|
+
def local_guess_language(content):
|
|
112
|
+
if content == None:
|
|
113
|
+
return None
|
|
114
|
+
from lingua import Language, LanguageDetectorBuilder
|
|
115
|
+
detector = LanguageDetectorBuilder.from_all_spoken_languages().build()
|
|
116
|
+
language = detector.detect_language_of(content)
|
|
117
|
+
if language:
|
|
118
|
+
lang = language.iso_code_639_1.name.lower()
|
|
119
|
+
# we merge Norwegian flavors, Norwegian Bokmål and Norwegian Nynorsk
|
|
120
|
+
if lang == "nn" or lang =="nb":
|
|
121
|
+
lang = "no"
|
|
122
|
+
return lang
|
|
123
|
+
else:
|
|
124
|
+
return "en"
|
|
125
|
+
|
|
126
|
+
def has_vienna_classes(markImage):
|
|
127
|
+
if not "markImageClassification" in markImage:
|
|
128
|
+
return False
|
|
129
|
+
if not "figurativeElementClassificationBag" in markImage["markImageClassification"]:
|
|
130
|
+
return False
|
|
131
|
+
if not "viennaClassificationBag" in markImage["markImageClassification"]["figurativeElementClassificationBag"]:
|
|
132
|
+
return False
|
|
133
|
+
|
|
134
|
+
for element in markImage["markImageClassification"]["figurativeElementClassificationBag"]["viennaClassificationBag"]:
|
|
135
|
+
if "viennaClassification" in element:
|
|
136
|
+
for viennaClassification in element["viennaClassification"]:
|
|
137
|
+
if "viennaCategory" in viennaClassification:
|
|
138
|
+
return True
|
|
139
|
+
return False
|
|
140
|
+
|
|
141
|
+
def translate_licence_category(kind):
|
|
142
|
+
if not kind: return 'Other'
|
|
143
|
+
|
|
144
|
+
if kind.lower() == 'exclusive': return 'Exclusive'
|
|
145
|
+
if kind.lower() == 'nonexclusive' or kind.lower() == 'non exclusive' or kind.lower() == 'non-exclusive': return 'NonExclusive'
|
|
146
|
+
|
|
147
|
+
return 'Other'
|
|
148
|
+
#raise Exception('licence category "%s" is not mapped.' % kind)
|
|
149
|
+
|
|
150
|
+
def translate_licence_status(status):
|
|
151
|
+
if not status: return 'Other'
|
|
152
|
+
# Cancelled, Valid, Other
|
|
153
|
+
|
|
154
|
+
if status.lower() == 'cancelled': return 'Cancelled'
|
|
155
|
+
if status.lower() == 'valid': return 'Valid'
|
|
156
|
+
|
|
157
|
+
return 'Other'
|
|
158
|
+
#raise Exception('licence status "%s" is not mapped.' % status)
|
|
159
|
+
|
|
160
|
+
def clean_vienna_class(the_class):
|
|
161
|
+
if the_class == None:
|
|
162
|
+
return None
|
|
163
|
+
if len(the_class) == 0:
|
|
164
|
+
return None
|
|
165
|
+
# remove trailing dot
|
|
166
|
+
if the_class.endswith("."):
|
|
167
|
+
the_class = the_class[:-1]
|
|
168
|
+
if len(the_class) == 0:
|
|
169
|
+
return None
|
|
170
|
+
return the_class
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
{% from 'navigation.tmpl' import match %}
|
|
2
|
+
{% from 'navigation.tmpl' import enumerate %}
|
|
3
|
+
|
|
4
|
+
{% call(trademark) match('trademark', trademarkBag) %}
|
|
5
|
+
|
|
6
|
+
{% call(applicationNumber) match('applicationNumber', trademark.trademarkTypeChoice1) %}
|
|
7
|
+
st13: {{ applicationNumber.applicationNumberText | st13('NO', appdate=trademark.trademarkTypeChoice2.applicationDate) }}
|
|
8
|
+
applicationNumber: {{ applicationNumber.applicationNumberText }}
|
|
9
|
+
{% endcall %}
|
|
10
|
+
applicationDate: {{ trademark.trademarkTypeChoice2.applicationDate | convertdate('%Y-%m-%d') }}
|
|
11
|
+
|
|
12
|
+
registrationNumber: {{ trademark.trademarkTypeChoice1.registrationNumber }}
|
|
13
|
+
registrationDate: {{ trademark.registrationDate }}
|
|
14
|
+
|
|
15
|
+
expiryDate: {{ trademark.expiryDate }}
|
|
16
|
+
|
|
17
|
+
# publication date appears as an event of category "markEventCategory": "Registration published"
|
|
18
|
+
# with publication date given by markEventDate attribute
|
|
19
|
+
{% call(event) match('markEvent', trademark.markEventBag) %}
|
|
20
|
+
{% if event.markEventCategory == 'Registration published' %}
|
|
21
|
+
publicationDate: {{ event.markEventDate }}
|
|
22
|
+
{% endif %}
|
|
23
|
+
{% endcall %}
|
|
24
|
+
|
|
25
|
+
{% set status = trademark.markCurrentStatusCode | translate_status %}
|
|
26
|
+
gbdStatus: {{ status }}
|
|
27
|
+
officeStatus: {{ trademark.markCurrentStatusCode }}
|
|
28
|
+
statusDate: {{ trademark.markCurrentStatusDate }}
|
|
29
|
+
|
|
30
|
+
registrationOfficeCode: "NO"
|
|
31
|
+
designatedCountries:
|
|
32
|
+
- "NO"
|
|
33
|
+
|
|
34
|
+
type: TRADEMARK
|
|
35
|
+
|
|
36
|
+
kind:
|
|
37
|
+
{% call(markCategory) match('markCategory', trademark) %}
|
|
38
|
+
- {{ markCategory | translate_kind() }}
|
|
39
|
+
{% endcall %}
|
|
40
|
+
# (Individual|Collective|Certificate|Defensive|Other|Membership|Unknown)
|
|
41
|
+
|
|
42
|
+
markFeature: {{ trademark.markFeatureDescription | translate_feature() }}
|
|
43
|
+
# (Word|Stylized characters|Figurative|Combined|Three dimensional|Colour|Sound|Hologram|Olfactory|Motion|Municipal|Chimney|Other|Undefined)
|
|
44
|
+
|
|
45
|
+
# in case it is relevant and available, we can store here the Madrid application from witch the national trademark originates
|
|
46
|
+
{% set application_case = markApplicationCategory %}
|
|
47
|
+
{% if application_case == 'International Mark' %}
|
|
48
|
+
reference:
|
|
49
|
+
registration:
|
|
50
|
+
- number: {{ trademark.trademarkTypeChoice1.registrationNumber }}
|
|
51
|
+
date: {{ trademark.registrationDate }}
|
|
52
|
+
office: "WO"
|
|
53
|
+
{% endif %}
|
|
54
|
+
|
|
55
|
+
markDisclaimerDetails:
|
|
56
|
+
{% call(markDisclaimerText) match('markDisclaimerText', trademark.markDisclaimerBag) %}
|
|
57
|
+
- languageCode:
|
|
58
|
+
text: {{ markDisclaimerText | get_local_text() }}
|
|
59
|
+
{% endcall %}
|
|
60
|
+
|
|
61
|
+
markDescriptionDetails:
|
|
62
|
+
- languageCode:
|
|
63
|
+
text:
|
|
64
|
+
|
|
65
|
+
wordMarkSpecification:
|
|
66
|
+
markVerbalElement:
|
|
67
|
+
- languageCode:
|
|
68
|
+
text: {{ trademark.markRepresentation.markReproduction.wordMarkSpecification.markVerbalElementText | get_local_text() }}
|
|
69
|
+
markSignificantVerbalElement:
|
|
70
|
+
- languageCode:
|
|
71
|
+
text: {{ trademark.markRepresentation.markReproduction.wordMarkSpecification.markSignificantVerbalElementText | get_local_text() }}
|
|
72
|
+
markTranslation:
|
|
73
|
+
- languageCode:
|
|
74
|
+
text:
|
|
75
|
+
markTransliteration:
|
|
76
|
+
|
|
77
|
+
markImageDetails:
|
|
78
|
+
{% call(markImage) match('markImage', trademark.markRepresentation.markReproduction.markImageBag) %}
|
|
79
|
+
- name: {{ markImage.fileName }}
|
|
80
|
+
colourIndicator: {{ markImage.colourModeCategory }}
|
|
81
|
+
colourClaimed:
|
|
82
|
+
- languageCode:
|
|
83
|
+
text:
|
|
84
|
+
description:
|
|
85
|
+
{% call(markDescriptionText) match('markDescriptionText', trademark.markRepresentation.markDescriptionBag.markDescriptionBagTypeChoiceSequence) %}
|
|
86
|
+
- languageCode:
|
|
87
|
+
text: {{ markDescriptionText | get_local_text() }}
|
|
88
|
+
{% endcall %}
|
|
89
|
+
{% set has_vienna_classes = markImage | has_vienna_classes() %}
|
|
90
|
+
{% if has_vienna_classes %}
|
|
91
|
+
classification:
|
|
92
|
+
kind: Vienna
|
|
93
|
+
version:
|
|
94
|
+
code:
|
|
95
|
+
{% call(viennaClass) match('viennaClassificationBag', markImage.markImageClassification.figurativeElementClassificationBag) %}
|
|
96
|
+
{% call(viennaValue) match('viennaClassification', viennaClass) %}
|
|
97
|
+
- {{ viennaValue.viennaCategory | clean_vienna_class }}
|
|
98
|
+
{% endcall %}
|
|
99
|
+
{% endcall %}
|
|
100
|
+
{% endif %}
|
|
101
|
+
{% endcall %}
|
|
102
|
+
|
|
103
|
+
markSoundDetails:
|
|
104
|
+
- filename:
|
|
105
|
+
fileformat:
|
|
106
|
+
|
|
107
|
+
markVideoDetails:
|
|
108
|
+
- filename:
|
|
109
|
+
fileformat:
|
|
110
|
+
|
|
111
|
+
goodsServicesClassification:
|
|
112
|
+
kind: Nice
|
|
113
|
+
version:
|
|
114
|
+
class:
|
|
115
|
+
{% call(goodsServices) match('goodsServices', trademark.goodsServicesBag) %}
|
|
116
|
+
{% call(classDescription) match('classDescription', goodsServices.classDescriptionBag) %}
|
|
117
|
+
- code: {{ classDescription.classNumber }}
|
|
118
|
+
terms:
|
|
119
|
+
{% call(goodsServicesDescriptionText) match('goodsServicesDescriptionText', classDescription) %}
|
|
120
|
+
{{ goodsServicesDescriptionText.localizedTextType | get_local_text | local_guess_language() }}:
|
|
121
|
+
- {{ goodsServicesDescriptionText.localizedTextType | get_local_text }}
|
|
122
|
+
{% endcall %}
|
|
123
|
+
{% endcall %}
|
|
124
|
+
{% endcall %}
|
|
125
|
+
|
|
126
|
+
priorities:
|
|
127
|
+
{% call(priority) match('priority', trademark.priorityBag) %}
|
|
128
|
+
- countryCode: {{ priority.priorityCountryCode }}
|
|
129
|
+
number: {{ priority.applicationNumber.applicationNumberText }}
|
|
130
|
+
date: {{ priority.priorityApplicationFilingDate }}
|
|
131
|
+
comment:
|
|
132
|
+
{% endcall %}
|
|
133
|
+
|
|
134
|
+
publications:
|
|
135
|
+
- identifier:
|
|
136
|
+
date:
|
|
137
|
+
section:
|
|
138
|
+
|
|
139
|
+
representatives:
|
|
140
|
+
{% call(representative) match('representative', trademark.representativeBag) %}
|
|
141
|
+
- identifier: {{ representative.partyIdentifier | get_local_text() }}
|
|
142
|
+
kind:
|
|
143
|
+
fullName:
|
|
144
|
+
- languageCode:
|
|
145
|
+
text: {{ representative.contact.contactTypeChoiceSequence.name.entityName.transliterationName | get_local_texts() }}
|
|
146
|
+
fullAddress:
|
|
147
|
+
{% call(postalAddress) match('postalAddress', representative.contact.contactTypeChoiceSequence.postalAddressBag) %}
|
|
148
|
+
- languageCode:
|
|
149
|
+
text: {{ postalAddress.postalStructuredAddress | get_full_address() }}
|
|
150
|
+
{% endcall %}
|
|
151
|
+
detailedAddress:
|
|
152
|
+
{% call(postalAddress) match('postalAddress', representative.contact.contactTypeChoiceSequence.postalAddressBag) %}
|
|
153
|
+
- languageCode:
|
|
154
|
+
text:
|
|
155
|
+
cityName: {{ postalAddress.postalStructuredAddress.cityName }}
|
|
156
|
+
geographicRegionName:
|
|
157
|
+
postalCode: {{ postalAddress.postalStructuredAddress.postalCode }}
|
|
158
|
+
countryCode: {{ postalAddress.postalStructuredAddress.countryCode }}
|
|
159
|
+
{% endcall %}
|
|
160
|
+
{% call(postalAddress) match('postalAddress', representative.contact.contactTypeChoiceSequence.postalAddressBag) %}
|
|
161
|
+
countryCode: {{ postalAddress.postalStructuredAddress.countryCode }}
|
|
162
|
+
{% endcall %}
|
|
163
|
+
{% endcall %}
|
|
164
|
+
|
|
165
|
+
correspondence:
|
|
166
|
+
fullName:
|
|
167
|
+
- languageCode:
|
|
168
|
+
text:
|
|
169
|
+
fullAddress:
|
|
170
|
+
- languageCode:
|
|
171
|
+
text:
|
|
172
|
+
countryCode:
|
|
173
|
+
|
|
174
|
+
applicants:
|
|
175
|
+
{% call(applicant) match('applicant', trademark.applicantBag) %}
|
|
176
|
+
- identifier: {{ applicant.partyIdentifier | get_local_text() }}
|
|
177
|
+
kind:
|
|
178
|
+
fullName:
|
|
179
|
+
- languageCode:
|
|
180
|
+
text: {{ applicant.contact.contactTypeChoiceSequence.name.entityName.transliterationName | get_local_texts() }}
|
|
181
|
+
fullAddress:
|
|
182
|
+
{% call(postalAddress) match('postalAddress', applicant.contact.contactTypeChoiceSequence.postalAddressBag) %}
|
|
183
|
+
- languageCode:
|
|
184
|
+
text: {{ postalAddress.postalStructuredAddress | get_full_address() }}
|
|
185
|
+
{% endcall %}
|
|
186
|
+
detailedAddress:
|
|
187
|
+
{% call(postalAddress) match('postalAddress', applicant.contact.contactTypeChoiceSequence.postalAddressBag) %}
|
|
188
|
+
- languageCode:
|
|
189
|
+
text:
|
|
190
|
+
cityName: {{ postalAddress.postalStructuredAddress.cityName }}
|
|
191
|
+
geographicRegionName:
|
|
192
|
+
postalCode: {{ postalAddress.postalStructuredAddress.postalCode }}
|
|
193
|
+
countryCode: {{ postalAddress.postalStructuredAddress.countryCode }}
|
|
194
|
+
{% endcall %}
|
|
195
|
+
{% call(postalAddress) match('postalAddress', applicant.contact.contactTypeChoiceSequence.postalAddressBag) %}
|
|
196
|
+
countryCode: {{ postalAddress.postalStructuredAddress.countryCode }}
|
|
197
|
+
{% endcall %}
|
|
198
|
+
{% endcall %}
|
|
199
|
+
|
|
200
|
+
holders:
|
|
201
|
+
{% call(holder) match('holder', holderBag) %}
|
|
202
|
+
- identifier: {{ holder.partyIdentifier | get_local_text() }}
|
|
203
|
+
kind:
|
|
204
|
+
fullName:
|
|
205
|
+
- languageCode:
|
|
206
|
+
text: {{ holder.contact.contactTypeChoiceSequence.name.entityName.transliterationName | get_local_texts() }}
|
|
207
|
+
fullAddress:
|
|
208
|
+
{% call(postalAddress) match('postalAddress', holder.contact.contactTypeChoiceSequence.postalAddressBag) %}
|
|
209
|
+
- languageCode:
|
|
210
|
+
text: {{ postalAddress.postalStructuredAddress | get_full_address() }}
|
|
211
|
+
{% endcall %}
|
|
212
|
+
detailedAddress:
|
|
213
|
+
{% call(postalAddress) match('postalAddress', holder.contact.contactTypeChoiceSequence.postalAddressBag) %}
|
|
214
|
+
- languageCode:
|
|
215
|
+
text:
|
|
216
|
+
cityName: {{ postalAddress.postalStructuredAddress.cityName }}
|
|
217
|
+
geographicRegionName:
|
|
218
|
+
postalCode: {{ postalAddress.postalStructuredAddress.postalCode }}
|
|
219
|
+
countryCode: {{ postalAddress.postalStructuredAddress.countryCode }}
|
|
220
|
+
{% endcall %}
|
|
221
|
+
{% call(postalAddress) match('postalAddress', holder.contact.contactTypeChoiceSequence.postalAddressBag) %}
|
|
222
|
+
countryCode: {{ postalAddress.postalStructuredAddress.countryCode }}
|
|
223
|
+
{% endcall %}
|
|
224
|
+
{% endcall %}
|
|
225
|
+
|
|
226
|
+
# licence information, not frequent, but provided by Singapore, Norway and UK as of 2025-04-23
|
|
227
|
+
licences:
|
|
228
|
+
{% call(record) match('markRecord', trademark.markRecordBag) %}
|
|
229
|
+
{% if record.recordLicence.recordLicenceCategory == 'Licence' %}
|
|
230
|
+
{% call(licence) match('licence', record.recordLicence.licenceBag) %}
|
|
231
|
+
- licenceCategory: {{ licence.licenceCategory | translate_licence_category() }}
|
|
232
|
+
# Exclusive, NonExclusive, Other
|
|
233
|
+
goodsServicesLimitation:
|
|
234
|
+
{% call(goodsServices) match('commentText', licence.goodsServicesLimitation.commentTextBag) %}
|
|
235
|
+
- languageCode:
|
|
236
|
+
text: {{ goodsServices.localizedTextType | get_local_text }}
|
|
237
|
+
{% endcall %}
|
|
238
|
+
periodLimitationEndDate: {{ licence.periodLimitationEndDate }}
|
|
239
|
+
licenceDate: {{ licence.licenceDate }}
|
|
240
|
+
licenceStatus: {{ licence.licenceStatusCategory | translate_licence_status() }}
|
|
241
|
+
effectiveDate: {{ record.recordLicence.recordEffectiveDate }}
|
|
242
|
+
licensee:
|
|
243
|
+
{% call(licensee) match('licensee', licence.licenseeBag) %}
|
|
244
|
+
- identifier: {{ licensee.partyIdentifier | get_local_text() }}
|
|
245
|
+
kind:
|
|
246
|
+
fullName:
|
|
247
|
+
- languageCode:
|
|
248
|
+
text: {{ licensee.contact.contactTypeChoiceSequence.name.entityName.phraseType | get_local_text }}
|
|
249
|
+
firstName:
|
|
250
|
+
- languageCode:
|
|
251
|
+
text:
|
|
252
|
+
lastName:
|
|
253
|
+
- languageCode:
|
|
254
|
+
text:
|
|
255
|
+
middleName:
|
|
256
|
+
- languageCode:
|
|
257
|
+
text:
|
|
258
|
+
organizationName:
|
|
259
|
+
- languageCode:
|
|
260
|
+
text:
|
|
261
|
+
fullAddress:
|
|
262
|
+
{% call(postalAddress) match('postalAddress', licensee.contact.contactTypeChoiceSequence.postalAddressBag) %}
|
|
263
|
+
- languageCode:
|
|
264
|
+
text: {{ postalAddress.postalStructuredAddress | get_full_address() }}
|
|
265
|
+
{% endcall %}
|
|
266
|
+
detailedAddress:
|
|
267
|
+
{% call(postalAddress) match('postalAddress', licensee.contact.contactTypeChoiceSequence.postalAddressBag) %}
|
|
268
|
+
- languageCode:
|
|
269
|
+
text:
|
|
270
|
+
cityName: {{ postalAddress.postalStructuredAddress.cityName }}
|
|
271
|
+
geographicRegionName:
|
|
272
|
+
postalCode: {{ postalAddress.postalStructuredAddress.postalCode }}
|
|
273
|
+
countryCode: {{ postalAddress.postalStructuredAddress.countryCode }}
|
|
274
|
+
{% endcall %}
|
|
275
|
+
contact:
|
|
276
|
+
phone:
|
|
277
|
+
fax:
|
|
278
|
+
email:
|
|
279
|
+
url:
|
|
280
|
+
countryCode: # sometimes, country name is provided instead
|
|
281
|
+
{% endcall %}
|
|
282
|
+
{% endcall %}
|
|
283
|
+
{% endif %}
|
|
284
|
+
{% endcall %}
|
|
285
|
+
|
|
286
|
+
{% endcall %}
|
|
287
|
+
|
|
288
|
+
# here goes extra information that is office specific and that is pertinent for us to retain.
|
|
289
|
+
extra:
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# namespaces defined in XML and to be ignored in procecssing
|
|
2
|
+
ignore_namespace = [
|
|
3
|
+
'http://www.iponz.govt.nz/XMLSchema/trademarks/information',
|
|
4
|
+
'http://www.iponz.govt.nz/XMLSchema/trademarks'
|
|
5
|
+
]
|
|
6
|
+
|
|
7
|
+
# -------------------------------------------------------------
|
|
8
|
+
# data translation helpers:
|
|
9
|
+
# translate values from office interpretation to gbd equivalent
|
|
10
|
+
# -------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
def translate_kind(kind, irn):
|
|
13
|
+
# collective international applications do not have KindMark
|
|
14
|
+
if not kind and irn: return ['Collective']
|
|
15
|
+
|
|
16
|
+
if not kind: return ['Individual']
|
|
17
|
+
|
|
18
|
+
if kind == 'Individual': return ['Individual']
|
|
19
|
+
if kind == 'Certificate': return ['Certificate']
|
|
20
|
+
if kind == 'Collective': return ['Collective']
|
|
21
|
+
|
|
22
|
+
raise Exception('kind "%s" is not mapped.' % kind)
|
|
23
|
+
|
|
24
|
+
def translate_status(status):
|
|
25
|
+
if not status: return 'Unknown'
|
|
26
|
+
|
|
27
|
+
if status == 'Removed': return 'Delete'
|
|
28
|
+
|
|
29
|
+
if status == 'Abandoned': return 'Ended'
|
|
30
|
+
if status == 'Cancelled': return 'Ended'
|
|
31
|
+
if status == 'Refused': return 'Ended'
|
|
32
|
+
if status == 'Rejected': return 'Ended'
|
|
33
|
+
if status == 'Revoked': return 'Ended'
|
|
34
|
+
if status == 'Withdrawn': return 'Ended'
|
|
35
|
+
if status == 'Renounced': return 'Ended'
|
|
36
|
+
if status == 'Invalid': return 'Ended'
|
|
37
|
+
if status == 'Abandoned - continued processing available': return 'Ended'
|
|
38
|
+
if status == 'Refused - continued processing available': return 'Ended'
|
|
39
|
+
|
|
40
|
+
if status == 'Expired': return 'Expired'
|
|
41
|
+
if status == 'Expired but restorable': return 'Expired'
|
|
42
|
+
if status == 'Registered (past expiry date)': return 'Expired'
|
|
43
|
+
if status == 'Merged': return 'Expired'
|
|
44
|
+
|
|
45
|
+
if status == 'Registered': return 'Registered'
|
|
46
|
+
if status == 'Protected': return 'Registered'
|
|
47
|
+
|
|
48
|
+
if status == 'Under Opposition': return 'Pending'
|
|
49
|
+
if status == 'Under Examination': return 'Pending'
|
|
50
|
+
if status == 'Accepted': return 'Pending'
|
|
51
|
+
if status == 'Abeyance': return 'Pending'
|
|
52
|
+
|
|
53
|
+
raise Exception('Status "%s" unmapped' % status)
|
|
54
|
+
|
|
55
|
+
def sanitize_vienna(vienna):
|
|
56
|
+
return '%s.%s.%s' % (vienna[0:2], vienna[2:4], vienna[4:])
|
|
57
|
+
|
|
58
|
+
def get_registration_nb(trademark, tmstatus):
|
|
59
|
+
# default registration number to application number
|
|
60
|
+
# in case none is provided
|
|
61
|
+
if tmstatus in ['Registered', 'Expired']:
|
|
62
|
+
return trademark.ApplicationNumber
|
|
63
|
+
|
|
64
|
+
def get_termination(value, gbd_status):
|
|
65
|
+
if gbd_status == 'Ended':
|
|
66
|
+
return value
|
|
67
|
+
return None
|
|
68
|
+
|
|
69
|
+
def translate_feature(feature):
|
|
70
|
+
if not feature:
|
|
71
|
+
return 'Undefined'
|
|
72
|
+
if not isinstance(feature, list):
|
|
73
|
+
if feature == 'Word': return 'Word'
|
|
74
|
+
if feature == 'Figurative': return 'Figurative'
|
|
75
|
+
if feature == 'Colour': return 'Colour'
|
|
76
|
+
if feature == '3-D': return 'Three dimensional'
|
|
77
|
+
if feature == 'Sound': return 'Sound'
|
|
78
|
+
if feature == 'Motion': return 'Motion'
|
|
79
|
+
if feature == 'Olfactory': return 'Olfactory'
|
|
80
|
+
if feature == 'Undefined' or feature == "": return 'Undefined'
|
|
81
|
+
else:
|
|
82
|
+
if 'Word' in feature and 'Figurative' in feature:
|
|
83
|
+
return 'Combined'
|
|
84
|
+
raise Exception('Feature "%s" unmapped' % feature)
|
|
85
|
+
|
|
86
|
+
def format_addressbook(abook):
|
|
87
|
+
# first try to get the Address from FormattedNameAddress
|
|
88
|
+
try:
|
|
89
|
+
address = abook.FormattedNameAddress.Address
|
|
90
|
+
except:
|
|
91
|
+
address = None
|
|
92
|
+
|
|
93
|
+
# if not set, then fallback to PostalAddress
|
|
94
|
+
if not address:
|
|
95
|
+
address = abook.PostalAddress
|
|
96
|
+
|
|
97
|
+
# if still not set, give up
|
|
98
|
+
if not address: return (None, None)
|
|
99
|
+
|
|
100
|
+
cc = address.AddressCountryCode
|
|
101
|
+
address_line = format_address(address)
|
|
102
|
+
|
|
103
|
+
return(address_line, cc)
|
|
104
|
+
|
|
105
|
+
def format_address(address):
|
|
106
|
+
faddress = address.FormattedAddress
|
|
107
|
+
if not faddress: return None
|
|
108
|
+
|
|
109
|
+
addr = []
|
|
110
|
+
if faddress.AddressLine:
|
|
111
|
+
if not isinstance(faddress.AddressLine, list):
|
|
112
|
+
faddress.AddressLine = [faddress.AddressLine]
|
|
113
|
+
|
|
114
|
+
for line in faddress.AddressLine:
|
|
115
|
+
addr.append(line.__value)
|
|
116
|
+
|
|
117
|
+
if faddress.AddressSuburb:
|
|
118
|
+
addr.append(faddress.AddressSuburb)
|
|
119
|
+
|
|
120
|
+
if faddress.AddressCity:
|
|
121
|
+
addr.append(faddress.AddressCity)
|
|
122
|
+
|
|
123
|
+
if faddress.AddressPostcode:
|
|
124
|
+
addr.append(faddress.AddressPostcode)
|
|
125
|
+
|
|
126
|
+
return (', '.join(addr))
|