Malformed blazegraph INSERT query
Issue description
In blaze logs I can see it fails to insert a specific KC due to the malformed query, looks like some char needs to be escaped. UAL - did:dkg:otp:2043/0x8f678eb0e57ee8a109b295710e23076fa3a443fe/3620785
ERROR: BigdataRDFServlet.java:216: cause=java.util.concurrent.ExecutionException: org.openrdf.query.MalformedQueryException: Lexical error at line 19, column 145. Encountered: "U" (85), after : ""@ChatDKG, how can we train AI Agents to reason with transparency? \", query=SPARQL-UPDATE: updateStr= PREFIX schema: http://schema.org/ INSERT DATA { ...
log - malformed_query_insert.txt
Specifications
- Node version: 8.0.11+hotfix.1
- Platform: Ubuntu
- Node wallet:
- Node libp2p identity:
Hey @botnumberseven thanks for reporting, we will investigate
Hey @botnumberseven,
I'd like to ask a few questions so I can better understand the issue you are facing; - What version of dkg.js are you using? - What version of ot-node are you using? - Where was this insert triggered from? Do you maybe have a JSON-LD you can provide us?
We do have emoji support, so it's weird the query broke due to an emoji character.
@marko03kostic It's not my asset, so I don't know how it was published. But considering the data of the asset "@ChatDKG, how can we train AI Agents to reason with transparency?", I'd assume that came from twitter bot. I was running whatever the latest version of otnode by the date of reporting. My node updates pretty fast.
Btw, I don't think it's my node issue. https://dkg.origintrail.io/explore?ual=did:dkg:otp:2043/0x8f678eB0E57ee8A109B295710E23076fA3a443fe/3620785 this is the asset in question from the original issue, as I can see explorer also fails to show it. I'd assume none of the nodes inserted it. I also can not GET it with dkg.py (DKG_CLIENT_ERROR | Unable to find assertion on the network!)
And I've seen a lot of these issues in my blazegraph, and all of them were from twitter bot.