diff options
author | Dave Beckett <dave@dajobe.org> | 2010-01-06 18:04:06 -0800 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2010-01-06 18:04:06 -0800 |
commit | 65ba48bced126ed278c706bdcbc29a6ceff3abd2 (patch) | |
tree | d82ee541c4424e2a6b06d556baee8a4d94b7a6a1 /src/raptor_serialize_ntriples.c | |
parent | 8e25967e7b0fb7aee27d1d6dd45446256a99bb54 (diff) | |
download | raptor-65ba48bced126ed278c706bdcbc29a6ceff3abd2.tar.gz |
raptor_identifier_type loses the RAPTOR_IDENTIFIER_TYPE_ORDINAL value.
raptor_identifier loses ordinal field.
Consequent removal of RAPTOR_IDENTIFIER_TYPE_ORDINAL from cases
especially handling predicates.
(raptor_rdfxml_end_element_grammar, raptor_rdfxml_generate_statement,
raptor_rdfxml_process_property_attributes,
raptor_rdfxml_serialize_statement): Most changes were made here to
generate a URI instead of the ordinal integers from the various
rdf:li element forms.
Multiple serializers are now simpler in not having to check for
predicate (or even subject/object) ordinals. Several
if ordinal {ordinal handling } .. else {uri handling}
were removed.
rdfdiff lost several checks for ordinal/resource alternatives.
(rdfdiff_ordinal_equals_resource): Deleted.
Diffstat (limited to 'src/raptor_serialize_ntriples.c')
-rw-r--r-- | src/raptor_serialize_ntriples.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/raptor_serialize_ntriples.c b/src/raptor_serialize_ntriples.c index b1d2dfdf..b5ab11ae 100644 --- a/src/raptor_serialize_ntriples.c +++ b/src/raptor_serialize_ntriples.c @@ -152,15 +152,6 @@ raptor_iostream_write_statement_part_ntriples(raptor_world* world, raptor_iostream_write_string(iostr, term); break; - case RAPTOR_IDENTIFIER_TYPE_ORDINAL: - raptor_iostream_write_counted_string(iostr, "<_", 1); - raptor_iostream_write_counted_string(iostr, raptor_rdf_namespace_uri, - raptor_rdf_namespace_uri_len); - raptor_iostream_write_counted_string(iostr, "_", 1); - raptor_iostream_write_decimal(iostr, *((int*)term)); - raptor_iostream_write_byte(iostr, '>'); - break; - case RAPTOR_IDENTIFIER_TYPE_RESOURCE: raptor_iostream_write_byte(iostr, '<'); term = raptor_uri_as_counted_string_v2(world, (raptor_uri*)term, &len); |