{"action":"created","issue":{"url":"https://api.github.com/repos/Wikidata/Wikidata-Toolkit/issues/162","labels_url":"https://api.github.com/repos/Wikidata/Wikidata-Toolkit/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/Wikidata/Wikidata-Toolkit/issues/162/comments","events_url":"https://api.github.com/repos/Wikidata/Wikidata-Toolkit/issues/162/events","html_url":"https://github.com/Wikidata/Wikidata-Toolkit/issues/162","id":99630747,"number":162,"title":"Wikibase API: Support wbeditentity","user":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Wikidata/Wikidata-Toolkit/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Wikidata/Wikidata-Toolkit/labels/feature","name":"feature","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"guenthermi","id":6599259,"avatar_url":"https://avatars.githubusercontent.com/u/6599259?v=3","gravatar_id":"","url":"https://api.github.com/users/guenthermi","html_url":"https://github.com/guenthermi","followers_url":"https://api.github.com/users/guenthermi/followers","following_url":"https://api.github.com/users/guenthermi/following{/other_user}","gists_url":"https://api.github.com/users/guenthermi/gists{/gist_id}","starred_url":"https://api.github.com/users/guenthermi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guenthermi/subscriptions","organizations_url":"https://api.github.com/users/guenthermi/orgs","repos_url":"https://api.github.com/users/guenthermi/repos","events_url":"https://api.github.com/users/guenthermi/events{/privacy}","received_events_url":"https://api.github.com/users/guenthermi/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-08-07T11:19:46Z","updated_at":"2015-08-07T13:42:35Z","closed_at":null,"body":"I'm trying to utilise the datamodel package from the Wikidata-Toolkit to create Entities (Items and Properties) that I would like to add to a Wikibase instance via the MediaWiki HTTP API (https://github.com/zazi/wikidata-d-swarm-importer/tree/own_mediawiki_api_client). However, it looks like that the Datamodel builder (org.wikidata.wdtk.datamodel.helpers.Datamodel) is optimized for read-only processing (where all parts of an Entity are somehow available). When I would like to create a new Entity (Item or Property), then I expect that the system mints new identifier for them. By utilising the builder methods of Datamodel builder, e.g., Datamodel#makeItemDocument, every property needs to be non-null. For the majority of parameter this isn't a problem, however, the id value should be null, because I expect that system will create an identifier for a new item at server side.\r\nAny chance to prepare the Datamodel builder for creating entities for writing as well? - i.e., where only fields are mandatory that need to be mandatory for minimal writing/entity creation.\r\n\r\nPS: I can also have a look at the code and try to fix this issue at my own"},"comment":{"url":"https://api.github.com/repos/Wikidata/Wikidata-Toolkit/issues/comments/128701980","html_url":"https://github.com/Wikidata/Wikidata-Toolkit/issues/162#issuecomment-128701980","issue_url":"https://api.github.com/repos/Wikidata/Wikidata-Toolkit/issues/162","id":128701980,"user":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T13:42:35Z","updated_at":"2015-08-07T13:42:35Z","body":"I'm pushing my modification to https://github.com/zazi/Wikidata-Toolkit/commits/wikibase_api_write_modifications right now."}}