wipo-gbd-transformation 1.1.80__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.

@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wipo-gbd-transformation
3
- Version: 1.1.80
3
+ Version: 1.1.81
4
4
  Summary: GBD XML ETL package
5
5
  Home-page: https://github.com/GBD-Wipo/xmlE
6
6
  Author: WIPO GDB team
@@ -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=KNc0PXlUgKm3SRhKGn0SUHJ_Zg2YvIvfQZnP8qoARzc,5811
301
- gbdtransformation/brands/notm/template.yml,sha256=iNPRI1DSe7LKzt-jFHNcd2DBeo-0yGd-xr1nZK9pYL0,10156
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=EM5IES2irQvlNvylR_JRmIAtrUna0QzJKK5Jr_RqdzY,7104
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.80.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
589
- wipo_gbd_transformation-1.1.80.dist-info/METADATA,sha256=tP8Dr_GU9q6qN5vSQjK_uctibxLasvZTiUrmTJjxQO8,577
590
- wipo_gbd_transformation-1.1.80.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
591
- wipo_gbd_transformation-1.1.80.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
592
- wipo_gbd_transformation-1.1.80.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
593
- wipo_gbd_transformation-1.1.80.dist-info/RECORD,,
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,,