openlink / virtuoso-opensource

Virtuoso is a high-performance and scalable Multi-Model RDBMS, Data Integration Middleware, Linked Data Deployment, and HTTP Application Server Platform
https://vos.openlinksw.com
Other
855 stars 211 forks source link

Local names - non-alphanumeric characters #318

Open schwarja opened 9 years ago

schwarja commented 9 years ago

Query:

PREFIX : <http://www.uochb.org/chebi/1.0/terms#>
SELECT DISTINCT ?S FROM <http://localhost:8890/chebi_db> WHERE
{
    ?X :chebi\=Name / :nameValue ?S.
}

Result:

Virtuoso 37000 Error SP030: SPARQL compiler, line 0: Bad character '\' (0x5c) in SPARQL expression at '\'

But according to SPARQL 1.1 domentation (http://www.w3.org/TR/sparql11-query/#prefNames):

SPARQL local names also allow the non-alphanumeric characters allowed in IRIs via backslash character escapes (e.g. ns:id\=123).
HughWilliams commented 9 years ago

This issue has been recreated and reported to development to look into ...

lechatpito commented 8 years ago

+1 any development on this issue? Thanks.

johannamelly commented 5 years ago

Experiencing the same issue when querying DBPedia! Query:

    PREFIX : <http://dbpedia.org/resource/>
    SELECT DISTINCT ?s ?p ?o WHERE {
       {
           ?s ?p ?o
           FILTER (?s=:Grimaldi_\(crater\))
       }
    }

Result:

"Virtuoso 37000 Error SP030: SPARQL compiler, line 0: Bad character '\\' (0x5c) in SPARQL expression at '\\'\n\nSPARQL query:\n\n [...]
TallTed commented 4 years ago

Fixed 2019-04-01 in develop/7, by https://github.com/openlink/virtuoso-opensource/commit/6f46c8b944dec7cef9b28ff152f5853fa77f627f

Merge to stable/7 is still pending.

jbulow commented 4 years ago

Still in issue in stable/7. When is this fix planned to be merged to stable/7?