From d549a93b91b99dabd073759cd8fd958e6eb5b3de Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 18 Oct 2019 21:47:14 +0200 Subject: Normalise away rdf:langString datatype Depending on how you read the specifications, a rdf:langString isn't identical to an xsd:string, but an rdf:langString must have a non-empty language tag so having this datatype doesn't really make any sense anyway. --- src/normalise.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/normalise.c b/src/normalise.c index 34f97f71..bdf6d871 100644 --- a/src/normalise.c +++ b/src/normalise.c @@ -217,6 +217,8 @@ serd_node_normalise(const SerdEnv* env, const SerdNode* const node) INTEGER_TYPE_LEN, (int (*)(const void*, const void*))strcmp)) { result = serd_normalise_integer(str, datatype); + } else if (!strcmp(datatype_uri, NS_RDF "langString")) { + result = serd_new_string(serd_node_string(node)); } serd_node_free(datatype); -- cgit v1.2.1