aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-18 21:47:14 +0200
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:59 +0100
commitd549a93b91b99dabd073759cd8fd958e6eb5b3de (patch)
treecdd91df4839d07552604ed5b007e242b2b008b96 /src
parent80fb6d0ff7c093466ac70b38be5676b868516c08 (diff)
downloadserd-d549a93b91b99dabd073759cd8fd958e6eb5b3de.tar.gz
serd-d549a93b91b99dabd073759cd8fd958e6eb5b3de.tar.bz2
serd-d549a93b91b99dabd073759cd8fd958e6eb5b3de.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/normalise.c2
1 files changed, 2 insertions, 0 deletions
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);