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

Local names - non-alphanumeric characters #318

Open
schwarja opened this issue Jan 29, 2015 · 5 comments
Open

Local names - non-alphanumeric characters #318

schwarja opened this issue Jan 29, 2015 · 5 comments

Comments

@schwarja
Copy link

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
Copy link
Collaborator

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

@lechatpito
Copy link

+1 any development on this issue? Thanks.

@johannamelly
Copy link

johannamelly commented Mar 25, 2019

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
Copy link
Collaborator

TallTed commented Oct 10, 2019

Fixed 2019-04-01 in develop/7, by 6f46c8b

Merge to stable/7 is still pending.

@jbulow
Copy link

jbulow commented Jan 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants