dcausse added a comment.
In https://www.wikidata.org/wiki/Q4115189#Q4115189$7d68afee-408d-1c1e-946b-43d8d37a17b5 @Lucas_Werkmeister_WMDE added more "somevalue" to the graph (references and qualifiers) which outputs the following graph: wd:Q4115189 p:P370 s:Q4115189-7d68afee-408d-1c1e-946b-43d8d37a17b5 . s:Q4115189-7d68afee-408d-1c1e-946b-43d8d37a17b5 a wikibase:Statement, wikibase:BestRank ; wikibase:rank wikibase:NormalRank ; ps:P370 _:genid6 ; pq:P2315 "this is a demo for T244341, if possible please don’t remove it before, say, 2020-02-26 :)"@en ; pq:P370 _:genid7 ; pq:P1106 _:genid8 ; prov:wasDerivedFrom ref:6c8b1cd1c3cd814ab99e3c40580f12024ceff994 . ref:6c8b1cd1c3cd814ab99e3c40580f12024ceff994 a wikibase:Reference ; pr:P370 _:genid9 ; pr:P855 _:genid10 . //First constatation is that our current update strategy is not able do a clean change on this entity, existing blank nodes are leaked (updated T231515 <https://phabricator.wikimedia.org/T231515>).// The proposed solution for encoding bnodes as currently stated does not work well as it will conflate all bnodes attached to a statement. One obvious solution would to encode more information to this made-up IRI by prefixing/suffixing the predicate: wd:Q4115189 p:P370 s:Q4115189-7d68afee-408d-1c1e-946b-43d8d37a17b5 . s:Q4115189-7d68afee-408d-1c1e-946b-43d8d37a17b5 a wikibase:Statement, wikibase:BestRank ; wikibase:rank wikibase:NormalRank ; ps:P370 wdsome:Q4115189-7d68afee-408d-1c1e-946b-43d8d37a17b5-PS-P370 ; pq:P2315 "this is a demo for T244341, if possible please don’t remove it before, say, 2020-02-26 :)"@en ; pq:P370 wdsome:Q4115189-7d68afee-408d-1c1e-946b-43d8d37a17b5-PQ-P370 ; pq:P1106 wdsome:Q4115189-7d68afee-408d-1c1e-946b-43d8d37a17b5-PQ-P1106 ; prov:wasDerivedFrom ref:6c8b1cd1c3cd814ab99e3c40580f12024ceff994 . ref:6c8b1cd1c3cd814ab99e3c40580f12024ceff994 a wikibase:Reference ; pr:P370 wdsome:ref-6c8b1cd1c3cd814ab99e3c40580f12024ceff994-PR-P370 ; pr:P855 wdsome:ref-6c8b1cd1c3cd814ab99e3c40580f12024ceff994-PR-P855 . This is a bit ugly but this would ensure uniqueness of the IRIs, also I'm not a big fan of propagating information into IDs as I'm afraid that some process may want to make some assumptions on the structure of the ID itself. Here the only information we want to encode is the: - uniqueness of the node - a common IRI prefix to detect that these are skolem IRIs. I wonder if we could not simply hash things. `wdsome:Q4115189-7d68afee-408d-1c1e-946b-43d8d37a17b5-PS-P370` would become `wdsome:e81da6d67fa0cbf0e1daf440c31cf138ffe565c8` TASK DETAIL https://phabricator.wikimedia.org/T245541 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: dcausse Cc: Aklapper, Lucas_Werkmeister_WMDE, mkroetzsch, Daniel_Mietchen, Jheald, dcausse, darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, Xmlizer, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs