wipo-gbd-transformation 1.1.76__py3-none-any.whl → 1.1.77__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.

@@ -16,7 +16,9 @@ def translate_type(header):
16
16
 
17
17
  # extraction missing info.
18
18
  if not code:
19
- raise Exception('Incomplete Document Info')
19
+ # defaulting rather than failing...
20
+ return 'TRADEMARK'
21
+ #raise Exception('Incomplete Document Info')
20
22
  if code == 'Marca': return 'TRADEMARK'
21
23
  if code == 'Marca Madri': return 'TRADEMARK'
22
24
  """
@@ -25,7 +27,8 @@ def translate_type(header):
25
27
  if code == 'Madrid': return 'TRADEMARK'
26
28
  if code == 'Banjul Protocol Marks': return 'TRADEMARK'
27
29
  """
28
- raise Exception('Type "%s" is not mapped.' % code)
30
+ return 'TRADEMARK'
31
+ #raise Exception('Type "%s" is not mapped.' % code)
29
32
 
30
33
  def translate_kind(trademark, header):
31
34
  subcode = header.TransactionSubCode
@@ -49,7 +52,8 @@ def translate_kind(trademark, header):
49
52
  if subcode == 'Madrid Protocol': return ['Individual']
50
53
  if subcode == 'Banjul Protocol Marks': return ['Individual']
