Open dpriskorn opened 1 year ago
You want to have your Entity and automatically validate against an entityschema, something like this :
if my_entity.validate_schema('E345'):
print('entity valid!)
else:
print('try again 😬')
?
Yes, that was my idea. Maybe given the distributed nature of LOD I want to validate against a schema in another wikibase?
Here is gpl3 python code validating against an entityschema 😀 https://github.com/Teester/entityshape
I created a alpha library for the entityshape API https://github.com/dpriskorn/PyEntityshape
support for entityschemas and validation seems to some degree to be supported in WBI. A user story could be: