summaryrefslogtreecommitdiff
path: root/src/raptor_librdfa.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2010-01-10 00:02:14 -0800
committerDave Beckett <dave@dajobe.org>2010-01-10 00:02:14 -0800
commit13c4382c26e566d5c6537df4374175d876479dcf (patch)
treecc2d98edb731d8cdabc9d018572266c1eec484d8 /src/raptor_librdfa.c
parent6acba20523bc72cb9c2645170834af4a9fc24d78 (diff)
downloadraptor-13c4382c26e566d5c6537df4374175d876479dcf.tar.gz
New raptor_uri implementation - reference counted uris with interning.
Based on librdf_uri reference counted uris with interning in an librdf_hash, this uses a raptor_avltree to store/lookup previously seen uris so that a single URI string has one raptor_uri* object. Removed initial world parameter from all raptor_uri class methods. Update all callers of above. rdfdiff debug prints also updated to generate ntriples
Diffstat (limited to 'src/raptor_librdfa.c')
-rw-r--r--src/raptor_librdfa.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/raptor_librdfa.c b/src/raptor_librdfa.c
index 611b1148..0cee0800 100644
--- a/src/raptor_librdfa.c
+++ b/src/raptor_librdfa.c
@@ -175,13 +175,13 @@ raptor_librdfa_generate_statement(rdftriple* triple, void* callback_data)
rdfa_free_triple(triple);
if(subject_uri)
- raptor_free_uri_v2(parser->world, subject_uri);
+ raptor_free_uri(subject_uri);
if(predicate_uri)
- raptor_free_uri_v2(parser->world, predicate_uri);
+ raptor_free_uri(predicate_uri);
if(object_uri)
- raptor_free_uri_v2(parser->world, object_uri);
+ raptor_free_uri(object_uri);
if(datatype_uri)
- raptor_free_uri_v2(parser->world, datatype_uri);
+ raptor_free_uri(datatype_uri);
}
@@ -209,7 +209,7 @@ raptor_librdfa_parse_start(raptor_parser* rdf_parser)
locator->byte = 0;
if(rdf_parser->base_uri)
- base_uri_string = (char*)raptor_uri_as_string_v2(rdf_parser->world, rdf_parser->base_uri);
+ base_uri_string = (char*)raptor_uri_as_string(rdf_parser->base_uri);
if(librdfa_parser->context)
rdfa_free_context(librdfa_parser->context);