51
54
  """
52
- raise Exception('Kind "%s" not mapped.' % subcode)
55
+ return ['Undefined']
56
+ #raise Exception('Kind "%s" not mapped.' % subcode)
53
57
 
54
58
  def translate_status(trademark):
55
59
  status = trademark.MarkCurrentStatusCode
@@ -0,0 +1,53 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <Transaction xmlns="http://www.wipo.int/standards/XMLSchema/trademarks" xmlns:wo="http://www.wipo.int/standards/XMLSchema/wo-trademarks">
4
+ <TradeMarkTransactionBody>
5
+ <TransactionContentDetails>
6
+ <TransactionIdentifier></TransactionIdentifier>
7
+ <TransactionCode></TransactionCode>
8
+ <TransactionSubCode></TransactionSubCode>
9
+ <TransactionData>
10
+ <TradeMarkApplication>
11
+ <TradeMarkDetails>
12
+ <TradeMark>
13
+ <RegistrationOfficeCode>BR</RegistrationOfficeCode>
14
+ <ApplicationNumber>MMA1501730141</ApplicationNumber>
15
+ <ApplicationDate></ApplicationDate>
16
+ <ApplicationLanguageCode>pt</ApplicationLanguageCode>
17
+ <MarkImageDetails>
18
+ <MarkImage/>
19
+ </MarkImageDetails>
20
+ <PublicationDetails>
21
+ <Publication>
22
+ <PublicationIdentifier>MMA1501730141</PublicationIdentifier>
23
+ <PublicationDate>2023-12-12</PublicationDate>
24
+ </Publication>
25
+ </PublicationDetails>
26
+ <ApplicantDetails>
27
+ <Applicant>
28
+ <ApplicantAddressBook>
29
+ <FormattedNameAddress>
30
+ <Name>
31
+ <FreeFormatName>
32
+ <FreeFormatNameDetails>
33
+ <FreeFormatNameLine languageCode="pt">Shengqun Zhou</FreeFormatNameLine>
34
+ </FreeFormatNameDetails>
35
+ </FreeFormatName>
36
+ </Name>
37
+ <Address>
38
+ <AddressCountryCode>CN</AddressCountryCode>
39
+ </Address>
40
+ </FormattedNameAddress>
41
+ </ApplicantAddressBook>
42
+ </Applicant>
43
+ </ApplicantDetails>
44
+ <wo:WordMarkSpecification/>
45
+ <wo:MarkEventDetails/>
46
+ <wo:MarkCurrentStatusCode>Depositado</wo:MarkCurrentStatusCode>
47
+ </TradeMark>
48
+ </TradeMarkDetails>
49
+ </TradeMarkApplication>
50
+ </TransactionData>
51
+ </TransactionContentDetails>
52
+ </TradeMarkTransactionBody>
53
+ </Transaction>
@@ -23,7 +23,7 @@
23
23
 
24
24
  type: # (TRADEMARK|EMBLEM|AO|GI|INN)
25
25
  kind:
26
- - str # (Individual|Collective|Certificate|Defensive|Other|Membership)
26
+ - str # (Individual|Collective|Certificate|Defensive|Other|Membership|Undefined)
27
27
  markFeature: # (Word|Stylized characters|Figurative|Combined|Three dimensional|Colour|Sound|Hologram|Olfactory|Motion|Municipal|Chimney|Other|Undefined)
28
28
 
29
29
  registrationOfficeCode:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wipo-gbd-transformation
3
- Version: 1.1.76
3
+ Version: 1.1.77
4
4
  Summary: GBD XML ETL package
5
5
  Home-page: https://github.com/GBD-Wipo/xmlE
6
6
  Author: WIPO GDB team
@@ -45,10 +45,11 @@ gbdtransformation/brands/bntm/schema,sha256=AP0MxQyD0hY4APRh8nxitlxMqJYJB4AaaTJ8
45
45
  gbdtransformation/brands/bntm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
46
46
  gbdtransformation/brands/bntm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
47
  gbdtransformation/brands/brtm/__init__.py,sha256=4i_g7tbu8MmPJccRZCkqJES_bzwGUY59SxTlZT_e3Xs,37
48
- gbdtransformation/brands/brtm/filters.py,sha256=_WbKSUYBmCghrP_Fkb4OjdczWkdRuxP2pHh3JCzeNEo,5890
48
+ gbdtransformation/brands/brtm/filters.py,sha256=-T0JEm1VaWeveGjejdGuid8vHTcH3yKsayQWJDIP5Y0,6012
49
49
  gbdtransformation/brands/brtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
50
50
  gbdtransformation/brands/brtm/template.yml,sha256=U3dMrcxS-meJthPQow_R1MAVH1DYdJ4AyJSAR6s9LJQ,952
51
51
  gbdtransformation/brands/brtm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
+ gbdtransformation/brands/brtm/tests/test01.xml,sha256=PwEldq_lGbrysSYk43ebupzXP57T5_fhtpnQx_TqjB4,2231
52
53
  gbdtransformation/brands/bttm/__init__.py,sha256=cCkwMJ9sn4nPbrt8gZzcLovRJzV9uLi2L-6dU_KsIzg,229
53
54
  gbdtransformation/brands/bttm/filters.py,sha256=3OFCcjpjkIQ_GbYeGcwTpc-qWBZLUybaUzr4e4s-eEI,2326
54
55
  gbdtransformation/brands/bttm/schema,sha256=AP0MxQyD0hY4APRh8nxitlxMqJYJB4AaaTJ8y20-XBA,3283
@@ -456,7 +457,7 @@ gbdtransformation/brands/wstm/tests/test.xml.gz,sha256=UKm7LTvKaETUtHMKurFGqkqXO
456
457
  gbdtransformation/brands/xxxx/__init__.py,sha256=fricc3VHm4BwGRFKIIqB0t-NtP3tTVRrEYee_gWpiFo,172
457
458
  gbdtransformation/brands/xxxx/filters.py,sha256=YCaQ6yH2LINwCQvbPHDhnORQyWglbswLlSOY6ur3KXQ,1874
458
459
  gbdtransformation/brands/xxxx/schema,sha256=g_oWkd7k2e5fAQR1BdNkPSsIgP3dkTyc7esWo_UOHQA,163
459
- gbdtransformation/brands/xxxx/template.yml,sha256=-jmopincQdri1jKA32gjq1H7KOEi9A_2bhXg3BLPxOY,7094
460
+ gbdtransformation/brands/xxxx/template.yml,sha256=EM5IES2irQvlNvylR_JRmIAtrUna0QzJKK5Jr_RqdzY,7104
460
461
  gbdtransformation/brands/zmtm/__init__.py,sha256=Mtsi_-CaLQirHkhnletNhJ4li-pZlzEZMcKjv6mEk50,256
461
462
  gbdtransformation/brands/zmtm/filters.py,sha256=FkGfv3nPiYDUy97O7bDzPp824qoDsqX-oh2Ox01NTpA,2344
462
463
  gbdtransformation/brands/zmtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
@@ -584,9 +585,9 @@ gbdtransformation/utilities/st66.xsd,sha256=co8aFN3a5TpudllRttWmfLeiZu8ulNipfeXm
584
585
  schemas/ShazamConfig.py,sha256=D67os5B11C41h_WZ7kk54Ss0Kk7tHh8W0d_1c_aX-lY,1191
585
586
  schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
586
587
  schemas/schema_extractor.py,sha256=3-ImtnI777f6b3VA0A_w-NoXdlGz5VZMzK6MnPdQQAY,10294
587
- wipo_gbd_transformation-1.1.76.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
588
- wipo_gbd_transformation-1.1.76.dist-info/METADATA,sha256=YGUcgoRuLlulcuj6g_g58XcDEYPUtPctdpz6itMyEl8,577
589
- wipo_gbd_transformation-1.1.76.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
590
- wipo_gbd_transformation-1.1.76.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
591
- wipo_gbd_transformation-1.1.76.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
592
- wipo_gbd_transformation-1.1.76.dist-info/RECORD,,
588
+ wipo_gbd_transformation-1.1.77.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
589
+ wipo_gbd_transformation-1.1.77.dist-info/METADATA,sha256=UcDXShGJZ47hV1I4RKR52q6FvHP1wE2wc-tdS8diHNI,577
590
+ wipo_gbd_transformation-1.1.77.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
591
+ wipo_gbd_transformation-1.1.77.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
592
+ wipo_gbd_transformation-1.1.77.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
593
+ wipo_gbd_transformation-1.1.77.dist-info/RECORD,,