C:\Users\Pasquale Bonasia\Downloads\OntoPharma>python ./OntoPharma.py
Traceback (most recent call last):
File "./OntoPharma.py", line 256, in compatibilita
<''' + Farmaco.iri + '''> onto:glutine ?s . }''')
File "C:\Users\Pasquale Bonasia\AppData\Local\Programs\Python\Python37\lib\site-packages\owlready2\namespace.py", line 547, in sparql
query = self._prepare_sparql(sparql, error_on_undefined_entities)
File "C:\Users\Pasquale Bonasia\AppData\Local\Programs\Python\Python37\lib\site-packages\owlready2\namespace.py", line 553, in _prepare_sparql
return owlready2.sparql.main.Translator(self, error_on_undefined_entities).parse(sparql)
File "C:\Users\Pasquale Bonasia\AppData\Local\Programs\Python\Python37\lib\site-packages\owlready2\sparql\main.py", line 61, in parse
self.main_query = PARSER.parse(LEXER.lex(sparql))
File "C:\Users\Pasquale Bonasia\AppData\Local\Programs\Python\Python37\lib\site-packages\owlready2\rply.py", line 417, in parse
t, symstack, statestack, state
File "C:\Users\Pasquale Bonasia\AppData\Local\Programs\Python\Python37\lib\site-packages\owlready2\rply.py", line 465, in _reduce_production
if state is None: value = p.func(targ)
File "C:\Users\Pasquale Bonasia\AppData\Local\Programs\Python\Python37\lib\site-packages\owlready2\sparql\parser.py", line 1015, in f
p.storid = p.sql = translator.abbreviate(p.value)
File "C:\Users\Pasquale Bonasia\AppData\Local\Programs\Python\Python37\lib\site-packages\owlready2\sparql\main.py", line 293, in abbreviate
if r is None: raise ValueError("No existing entity for IRI '%s'! (use error_on_undefined_entities=False to accept unknown entities in SPARQL queries)" % entity)
ValueError: No existing entity for IRI '
http://test.org/codifa.owl#glutine'! (use error_on_undefined_entities=False to accept unknown entities in SPARQL queries)