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

Add import of os #1464

Merged
2 commits merged into from Nov 18, 2021
Merged

Add import of os #1464

2 commits merged into from Nov 18, 2021

Conversation

ghost
Copy link

@ghost ghost commented Nov 15, 2021

File "../test_magic_set.py", line 64, in test_AdornLiteral
    res = translateAlgebra(translateQuery(parsed_query))
File ".../rdflib/plugins/sparql/algebra.py", line 1427, in translateAlgebra
    os.remove("query.txt")
name 'os' is not defined
  1. infixowl throws an Exception when it tries to split the OWL Namespace object. (Would have preferred to raise a separate PR, was unaware that GH simply concatenates commits into a single PR).

Proposed Changes

  • Add import os
  • Change str(p.split(OWL)[-1]) to str(p.split(str(OWL))[-1]) to avoid Exception.

Graham Higgins added 2 commits November 15, 2021 21:00
File "../test_magic_set.py", line 64, in test_AdornLiteral
    res = translateAlgebra(translateQuery(parsed_query))
File ".../rdflib/plugins/sparql/algebra.py", line 1427, in translateAlgebra
    os.remove("query.txt")
name 'os' is not defined
@ghost ghost requested a review from nicholascar November 15, 2021 21:16
Copy link
Member

@white-gecko white-gecko left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@ghost ghost merged commit e02913d into RDFLib:master Nov 18, 2021
@ghost
Copy link
Author

ghost commented Nov 18, 2021

@white-gecko, given the straightforward nature of the change, I'll go ahead with the merge.

This pull request was closed.
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

1 participant