#Error executing SPARQL query in rdflib

1 messages · Page 1 of 1 (latest)

hoary breach
#

ChatGPT shared link: https://chat.openai.com/share/e6a11c1c-e2d4-4a76-83cd-634444310233

Steps to reproduce:

  1. Create a cutom GPT
  2. Enter the following instructions at the prompt:
    Create a simple OWL ontology
    Show the ontology.
    Ask a question that can answered by executing a SPARQL query.
    Show the SPARQL.
    Execute the SPARQL to answer the question.

Expected result:

['http://example.org/ontology#JohnDoe']

Actual result:
It appears that we're encountering an unexpected issue with running the SPARQL query. This issue might be related to the internal workings of the rdflib library. Despite the problem, we've correctly formed the SPARQL query based on the ontology. Normally, the query would execute successfully in a properly functioning RDF and SPARQL environment, and it would return "JohnDoe" as the author of "The Hobbit" based on the given data.

Additional information

Browser:Chrome
OS:Mac
GPT is using rdflib 6.0.0 which has a bug in the parse plugin. This means conde interpreter can not execute any SPARQL queries.
Bug is fixed in 6.1.1
Version 7.0.0 is current version.