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

Error Detected illegal blank node in BGP #68

Open
MichelSc opened this issue Apr 5, 2024 · 0 comments
Open

Error Detected illegal blank node in BGP #68

MichelSc opened this issue Apr 5, 2024 · 0 comments
Labels

Comments

@MichelSc
Copy link

MichelSc commented Apr 5, 2024

Issue type:

  • 🐛 Bug

Description:

I do an insert in an empty ttl file, using @comunica/query-sparql-solid CLI:

$COMUNICA_SPARQL_SOLID --idp $IDP $bike_dpp  \
    "INSERT DATA { <http://foo#a> <http://foo#b> [ <http://foo#c> <http://foo#d>] }"

2 triples are inserted (OK):

<http://foo#a> <http://foo#b> _:e_g_00070.
_:e_g_00070 <http://foo#c> <http://foo#d>.

I want to delete all (= the 2 above) triples in my ttl file:

$COMUNICA_SPARQL_SOLID --idp $IDP $bike_dpp  \
    "DELETE WHERE { ?s ?p ?o. }"

Triples are not deleted (NOK). I receive the error

> npx comunica-sparql-solid --idp https://solidcommunity.net http://localhost:3000/bike400.ttl DELETE WHERE { ?s ?p ?o. }

Could not update http://localhost:3000/bike400.ttl (HTTP status 400):
{"name":"BadRequestHttpError","message":"Detected illegal blank node in BGP","statusCode":400,"errorCode":"H400","details":{}}

What does mean this error? Blank node was created by comunica! How can I delete this blank node?

Same behavior observed with explicit blank nodes (NOK)

$COMUNICA_SPARQL_SOLID --idp $IDP $bike_dpp  \
    "INSERT DATA { 
        <http://foo#a> <http://foo#b> _:foo.
        _:foo  <http://foo#c> <http://foo#d> 
    }"

Environment:

| software         | version
| ---------------- | -------
| Comunica Engine  | 3.0.1 
| node             | v18.20.0
| npm              | 10.5.0
| yarn             | 1.22.19
| Operating System | linux (Linux 5.10.102.1-microsoft-standard-WSL2)

Crash log:

@rubensworks rubensworks moved this to To Do (prio:low) in Maintenance May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: To Do (prio:low)
Development

No branches or pull requests

2 participants