sib-swiss / sparql-llm

🦜✨ Chat system and reusable components to improve LLMs capabilities when generating SPARQL queries
https://chat.expasy.org
MIT License
8 stars 1 forks source link

Generate complete ShEx shapes from VoID description example in README.md doesn't work #2

Closed adeslatt closed 1 month ago

adeslatt commented 1 month ago
from sparql_llm import get_shex_from_void

shex_str = get_shex_from_void("https://sparql.uniprot.org/sparql/")
print(shex_str)

Returns this error:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[7], line 1
----> 1 from sparql_llm import get_shex_from_void
      3 shex_str = get_shex_from_void("https://sparql.uniprot.org/sparql/")
      4 print(shex_str)

ImportError: cannot import name 'get_shex_from_void' from 'sparql_llm' 
vemonet commented 1 month ago

Hi @adeslatt , thanks for the notification! I forgot to export this function in the global imports, it is now fixed in latest release 0.0.3