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/mini geo ontology #376

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft

Conversation

kwahlin
Copy link
Contributor

@kwahlin kwahlin commented Mar 29, 2022

No description provided.

@kwahlin kwahlin marked this pull request as draft March 29, 2022 06:09
@@ -133,6 +133,8 @@ def get_preferred(term, pred, ns_pref_order=None):
relateds = list(term.objects(pred))
term_pfx = _pfx(term)
for related in relateds:
if type(related.identifier) == BNode:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if type(related.identifier) == BNode:
if isinstance(related.identifier, BNode):

@niklasl
Copy link
Member

niklasl commented Mar 7, 2024

We might (finally!) make use of this (or parts of, pending review), together with #475.

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 this pull request may close these issues.

2 participants