LeMyst / WikibaseIntegrator

A Python module to manipulate data on a Wikibase instance (like Wikidata) through the MediaWiki Wikibase API and the Wikibase SPARQL endpoint.
MIT License
68 stars 14 forks source link

Check constraints before adding statement #154

Open dpriskorn opened 3 years ago

dpriskorn commented 3 years ago

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/

LeMyst commented 3 years ago

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

shigapov commented 3 years ago

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

LeMyst commented 3 years ago

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.

dpriskorn commented 3 years ago

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?