WikibaseIntegrator icon indicating copy to clipboard operation
WikibaseIntegrator copied to clipboard

Check constraints before adding statement

Open dpriskorn opened this issue 3 years ago • 4 comments

To take WBI to the next level I propose to enable optional checking of whether the statement violates a constraint using the plnode API.

see https://plnode.toolforge.org/

dpriskorn avatar May 25 '21 11:05 dpriskorn

That seem interesting. Thank you. I'll finish the rewrite of WBI before implementing new things.

LeMyst avatar May 25 '21 22:05 LeMyst

Indeed interesting! But right now plnode is adapted to Wikidata. AFAIK, the third-party Wikibase instances do not use constraints so far.

shigapov avatar May 26 '21 06:05 shigapov

Indeed interesting! But right now plnode is adapted to Wikidata. AFAIK, the third-party Wikibase instances do not use constraints so far.

Yeah, after a second check and reading the source of the tool, it seem the tool is too Wikidata-oriented. QualityConstraints can be installed on a Wikibase instance, but this tool has hardcoded Constraints.

I'll keep in mind the constraint check.

LeMyst avatar May 26 '21 07:05 LeMyst

I removed the default then, as this tool should just work. Maybe we can have Wikibase read all constraints of the wikibase installation and compile an internal database? Or improve the module you mentioned with an API?

dpriskorn avatar May 26 '21 09:05 dpriskorn