Skip to content

Commit

Permalink
put again the fix of the string datatype for 4store and Virtuoso
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed May 1, 2024
1 parent c96da3a commit 59251e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/sparql/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,11 @@ def self.serialize_patterns(patterns, use_vars = false)
if i == 1
SPARQL::Client.serialize_predicate(v)
else
SPARQL::Client.serialize_value(v, use_vars)
sv = SPARQL::Client.serialize_value(v, use_vars)
if v.is_a?(RDF::Literal) && v.respond_to?(:original_datatype) && v.original_datatype&.to_s.eql?(RDF::XSD.string.to_s)
sv = "#{sv}^^<http://www.w3.org/2001/XMLSchema#string>" # 4store and Virtuoso need explicit string type
end
sv
end
end
end
Expand Down

0 comments on commit 59251e5

Please sign in to comment.