Skip to content

Commit

Permalink
quadmapper writes language literals correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-h committed Nov 13, 2019
1 parent 2f3899e commit 56e03fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ class QuadMapper(file: FileLike[File] = null, preamble: String = null) extends Q
}
else {
sb append '"' append quad.value append '"'
if (quad.datatype != "http://www.w3.org/2001/XMLSchema#string") sb append "^^<" append quad.datatype append "> "
else if (quad.language != null) sb append '@' append quad.language append ' '
if (quad.language != null) sb append '@' append quad.language append ' '
else if (quad.datatype != "http://www.w3.org/2001/XMLSchema#string") sb append "^^<" append quad.datatype append "> "
}
if (quad.context != null) sb append '<' append quad.context append "> "
sb append ".\n"
Expand Down

0 comments on commit 56e03fa

Please sign in to comment.