summaryrefslogtreecommitdiff
path: root/src/raptor_concepts.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2013-11-29 09:58:10 -0800
committerDave Beckett <dave@dajobe.org>2013-11-29 10:00:59 -0800
commit41cec88980b012bc5340a2ee561695251b9ff502 (patch)
treea405e816dc3c6acfc5fe0ec293767856f17189dc /src/raptor_concepts.c
parentfdbf858ceace9b1600898ace0834f02d26ab427a (diff)
downloadraptor-41cec88980b012bc5340a2ee561695251b9ff502.tar.gz
Use XSD namespace, datatype URIs from raptor_world
Diffstat (limited to 'src/raptor_concepts.c')
-rw-r--r--src/raptor_concepts.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/raptor_concepts.c b/src/raptor_concepts.c
index 4f4cbcd8..443edb03 100644
--- a/src/raptor_concepts.c
+++ b/src/raptor_concepts.c
@@ -146,11 +146,24 @@ raptor_concepts_init(raptor_world* world)
}
world->xsd_namespace_uri = raptor_new_uri(world, raptor_xmlschema_datatypes_namespace_uri);
+ if(!world->xsd_namespace_uri)
+ return 1;
world->xsd_boolean_uri = raptor_new_uri_from_uri_local_name(world, world->xsd_namespace_uri, (const unsigned char*)"boolean");
+ if(!world->xsd_boolean_uri)
+ return 1;
+
world->xsd_decimal_uri = raptor_new_uri_from_uri_local_name(world, world->xsd_namespace_uri, (const unsigned char*)"decimal");
+ if(!world->xsd_decimal_uri)
+ return 1;
+
world->xsd_double_uri = raptor_new_uri_from_uri_local_name(world, world->xsd_namespace_uri, (const unsigned char*)"double");
+ if(!world->xsd_double_uri)
+ return 1;
+
world->xsd_integer_uri = raptor_new_uri_from_uri_local_name(world, world->xsd_namespace_uri, (const unsigned char*)"integer");
+ if(!world->xsd_integer_uri)
+ return 1;
return 0;
}