Changeset: b38cc92636cf for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b38cc92636cf
Modified Files:
monetdb5/extras/rdf/rdf_shredder.c
Branch: rdf
Log Message:
Set objType to String for literal values of length > 100
diffs (26 lines):
diff --git a/monetdb5/extras/rdf/rdf_shredder.c
b/monetdb5/extras/rdf/rdf_shredder.c
--- a/monetdb5/extras/rdf/rdf_shredder.c
+++ b/monetdb5/extras/rdf/rdf_shredder.c
@@ -201,8 +201,11 @@ getObjectType_and_Value(unsigned char* o
long realLng;
len = strlen((str)objStr);
-
- if (len > 20){
+ if (len > 100 || len <= 20){
+ //String is too long for any kind of data or there is no
XMLschema
+ obType = STRING;
+ }
+ else{ //(len > 20)
endpart = objStr + (len - 19); /* XMLSchema#dateTime> */
/* printf("Original: %s --> substring: %s \n", (str)objStr,
(str)endpart); */
@@ -265,8 +268,6 @@ getObjectType_and_Value(unsigned char* o
/* printf("%s: String \n", objStr); */
}
}
- else // There is no XMLschema
- obType = STRING;
return obType;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list