Lucas_Werkmeister_WMDE added a comment.

  Yeah, I also thought of encoding the statement ID in it, but the STRSTARTS is 
a bit ugly. Also, this doesn’t provide an obvious path for unknown values used 
in qualifiers and references… what could those use? (I assume the main 
requirement for the updater is that, whatever these IDs look like, they should 
remain stable between RDF exports of different revisions?)
  
  For the STRSTARTS, we could of course throw more triples at the wall to solve 
the problem –
  
    wd:Q2 wdt:P2 wdunk:Q2-6657d0b5-4aa4-b465-12ed-d1b8a04ef658.
    wdunk:Q2-6657d0b5-4aa4-b465-12ed-d1b8a04ef658 a wikibase:UnknownValue.
  
  – but that seems wasteful, and there might also be queries relying on the 
fact that the current “unknown value” blank nodes have no outgoing triples (not 
sure). Perhaps we could hide the `STRSTARTS()` in a function? That could 
improve readability a lot:
  
    ?human wdt:P106 ?occupation.
    FILTER(wikibase:isUnknownValue(?occupation))
  
  I’m not sure how well that would perform, though. (Currently, I believe we 
only have one custom function: `wikibase:decodeUri`, introduced in T168923: Add 
urldecode function <https://phabricator.wikimedia.org/T168923>.)

TASK DETAIL
  https://phabricator.wikimedia.org/T244341

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, 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

Reply via email to