-
Notifications
You must be signed in to change notification settings - Fork 98
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
has_datatype? returns false when datatype is XMLSchema#string #396
Comments
https://github.com/ruby-rdf/rdf/blob/develop/lib/rdf/model/literal.rb#L342-L351 States that strings are excluded for historical reasons. Can someone elaborate? |
The notion that a literal with datatype As you note, In RDF 1.0, and normatively, but not practically, in SPARQL 1.1, Much 1.0 code that looked to distinguish between datatyped literals, and literals with no datatype with or without a language would make use of this. And, serializations of literals datatype |
proposing to close with no changes, per @gkellogg's comment. the main alternative seems to be to deprecate and remove |
Description
I want to apply ldpath rules that limit returned results to objects with type
xsd:string
. But I am not able to create a graph with literals that have datatypexsd:string
that will return true fordatatype?
.The check I want to use is...
There are multiple literals that have datatype
http://www.w3.org/2001/XMLSchema#string
, but none match because in all casesrdf_literal.has_datatype?
returns false.Examples
Numeric is auto-assigned a datatype.
String is not auto-assigned a datatype... sort of?
Cannot explicitly assign a datatype by setting a language.
Cannot explicitly assign a datatype to a string literal.
The text was updated successfully, but these errors were encountered: