-
Notifications
You must be signed in to change notification settings - Fork 99
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
Creating a property on a private wikibase instance #419
Comments
Hi! Thank you for the bug report. I'm not sure of what is happening exactly for your first problem (@wetneb do you have an idea?). About the second error, indeed, Wikibase enforces that the (label, description) couples are unique. |
For the first bug it looks like the datatype of the property as returned by Wikibase is not understood. It would be worth adding some proper error handling there to understand which datatype value caused this, and fix it accordingly. We might also want to update the list of supported datatypes to include the recently added ones. |
Hi, I am newcomer to wikidata, configured the api successfully in eclipse, run all examples from tutorial, but I have not been able to connect to our private wiki, and obtained the same results I just obtained with wikidata.org and test.wikidata.org. I tried the published code, and obtained the following result:
when ussing the examplerhelper function provided with the api, I obtained the following result:
any recommendation to solve the issue?, what is the best way to get access to a given wikidata page? Luis |
Instead of using |
Dear wetneb, thanks for the recommendation, I could get the connection, and write the property values, however after ending the task, it generates another error, and I wonder what could be the reason? The last instruction executed was:
and I think the problem is there. Exception in thread "main" org.wikidata.wdtk.wikibaseapi.apierrors.MediaWikiApiErrorException: [failed-save] The save has failed. Luis |
I has same problem. After debug by program, the class |
this exception because you have same property on wikibase already. |
@wangchuan2008888 yes the bug you are describing is known: #376 |
I am trying to create properties using the Java API:
It does create the property but I end up with a NullPointer which is not really clear in itself to me:
when disabling the UUID and run the program twice I get the following message:
I assume this is the case due to an already existing property with the exact same label and description? However I am not certain since the message is not really clear in itself...
The text was updated successfully, but these errors were encountered: