Label handling exception #507
              
                Unanswered
              
          
                  
                    
                      WolfgangFahl
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| The json that is not working is shown below [dict: {
    'labels': {
      'en': {
        'language': 'en',
        'value': 'Xiao Liu'
      }
    },
    'descriptions': {
      'en': {
        'language': 'en',
        'value': 'Researcher ORCID(0000-0002-9226-4569)'
      }
    },
    'aliases': {},
    'type': 'item',
  'claims': {
    'P31': [{
      'mainsnak': {
        'snaktype': 'value',
        'property': 'P31',
        'datatype': 'wikibase-item',
        'datavalue': {
          'value': {
            'entity-type': 'item',
            'numeric-id': 5,
            'id': 'Q5'
          },
          'type': 'wikibase-entityid'
        }
      },
      'type': 'statement',
      'rank': 'normal'
    }],
    'P734': [{
      'mainsnak': {
        'snaktype': 'value',
        'property': 'P734',
        'datatype': 'wikibase-item',
        'datavalue': {
          'value': {
            'entity-type': 'item',
            'numeric-id': 804970,
            'id': 'Q804970'
          },
          'type': 'wikibase-entityid'
        }
      },
      'type': 'statement',
      'rank': 'normal'
    }],
    'P735': [{
      'mainsnak': {
        'snaktype': 'value',
        'property': 'P735',
        'datatype': 'wikibase-item',
        'datavalue': {
          'value': {
            'entity-type': 'item',
            'numeric-id': 19810513,
            'id': 'Q19810513'
          },
          'type': 'wikibase-entityid'
        }
      },
      'type': 'statement',
      'rank': 'normal'
    }],
    'P496': [{
      'mainsnak': {
        'snaktype': 'value',
        'property': 'P496',
        'datatype': 'external-id',
        'datavalue': {
          'value': '0000-0002-9226-4569',
          'type': 'string'
        }
      },
      'type': 'statement',
      'rank': 'normal'
    }]
  }
}]( | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Our code used to properly set labels - after refactoring to the latest version of WikibaseIntegrator it doesn't any more see
#459 #506
wikibase-validator-label-with-description-conflict
What should the code look like to set the default language of the label?
see https://phabricator.wikimedia.org/T165249 for how others had the same issue in general and https://phabricator.wikimedia.org/T106456 is still an open issue.
Beta Was this translation helpful? Give feedback.
All reactions