diff options
author | Dave Beckett <dave@dajobe.org> | 2010-01-18 22:10:29 -0800 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2010-01-18 22:10:29 -0800 |
commit | fb9a7800d441c5e72a203bfc6b6383bca06fe262 (patch) | |
tree | 07e90c2e89aec6d12b3d5d4b4dfc0a03589b6518 /src/raptor_serialize_rss.c | |
parent | 0638611ce4728403f3252c2322c096d7fa25ab0b (diff) | |
download | raptor-fb9a7800d441c5e72a203bfc6b6383bca06fe262.tar.gz |
Update rdf namespace concepts to add PlainLiteral, share across parsers
raptor_rdf_ns_term_id gains RDF_NS_PlainLiteral; reordered to put
together with RDF_NS_XMLLiteral, the other datatype.
raptor_world gains an array of pointers to raptor_uri* concepts.
turtle_parser loses nil_uri, first_uri, rest_uri that are now
available via the macros.
rss_parser loses rdf:type and rdf:Seq concept URIs that are now
available via the macros.
Added macros RAPTOR_RDF_{name}_URI(world) to get pointer to static
raptor_uri* for NS terms.
RDF/XML parser cuts down to just 5 DAML NS URIs to manage itself.
(raptor_new_uri_for_rdf_concept): now takes const name.
(raptor_concepts_init, raptor_concepts_finish): Added.
(raptor_world_open): Call raptor_concepts_init; re-order to init URIs
then concepts first.
(raptor_free_world): Call raptor_concepts_finish
Update RDF/XML, RSS and Turtle parsers to use shared URIs.
Diffstat (limited to 'src/raptor_serialize_rss.c')
-rw-r--r-- | src/raptor_serialize_rss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raptor_serialize_rss.c b/src/raptor_serialize_rss.c index 442faa51..9f6ef4d5 100644 --- a/src/raptor_serialize_rss.c +++ b/src/raptor_serialize_rss.c @@ -803,14 +803,14 @@ raptor_rss10_serialize_statement(raptor_serializer* serializer, } if(!raptor_uri_equals(statement->predicate->value.uri, - RAPTOR_RSS_RDF_type_URI(rss_model))) + RAPTOR_RDF_type_URI(serializer->world))) goto savetriple; /* Look for triple (?resource rdf:type rdf:Seq) */ if(statement->object->type == RAPTOR_TERM_TYPE_URI && raptor_uri_equals(statement->object->value.uri, - RAPTOR_RSS_RDF_Seq_URI(rss_model))) { + RAPTOR_RDF_Seq_URI(serializer->world))) { if(statement->subject->type == RAPTOR_TERM_TYPE_BLANK) { RAPTOR_DEBUG2("Saw rdf:Seq with blank node %s\n", |