summaryrefslogtreecommitdiff
path: root/src/raptor_json.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2010-12-29 08:40:32 -0800
committerDave Beckett <dave@dajobe.org>2010-12-29 08:40:32 -0800
commitacf3ae04fe1f35d7f30e7cffe1ead3077bc94053 (patch)
tree4dc7d0e13bc82e98131e9b6008a57a1e291953c5 /src/raptor_json.c
parentca144ac7b2eef234c0ce70dd8f0dc96099c77c88 (diff)
downloadraptor-acf3ae04fe1f35d7f30e7cffe1ead3077bc94053.tar.gz
Update parsers and serializers to use uri_strings for syntax description.
Diffstat (limited to 'src/raptor_json.c')
-rw-r--r--src/raptor_json.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/raptor_json.c b/src/raptor_json.c
index f76072cf..f62feba0 100644
--- a/src/raptor_json.c
+++ b/src/raptor_json.c
@@ -703,6 +703,11 @@ raptor_json_parse_recognise_syntax(raptor_parser_factory* factory,
static const char* const json_names[2] = { "json", NULL };
+static const char* const json_uri_strings[2] = {
+ "http://n2.talis.com/wiki/RDF_JSON_Specification",
+ NULL
+};
+
#define JSON_TYPES_COUNT 2
static const raptor_type_q json_types[JSON_TYPES_COUNT + 1] = {
{ "application/json", 16, 1},
@@ -718,10 +723,9 @@ raptor_json_parser_register_factory(raptor_parser_factory *factory)
factory->desc.names = json_names;
factory->desc.mime_types = json_types;
- factory->desc.mime_types_count = JSON_TYPES_COUNT;
factory->desc.label = "RDF/JSON (either Triples or Resource-Centric)";
- factory->desc.uri_string = NULL; /* "http://n2.talis.com/wiki/RDF_JSON_Specification"; */
+ factory->desc.uri_strings = json_uri_strings;
factory->desc.flags = 0;