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

Explicit cast for xsd:nonNegativeInteger and other SPARQL-1.1-supported datatypes #638

Closed
abrokenjester opened this issue Nov 1, 2016 · 0 comments
Assignees
Labels
🐞 bug issue is a bug
Milestone

Comments

@abrokenjester
Copy link
Contributor

abrokenjester commented Nov 1, 2016

SPARQL 1.1 specifies that it supports a subset of XPath 2.0 constructor functions (i.e. casting) on all SPARQL operand datatypes, as well as any additional datatypes imposed by the RDF data model. These datatypes are listed here: https://www.w3.org/TR/sparql11-query/#operandDataTypes .

Although implicit conversion is supported, and explicit casting is supported for the SPARQL operand dataypes, RDF4J currently has no explicit casting operators for the additional datatypes:

  • xsd:nonPositiveInteger
  • xsd:negativeInteger
  • xsd:long
  • xsd:int
  • xsd:short
  • xsd:byte
  • xsd:nonNegativeInteger
  • xsd:unsignedLong
  • xsd:unsignedInt
  • xsd:unsignedShort
  • xsd:unsignedByte
  • xsd:positiveInteger
@abrokenjester abrokenjester added the 🐞 bug issue is a bug label Nov 1, 2016
@abrokenjester abrokenjester self-assigned this Nov 16, 2016
@abrokenjester abrokenjester added this to the 2.1.3 milestone Nov 16, 2016
abrokenjester added a commit that referenced this issue Nov 17, 2016
Signed-off-by: Jeen Broekstra <jeen.broekstra@gmail.com>
abrokenjester added a commit that referenced this issue Nov 17, 2016
…d:integer

Signed-off-by: Jeen Broekstra <jeen.broekstra@gmail.com>
abrokenjester added a commit that referenced this issue Nov 17, 2016
Signed-off-by: Jeen Broekstra <jeen.broekstra@gmail.com>
abrokenjester added a commit that referenced this issue Nov 24, 2016
Fix #638: casting for derived xsd:integer datatypes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug issue is a bug
Projects
None yet
Development

No branches or pull requests

1 participant