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

AttributeError: 'Graph' object has no attribute 'label' #52

Open
youxingtian opened this issue Apr 12, 2023 · 1 comment
Open

AttributeError: 'Graph' object has no attribute 'label' #52

youxingtian opened this issue Apr 12, 2023 · 1 comment

Comments

@youxingtian
Copy link

I run the main.py demo,but I get the error!

Traceback (most recent call last):
  File "/Users/youbo/PycharmProjects/demo/others/OpenEA-tutorial/ontology_matching/src/main.py", line 33, in <module>
    main()
  File "/Users/youbo/PycharmProjects/demo/others/OpenEA-tutorial/ontology_matching/src/main.py", line 17, in main
    src_rdf = RdfParser(src_file, 'http://oaei.ontologymatching.org/2007/benchmarks/101/onto.rdf#')
  File "/Users/youbo/PycharmProjects/demo/others/OpenEA-tutorial/ontology_matching/src/data_input.py", line 26, in __init__
    self.class_labels = [self._graph.label(uri) for uri in self.class_uris]
  File "/Users/youbo/PycharmProjects/demo/others/OpenEA-tutorial/ontology_matching/src/data_input.py", line 26, in <listcomp>
    self.class_labels = [self._graph.label(uri) for uri in self.class_uris]
AttributeError: 'Graph' object has no attribute 'label'
@sunzequn
Copy link
Member

Hi,

Thanks for your interest in our work. This issue may be caused by rdflib. Which version do you use?

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