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

Removing a specific claim is missing in notebooks or common use #655

Open
dpriskorn opened this issue Jan 5, 2024 · 0 comments
Open

Removing a specific claim is missing in notebooks or common use #655

dpriskorn opened this issue Jan 5, 2024 · 0 comments
Assignees

Comments

@dpriskorn
Copy link
Contributor

dpriskorn commented Jan 5, 2024

Something like this might work?

not_found_in = lexeme.claims.get(property="P9660")
        for claim in not_found_in:
            print(claim.mainsnak.datavalue)
            if claim.mainsnak.datavalue["value"]["id"] == "Q1186741":
                claim.remove()
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

No branches or pull requests

2 participants