[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-28 Thread Addshore
Addshore closed this task as "Resolved".
Addshore added a comment.


  The logging change looks good to me

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

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

To: Lucas_Werkmeister_WMDE, Addshore
Cc: Addshore, Lucas_Werkmeister_WMDE, Aklapper, Michael, Invadibot, 
maantietaja, Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-21 Thread ReleaseTaggerBot
ReleaseTaggerBot added a project: MW-1.37-notes (1.37.0-wmf.11; 2021-06-21).

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

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

To: Lucas_Werkmeister_WMDE, ReleaseTaggerBot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-21 Thread Maintenance_bot
Maintenance_bot removed a project: Patch-For-Review.

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

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

To: Lucas_Werkmeister_WMDE, Maintenance_bot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, Mbch331, Biggs657, 
Lalamarie69, Alter-paule, Beast1978, Un1tY, Hook696, Kent7301, joker88john, 
CucyNoiD, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Lewizho99, 
Maathavan
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-21 Thread gerritbot
gerritbot added a comment.


  Change 700375 **merged** by jenkins-bot:
  
  [mediawiki/extensions/WikibaseMediaInfo@master] Inject logger into 
ValueSnakRdfBuilderFactory
  
  https://gerrit.wikimedia.org/r/700375

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

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

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Biggs657, Invadibot, 
Lalamarie69, maantietaja, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
lucamauri, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, 
GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, 
Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-21 Thread gerritbot
gerritbot added a comment.


  Change 700374 **merged** by jenkins-bot:
  
  [mediawiki/extensions/WikibaseLexeme@master] Inject logger into 
ValueSnakRdfBuilderFactory
  
  https://gerrit.wikimedia.org/r/700374

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

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

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Biggs657, Invadibot, 
Lalamarie69, maantietaja, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
lucamauri, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, 
GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, 
Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-21 Thread gerritbot
gerritbot added a comment.


  Change 700373 **merged** by jenkins-bot:
  
  [mediawiki/extensions/Wikibase@master] Inject logger into 
DispatchingValueSnakRdfBuilder
  
  https://gerrit.wikimedia.org/r/700373

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

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

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Biggs657, Invadibot, 
Lalamarie69, maantietaja, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
lucamauri, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, 
GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, 
Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-18 Thread gerritbot
gerritbot added a comment.


  Change 700375 had a related patch set uploaded (by Lucas Werkmeister (WMDE); 
author: Lucas Werkmeister (WMDE)):
  
  [mediawiki/extensions/WikibaseMediaInfo@master] Inject logger into 
ValueSnakRdfBuilderFactory
  
  https://gerrit.wikimedia.org/r/700375

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

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

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Biggs657, Invadibot, 
Lalamarie69, maantietaja, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
lucamauri, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, 
GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, 
Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-18 Thread gerritbot
gerritbot added a comment.


  Change 700374 had a related patch set uploaded (by Lucas Werkmeister (WMDE); 
author: Lucas Werkmeister (WMDE)):
  
  [mediawiki/extensions/WikibaseLexeme@master] Inject logger into 
ValueSnakRdfBuilderFactory
  
  https://gerrit.wikimedia.org/r/700374

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

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

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Biggs657, Invadibot, 
Lalamarie69, maantietaja, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
lucamauri, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, 
GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, 
Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-18 Thread gerritbot
gerritbot added a project: Patch-For-Review.

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

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

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Biggs657, Invadibot, 
Lalamarie69, maantietaja, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, 
Iflorez, Kent7301, alaa_wmde, joker88john, CucyNoiD, Nandana, Gaboe420, 
lucamauri, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, 
GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, 
rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, 
Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-18 Thread gerritbot
gerritbot added a comment.


  Change 700373 had a related patch set uploaded (by Lucas Werkmeister (WMDE); 
author: Lucas Werkmeister (WMDE)):
  
  [mediawiki/extensions/Wikibase@master] Inject logger into 
DispatchingValueSnakRdfBuilder
  
  https://gerrit.wikimedia.org/r/700373

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

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

To: Lucas_Werkmeister_WMDE, gerritbot
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-18 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  >> So maybe the only thing left to do is to make the warning more quiet so it 
doesn’t pollute production logstash? (I think “notice” log level would be 
appropriate: “normal, but significant, condition”, above “info” but below 
“warning”.)
  >
  > Either that, or we could keep it an error and log it to the Wikibase 
channel. Because //if// it happens again, then we would surely want to know 
about it because that means we got invalid data into our DB again and need to 
do something about it. (Assuming the invalid data currently in the DB gets 
removed, as talked about elsewhere.)
  
  Fair enough. (It would be really cool if we could log this conditionally 
depending on whether it happens for a recent/latest revision or a historical 
one, but I don’t think that’s feasible.)

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-18 Thread Michael
Michael added a comment.


  In T285131#7162615 , 
@Lucas_Werkmeister_WMDE wrote:
  
  > On second thought, I’m not sure there’s anything to do here…? I thought 
earlier that T144248  was about a 
crash, but it’s just a logged warning – we already “provide something 
syntactically valid to the user”:
  >
  >   curl -s 
'https://www.wikidata.org/wiki/Special:EntityData/Q3629997.ttl?nocache=1536759432200=dump'
 | grep -A10 P625
  >
  >
  >
  >   wd:Q3629997 p:P625 s:Q3629997-469068A1-32BD-4D93-AF94-150EEC63BD2D .
  >   
  >   s:Q3629997-469068A1-32BD-4D93-AF94-150EEC63BD2D a wikibase:Statement,
  > wikibase:BestRank ;
  > wikibase:rank wikibase:NormalRank ;
  > prov:wasDerivedFrom ref:d5847b9b6032aa8b13dae3c2dfd9ed5d114d21b3 .
  >   
  >   wd:Q3629997 p:P646 s:Q3629997-757F941A-55D7-44DC-8568-2B92F4ECC16F .
  >   
  >   s:Q3629997-757F941A-55D7-44DC-8568-2B92F4ECC16F a wikibase:Statement,
  > wikibase:BestRank ;
  >
  > That is, we emit a statement node with rank and references, but no main 
snak at all, neither `ps:P625` nor `psv:P625` (or `wdt:P625`).
  >
  > I suppose the TTL proposed in the task description (attach some sort of 
error under `psv:P625`) could still be an improvement, but it hardly seems 
worth the effort.
  
  I agree. The naming issue is apparently unrelated.
  
  > So maybe the only thing left to do is to make the warning more quiet so it 
doesn’t pollute production logstash? (I think “notice” log level would be 
appropriate: “normal, but significant, condition”, above “info” but below 
“warning”.)
  
  Either that, or we could keep it an error and log it to the Wikibase channel. 
Because //if// it happens again, then we would surely want to know about it 
because that means we got invalid data into our DB again and need to do 
something about it. (Assuming the invalid data currently in the DB gets 
removed, as talked about elsewhere.)

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

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

To: Lucas_Werkmeister_WMDE, Michael
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-18 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE updated the task description.

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-18 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  On second thought, I’m not sure there’s anything to do here…? I thought 
earlier that T144248  was about a 
crash, but it’s just a logged warning – we already “provide something 
syntactically valid to the user”:
  
curl -s 
'https://www.wikidata.org/wiki/Special:EntityData/Q3629997.ttl?nocache=1536759432200=dump'
 | grep -A10 P625
  
  
  
wd:Q3629997 p:P625 s:Q3629997-469068A1-32BD-4D93-AF94-150EEC63BD2D .

s:Q3629997-469068A1-32BD-4D93-AF94-150EEC63BD2D a wikibase:Statement,
wikibase:BestRank ;
wikibase:rank wikibase:NormalRank ;
prov:wasDerivedFrom ref:d5847b9b6032aa8b13dae3c2dfd9ed5d114d21b3 .

wd:Q3629997 p:P646 s:Q3629997-757F941A-55D7-44DC-8568-2B92F4ECC16F .

s:Q3629997-757F941A-55D7-44DC-8568-2B92F4ECC16F a wikibase:Statement,
wikibase:BestRank ;
  
  That is, we emit a statement node with rank and references, but no main snak 
at all, neither `ps:P625` nor `psv:P625` (or `wdt:P625`).
  
  I suppose the TTL proposed in the task description (attach some sort of error 
under `psv:P625`) could still be an improvement, but it hardly seems worth the 
effort. So maybe the only thing left to do is to make the warning more quiet so 
it doesn’t pollute production logstash? (I think “notice” log level would be 
appropriate: “normal, but significant, condition”, above “info” but below 
“warning”.)

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-18 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE claimed this task.
Lucas_Werkmeister_WMDE moved this task from To Do (prioritised from top to 
bottom) to Doing on the Wikidata-Campsite (Wikidata-Campsite-Iteration-∞) board.

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

WORKBOARD
  https://phabricator.wikimedia.org/project/board/3539/

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-18 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  Hm, and what if a malformed datavalue appears in a qualifier or reference?
  
  Probably the same thing: make the `pqv:`/`prv:` values error bnodes, leave 
out `pq:`/`pr:`.

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Invadibot, maantietaja, 
Akuckartz, Iflorez, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Addshore, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T285131: Provide valid rdf error response for invalid data in the database

2021-06-18 Thread Michael
Michael created this task.
Michael added projects: Wikidata, MediaWiki-extensions-WikibaseRepository, 
DataValues, wdwb-tech, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞).
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  While we should never have invalid data in our database, we should still 
degrade somewhat gracefully if we do and provide something syntactically valid 
to the user if they request RDF or ttl data.
  
  So if we have for example invalid data like the following (notice the strange 
precision):
  
{
"P625": [
  {
"mainsnak": {
  "snaktype": "value",
  "property": "P625",
  "datavalue": {
"value": {
  "latitude": -90,
  "longitude": 0,
  "altitude": null,
  "precision": 146706019195900,
  "globe": "http://www.wikidata.org/entity/Q308;
},
"type": "globecoordinate",
"error": "$precision needs to be between -360 and 360"
  },
  "datatype": "globe-coordinate"
},
"type": "statement",
"id": "Q3629997$469068A1-32BD-4D93-AF94-150EEC63BD2D",
"rank": "normal",
"references": [...]
  }
],
}
  
  Then the ttl (and RDF) could look somewhat like this:
  
wd:Q3629997 # no wdt:P625;
  p:P625 wds:Q3629997-469068A1-32BD-4D93-AF94-150EEC63BD2D.
wds:Q3629997-469068A1-32BD-4D93-AF94-150EEC63BD2D # no ps:P625;
  psv:P625 _:someBlankNode.
_:someBlankNode rdf:type wikibase:Error; # look for more appropriate class
  wikibase:errorMessage "$precision needs…". # TODO needed?
  
  
  
  > that way
  >
  > - queries selecting `wdt:P625 ?value` silently skip the value
  > - queries counting `p:P625 []` count the statement
  > - queries looking at `p:P625/psv:P625 [ wikibase:geoLongitude ?lon; 
wikibase:geoLatitude ?lat ]` skip the value

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

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

To: Michael
Cc: Aklapper, Michael, Invadibot, maantietaja, Akuckartz, Iflorez, alaa_wmde, 
Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Lydia_Pintscher, 
Addshore, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org