summaryrefslogtreecommitdiff
path: root/src/raptor_concepts.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2013-11-29 09:52:22 -0800
committerDave Beckett <dave@dajobe.org>2013-11-29 10:00:59 -0800
commitfdbf858ceace9b1600898ace0834f02d26ab427a (patch)
tree16367dd737ded2f8c782bf83853703c23e91f810 /src/raptor_concepts.c
parent80c5e6f51788c1ae05eb73fbcf38bcbfd2e63abc (diff)
downloadraptor-fdbf858ceace9b1600898ace0834f02d26ab427a.tar.gz
Declare xsd datatypes uris in raptor_world
Diffstat (limited to 'src/raptor_concepts.c')
-rw-r--r--src/raptor_concepts.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/raptor_concepts.c b/src/raptor_concepts.c
index 3532390b..4f4cbcd8 100644
--- a/src/raptor_concepts.c
+++ b/src/raptor_concepts.c
@@ -145,6 +145,13 @@ raptor_concepts_init(raptor_world* world)
}
}
+ world->xsd_namespace_uri = raptor_new_uri(world, raptor_xmlschema_datatypes_namespace_uri);
+
+ world->xsd_boolean_uri = raptor_new_uri_from_uri_local_name(world, world->xsd_namespace_uri, (const unsigned char*)"boolean");
+ world->xsd_decimal_uri = raptor_new_uri_from_uri_local_name(world, world->xsd_namespace_uri, (const unsigned char*)"decimal");
+ world->xsd_double_uri = raptor_new_uri_from_uri_local_name(world, world->xsd_namespace_uri, (const unsigned char*)"double");
+ world->xsd_integer_uri = raptor_new_uri_from_uri_local_name(world, world->xsd_namespace_uri, (const unsigned char*)"integer");
+
return 0;
}
@@ -164,5 +171,16 @@ raptor_concepts_finish(raptor_world* world)
if(world->terms[i])
raptor_free_term(world->terms[i]);
}
-
+
+ if(world->xsd_boolean_uri)
+ raptor_free_uri(world->xsd_boolean_uri);
+ if(world->xsd_decimal_uri)
+ raptor_free_uri(world->xsd_decimal_uri);
+ if(world->xsd_double_uri)
+ raptor_free_uri(world->xsd_double_uri);
+ if(world->xsd_integer_uri)
+ raptor_free_uri(world->xsd_integer_uri);
+
+ if(world->xsd_namespace_uri)
+ raptor_free_uri(world->xsd_namespace_uri);
}