wipo-gbd-transformation 1.1.79__py3-none-any.whl → 1.1.81__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.
Potentially problematic release.
This version of wipo-gbd-transformation might be problematic. Click here for more details.
- gbdtransformation/brands/hrtm/filters.py +19 -0
- gbdtransformation/brands/hrtm/template.yml +2 -0
- gbdtransformation/brands/notm/filters.py +4 -0
- gbdtransformation/brands/notm/template.yml +29 -3
- gbdtransformation/brands/xxxx/template.yml +36 -0
- {wipo_gbd_transformation-1.1.79.dist-info → wipo_gbd_transformation-1.1.81.dist-info}/METADATA +1 -1
- {wipo_gbd_transformation-1.1.79.dist-info → wipo_gbd_transformation-1.1.81.dist-info}/RECORD +11 -11
- {wipo_gbd_transformation-1.1.79.dist-info → wipo_gbd_transformation-1.1.81.dist-info}/LICENSE.md +0 -0
- {wipo_gbd_transformation-1.1.79.dist-info → wipo_gbd_transformation-1.1.81.dist-info}/WHEEL +0 -0
- {wipo_gbd_transformation-1.1.79.dist-info → wipo_gbd_transformation-1.1.81.dist-info}/entry_points.txt +0 -0
- {wipo_gbd_transformation-1.1.79.dist-info → wipo_gbd_transformation-1.1.81.dist-info}/top_level.txt +0 -0
|
@@ -137,3 +137,22 @@ def clean_app_reg_number(app_num):
|
|
|
137
137
|
if not app_num[:1].isdigit():
|
|
138
138
|
app_num = app_num[1:]
|
|
139
139
|
return app_num
|
|
140
|
+
|
|
141
|
+
def get_publication_date(publications):
|
|
142
|
+
# in the publication information, in case:
|
|
143
|
+
# PublicationSection == "Registration"
|
|
144
|
+
# the associated PublicationDate is the publicationDate
|
|
145
|
+
if publications == None:
|
|
146
|
+
return None
|
|
147
|
+
if isinstance(publications, list):
|
|
148
|
+
for publication in publications:
|
|
149
|
+
if 'PublicationSection' in publication and publication['PublicationSection'] == 'Registration':
|
|
150
|
+
if 'PublicationDate' in publication:
|
|
151
|
+
return publication['PublicationDate']
|
|
152
|
+
else:
|
|
153
|
+
if "Publication" in publications:
|
|
154
|
+
publication = publications["Publication"]
|
|
155
|
+
if 'PublicationSection' in publication and publication['PublicationSection'] == 'Registration':
|
|
156
|
+
if 'PublicationDate' in publication:
|
|
157
|
+
return publication['PublicationDate']
|
|
158
|
+
return None
|
|
@@ -21,6 +21,8 @@ applicationLanguageCode: {{ TradeMark.ApplicationLanguageCode }}
|
|
|
21
21
|
officeStatus: {{ TradeMark.MarkCurrentStatusCode }}
|
|
22
22
|
statusDate: {{ TradeMark.MarkCurrentStatusDate | convertdate('%Y-%m-%d') }}
|
|
23
23
|
|
|
24
|
+
publicationDate: {{ TradeMark.PublicationDetails | get_publication_date | convertdate('%Y-%m-%d')}}
|
|
25
|
+
|
|
24
26
|
expiryDate: {{ TradeMark.ExpiryDate | convertdate('%Y-%m-%d') }}
|
|
25
27
|
|
|
26
28
|
markDisclaimerDetails:
|
|
@@ -63,10 +63,14 @@ def translate_feature(feature):
|
|
|
63
63
|
#raise Exception('Feature "%s" unmapped' % feature)
|
|
64
64
|
|
|
65
65
|
def get_local_text(node):
|
|
66
|
+
if node is None:
|
|
67
|
+
return None
|
|
66
68
|
if "$" in node:
|
|
67
69
|
return node["$"]
|
|
68
70
|
|
|
69
71
|
def get_local_texts(nodes):
|
|
72
|
+
if nodes is None:
|
|
73
|
+
return None
|
|
70
74
|
text = ""
|
|
71
75
|
start = True
|
|
72
76
|
for node in nodes:
|
|
@@ -138,7 +138,7 @@ publications:
|
|
|
138
138
|
|
|
139
139
|
representatives:
|
|
140
140
|
{% call(representative) match('representative', trademark.representativeBag) %}
|
|
141
|
-
- identifier: {{ representative.partyIdentifier }}
|
|
141
|
+
- identifier: {{ representative.partyIdentifier | get_local_text() }}
|
|
142
142
|
kind:
|
|
143
143
|
fullName:
|
|
144
144
|
- languageCode:
|
|
@@ -173,7 +173,7 @@ correspondence:
|
|
|
173
173
|
|
|
174
174
|
applicants:
|
|
175
175
|
{% call(applicant) match('applicant', trademark.applicantBag) %}
|
|
176
|
-
- identifier: {{ applicant.partyIdentifier }}
|
|
176
|
+
- identifier: {{ applicant.partyIdentifier | get_local_text() }}
|
|
177
177
|
kind:
|
|
178
178
|
fullName:
|
|
179
179
|
- languageCode:
|
|
@@ -197,6 +197,32 @@ applicants:
|
|
|
197
197
|
{% endcall %}
|
|
198
198
|
{% endcall %}
|
|
199
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
|
+
|
|
200
226
|
# licence information, not frequent, but provided by Singapore, Norway and UK as of 2025-04-23
|
|
201
227
|
licences:
|
|
202
228
|
{% call(record) match('markRecord', trademark.markRecordBag) %}
|
|
@@ -215,7 +241,7 @@ licences:
|
|
|
215
241
|
effectiveDate: {{ record.recordLicence.recordEffectiveDate }}
|
|
216
242
|
licensee:
|
|
217
243
|
{% call(licensee) match('licensee', licence.licenseeBag) %}
|
|
218
|
-
- identifier:
|
|
244
|
+
- identifier: {{ licensee.partyIdentifier | get_local_text() }}
|
|
219
245
|
kind:
|
|
220
246
|
fullName:
|
|
221
247
|
- languageCode:
|
|
@@ -195,6 +195,42 @@ applicants:
|
|
|
195
195
|
url:
|
|
196
196
|
countryCode: # sometimes, country name is provided instead
|
|
197
197
|
|
|
198
|
+
# if different from applicants, and explicitely distinguished from them
|
|
199
|
+
holders:
|
|
200
|
+
- identifier:
|
|
201
|
+
kind:
|
|
202
|
+
fullName:
|
|
203
|
+
- languageCode:
|
|
204
|
+
text:
|
|
205
|
+
firstName:
|
|
206
|
+
- languageCode:
|
|
207
|
+
text:
|
|
208
|
+
lastName:
|
|
209
|
+
- languageCode:
|
|
210
|
+
text:
|
|
211
|
+
middleName:
|
|
212
|
+
- languageCode:
|
|
213
|
+
text:
|
|
214
|
+
organizationName:
|
|
215
|
+
- languageCode:
|
|
216
|
+
text:
|
|
217
|
+
fullAddress:
|
|
218
|
+
- languageCode:
|
|
219
|
+
text:
|
|
220
|
+
detailedAddress:
|
|
221
|
+
- languageCode:
|
|
222
|
+
text:
|
|
223
|
+
cityName:
|
|
224
|
+
geographicRegionName:
|
|
225
|
+
postalCode:
|
|
226
|
+
countryCode:
|
|
227
|
+
contact:
|
|
228
|
+
phone:
|
|
229
|
+
fax:
|
|
230
|
+
email:
|
|
231
|
+
url:
|
|
232
|
+
countryCode: # sometimes, country name is provided instead
|
|
233
|
+
|
|
198
234
|
representatives:
|
|
199
235
|
- identifier:
|
|
200
236
|
kind:
|
{wipo_gbd_transformation-1.1.79.dist-info → wipo_gbd_transformation-1.1.81.dist-info}/RECORD
RENAMED
|
@@ -150,9 +150,9 @@ gbdtransformation/brands/gstm/filters.py,sha256=QGOXTX5HsoOoxfY9a31adtujzOS7C0KQ
|
|
|
150
150
|
gbdtransformation/brands/gstm/template.gs.yml,sha256=tQOXTIpmurgytddfqyWvKuCx-7K6ZxALMGXLn0mjg0s,1711
|
|
151
151
|
gbdtransformation/brands/gstm/template.yml,sha256=INQBe908BttDal83tMEXkpAOTasJ0vo5Myl_kFuatR8,1000
|
|
152
152
|
gbdtransformation/brands/hrtm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
|
|
153
|
-
gbdtransformation/brands/hrtm/filters.py,sha256=
|
|
153
|
+
gbdtransformation/brands/hrtm/filters.py,sha256=QYkXkWS4F-Hvs1JgMUBDD69pe6OBCdft04dOGH8O5Rk,5220
|
|
154
154
|
gbdtransformation/brands/hrtm/schema,sha256=7jQ-PC0VTx5NZ79Qf8xAZEX8sqFSUtjPwsvVYV8XZAs,1376
|
|
155
|
-
gbdtransformation/brands/hrtm/template.yml,sha256=
|
|
155
|
+
gbdtransformation/brands/hrtm/template.yml,sha256=dzgqIyM9tKHEiVJswxbw2eWyDo4nNRnN2Aj8awKsg9U,9644
|
|
156
156
|
gbdtransformation/brands/idtm/__init__.py,sha256=MBVFGkMlqAi-s2ur7pCLYe2uxtjIxx9n9wo2bpESvxU,311
|
|
157
157
|
gbdtransformation/brands/idtm/filters.py,sha256=HbcLmB9KTBFjLwHJdkJmM-u5wdE2JmxlqJvlSz1cTKk,3018
|
|
158
158
|
gbdtransformation/brands/idtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
|
|
@@ -297,8 +297,8 @@ gbdtransformation/brands/natm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRF
|
|
|
297
297
|
gbdtransformation/brands/natm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
|
|
298
298
|
gbdtransformation/brands/natm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
299
299
|
gbdtransformation/brands/notm/__init__.py,sha256=YRZPymjJv7V5vqjphBN1UOHZ3RL1oeYYqaOI6AKInl0,88
|
|
300
|
-
gbdtransformation/brands/notm/filters.py,sha256=
|
|
301
|
-
gbdtransformation/brands/notm/template.yml,sha256=
|
|
300
|
+
gbdtransformation/brands/notm/filters.py,sha256=_uALPpBX550Toz-9-uhDMGHSwCVbplUejZyFbigBDBg,5894
|
|
301
|
+
gbdtransformation/brands/notm/template.yml,sha256=v1acXfx4_L62Xo3ipaqwp4UcIwFv6bo8euiMloFSsr8,11448
|
|
302
302
|
gbdtransformation/brands/nztm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
|
|
303
303
|
gbdtransformation/brands/nztm/filters.py,sha256=dAjrg03Yq37H10oAM8rnAMNa71lZHuG1uMwHi25kIvA,4211
|
|
304
304
|
gbdtransformation/brands/nztm/schema,sha256=tpcyNMtmiBQQ0FsxKKTASRSo4nbrw0j0_b1nhELyAzE,6355
|
|
@@ -457,7 +457,7 @@ gbdtransformation/brands/wstm/tests/test.xml.gz,sha256=UKm7LTvKaETUtHMKurFGqkqXO
|
|
|
457
457
|
gbdtransformation/brands/xxxx/__init__.py,sha256=fricc3VHm4BwGRFKIIqB0t-NtP3tTVRrEYee_gWpiFo,172
|
|
458
458
|
gbdtransformation/brands/xxxx/filters.py,sha256=YCaQ6yH2LINwCQvbPHDhnORQyWglbswLlSOY6ur3KXQ,1874
|
|
459
459
|
gbdtransformation/brands/xxxx/schema,sha256=g_oWkd7k2e5fAQR1BdNkPSsIgP3dkTyc7esWo_UOHQA,163
|
|
460
|
-
gbdtransformation/brands/xxxx/template.yml,sha256=
|
|
460
|
+
gbdtransformation/brands/xxxx/template.yml,sha256=iSd8nrMtih3aDEA11m0k67wRS0wcfwlGkEk2H6wCPpc,7799
|
|
461
461
|
gbdtransformation/brands/zmtm/__init__.py,sha256=Mtsi_-CaLQirHkhnletNhJ4li-pZlzEZMcKjv6mEk50,256
|
|
462
462
|
gbdtransformation/brands/zmtm/filters.py,sha256=FkGfv3nPiYDUy97O7bDzPp824qoDsqX-oh2Ox01NTpA,2344
|
|
463
463
|
gbdtransformation/brands/zmtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
|
|
@@ -585,9 +585,9 @@ gbdtransformation/utilities/st66.xsd,sha256=co8aFN3a5TpudllRttWmfLeiZu8ulNipfeXm
|
|
|
585
585
|
schemas/ShazamConfig.py,sha256=D67os5B11C41h_WZ7kk54Ss0Kk7tHh8W0d_1c_aX-lY,1191
|
|
586
586
|
schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
587
587
|
schemas/schema_extractor.py,sha256=3-ImtnI777f6b3VA0A_w-NoXdlGz5VZMzK6MnPdQQAY,10294
|
|
588
|
-
wipo_gbd_transformation-1.1.
|
|
589
|
-
wipo_gbd_transformation-1.1.
|
|
590
|
-
wipo_gbd_transformation-1.1.
|
|
591
|
-
wipo_gbd_transformation-1.1.
|
|
592
|
-
wipo_gbd_transformation-1.1.
|
|
593
|
-
wipo_gbd_transformation-1.1.
|
|
588
|
+
wipo_gbd_transformation-1.1.81.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
|
|
589
|
+
wipo_gbd_transformation-1.1.81.dist-info/METADATA,sha256=cRaqudy_3wfdDpQBAd4540Lq319E6Zxb53NpUXqCyzY,577
|
|
590
|
+
wipo_gbd_transformation-1.1.81.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
591
|
+
wipo_gbd_transformation-1.1.81.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
|
|
592
|
+
wipo_gbd_transformation-1.1.81.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
|
|
593
|
+
wipo_gbd_transformation-1.1.81.dist-info/RECORD,,
|
{wipo_gbd_transformation-1.1.79.dist-info → wipo_gbd_transformation-1.1.81.dist-info}/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wipo_gbd_transformation-1.1.79.dist-info → wipo_gbd_transformation-1.1.81.dist-info}/top_level.txt
RENAMED
|
File without changes
|