From 56e03fa1bc9f50f06083127999eeb17faf8203ec Mon Sep 17 00:00:00 2001 From: Sven Hertling Date: Wed, 13 Nov 2019 14:20:59 +0100 Subject: [PATCH] quadmapper writes language literals correctly --- .../scala/org/dbpedia/extraction/scripts/QuadMapper.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/src/main/scala/org/dbpedia/extraction/scripts/QuadMapper.scala b/scripts/src/main/scala/org/dbpedia/extraction/scripts/QuadMapper.scala index 0e2023edaf..e7523dc58a 100644 --- a/scripts/src/main/scala/org/dbpedia/extraction/scripts/QuadMapper.scala +++ b/scripts/src/main/scala/org/dbpedia/extraction/scripts/QuadMapper.scala @@ -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"