@@ -142,7 +142,7 @@ def execute_sparql_query(sparql_query: str, endpoint_url: str) -> str:
142142 """
143143 resp_msg = ""
144144 try :
145- res = query_sparql (sparql_query , endpoint_url , timeout = 10 , check_service_desc = False , post = True )
145+ res = query_sparql (sparql_query , endpoint_url , timeout = 10 , post = True )
146146 # If no results, return a message to ask fix the query
147147 if not res .get ("results" , {}).get ("bindings" ):
148148 resp_msg += f"SPARQL query returned no results. { FIX_QUERY_PROMPT } \n ```sparql\n { sparql_query } \n ```"
@@ -163,11 +163,11 @@ def execute_sparql_query(sparql_query: str, endpoint_url: str) -> str:
163163and check them one by one."""
164164
165165
166- # https://modelcontextprotocol.io/docs/concepts/resources
167- @mcp .resource ("examples://{question}" )
168- def get_examples (question : str ) -> str :
169- """Get relevant SPARQL query examples and other documents to help the user write a SPARQL query."""
170- return access_sib_biodata_sparql (question , [], [])
166+ # # https://modelcontextprotocol.io/docs/concepts/resources
167+ # @mcp.resource("examples://{question}")
168+ # def get_examples(question: str) -> str:
169+ # """Get relevant SPARQL query examples and other documents to help the user write a SPARQL query."""
170+ # return access_sib_biodata_sparql(question, [], [])
171171
172172
173173def main () -> None :
0 commit comments