Casting literal with content to rdf:HTML datatype leads incorrectly to empty literal · Issue #2475 · RDFLib/rdflib (original) (raw)
Casting a literal to rdf:HTML datatype leads incorrectly to an empty literal.
Example code
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select * where {
bind(strdt("<body>", rdf:HTML) as ?tag1) # incorrectly disappearing literal
bind("<body>" as ?tag2) # correctly appearing literal
}
Expected results for ?tag1 and ?tag2
"<body>"^^rdf:HTML
"<body>"
Instead we get:
""^^rdf:HTML
"<body>"