Skip to content

How to handle and/or report IRI values of sh:annotationProperty that would lead to invalid SPARQL variable? #378

@ajnelson-nist

Description

@ajnelson-nist

One of those niche corner cases: http://example.org/☃ (snowman, code point U+2603) is a valid IRI (RFC 3987, Section 2.2, grammar rule ucschar). cannot be a SPARQL variable name (SPARQL grammar rule VARNAME). Do we need to leave a reminder here of SPARQL's VARNAME grammar rule? If someone does try some unicode IRI---probably not an emoji , but perhaps there would be non-Latin use cases---and it wouldn't work in SPARQL, should we specify that it's the SHACL processor's responsibility to catch this at shapes graph load-time; or, instead warn the shapes graph authors that incompatible IRIs would likely be reported by the SPARQL engine (i.e., SHACL delegating to SPARQL)? Note the latter case leaves the shapes graph users scratching their heads if the shapes graph authors don't see the warning.

Originally posted by @ajnelson-nist in #330 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    SPARQLFor SHACL 1.2 SPARQL extensions spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions