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

Fix docs comment doesn't describe behavior #2443

Merged
merged 3 commits into from Jun 15, 2023
Merged

Conversation

Kibubu
Copy link
Contributor

@Kibubu Kibubu commented Jun 12, 2023

Comment refers to a person that knows bob and code would return a name, but this would only work if the triple
person foaf:name bob .
is part of the dataset. As this is a very uncommon way to model a foaf:knows the code was adjusted to match the description.

@coveralls
Copy link

coveralls commented Jun 13, 2023

Coverage Status

coverage: 90.898%. remained the same when pulling 3199548 on Kibubu:patch-1 into 46ff6cf on RDFLib:main.

Comment refers to a person that knows bob and code would return a name, but this would only work if the triple
`person foaf:name bob .`
is part of the dataset. As this is a very uncommon way to model a `foaf:knows` the code was adjusted to match the description.
The code in docs won't always be complete programs and is sometimes just
snippets, and for snippets it does not make sense to error out if the
variables used in the snippet is not defined.
Copy link
Member

@aucampia aucampia left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @Kibubu, it looks good. I also fixed the flake8/flakeheaven config to not error out.

@aucampia aucampia merged commit 4e42d10 into RDFLib:main Jun 15, 2023
22 checks passed
@Kibubu Kibubu deleted the patch-1 branch June 19, 2023 21:11
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.

None yet

3 participants