daniel added a subscriber: daniel. daniel added a comment. Statement IDs are GUIDs (with the Item ID prefixed), and they do not change when the Statement changes (otherwise, they would be hashes, not IDs - References are currently handled by hash). This is intentional and necessarily to be able to discuss Statements as such.
Internally we use hashes for this kind of comparison - I suppose including hashes in the JSON dumps might be nice. But for now, you could just keep a map of GUID -> hash somewhere, and when reading the next dump, re-compute and compare the hash for each statement. With regard to the Statement's GUID staying stable: there might be some wiggle room here on the data model level: we might change the GUID when the main Snak or Qualifiers (the "claim") change. But adding a Reference shouldn't change the ID. This needs some thought though - the GUID allows a statement to be referenced and discussed across multiple revisions. This is useful for things like tracking which statement violates which soft-constraint, etc. TASK DETAIL https://phabricator.wikimedia.org/T85045 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>. EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Smalyshev, daniel Cc: Aklapper, Smalyshev, Manybubbles, GWicke, JanZerebecki, aude, Lydia_Pintscher, Eloquence, daniel, jkroll, Wikidata-bugs _______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
