File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/java/fr/inria/corese/core/next/impl/io/serialization/util Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11package fr .inria .corese .core .next .impl .io .serialization .util ;
22
33import fr .inria .corese .core .next .api .*;
4+ import fr .inria .corese .core .next .impl .common .vocabulary .XSD ;
45
56import java .util .Map ;
67
@@ -120,7 +121,7 @@ public static boolean isBlankNode(Value value) {
120121
121122 if (value instanceof Resource ) {
122123 String str = value .stringValue ();
123- if (str .startsWith (SerializationConstants .BNODE_PREFIX )) {
124+ if (str .startsWith (SerializationConstants .BLANK_NODE_PREFIX )) {
124125 return true ;
125126 }
126127 }
@@ -202,11 +203,11 @@ private static String serializeLiteral(Literal literal) {
202203
203204 // If language tag exists, use it (language takes precedence over datatype)
204205 if (language != null && !language .isEmpty ()) {
205- sb .append (SerializationConstants .AT_SIGN ).append (language );
206+ sb .append (SerializationConstants .AT ).append (language );
206207 return sb .toString ();
207208 }
208209
209- if (datatype != null && !datatype .equals (SerializationConstants . XSD_STRING )) {
210+ if (datatype != null && !datatype .equals (XSD . xsdString . getIRI (). stringValue () )) {
210211 sb .append (SerializationConstants .DATATYPE_SEPARATOR )
211212 .append (SerializationConstants .LT )
212213 .append (datatype )
You can’t perform that action at this time.
0 commit comments