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

Support date/datetime and RDF types generally as query parameters #70

Open
bryonjacob opened this issue Oct 9, 2017 · 1 comment
Open

Comments

@bryonjacob
Copy link
Contributor

Support for more possible types as query parameters should be added.

date and datetime should map naturally to their XSD counterparts:
https://docs.python.org/3/library/datetime.html

To give the developer complete capability to express values, add RdfLiteralParam which will have two parts value and type where value is a string and type is a URI - and which will render into "{value}"^^<{type}>. Existing code in the datadotworld.convert_to_sparql_literal should be refactored to use this class.

@shawnsmith
Copy link

For completeness it should support language as well, eg. "{value}"@{lang}.

Also, it looks to me like the current code doesn't escape special characters? https://github.com/datadotworld/dw-jdbc/blob/master/src/main/java/world/data/jdbc/internal/types/NTriplesFormat.java#L74-L109

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

2 participants