-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Param-illegal error #455
Comments
Hello @LizzAlice , Can you share your wikibase version? Thanks |
The mediawiki version is 1.38.1 |
How did you install wikibase? Are you using wikibase suite that ensures compatible components? |
Wikibase was installed in a docker as specified here: https://github.com/MaRDI4NFDI/docker-wikibase/blob/main/Dockerfile |
Can you share the code that generate the error? |
For getting the error message, I used this code taken from the wikibaseintegrator package, since otherwise, it dos not get displayed correctly.
|
What do you want to accomplish? You want to import P1592 on your own wikibase, so with a new entity ID in the end? |
Exactly, like mentioned in this issue #456 |
I wanted to import P5192, which has the datatype wikibase-lexeme. This is the result of entity.get_json():
{'labels': {'en': {'language': 'en', 'value': 'Wikidata property example for lexemes'}, 'de': {'language': 'de', 'value': 'Wikidata-Eigenschaftsbeispiel für Lexeme'}}, 'descriptions': {'en': {'language': 'en', 'value': 'example where this Wikidata property is used; target lexeme is one that would use this property, with qualifier the property being described given the associated value'}}, 'aliases': {'en': [{'language': 'en', 'value': 'property example for lexemes'}]}, 'type': 'property', 'claims': {'P1': [{'mainsnak': {'snaktype': 'value', 'property': 'P1', 'datatype': 'external-id', 'datavalue': {'value': 'P5192', 'type': 'string'}}, 'type': 'statement', 'rank': 'normal', 'references': [{'snaks': {}, 'snaks-order': []}]}]}, 'datatype': 'wikibase-lexeme'}
However, I am getting the following error:
{'error': {'code': 'param-illegal', 'info': 'A datatype was expected, but either missing or not recognized.', 'messages': [{'name': 'wikibase-api-not-recognized-datatype', 'parameters': [], 'html': {'': 'A datatype was expected, but either missing or not recognized.'}}], '': 'See http://wikibase.svc/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes.'}}
I am confused, why that would be, as wikibase-lexeme is a valid data type.
The text was updated successfully, but these errors were encountered: