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

Getting error that the owl "must be an rdflib term" #83

Open
shola-lawal opened this issue Dec 7, 2023 · 7 comments
Open

Getting error that the owl "must be an rdflib term" #83

shola-lawal opened this issue Dec 7, 2023 · 7 comments
Labels
bug ROS 1 Issue affects ROS 1

Comments

@shola-lawal
Copy link

Hi,

I am getting a must be an rdflib term errors. An example of the error message looks like this, "Subject http://www.inf.ufrgs.br/phi-group/ontologies/cora.owl#Robot-1 must be an rdflib term". It doesn't seem that the errors are due to the skiros.owl and skirosExtra.owl files but rather from the owl files in the IEEE-1872-2015 folder. However, this doesn't make sense because I am able to view the owl files from the IEEE-1872-2015 folder in Protégé 5.6.3.

I have attached to outputs below.

Please also note that there are _SyntaxWarning: "is" with a literal. Did you mean "=="?_ errors but this is related to python 3.8 raising a SyntaxWarning due to the usage of "is" instead of "==".

GetImage
GetImage1
GetImage2

Environment:
Ubuntu 20.04.6
Python 3.8.10
ROS Noetic
rdflib 7.0.0

Please advise.
Thank you.

@matthias-mayr
Copy link
Member

Thank you very much for reporting this.

The Syntax warning seems easy to fix. Interestingly enough, I haven't seen it with my noetic setups. I should take a look at the python versions those use.

For the rdflib-error, can you attach the turtle file of your scene? Here in the user interface is a Save Scene button. That would help to debug it.

@shola-lawal
Copy link
Author

Hi @matthias-mayr,

Here is the turtle sim scene:

(Terminal 1)
$ roscore

(Terminal 2)
$ roslaunch skiros2_examples turtlesim_example.launch

I just added an empty scene after running the skiros2.

Below is the image:

skillros

@matthias-mayr
Copy link
Member

Thanks for the instructions. It looks like RDFlib in version 7.0.0 introduced some breaking changes. Until this is resolved, you can switch to the previous version with

pip3 install rdflib==6.3.2

@TimKnissel
Copy link

Thank you for the update! With the version rdflib=6.3.2 it works for me.

@shola-lawal
Copy link
Author

Amazing, thank you it works now!!

@matthias-mayr
Copy link
Member

Thanks for the feedback.

I am reopening this issue, because it's only a fix and currently not even enforced by the installation procedure.

@matthias-mayr matthias-mayr reopened this Jan 4, 2024
@matthias-mayr
Copy link
Member

Chances are that #90 fixes this.

Please also note that there are SyntaxWarning: "is" with a literal. Did you mean "=="? errors but this is related to python 3.8 raising a SyntaxWarning due to the usage of "is" instead of "==".

Thanks for bringing up the warning. It is fixed now in 8b11b9e.

@matthias-mayr matthias-mayr added bug ROS 1 Issue affects ROS 1 labels Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ROS 1 Issue affects ROS 1
Projects
None yet
Development

No branches or pull requests

3 participants