Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: entityschemas and validation. #470

Open
dpriskorn opened this issue Dec 16, 2022 · 5 comments · May be fixed by #571
Open

Feature request: entityschemas and validation. #470

dpriskorn opened this issue Dec 16, 2022 · 5 comments · May be fixed by #571
Assignees

Comments

@dpriskorn
Copy link
Contributor

dpriskorn commented Dec 16, 2022

support for entityschemas and validation seems to some degree to be supported in WBI.
A user story could be:

  • as a user I want to get an item from a wikibase and validate it against an entityschema in the same wikibase
  • As a user I want to validate all lexemes from a sparql query against an entity schema so I can get an overview and find those who do not validate and improve them
@LeMyst
Copy link
Owner

LeMyst commented Dec 16, 2022

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 😬')

?

@dpriskorn
Copy link
Contributor Author

Yes, that was my idea. Maybe given the distributed nature of LOD I want to validate against a schema in another wikibase?

@dpriskorn
Copy link
Contributor Author

See also SuLab/WikidataIntegrator#200

@dpriskorn
Copy link
Contributor Author

Here is gpl3 python code validating against an entityschema 😀
https://github.com/Teester/entityshape

@dpriskorn
Copy link
Contributor Author

I created a alpha library for the entityshape API https://github.com/dpriskorn/PyEntityshape

LeMyst added a commit that referenced this issue Jun 23, 2023
@LeMyst LeMyst linked a pull request Jun 23, 2023 that will close this issue
LeMyst added a commit that referenced this issue Jun 24, 2023
LeMyst added a commit that referenced this issue Jun 24, 2023
LeMyst added a commit that referenced this issue Jan 7, 2024
LeMyst added a commit that referenced this issue Jan 7, 2024
LeMyst added a commit that referenced this issue Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants