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,230 @@
|
|
|
1
|
+
{% from 'navigation.tmpl' import match %}
|
|
2
|
+
{% set trademark = TrademarkApplication.TrademarkBag.Trademark %}
|
|
3
|
+
{% set status = trademark | translate_status %}
|
|
4
|
+
{% set type, kind = trademark.NationalTrademarkInformation.TrademarkClass.TrademarkClassDescriptionBag.TrademarkClassDescription | get_type_kind %}
|
|
5
|
+
|
|
6
|
+
# 300000100018403 -> 1000184-03
|
|
7
|
+
{% set appnum = trademark.ApplicationNumber.ST13ApplicationNumber | to_appnum %}
|
|
8
|
+
|
|
9
|
+
st13: {{ appnum | st13('CA', appdate=trademark.ApplicationDate, type=type) }}
|
|
10
|
+
gbdStatus: {{ status }}
|
|
11
|
+
registrationOfficeCode: {{ trademark.RegistrationOfficeCode }}
|
|
12
|
+
type: {{ type }}
|
|
13
|
+
|
|
14
|
+
{% if not status == 'Delete' %}
|
|
15
|
+
kind:
|
|
16
|
+
- {{ kind }}
|
|
17
|
+
|
|
18
|
+
{% if type == 'EMBLEM' or type == 'GI' %}
|
|
19
|
+
reference:
|
|
20
|
+
office: CA
|
|
21
|
+
{% endif %}
|
|
22
|
+
|
|
23
|
+
designatedCountries:
|
|
24
|
+
- {{ trademark.RegistrationOfficeCode }}
|
|
25
|
+
|
|
26
|
+
filingPlace: {{ trademark.FilingPlace }}
|
|
27
|
+
|
|
28
|
+
applicationNumber: {{ appnum | neutralize_version }}
|
|
29
|
+
applicationDate: {{ trademark.ApplicationDate }}
|
|
30
|
+
registrationNumber: {{ trademark.RegistrationNumber }}
|
|
31
|
+
registrationDate: {{ trademark.RegistrationDate }}
|
|
32
|
+
|
|
33
|
+
publicationDate: {{ (trademark.PublicationBag.Publication | first).NationalPublication.PublicationActionDate }}
|
|
34
|
+
|
|
35
|
+
markFeature: {{ trademark.MarkRepresentation.MarkFeatureCategory | translate_feature }}
|
|
36
|
+
|
|
37
|
+
applicationLanguageCode: {{ trademark.ApplicationLanguageCode }}
|
|
38
|
+
expiryDate: {{ trademark.ExpiryDate | convertdate('%Y-%m-%d') }}
|
|
39
|
+
terminationDate: {{ trademark.TerminationDate | convertdate('%Y-%m-%d') }}
|
|
40
|
+
officeStatus: {{ trademark.MarkCurrentStatusCode }}
|
|
41
|
+
statusDate: {{ trademark.MarkCurrentStatusDate | convertdate('%Y-%m-%d') }}
|
|
42
|
+
|
|
43
|
+
markDisclaimerDetails:
|
|
44
|
+
{% call(disclaimer) match('MarkDisclaimerBag.MarkDisclaimerText', trademark) %}
|
|
45
|
+
- text: {{ disclaimer.__value }}
|
|
46
|
+
languageCode: {{ disclaimer.__value | guess_language(disclaimer._languageCode, trademark.ApplicationLanguageCode) }}
|
|
47
|
+
{% endcall %}
|
|
48
|
+
|
|
49
|
+
markDescriptionDetails:
|
|
50
|
+
{% call(description) match('MarkRepresentation.MarkDescriptionBag.MarkDescriptionText', trademark) %}
|
|
51
|
+
- languageCode: {{ description.__value | guess_language(description._languageCode, trademark.ApplicationLanguageCode) }}
|
|
52
|
+
text: {{ description.__value }}
|
|
53
|
+
{% endcall %}
|
|
54
|
+
|
|
55
|
+
wordMarkSpecification:
|
|
56
|
+
markVerbalElement:
|
|
57
|
+
{% call(wspec) match('NationalTrademarkInformation.IndexHeadingBag', trademark) %}
|
|
58
|
+
- languageCode: {{ wspec | get_mark_name_from_headings(trademark) | guess_language(trademark.ApplicationLanguageCode) }}
|
|
59
|
+
text: {{ wspec | get_mark_name_from_headings(trademark) }}
|
|
60
|
+
{% endcall %}
|
|
61
|
+
markSignificantVerbalElement:
|
|
62
|
+
{% call(wspec) match('MarkRepresentation.MarkReproduction.WordMarkSpecification', trademark) %}
|
|
63
|
+
- languageCode: {{ wspec | get_mark_names | guess_language(trademark.ApplicationLanguageCode) }}
|
|
64
|
+
text: {{ wspec | get_mark_names }}
|
|
65
|
+
{% endcall %}
|
|
66
|
+
markTransliteration: {{ wspec.MarkTransliteration }}
|
|
67
|
+
|
|
68
|
+
# We might have several images, but only one is the protected logo. It can be identified as the only MarkImage entry
|
|
69
|
+
# with MarkImageClassification and MarkImageColourClaimedText, or based on the file name pattern, e.g.:
|
|
70
|
+
# 2382009.png versus 2382009-01.png, 2382009-02.png, etc. for the additional images.
|
|
71
|
+
# Additional images seem always examples of usage of the main logo on actual products.
|
|
72
|
+
markImageDetails:
|
|
73
|
+
{% call(img) match('MarkRepresentation.MarkReproduction.MarkImageBag.MarkImage', trademark) %}
|
|
74
|
+
{% set has_extension = img.FileName | has_extension_version %}
|
|
75
|
+
{% if not has_extension %}
|
|
76
|
+
- name: {{ img.FileName }}
|
|
77
|
+
colourIndicator: {{ img.MarkImageColourClaimedText.__value | get_true_or_false }}
|
|
78
|
+
colourClaimed:
|
|
79
|
+
{% call(color_claimed) match('MarkImageColourClaimedText', img) %}
|
|
80
|
+
- languageCode: {{ color_claimed.__value | guess_language(color_claimed._languageCode, trademark.ApplicationLanguageCode) }}
|
|
81
|
+
text: {{ color_claimed.__value }}
|
|
82
|
+
{% endcall %}
|
|
83
|
+
{% call(vienna) match('MarkImageClassification.FigurativeElementClassificationBag.ViennaClassificationBag', img) %}
|
|
84
|
+
classification:
|
|
85
|
+
kind: Vienna
|
|
86
|
+
code:
|
|
87
|
+
{% call(class) match('ViennaClassification', vienna) %}
|
|
88
|
+
- {{ class | parse_viena }}
|
|
89
|
+
{% endcall %}
|
|
90
|
+
{% endcall %}
|
|
91
|
+
{% endif %}
|
|
92
|
+
{% endcall %}
|
|
93
|
+
|
|
94
|
+
markSoundDetails:
|
|
95
|
+
{% call(sound) match('MarkRepresentation.MarkReproduction.MarkSoundBag.MarkSound', trademark) %}
|
|
96
|
+
- filename: {{ sound.FileName}}
|
|
97
|
+
fileformat: {{ sound.SoundFileFormatCategory }}
|
|
98
|
+
{% endcall %}
|
|
99
|
+
|
|
100
|
+
markVideoDetails:
|
|
101
|
+
{% call(video) match('MarkRepresentation.MarkReproduction.MarkMultimediaBag.MarkMultimedia', trademark) %}
|
|
102
|
+
- filename: {{ video.FileName }}
|
|
103
|
+
fileformat: {{ video.MarkMultimediaFileFormatCategory }}
|
|
104
|
+
{% endcall %}
|
|
105
|
+
|
|
106
|
+
{% if trademark.GoodsServicesBag.GoodsServices.ClassDescriptionBag and (trademark.GoodsServicesBag.GoodsServices.ClassDescriptionBag.ClassDescription | first).ClassNumber %}
|
|
107
|
+
{% call(nc_gs) match('GoodsServicesBag.GoodsServices.ClassDescriptionBag', trademark) %}
|
|
108
|
+
goodsServicesClassification:
|
|
109
|
+
kind: Nice
|
|
110
|
+
version: {{ (nc_gs.ClassDescription | first).ClassificationVersion | int }}
|
|
111
|
+
class:
|
|
112
|
+
{% call(nice) match('ClassDescription', nc_gs) %}
|
|
113
|
+
- code: {{ nice.ClassNumber | int }}
|
|
114
|
+
terms:
|
|
115
|
+
{{ nice.GoodsServicesDescriptionText._languageCode | field_name}}:
|
|
116
|
+
{% for gsline in nice.GoodsServicesDescriptionText.__value | split_terms %}
|
|
117
|
+
- {{ gsline | trim | lower }}
|
|
118
|
+
{% endfor %}
|
|
119
|
+
{% endcall %}
|
|
120
|
+
{% endcall %}
|
|
121
|
+
{% else %}
|
|
122
|
+
{% call(nc_gs) match('GoodsServicesBag.GoodsServices.GoodsServicesClassificationBag', trademark) %}
|
|
123
|
+
goodsServicesClassification:
|
|
124
|
+
kind: Nice
|
|
125
|
+
version: CIPO
|
|
126
|
+
class:
|
|
127
|
+
{% call(nice) match('GoodsServicesClassification', nc_gs) %}
|
|
128
|
+
- code: {{ nice.ClassNumber | int }}
|
|
129
|
+
terms:
|
|
130
|
+
en:
|
|
131
|
+
{% for gsline in nice.ClassTitleText | split_terms %}
|
|
132
|
+
- {{ gsline | trim | lower }}
|
|
133
|
+
{% endfor %}
|
|
134
|
+
{% endcall %}
|
|
135
|
+
{% endcall %}
|
|
136
|
+
{% endif %}
|
|
137
|
+
|
|
138
|
+
{% call(nc_gs) match('GoodsServicesBag.GoodsServices.ClassDescriptionBag', trademark) %}
|
|
139
|
+
{% if not (nc_gs.ClassDescription | first).ClassNumber %}
|
|
140
|
+
{% call(classification) match('ClassDescription', nc_gs) %}
|
|
141
|
+
goodsServicesUnclassified:
|
|
142
|
+
{{ classification.GoodsServicesDescriptionText._languageCode | field_name}}:
|
|
143
|
+
{% for gsline in nice.GoodsServicesDescriptionText.__value | split_terms %}
|
|
144
|
+
- {{ gsline | trim | lower }}
|
|
145
|
+
{% endfor %}
|
|
146
|
+
{% endcall %}
|
|
147
|
+
{% endif %}
|
|
148
|
+
{% endcall %}
|
|
149
|
+
priorities:
|
|
150
|
+
{% call(priority) match('PriorityBag.Priority', trademark) %}
|
|
151
|
+
- countryCode: {{ priority.PriorityCountryCode }}
|
|
152
|
+
number: {{ priority.ApplicationNumber.ApplicationNumberText | remove_trailing('-') }}
|
|
153
|
+
date: {{ priority.PriorityApplicationFilingDate }}
|
|
154
|
+
comment: {{ priority.CommentText }}
|
|
155
|
+
{% endcall %}
|
|
156
|
+
|
|
157
|
+
publications:
|
|
158
|
+
{% call(publication) match('PublicationBag.Publication', trademark) %}
|
|
159
|
+
- section: {{ publication.PublicationIdentifier }}
|
|
160
|
+
date: {{ publication.NationalPublication.PublicationActionDate }}
|
|
161
|
+
{% endcall %}
|
|
162
|
+
|
|
163
|
+
applicants:
|
|
164
|
+
{% call(applicant) match('ApplicantBag.Applicant', trademark) %}
|
|
165
|
+
- identifier: {{ 'Legal entity' if applicant.LegalEntityName else 'Natural person' }}
|
|
166
|
+
{% call(contact) match('Contact', applicant) %}
|
|
167
|
+
fullName:
|
|
168
|
+
- text: {{ contact.Name.EntityName }}
|
|
169
|
+
languageCode: {{ contact.Name.EntityName | guess_language(contact._languageCode, trademark.ApplicationLanguageCode) }}
|
|
170
|
+
fullAddress:
|
|
171
|
+
{% call(adrline) match('PostalAddressBag.PostalAddress', contact) %}
|
|
172
|
+
- text: {{ adrline.PostalStructuredAddress.AddressLineText | join_postal}}
|
|
173
|
+
languageCode: {{ adrline | guess_language(contact._languageCode, trademark.ApplicationLanguageCode) }}
|
|
174
|
+
{% endcall %}
|
|
175
|
+
countryCode: {{ applicant.NationalLegalEntityCode }}
|
|
176
|
+
{% endcall %}
|
|
177
|
+
{% endcall %}
|
|
178
|
+
|
|
179
|
+
representatives:
|
|
180
|
+
{% call(contact) match('NationalRepresentative.Contact', trademark) %}
|
|
181
|
+
- fullName:
|
|
182
|
+
- text: {{ contact.Name.EntityName }}
|
|
183
|
+
languageCode: {{ contact.Name.EntityName | guess_language(contact._languageCode, trademark.ApplicationLanguageCode) }}
|
|
184
|
+
fullAddress:
|
|
185
|
+
{% call(adrline) match('PostalAddressBag.PostalAddress', contact) %}
|
|
186
|
+
- text: {{ adrline.PostalStructuredAddress.AddressLineText | join_postal }}
|
|
187
|
+
languageCode: {{ adrline | guess_language(contact._languageCode, trademark.ApplicationLanguageCode) }}
|
|
188
|
+
{% endcall %}
|
|
189
|
+
countryCode: {{ contact.PostalAddressBag.PostalAddress.PostalStructuredAddress.CountryCode }}
|
|
190
|
+
{% endcall %}
|
|
191
|
+
|
|
192
|
+
correspondence:
|
|
193
|
+
{% call(contact) match('CorrespondenceAddress.Contact', trademark) %}
|
|
194
|
+
fullName:
|
|
195
|
+
- text: {{ contact.Name.EntityName }}
|
|
196
|
+
languageCode: {{ contact.Name.EntityName | guess_language(contact._languageCode, trademark.ApplicationLanguageCode) }}
|
|
197
|
+
fullAddress:
|
|
198
|
+
{% call(adrline) match('PostalAddressBag.PostalAddress', contact) %}
|
|
199
|
+
- text: {{ adrline.PostalStructuredAddress.AddressLineText | join_postal}}
|
|
200
|
+
languageCode: {{ adrline | guess_language(contact._languageCode, trademark.ApplicationLanguageCode) }}
|
|
201
|
+
{% endcall %}
|
|
202
|
+
countryCode: {{ contact.PostalAddressBag.PostalAddress.PostalStructuredAddress.CountryCode }}
|
|
203
|
+
{% endcall %}
|
|
204
|
+
{% call(contact) match('NationalCorrespondent.Contact', trademark) %}
|
|
205
|
+
fullName:
|
|
206
|
+
- text: {{ contact.Name.EntityName }}
|
|
207
|
+
languageCode: {{ contact.Name.EntityName | guess_language(contact._languageCode, trademark.ApplicationLanguageCode) }}
|
|
208
|
+
fullAddress:
|
|
209
|
+
{% call(adrline) match('PostalAddressBag.PostalAddress', contact) %}
|
|
210
|
+
- text: {{ adrline.PostalStructuredAddress.AddressLineText | join_postal }}
|
|
211
|
+
languageCode: {{ adrline | guess_language(contact._languageCode, trademark.ApplicationLanguageCode) }}
|
|
212
|
+
{% endcall %}
|
|
213
|
+
countryCode: {{ contact.PostalAddressBag.PostalAddress.PostalStructuredAddress.CountryCode }}
|
|
214
|
+
{% endcall %}
|
|
215
|
+
|
|
216
|
+
events:
|
|
217
|
+
{% call(event) match('MarkEventBag.MarkEvent', trademark) %}
|
|
218
|
+
- officeKind: {{ event.MarkEventCategory }}
|
|
219
|
+
gbdKind: {{ event.MarkEventCategory | translate_event}}
|
|
220
|
+
date: {{ event.MarkEventDate }}
|
|
221
|
+
{% endcall %}
|
|
222
|
+
|
|
223
|
+
extra:
|
|
224
|
+
trademarkClassDescription:
|
|
225
|
+
{% call(class) match('NationalTrademarkInformation.TrademarkClass.TrademarkClassDescriptionBag.TrademarkClassDescription', trademark) %}
|
|
226
|
+
- languageCode: {{ class.__value | guess_language(class._languageCode, trademark.ApplicationLanguageCode) }}
|
|
227
|
+
text: {{ class.__value }}
|
|
228
|
+
{% endcall %}
|
|
229
|
+
|
|
230
|
+
{% endif %}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import re
|
|
2
|
+
|
|
3
|
+
# namespaces defined in XML and to be ignored in procecssing
|
|
4
|
+
ignore_namespace = [
|
|
5
|
+
'http://www.wipo.int/standards/XMLSchema/ST96/Common',
|
|
6
|
+
'http://www.oasis-open.org/tables/exchange/1.0',
|
|
7
|
+
'http://www.wipo.int/standards/XMLSchema/ST96/Trademark',
|
|
8
|
+
'http://www.w3.org/2001/XMLSchema-instance',
|
|
9
|
+
'urn:ige:schema:xsd:st96trademarksuperset-1.0.0'
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
def translate_kind(kind):
|
|
13
|
+
if not kind: return ['Individual']
|
|
14
|
+
|
|
15
|
+
if kind == 'Individual mark': return ['Individual']
|
|
16
|
+
if kind == 'Collective mark': return ['Collective']
|
|
17
|
+
|
|
18
|
+
return 'Unknown'
|
|
19
|
+
#raise Exception('kind "%s" is not mapped.' % kind)
|
|
20
|
+
|
|
21
|
+
def translate_status(status):
|
|
22
|
+
if not status: return 'Ended'
|
|
23
|
+
|
|
24
|
+
if status in ['Registered',
|
|
25
|
+
'Registration published']:
|
|
26
|
+
return 'Registered'
|
|
27
|
+
|
|
28
|
+
if status in ['Application published',
|
|
29
|
+
'Application filed',
|
|
30
|
+
'Application opposed',
|
|
31
|
+
'Application accepted']:
|
|
32
|
+
return 'Pending'
|
|
33
|
+
|
|
34
|
+
if status in ['Application refused',
|
|
35
|
+
'Registration cancelled',
|
|
36
|
+
'Application cancelled']:
|
|
37
|
+
return 'Ended'
|
|
38
|
+
|
|
39
|
+
return 'Unknown'
|
|
40
|
+
#raise Exception('Status "%s" unmapped' % status)
|
|
41
|
+
|
|
42
|
+
def translate_feature(feature):
|
|
43
|
+
"""translation of mark feature"""
|
|
44
|
+
if not feature: return 'Undefined'
|
|
45
|
+
feature = feature.upper()
|
|
46
|
+
if feature == 'COMBINED': return 'Combined'
|
|
47
|
+
if feature == 'WORD': return 'Word'
|
|
48
|
+
if feature == 'STYLIZED CHARACTERS': return 'Stylized characters'
|
|
49
|
+
if feature == 'FIGURATIVE': return 'Figurative'
|
|
50
|
+
if feature == 'SOUND': return 'Sound'
|
|
51
|
+
if feature == '_3_D': return 'Three dimensional'
|
|
52
|
+
if feature == '3-D': return 'Three dimensional'
|
|
53
|
+
if feature == 'THREE DIMENSIONAL': return 'Three dimensional'
|
|
54
|
+
if feature == 'POSITION': return 'Position'
|
|
55
|
+
if feature == 'HOLOGRAM': return 'Hologram'
|
|
56
|
+
if feature == 'TRACER': return 'Tracer'
|
|
57
|
+
if feature == 'PATTERN': return 'Pattern'
|
|
58
|
+
if feature == 'OLFACTORY': return 'Olfactory'
|
|
59
|
+
if feature == 'MULTIMEDIA': return 'Multimedia'
|
|
60
|
+
if feature == 'MOTION': return 'Motion'
|
|
61
|
+
return 'Unknown'
|
|
62
|
+
|
|
63
|
+
#return feature.lower().capitalize()
|
|
64
|
+
# raise Exception to recognize unmapped values
|
|
65
|
+
#raise Exception('Feature "%s" unmapped' % feature)
|
|
66
|
+
|
|
67
|
+
def get_registration_nb(trademark, tmstatus):
|
|
68
|
+
if trademark.RegistrationNumber:
|
|
69
|
+
return trademark.RegistrationNumber
|
|
70
|
+
|
|
71
|
+
# default registration number to application number
|
|
72
|
+
# in case none is provided
|
|
73
|
+
if tmstatus in ['Registered', 'Expired']:
|
|
74
|
+
return trademark.ApplicationNumber.ApplicationNumberText
|
|
75
|
+
|
|
76
|
+
def get_goods_services(goods_services):
|
|
77
|
+
nc_gs = {} # classified
|
|
78
|
+
if not goods_services:
|
|
79
|
+
goods_services = []
|
|
80
|
+
|
|
81
|
+
if not isinstance(goods_services, list):
|
|
82
|
+
goods_services = [goods_services]
|
|
83
|
+
|
|
84
|
+
for goods_service in goods_services:
|
|
85
|
+
code = goods_service.ClassNumber
|
|
86
|
+
if code and not code == '0':
|
|
87
|
+
nc_gs[code] = {}
|
|
88
|
+
desc = goods_service.GoodsServicesDescription
|
|
89
|
+
|
|
90
|
+
if hasattr(desc, '__value'):
|
|
91
|
+
terms = desc.__value
|
|
92
|
+
else:
|
|
93
|
+
terms = desc
|
|
94
|
+
|
|
95
|
+
if terms:
|
|
96
|
+
nc_gs[code]['terms'] = terms
|
|
97
|
+
else:
|
|
98
|
+
continue
|
|
99
|
+
|
|
100
|
+
if hasattr(desc, '_languageCode'):
|
|
101
|
+
lang = desc._languageCode
|
|
102
|
+
nc_gs[code]['lang'] = lang.lower()
|
|
103
|
+
|
|
104
|
+
return nc_gs
|
|
105
|
+
|
|
106
|
+
def get_entity_addr(addr):
|
|
107
|
+
if not addr: return None
|
|
108
|
+
return "%s %s %s" % (addr.AddressStreet, addr.AddressCity, addr.AddressPostcode)
|
|
109
|
+
def get_entity_name(name):
|
|
110
|
+
if not name: return
|
|
111
|
+
if name.OrganizationName: return name.OrganizationName
|
|
112
|
+
return "%s %s" % (name.FirstName, name.LastName )
|
|
113
|
+
def get_entity_kind(name):
|
|
114
|
+
if not name: return
|
|
115
|
+
if name.OrganizationName: return 'Legal entity'
|
|
116
|
+
return 'Natural person'
|
|
117
|
+
|
|
118
|
+
def get_full_address(postalStructuredAddress):
|
|
119
|
+
if "AddressLineText" not in postalStructuredAddress:
|
|
120
|
+
return
|
|
121
|
+
result = ""
|
|
122
|
+
first = True
|
|
123
|
+
for addressLineText in postalStructuredAddress["AddressLineText"]:
|
|
124
|
+
if hasattr(addressLineText, '__value'):
|
|
125
|
+
if first:
|
|
126
|
+
first = False
|
|
127
|
+
else:
|
|
128
|
+
result += ", "
|
|
129
|
+
result += addressLineText.__value
|
|
130
|
+
if len(result) == 0:
|
|
131
|
+
return
|
|
132
|
+
else:
|
|
133
|
+
return result.strip()
|
|
134
|
+
|
|
135
|
+
def select_priority_date(priority):
|
|
136
|
+
if priority == None:
|
|
137
|
+
return None
|
|
138
|
+
if "PriorityApplicationFilingDate" in priority:
|
|
139
|
+
return priority["PriorityApplicationFilingDate"]
|
|
140
|
+
elif "PriorityRegistrationDate" in priority:
|
|
141
|
+
return priority["PriorityRegistrationDate"]
|
|
142
|
+
else:
|
|
143
|
+
return None
|
|
144
|
+
|
|
145
|
+
def clean_verbal_element(element_text):
|
|
146
|
+
if element_text == None:
|
|
147
|
+
return None
|
|
148
|
+
element_text = element_text.replace("((fig.))", "")
|
|
149
|
+
return element_text.strip()
|
|
150
|
+
|
|
151
|
+
def local_guess_language(content):
|
|
152
|
+
if content == None:
|
|
153
|
+
return None
|
|
154
|
+
from lingua import Language, LanguageDetectorBuilder
|
|
155
|
+
languages = [Language.ENGLISH, Language.FRENCH, Language.GERMAN, Language.ITALIAN]
|
|
156
|
+
detector = LanguageDetectorBuilder.from_languages(*languages).build()
|
|
157
|
+
language = detector.detect_language_of(content)
|
|
158
|
+
if language:
|
|
159
|
+
return language.iso_code_639_1.name.lower()
|
|
160
|
+
else:
|
|
161
|
+
return "en"
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/Trademark
|
|
2
|
+
__/ApplicantBag
|
|
3
|
+
____/Applicant
|
|
4
|
+
______/Contact
|
|
5
|
+
________/Name
|
|
6
|
+
__________/PersonName
|
|
7
|
+
____________/PersonFullName
|
|
8
|
+
________/PostalAddressBag
|
|
9
|
+
__________/PostalAddress
|
|
10
|
+
____________/PostalStructuredAddress
|
|
11
|
+
______________/AddressLineText
|
|
12
|
+
______________/AddressLineText[@sequenceNumber=1]
|
|
13
|
+
______________/CountryCode
|
|
14
|
+
______/LegalEntityName
|
|
15
|
+
__/ApplicationDate
|
|
16
|
+
__/ApplicationNumber
|
|
17
|
+
____/ApplicationNumberText
|
|
18
|
+
__/CHMarkCategory
|
|
19
|
+
__/ExpiryDate
|
|
20
|
+
__/GoodsServicesBag
|
|
21
|
+
____/GoodsServices
|
|
22
|
+
______/ClassDescriptionBag
|
|
23
|
+
________/ClassDescription
|
|
24
|
+
__________/ClassNumber
|
|
25
|
+
__________/GoodsServicesDescriptionText
|
|
26
|
+
______/GoodsServicesClassificationBag
|
|
27
|
+
________/GoodsServicesClassification
|
|
28
|
+
__________/ClassNumber
|
|
29
|
+
__________/ClassificationKindCode
|
|
30
|
+
__/MarkCategory
|
|
31
|
+
__/MarkCurrentStatusCode
|
|
32
|
+
__/MarkRepresentation
|
|
33
|
+
____/MarkFeatureCategory
|
|
34
|
+
____/MarkReproduction
|
|
35
|
+
______/MarkImageBag
|
|
36
|
+
________/MarkImage
|
|
37
|
+
__________/FileName
|
|
38
|
+
__________/MarkImageColourClaimedText
|
|
39
|
+
______/WordMarkSpecification
|
|
40
|
+
________/MarkSignificantVerbalElementText
|
|
41
|
+
__/PriorityBag
|
|
42
|
+
____/Priority
|
|
43
|
+
______/PriorityApplicationFilingDate
|
|
44
|
+
______/PriorityCountryCode
|
|
45
|
+
______/PriorityRegistrationDate
|
|
46
|
+
______/PriorityRegistrationNumber
|
|
47
|
+
__/PublicationBag
|
|
48
|
+
____/Publication
|
|
49
|
+
______/NationalPublication
|
|
50
|
+
________/PublicationCategoryText
|
|
51
|
+
________/PublicationStatusCategory
|
|
52
|
+
________/RegistrationChangeBag
|
|
53
|
+
__________/RegistrationChange
|
|
54
|
+
____________/ChangeDescriptionText
|
|
55
|
+
____________/ChangeText
|
|
56
|
+
______/PublicationDate
|
|
57
|
+
______/PublicationIdentifier
|
|
58
|
+
______/PublicationIdentifier[@officeCode=CH]
|
|
59
|
+
______/PublicationPage
|
|
60
|
+
__/RegistrationDate
|
|
61
|
+
__/RegistrationNumber
|
|
62
|
+
__/RegistrationOfficeCode
|
|
63
|
+
__/RepresentativeBag
|
|
64
|
+
____/Representative
|
|
65
|
+
______/Contact
|
|
66
|
+
________/Name
|
|
67
|
+
__________/PersonName
|
|
68
|
+
____________/PersonFullName
|
|
69
|
+
________/PostalAddressBag
|
|
70
|
+
__________/PostalAddress
|
|
71
|
+
____________/PostalStructuredAddress
|
|
72
|
+
______________/AddressLineText
|
|
73
|
+
______________/AddressLineText[@sequenceNumber=1]
|
|
74
|
+
______________/CountryCode
|
|
75
|
+
______/LegalEntityName
|
|
76
|
+
__/TradeDistinctivenessIndicator
|
|
77
|
+
__/Version
|
|
78
|
+
____/VersionDateTime
|
|
79
|
+
______________________________/TrademarkApplicationType_V7_1.xsd]
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{% from 'navigation.tmpl' import match %}
|
|
2
|
+
|
|
3
|
+
{% set trademark = Trademark %}
|
|
4
|
+
{% set status = trademark.MarkCurrentStatusCode | translate_status %}
|
|
5
|
+
{% set officeCode = trademark.RegistrationOfficeCode %}
|
|
6
|
+
|
|
7
|
+
{% if officeCode == 'CH' %}
|
|
8
|
+
|
|
9
|
+
st13: {{ trademark.ApplicationNumber.ApplicationNumberText | st13('CH', appdate=trademark.ApplicationDate) }}
|
|
10
|
+
gbdStatus: {{ status }}
|
|
11
|
+
registrationOfficeCode: {{ officeCode }}
|
|
12
|
+
type: TRADEMARK
|
|
13
|
+
|
|
14
|
+
{% if not status == 'Delete' %}
|
|
15
|
+
kind: {{ tradenark.MarkCategory | translate_kind }}
|
|
16
|
+
markFeature: {{ trademark.MarkRepresentation.MarkFeatureCategory | translate_feature }}
|
|
17
|
+
designatedCountries:
|
|
18
|
+
- {{ officeCode }}
|
|
19
|
+
|
|
20
|
+
applicationNumber: {{ trademark.ApplicationNumber.ApplicationNumberText }}
|
|
21
|
+
applicationDate: {{ trademark.ApplicationDate | convertdate('%Y-%m-%d') }}
|
|
22
|
+
registrationNumber: {{ trademark | get_registration_nb(trademark.MarkCurrentStatusCode) }}
|
|
23
|
+
registrationDate: {{ trademark.RegistrationDate }}
|
|
24
|
+
applicationLanguageCode:
|
|
25
|
+
officeStatus: {{ trademark.MarkCurrentStatusCode }}
|
|
26
|
+
statusDate:
|
|
27
|
+
expiryDate: {{ trademark.ExpiryDate }}
|
|
28
|
+
|
|
29
|
+
markDisclaimerDetails:
|
|
30
|
+
|
|
31
|
+
markDescriptionDetails:
|
|
32
|
+
|
|
33
|
+
wordMarkSpecification:
|
|
34
|
+
markVerbalElement:
|
|
35
|
+
{% set verbalElement = trademark.MarkRepresentation.MarkReproduction.WordMarkSpecification.MarkSignificantVerbalElementText | clean_verbal_element %}
|
|
36
|
+
- text: {{ verbalElement }}
|
|
37
|
+
|
|
38
|
+
markImageDetails:
|
|
39
|
+
{% call(img) match('MarkImage', trademark.MarkRepresentation.MarkImageBag) %}
|
|
40
|
+
- name: {{ img.FileName }}
|
|
41
|
+
colourIndicator: {{ img.MarkImageColourClaimedText | get_true_or_false }}
|
|
42
|
+
colourClaimed:
|
|
43
|
+
- text: {{ img.MarkImageColourClaimedText }}
|
|
44
|
+
languageCode: {{ img.MarkImageColourClaimedText | local_guess_language() }}
|
|
45
|
+
classification:
|
|
46
|
+
kind: Vienna
|
|
47
|
+
code:
|
|
48
|
+
-
|
|
49
|
+
{% endcall %}
|
|
50
|
+
|
|
51
|
+
markSoundDetails:
|
|
52
|
+
{% call(sound) match('MarkSoundDetails.MarkSound', trademark.MarkRepresentation.MarkSoundBag) %}
|
|
53
|
+
- filename: {{ sound.MarkSoundFilename }}
|
|
54
|
+
fileformat: {{ sound.MarkSoundFileFormat }}
|
|
55
|
+
{% endcall %}
|
|
56
|
+
|
|
57
|
+
markVideoDetails:
|
|
58
|
+
{% call(video) match('MarkVideoDetails.MarkVideo', trademark.MarkRepresentation) %}
|
|
59
|
+
- filename: {{ video.MarkVideoFilename }}
|
|
60
|
+
fileformat: {{ video.MarkVideoFileFormat }}
|
|
61
|
+
{% endcall %}
|
|
62
|
+
|
|
63
|
+
goodsServicesClassification:
|
|
64
|
+
kind: Nice
|
|
65
|
+
version: {{ ASK_THE_OFFICE }}
|
|
66
|
+
class:
|
|
67
|
+
{% call(ClassDescription) match('ClassDescription', trademark.GoodsServicesBag.GoodsServices.ClassDescriptionBag) %}
|
|
68
|
+
- code: {{ ClassDescription.ClassNumber| int }}
|
|
69
|
+
terms:
|
|
70
|
+
{{ ClassDescription.GoodsServicesDescriptionText | local_guess_language() }}:
|
|
71
|
+
- {{ ClassDescription.GoodsServicesDescriptionText }}
|
|
72
|
+
{% endcall %}
|
|
73
|
+
|
|
74
|
+
priorities:
|
|
75
|
+
{% call(priority) match('PriorityBag.Priority', trademark) %}
|
|
76
|
+
- countryCode: {{ priority.PriorityCountryCode }}
|
|
77
|
+
number: {{ priority.PriorityRegistrationNumber }}
|
|
78
|
+
date: {{ select_priority_date }}
|
|
79
|
+
{% endcall %}
|
|
80
|
+
|
|
81
|
+
publications:
|
|
82
|
+
{% call(publication) match('PublicationBag.Publication', trademark) %}
|
|
83
|
+
- identifier: {{ publication.PublicationIdentifier }}
|
|
84
|
+
date: {{ publication.PublicationDate }}
|
|
85
|
+
section: {{ publication.PublicationPage }}
|
|
86
|
+
{% endcall %}
|
|
87
|
+
|
|
88
|
+
applicants:
|
|
89
|
+
{% call(Applicant) match('Applicant', trademark.ApplicantBag) %}
|
|
90
|
+
- identifier:
|
|
91
|
+
kind:
|
|
92
|
+
fullName:
|
|
93
|
+
- text: {{ Applicant.Contact.Name.PersonName.PersonFullName }}
|
|
94
|
+
languageCode:
|
|
95
|
+
{% call(postalAddress) match('PostalAddress', Applicant.Contact.PostalAddressBag) %}
|
|
96
|
+
fullAddress:
|
|
97
|
+
{% set addr = postalAddress.PostalStructuredAddress | get_full_address %}
|
|
98
|
+
- text: {{ addr }}
|
|
99
|
+
languageCode: {{ addr | local_guess_language() }}
|
|
100
|
+
countryCode: {{ postalAddress.PostalStructuredAddress.CountryCode }}
|
|
101
|
+
{% endcall %}
|
|
102
|
+
{% endcall %}
|
|
103
|
+
|
|
104
|
+
representatives:
|
|
105
|
+
{% call(Representative) match('Representative', trademark.RepresentativeBag) %}
|
|
106
|
+
- identifier:
|
|
107
|
+
kind:
|
|
108
|
+
fullName:
|
|
109
|
+
- text: {{ Representative.Contact.Name.PersonName.PersonFullName }}
|
|
110
|
+
languageCode:
|
|
111
|
+
{% call(postalAddress) match('PostalAddress', Representative.Contact.PostalAddressBag) %}
|
|
112
|
+
fullAddress:
|
|
113
|
+
{% set addr = postalAddress.PostalStructuredAddress | get_full_address %}
|
|
114
|
+
- text: {{ addr }}
|
|
115
|
+
languageCode: {{ addr | local_guess_language() }}
|
|
116
|
+
countryCode: {{ postalAddress.PostalStructuredAddress.CountryCode }}
|
|
117
|
+
{% endcall %}
|
|
118
|
+
{% endcall %}
|
|
119
|
+
|
|
120
|
+
{% endif %}
|
|
121
|
+
{% endif %}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import gbdtransformation.brands.ipas.filters as ipas
|
|
2
|
+
|
|
3
|
+
ignore_namespace = [
|
|
4
|
+
'http://www.wipo.int/standards/XMLSchema/trademarks',
|
|
5
|
+
'http://www.wipo.int/standards/XMLSchema/wo-trademarks']
|
|
6
|
+
|
|
7
|
+
def get_appdate(appdate, appnum):
|
|
8
|
+
return ipas.get_appdate(appdate, appnum)
|
|
9
|
+
|
|
10
|
+
def translate_type(header):
|
|
11
|
+
code = header.TransactionCode
|
|
12
|
+
|
|
13
|
+
if code == 'Marca': return 'TRADEMARK'
|
|
14
|
+
if code == 'Frase de propaganda': return 'TRADEMARK'
|
|
15
|
+
if code == 'Marca colectiva': return 'TRADEMARK'
|
|
16
|
+
if code == 'Marca de certificación': return 'TRADEMARK'
|
|
17
|
+
if code == 'Indicación geográfica': return 'GI'
|
|
18
|
+
if code == 'Denominación de origen': return 'AO'
|
|
19
|
+
|
|
20
|
+
raise Exception('Type "%s" is not mapped.' % code)
|
|
21
|
+
|
|
22
|
+
def translate_kind(trademark, header):
|
|
23
|
+
code = header.TransactionCode
|
|
24
|
+
|
|
25
|
+
if code == 'Marca': return ['Individual']
|
|
26
|
+
if code == 'Marca colectiva': return ['Collective']
|
|
27
|
+
if code == 'Marca de certificación': return ['Certificate']
|
|
28
|
+
if code == 'Indicación geográfica': return ['Other']
|
|
29
|
+
if code == 'Denominación de origen': return ['Other']
|
|
30
|
+
if code == 'Frase de propaganda': return ['Slogan']
|
|
31
|
+
|
|
32
|
+
raise Exception('Kind "%s" not mapped.' % code)
|
|
33
|
+
|
|
34
|
+
def translate_status(trademark):
|
|
35
|
+
status = trademark.MarkCurrentStatusCode
|
|
36
|
+
|
|
37
|
+
if status == 'Inactive':
|
|
38
|
+
if trademark.ExpiryDate: return 'Expired'
|
|
39
|
+
else: return 'Ended'
|
|
40
|
+
|
|
41
|
+
return ipas.translate_status(status)
|
|
42
|
+
|
|
43
|
+
def translate_feature(trademark):
|
|
44
|
+
feature = trademark.MarkFeature
|
|
45
|
+
|
|
46
|
+
if not feature: return 'Undefined'
|
|
47
|
+
|
|
48
|
+
return ipas.translate_feature(feature)
|
|
49
|
+
|
|
50
|
+
def translate_event(event):
|
|
51
|
+
return ipas.translate_event(event)
|
|
52
|
+
|
|
53
|
+
# ---------------------------------------
|
|
54
|
+
|
|
55
|
+
def verbal_lang_map(markVerbalElements, applang=None):
|
|
56
|
+
return ipas.verbal_lang_map(markVerbalElements, applang=applang)
|
|
57
|
+
|
|
58
|
+
def get_registration_nb(trademark, tmstatus):
|
|
59
|
+
if trademark.RegistrationNumber:
|
|
60
|
+
return trademark.RegistrationNumber
|
|
61
|
+
|
|
62
|
+
# no way to deduce regnum from appnum
|
|
63
|
+
return None
|
|
64
|
+
|
|
65
|
+
def get_expiry_date(trademark, tmstatus):
|
|
66
|
+
return ipas.get_expiry_date(trademark, tmstatus)
|
|
67
|
+
|
|
68
|
+
def get_registration_date(trademark, tmstatus):
|
|
69
|
+
return ipas.get_registration_date(trademark, tmstatus)
|
|
70
|
+
|
|
71
|
+
# no international for CL
|
|
72
|
+
def is_international(header):
|
|
73
|
+
return False
|
|
74
|
+
|
|
75
|
+
# never accessed
|
|
76
|
+
def get_ir_refnum(appnum):
|
|
77
|
+
return
|
|
78
|
+
|
|
79
|
+
def get_goods_services(goods_services):
|
|
80
|
+
return ipas.get_goods_services(goods_services)
|