File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
morph-base/src/main/scala/es/upm/fi/dia/oeg/morph/base Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -128,14 +128,14 @@ object GeneralUtility {
128
128
GeneralUtility .createBlankNode(id.getLabelString());
129
129
}
130
130
else if (rdfNode.isLiteral()) {
131
- /*
132
131
val literalNode = rdfNode.asLiteral();
132
+ val nodeLexicalForm = literalNode.getLexicalForm();
133
133
val datatype = literalNode.getDatatype();
134
134
val lang = literalNode.getLanguage();
135
135
136
- val literalValue = literalNode.getValue();
137
- val literalValueString = literalValue.toString();
138
-
136
+ // val literalValue = literalNode.getValue();
137
+ // val literalValueString = literalValue.toString();
138
+ val literalValueString = nodeLexicalForm;
139
139
140
140
val literalString = if (datatype == null ) {
141
141
if (lang == null || lang.equals(" " )) {
@@ -148,9 +148,8 @@ object GeneralUtility {
148
148
}
149
149
150
150
literalString
151
- */
152
151
153
- rdfNode.asNode().toString();
152
+ // rdfNode.asNode().toString();
154
153
}
155
154
else { rdfNode.toString()}
156
155
}
You can’t perform that action at this time.
0 commit comments