Redland
view release on metacpan or search on metacpan
redland/raptor/ChangeLog.4 view on Meta::CPAN
* libraptor.3, raptor.h: Added raptor_syntaxes_enumerate
* raptor_general.c (raptor_parser_register_factory):
Add mime_type and uri_string args, both optional.
(raptor_syntaxes_enumerate): Added to get syntax name, label,
mime_type or uri_string - all optional.
(raptor_parsers_enumerate): Uses raptor_syntaxes_enumerate.
* raptor_internal.h:
Store parser mime_type, URI in raptor_parser_factory
Update raptor_parser_register_factory to take mime_type,
uri_string args.
* configure.ac: Bumped version to 1.2.0
* Snapshotted raptor_1_1_0 for 1.1.0 release
* configure.ac:
Update RAPTOR_LIBTOOL_VERSION to reflect interfaces added,
none removed giving current 2:0:1
* NEWS.html: 1.1.0 released 2003-12-31
* libraptor.3: nroff/man style tweaks
2003-12-31 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* libraptor.3: nroff/man style tweaks
2003-12-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* NEWS.html: Link to W3C docs for 1.1.0
* configure.ac: words
* configure.ac: Make flex version warnings mention N-Triples Plus more
2003-12-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* NEWS.html: Link to W3C docs for 1.1.0
* configure.ac: Make flex version warnings mention N-Triples Plus more
2003-12-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* TODO.html, README.html, NEWS.html, LICENSE.html, INSTALL.html:
XHTML 1 strict
* NEWS.html: Prepare for 1.1.0
* libraptor.3: bump date
* raptor_stringbuffer.c (main): Do not free as_string returned strings
* raptor_stringbuffer.c: brackets
* raptor_stringbuffer.c (raptor_free_stringbuffer):
Free any constructed string.
* raptor_xml_writer.c:
Use raptor_stringbuffer to better grow the output cdata.
* raptor_stringbuffer.c: stringbuffer now uses unsigned char
Removed raptor_new|free_stringbuffer_node - used once, now inlined.
(raptor_stringbuffer_append_string_common): Added with
common append code merged here.
(raptor_stringbuffer_append_counted_string,
raptor_stringbuffer_append_string): Added do_copy arg.
(main): Test code updated for api changes.
* raptor_internal.h:
Added prototypes for raptor_stringbuffer class to internal API
* Makefile.am:
Re-added raptor_stringbuffer.c and raptor_stringbuffer_test
2003-12-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rapper.1: Updated for 1.1.0, -a is gone. Added ntriples-plus
* libraptor.3: parser name is ntriples-plus
* libraptor.3: Updated for 1.1.0
* raptor.h: remove raptor_namespaces_end_namespace - does not exist.
2003-12-22 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* Makefile.am:
Remove raptor_stringbuffer.c/test from dist - not used at present.
* configure.ac:
Added --with-xml-names to choose XML 1.0 name checking (default) or 1.1
* TODO.html: Added --enable-xml-1-1-names and updated to XML 1.1 PRs
* raptor_utf8.c (raptor_unicode_is_namestartchar):
Update to Namespaces in XML 1.1 WD
http://www.w3.org/TR/2003/PR-xml-names11-20031105/#NT-NCNameStartChar
and Extensible Markup Language (XML) 1.1 PR
http://www.w3.org/TR/2003/PR-xml11-20031105/#NT-NameStartChar
(raptor_unicode_is_namechar): Updated comment, no code changes
needed.
* tests/ntriplesplus/Makefile.am: No check-warn-rdf tests yet
* TODO.html: Added --disable-nfc-check to disable Unicode NFC checking.
* raptor_utf8.c:
Use RAPTOR_NFC_CHECK to wrap any use of the glib g_utf8_normalize.
* configure.ac: Define RAPTOR_NFC_CHECK when NFC check is needed
* configure.ac:
Added --disable-nfc-check to disable Unicode NFC checking even if a
suitable glib is present and providing it. Otherwise, autodetects
as before.
* TODO.html: I claim the CDATA counting problem with libxml is a
libxml bug.
redland/raptor/ChangeLog.4 view on Meta::CPAN
Lots of casts for str* function args, return values between
unsigned char* as used for UTF8 and URI strings and char* used by
str* functions.
Some further casts for strings from XML.
* raptor_www_test.c (write_bytes_fh): No return value.
(main) Test code casts unsigned char* for URI strings
Fix write_content_type and write_bytes_fh set handler methods.
* raptor_utf8.c (raptor_unicode_char_to_utf8): unsigned char* arg.
(raptor_utf8_is_nfc): unsigned int, cast for unsigned char*
* raptor_sequence.c (raptor_sequence_ensure):
Use void** not void*. C++ cares.
(main): Test code casts to void* for args.
* raptor_qname.c (raptor_qname_string_to_uri):
cast for signed/unsigned int
comparison.
* raptor_locator.c (raptor_format_locator):
Use raptor_uri_as_counted_string to save a strlen.
* raptor_identifier.c:
(raptor_identifier_print) fputs arg cast [function for
RAPTOR_DEBUG only]
* raptor_general.c (raptor_parsers_enumerate): Unsigned int.
(raptor_parse_uri_write_bytes): unsigned char* cast.
Declare raptor_xml_literal_datatype_uri_string.
(raptor_print_statement_detailed): Replace several fprintf with fputs
and fputc.
(raptor_print_ntriples_string): Use unsigned long/size_t for counts.
(raptor_statement_part_as_counted_string): unsigned char*
Use raptor_xml_literal_datatype_uri_string.
(raptor_statement_part_as_string): unsigned char*
(raptor_print_statement_part_as_ntriples): unsigned char*. Replace
several fprintf with fputs and fputc.
Use raptor_xml_literal_datatype_uri_string
(raptor_default_generate_id_handler): Casts for str* functions
(raptor_check_ordinal): unsigned char*
* ntriples_parse.c:
(raptor_ntriples_generate_statement,
raptor_ntriples_string_as_utf8_string, raptor_ntriples_parse_line):
Updated to take/return unsigned char* args and internals. Update
raptor_uri calls for similar changes.
Use raptor_xml_literal_datatype_uri_string
Lots of casts for str* functions char* arguments.
* Makefile.am: Remove maintainer only n3 lex/yacc rules (flex/bison)
Post process the bison output to remove unused label to make g++
happier.
* raptor_internal.h:
Added raptor_xml_literal_datatype_uri_string for the RDF datatype
literal URI string, used several times.
raptor_check_ordinal takes unsigned char*
A couple of lengths, counts become unsigned int.
raptor_unicode_char_to_utf8, raptor_format_sax2_element,
raptor_xml_writer_cdata, raptor_xml_writer_comment,
raptor_xml_writer_as_string changed to
take/return unsigned char* for UTF8 strings.
* raptor.h: raptor_new_uri_func, raptor_new_uri_from_local_name_func,
raptor_new_uri_relative_to_base_func, raptor_uri_as_string_func,
raptor_uri_as_counted_string_func URI factory methods
changed to all take/return unsigned char* for URI strings
raptor_statement_part_as_counted_string,
raptor_statement_part_as_string,
raptor_new_uri, raptor_new_uri_from_uri_local_name,
raptor_new_uri_relative_to_base, raptor_uri_as_string,
raptor_uri_as_counted_string
URI methods changed to take/return unsigned char* for URI strings
raptor_ntriples_string_as_utf8_string changed to return unsigned
char* for UTF8 string
raptor_uri_resolve_uri_reference, raptor_uri_filename_to_uri_string,
raptor_uri_uri_string_to_filename,
raptor_uri_uri_string_to_filename_fragment, raptor_uri_is_file_uri
Changed to use unsigned char* for URI strings, char* for filenames
2003-12-03 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* TODO.html: ntriples parser should use raptor_generate_id for bnodes
2003-12-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor_set.c (raptor_set_stats_print): Debug printing tweak.
2003-11-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor_internal.h: raptor_check_ordinal with now unsigned char* arg
raptor_sax2 content_cdata now unsigned char*
* raptor_general.c (raptor_check_ordinal): unsigned char *name
* raptor_parse.c: Lots of char/unsigned char casting.
* n3_common.h: Undo n3_syntax_error back to raptor_parser arg.
* n3_parser.y: (n3_parser_error) aka yyerror; take a void arg.
* n3_common.h:
The n3_syntax_error aka yyerror function takes a void arg.
* n3_parser.y: Casts for rdf_parser, strings.
* n3_lexer.l: Define INPUT_FN as yyinput (C++) or input (otherwise)
Add more casts for C++ near rdf_parser, yytext.
(copy_token): More casts for malloc and string functions.
(copy_string_token): More size_t, casts.
* ntriples_parse.c (raptor_ntriples_term): Use a size_t; cast for C++.
* ntriples_parse.c (raptor_ntriples_term_valid,raptor_ntriples_term):
Change argument names from class to term_class to avoid C++ keyword.
* raptor_getopt.h: Protect prototypes for C++
* raptor_stringbuffer.c: casts for RAPTOR_*ALLOC returns
* n3_parser.y: oops, raptort -> raptor
* n3_parser.y: another cast for RAPTOR_MALLOC return
* n3_parser.y: casts for RAPTOR_CALLOC returns
* configure.ac:
Move adding pkg-config glib2.0 cppflags/libs till after the other
libraries since that's more likely to be system wide and least
effect libxml2, other libraries that might be elsewhere. Mostly
affects OSX which is more sensitive to link order.
* raptor_stringbuffer.c (main): declare at start of block
* configure.ac: Check for libxml/SAX2.h - the new SAX2 API
* raptor_libxml.c:
Added a pile of libxml2_* macros to use the libxml2 SAX2 functions
when they are present, otherwise the SAX1. Not using the SAX2 parts
of the libxml2 API at present.
* strcasecmp.c: Add debug message arg casts.
* configure.ac:
Include libxml/parser.h when checking for other libxml2 headers
* ntriples_parse.c: Add some debug message arg casts.
(raptor_ntriples_parse_chunk): At end of input, check that there is
no remaining junk.
* ntriples_parse.c (raptor_ntriples_parse_chunk):
Fix line counting problems when \r\n
crosses a buffer or when a line ends at the end of a buffer.
last_char recorded in state.
* TODO.html: N-Triples Plus parser
More line counting fixes.
* README.html: Added N-Triples Plus parser
* raptor_stringbuffer.c (main): Free returned strings.
* Makefile.am:
Added raptor_stringbuffer.c raptor_stringbuffer_test code
* raptor.h: Added raptor_stringbuffer.
* raptor_stringbuffer.c: Stringbuffer class for growing strings
* raptor_libxml.c (raptor_libxml_init): With libxml2 use
raptor_xml_characters_handler for sax->characters.
* raptor_parse.c (raptor_cdata_grammar): Added is_cdata arg.
(raptor_xml_characters_handler): Added, calling raptor_cdata_grammar.
(raptor_xml_cdata_handler): Updated to call raptor_cdata_grammar with
is_cdata=1.
(raptor_xml_parse_init): With expat use raptor_xml_characters_handler
with XML_SetCharacterDataHandler.
(raptor_cdata_grammar): Tidy error reporting; do not use
raptor_xml_writer_as_string for a simple print.
* raptor_internal.h: Added raptor_xml_characters_handler prototype.
2003-11-25 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* manifest.pl: Add withdrawn tests check
2003-11-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* tests/ntriplesplus/Makefile.am:
Added more N-Triples Plus tests (1-7) and bad (0-3)
* tests/ntriplesplus/test-07.out, tests/ntriplesplus/test-07.ntp,
tests/ntriplesplus/test-06.out, tests/ntriplesplus/test-06.ntp,
tests/ntriplesplus/test-05.out, tests/ntriplesplus/test-05.ntp,
tests/ntriplesplus/test-04.out, tests/ntriplesplus/test-04.ntp,
tests/ntriplesplus/test-03.out, tests/ntriplesplus/test-03.ntp,
tests/ntriplesplus/test-02.out, tests/ntriplesplus/test-02.ntp,
tests/ntriplesplus/test-01.out, tests/ntriplesplus/test-01.ntp:
More N-Triples Plus tests
* tests/ntriplesplus/bad-00.ntp, tests/ntriplesplus/bad-01.ntp,
tests/ntriplesplus/bad-02.ntp, tests/ntriplesplus/bad-03.ntp:
N-Triples Plus bad tests
* n3_lexer.l: In prefix state, always return to initial on
matching '.', then error out.
(n3_syntax_error): Copy removed here.
(main): Init enough more of parser/locator so that n3_syntax_error
in main library can be used.
2003-11-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rdfdump.c: extra newline in version
* rdfdump.c: extra newline in help
2003-11-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* tests/Makefile.am:
Added check-ntriples-plus to check N-Triples Plus with the N-Triples
tests.
* n3_parser.y, n3_lexer.l, n3_common.h:
Added lineno to raptor_n3_parser context to track newlines for dos,
unix, mac since flex doesn't do that by default with yylineno.
* rdfdump.c: tidy help messages
* TODO.html: line counting for dos files
* ntriples_parse.c:
Track newlines correctly for \r\n across chunks; move last_nl into
ntriples parser context.
(raptor_ntriples_parse_chunk,raptor_ntriples_parse_start): Use and
init last_nl in ntriples parser context.
2003-11-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
redland/raptor/ChangeLog.4 view on Meta::CPAN
* tests/Makefile.am:
Add bad-18.rdf, bad-19.rdf for non-namespaced elements
* tests/bad-18.rdf, tests/bad-19.rdf:
Test node/property elements without namespaces fail
* raptor_internal.h:
Add raptor_parser field 'magic' for libxml2 error/warning callback
validation. and declare RAPTOR_LIBXML_MAGIC to set use there
* raptor_general.c (raptor_new_parser):
Set RAPTOR_LIBXML_MAGIC field in structure for
libxml2 error/warning callback validation.
* ntriples_parse.c (raptor_ntriples_term):
Check that the string/URI term was terminated
before the end of the string.
* tests/Makefile.am: Added bad-04.nt
* tests/bad-04.nt: Test for non-terminated URI
* raptor_libxml.c (raptor_libxml_warning,raptor_libxml_error):
Validate the ctx pointer
returned since sometimes it is a ctx, sometimes ctx->userData. The
latter is what is expected.
* tests/Makefile.am: Oops, run bad ntriples tests in N-Triples mode
* rapper.1: Added --version/-v
* rdfdump.c: Tidied up option error handling, messages.
Added --version/-v
2003-08-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* configure.ac:
Added --with-dmalloc option default auto for maintainer, no otherwise.
2003-08-25 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* configure.ac: Bumped version to 0.9.13
* Snapshotted raptor_0_9_12 for 0.9.12 release
* NEWS.html: Updated for 0.9.12
* raptor_parse.c (raptor_start_element_grammar):
With rdf:datatype, do not lose the
URI string pointer. For rdf:ID, do not allocate the URI twice.
* raptor_parse.c (raptor_generate_statement):
Do not set language when a datatype is given.
* raptor_xml_writer.c (raptor_new_xml_writer):
Initialise writer buffer to an empty string
to start (i.e. just \0).
(raptor_xml_writer_start_element): Now assume buffer is always
present, remove empty buffer case.
(raptor_xml_writer_end_element,raptor_xml_writer_cdata): Handle 0
length case, no strncpy.
* tests/Makefile.am: Added ex-51.
Fix daml+oil test.
* tests/ex-51.out, tests/ex-51.rdf: Check empty XML literal works
* tests/ex-41.out: No language for datatyped literals.
* tests/daml-oil.rdf, tests/daml-oil.out, tests/Makefile.am:
Updated to DAML+OIL schema 2001-03 as defined in
http://www.daml.org/2001/03/daml+oil-index.html
* tests/daml-oil.out, tests/daml-oil.rdf: Added 2000-11-30
http://www.cs.man.ac.uk/%7Ehorrocks/DAML-OIL/daml-oil.rdf
* tests/owl-schema.rdf, tests/owl-schema.out:
Updated OWL schema http://www.w3.org/2002/07/owl to match
that given in OWL Reference 2003-08-18 CR
at http://www.w3.org/TR/2003/CR-owl-ref-20030818/#appB
* libraptor.3: Updated for 0.9.12
2003-08-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* NEWS.html: Updates for 0.9.12
* TODO.html: URI#frag used as URI in retrievals now
* Makefile.am: Remove -static from test links
* raptor_uri.c (main): Test xmlbase and retrievable URI tranforms.
* raptor_uri.c (raptor_uri_resolve_uri_reference): Handle #s
relative to a uri-reference with a #fragment.
* raptor_www.c:
(raptor_www_fetch) Use raptor_new_uri_for_retrieval to ensure
that the URI-reference fragments are removed, and the URI path
exists.
* raptor.h: Added raptor_new_uri_for_retrieval
* raptor_uri.c (raptor_new_uri_for_retrieval): Added, strips
fragments and ensures / path is present.
* INSTALL.html: Builds on Alpha Linux 2.2
* raptor_xml_writer.c
(raptor_xml_writer_start_element,raptor_xml_writer_end_element):
Use size_t for lengths.
* raptor_xml_writer.c (raptor_xml_writer_start_element):
Set content_element_seen in parent only if there is a parent.
(raptor_xml_writer_end_element): Change current_element to parent
only if there is a current element.
* TODO.html: NFC checks
* tests/Makefile.am:
Pull out may-fail NFC checks into a separate set and don't exit 1
if they do fail. Failure is possible since it requires GNOME glib2
which isn't always available.
2003-08-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor_general.c (raptor_check_ordinal): parentheses just for gcc
2003-08-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor_xml_writer.c:
(raptor_xml_writer_end_element) Reset the current_element pointer
on finishing. Makes any succeeding cdata do the right thing.
* rdfdump.c: Inside redland, don't call raptor_init/finish, it's
done by redland's world.
2003-08-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor_rss.c (raptor_rss_parse_chunk):
Stop working after a user abort of the parser.
* raptor_general.c (raptor_check_ordinal): c is not const
* rdfdump.c, raptor_xml_writer.c, raptor_xml.c,
raptor_www_libwww.c, raptor_utf8.c, raptor_uri.c, raptor_set.c,
raptor_sax2.c, raptor_qname.c, raptor_parse.c, raptor_namespace.c,
raptor_locator.c, raptor_libxml.c, raptor_identifier.c,
raptor_general.c, ntriples_parse.c: Move dmalloc includes into
raptor_internal.h and use everywhere.
* raptor_internal.h:
Add raptor dmalloc includes here to ensure all raptor code uses it
or not consistently.
* TODO.html: +URI retrieval
2003-08-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* tests/Makefile.am: Added warn-03
* tests/warn-03.rdf: Handle deleting of default namespaces
* raptor_parse.c (raptor_xml_start_element_handler): Handle when a
name has a namespace but that namespace has no URI such as
xmlns="". In that case, the element has non-namespaced parts too,
so skip.
* ntriples_parse.c (raptor_ntriples_parse_line):
Casts so isspace calls get int args.
* raptor_uri.c (raptor_uri_is_absolute):
Cast so isalpha and isalnum get int args.
* tests/Makefile.am: Added ex-50
* tests/ex-50.out, tests/ex-50.rdf: Check parseType with unknown value
* raptor_parse.c (raptor_start_element_grammar):
Handle parseType="Literal"
without duplicating code.
* raptor_parse.c (raptor_start_element_grammar):
Handle parseType="...." which
isn't any of the other known types identically to
parseType="Literal".
* raptor_general.c (raptor_check_ordinal):
Return <0 on failure such as no legal
characters at all.
* raptor_internal.h: Added raptor_check_ordinal.
redland/raptor/ChangeLog.4 view on Meta::CPAN
* raptor_general.c (raptor_parser_simple_error):
Call raptor_parser_error_varargs, don't
lose the arguments.
2003-07-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* configure.ac: Bumped version to 0.9.12
* Snapshotted raptor_0_9_11 for 0.9.11 release
* NEWS.html, README.html: words
* raptor_sax2.c: struct nsd: use size_t for length.
* configure.ac:
Ensure the libxml2 xmlReader API is new enough (2.5.0+) such as
having xmlParserSeverities.
* NEWS.html: More updates for 0.9.11
2003-07-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor.h: Update raptor_generate_id_handler to take user_bnodeid arg.
* raptor_rss.c:
Update calls of raptor_generate_id with user_bnodeid (NULL for
existing calls)
* raptor_parse.c:
Update calls of raptor_generate_id with user_bnodeid (NULL for
existing calls)
Use it to wrap the rdf:nodeID values for subject and object cases.
* raptor_internal.h: raptor_generate_id updated to add user_bnodeid
* raptor_general.c (raptor_set_generate_id_handler):
Document final argument
user_bnodeid from the rdf:nodeID attribute value.
(raptor_default_generate_id_handler): Add user_bnodeid, return it if
present.
(raptor_generate_id): Add user_bnodeid and pass on.
* NEWS.html, README.html: words
* README.html: Style.
RSS tag soup rewording
* README.html, INSTALL.html: Updated for 0.9.11 release
* raptor_internal.h: Added raptor_xml_writer_comment
* TODO.html: NFC checking done.
Exclusive XML C14N done.
* raptor_namespace.c (raptor_namespace_copy):
Don't copy uri and then lose it.
* raptor_xml_writer.c:
Added current_element for tracking empty/not empty elements.
(raptor_xml_writer_comment): Added, just concatenating the content
via raptor_xml_writer_cdata.
* raptor_parse.c (raptor_xml_comment_handler):
Call raptor_xml_writer_comment inside
parseType="Literal"
* raptor_xml_writer.c: raptor_xml_writer gains stack depth.
(raptor_free_xml_writer): Clear any content_cdata before finishing.
(raptor_xml_writer_start_element)
Add depth to raptor_format_sax2_element calls. Increase it
(raptor_xml_writer_start_element,raptor_xml_writer_end_element):
Add depth to raptor_format_sax2_element calls. Decrease it
and raptor_namespaces_end_for_depth each time.
* raptor_namespace.c:
Moved error_handler and error_data arguments around.
(raptor_namespaces_start_namespace) Gets those as arguments
(raptor_namespaces_start_namespace) Added, simpler version of _full
(raptor_namespaces_start_namespace_full) Added, was the old interface
but less error arguments.
(raptor_namespaces_namespace_in_scope): Fix namespace URI comparison.
(raptor_namespace_new) Looses error arguments.
(raptor_namespace_copy) Added, copy to a new stack with a new depth.
* raptor_sax2.c (raptor_format_sax2_element):
Gain stack depth argument.
Only use namespace declarations when there is a namespace stack
present.
copy namespaces to new stack when new ones are needed.
* raptor_internal.h:
Add error_handler and error_data to namespace_stack.
raptor_namespaces_start_namespace gets those as arguments
raptor_namespace_new looses them
raptor_namespaces_start_namespace takes less args
raptor_namespaces_start_namespace_full added
raptor_namespace_copy added
content_cdata_seen and content_element_seen back into sax2_element
* raptor_parse.c:
Moved content_cdata_seen and content_element_seen back into sax2_element
Update for new raptor_namespaces_start_namespace calling convention.
* raptor_xml_writer.c: Debug
* raptor_namespace.c (raptor_namespaces_format):
Fix missing counting : when present
* tests/ex-11.rdf, tests/ex-11.out:
Updated to declare the html namespace as default, expect it in the
N-Triples output.
* raptor_namespace.c (raptor_namespaces_namespace_in_scope):
Added, checking if a given
namespace is declared in scope.
(raptor_namespaces_format): Added, returning a string to declare
the given namespace.
* raptor_xml_writer.c:
(raptor_xml_writer_start_element,raptor_xml_writer_end_element):
Updated for raptor_format_sax2_element new arguments
* raptor_sax2.c (raptor_format_sax2_element):
Add raptor_namespace_stack argument.
Create xmlns declarations for elements not declared in the current
stack state, using raptor_namespaces_format to create the string.
* raptor_internal.h:
Added prototypes for raptor_namespaces_namespace_in_scope,
raptor_namespaces_format
raptor_format_sax2_element now takes a raptor_namespace_stack
2003-07-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor_internal.h: raptor_xml_writer prototypes take unsigned char*
* raptor_parse.c: Move the code building parseType="Literal" strings to
raptor_xml_writer class.
(raptor_cdata_grammar): Added, just for symmetry mostly, with most
code taken from raptor_xml_cdata_handler.
* raptor_xml_writer.c:
Move the code building parseType="Literal" strings to
raptor_xml_writer class.
* Makefile.am: Added raptor_xml_writer.c
* raptor_xml_writer.c: Initial version
* raptor_parse.c:
Split content_cdata fields between sax2_element & (RDF/XML
specific) element.
raptor_element: Add xml_writer field.
Various calls changed to use the new raptor_simple_message_handler
for error handling implemented as raptor_parser_simple_error here.
(raptor_xml_parser_simple_error_handler): Added, matching the
raptor_simple_message_handler API and calling raptor_parser_error.
(raptor_start_element_grammar): When parseType="Literal" appears,
create a new raptor_xml_writer.
(raptor_end_element_grammar): When parseType="Literal" ends, delete
the raptor_xml_writer.
* raptor_sax2.c (raptor_format_sax2_element):
Use raptor_simple_message_handler.
* raptor_general.c (raptor_start_parse):
Use raptor_parser_simple_error with
raptor_namespaces_init.
(raptor_parser_simple_error): Added, matching the
raptor_simple_message_handler API but same as raptor_parser_error.
* raptor_xml.c (raptor_xml_escape_string):
Use raptor_simple_message_handler.
* raptor_qname.c (raptor_new_qname): Use raptor_simple_message_handler.
* raptor.h: raptor_sax2_element moved here, semi-public.
Re-ordered URI functions earlier.
Various methods changed to use (public) raptor_simple_message_handler
for error handling.
* raptor_internal.h: Delete raptor_internal_message_handler.
Added prototype raptor_parser_simple_error, implementing
raptor_simple_error_handler API.
Various methods changed to use (public) raptor_simple_message_handler
for error handling.
raptor_sax2_element moved to semi-public raptor.h
rdf/xml-specific cdata parts moved from raptor_sax2_element to
raptor_element.
Added raptor_xml_writer functions.
* raptor_namespace.c:
Use (public) raptor_simple_message_handler for error handling.
2003-07-24 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor_parse.c (raptor_process_property_attributes):
NFC error message tidy.
(raptor_end_element_grammar): Fix NFC error reporting and recovery.
Report NFC validation failures for XML Literals
* tests/Makefile.am: Added bad-15 bad-17 for bad NFC checking
* tests/bad-16.rdf, tests/bad-17.rdf, tests/bad-15.rdf:
Bad NFC tests for property attribute, element, element ptl
* configure.ac:
Added check for g_utf8_normalize in glib 2.0 using pkgconfig.
Defines HAVE_G_UTF8_NORMALIZE if present.
* raptor_internal.h: Added raptor_utf8_is_nfc
* raptor_parse.c (raptor_process_property_attributes):
Check for valid NFC on property
attribute values.
(raptor_end_element_grammar): Check for valid NFC on plain literal
property element values.
* raptor_utf8.c (raptor_utf8_is_nfc):
Added Normal Form C checking, using GNOME glib
2.0 g_utf8_normalize initially.
* raptor_parse.c (raptor_start_element_grammar):
Forbid property attributes and all
rdf:* attributes (except rdf:ID) with rdf:parseType
* raptor_general.c:
(raptor_statement_part_as_counted_string, raptor_print_statement_part_as_ntriples):
Do not emit language for datatyped literals.
* raptor_parse.c (raptor_process_property_attributes):
rdf:li is forbidden as a
property attribute
* raptor_parse.c:
rdf_syntax_terms_info table: rdf:li is forbidden as a property
attribute
* libraptor.3: Updated raptor_set_feature for
RAPTOR_FEATURE_ALLOW_BAGID and
RAPTOR_FEATURE_ALLOW_RDF_TYPE_RDF_LIST
* tests/owl-schema.out, tests/ex-39.out:
Updated to remove the <idList> rdf:type rdf:List triples
* raptor_general.c (raptor_set_feature, raptor_set_parser_strict):
Added a new feature
RAPTOR_FEATURE_ALLOW_RDF_TYPE_RDF_LIST (user argument) and
redland/raptor/ChangeLog.4 view on Meta::CPAN
* raptor_uri.c (raptor_uri_uri_string_to_filename):
Use raptor_strcasecmp
(raptor_uri_is_file_uri): Use raptor_strncasecmp
2003-03-31 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* README.html: added libraptor.html
* Makefile.am: Added libraptor.html, fix-groff-xhtml
* libraptor.3: deleted repeated URI METHODS
* libraptor.3: Updated for 0.9.6->present
2003-03-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* examples/grapper.c: Use N-triples output style.
Pass in URL command line argument
* TODO.html: words
* TODO.html: XML attribute bugs
* Makefile.am: Added raptor_xml.c
* raptor_parse.c (raptor_xml_start_element_handler):
do XML attribute value
normalization for libxml2. Cannot be done properly since the type of
the attribute is lost. expat gets it right.
(raptor_xml_parse_init): Cast for expat XML_SetExternalEntityRefHandler
* raptor_xml.c:
Updated for C14N text/attribute node encoding rules. Don't de-UTF8
at the same time.
* tests/ex-49.out: > in attribute appears raw
* raptor_general.c:
(main) Moved raptor_validate_xml_ID, raptor_xml_escape_string test
code to raptor_xml.c
* raptor_xml.c: Raptor XML routines
* raptor_general.c:
Moved raptor_validate_xml_ID, raptor_xml_escape_string to raptor_xml.c
* tests/Makefile.am: Added ex-49
* tests/ex-49.out, tests/ex-49.rdf:
Checking escaping in parseType Literal values with XML attributes
* raptor_parse.c (raptor_format_element):
Pass in parser for UTF-8 error handling.
Use raptor_xml_escape_string for attribute values but
only malloc/free if lengths changed.
(raptor_xml_end_element_handler): Update to new
raptor_xml_escape_string API and only malloc/free it if lengths
changed.
* raptor_parse.c (raptor_xml_cdata_handler):
Use updated raptor_xml_escape_string API
* raptor.h: Added raptor_statement_part_as_counted_string,
raptor_statement_part_as_string
Changed raptor_xml_escape_string API
* raptor_general.c (raptor_statement_part_as_counted_string,
raptor_statement_part_as_string): Added, making N-triples style
output from parts of raptor_statement.
(raptor_xml_escape_string): Change API to take an existing
buffer/calculate length
(main): Update for raptor_xml_escape_string.
* examples/Makefile.am: Also clean grapper binary
2003-03-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* examples/grapper.c: Added N-Triples parsing
* examples/Makefile.am: Don't build grapper usually
* examples/grapper.c: Raptor GTK GUI example code
* examples/Makefile.am: Added grapper.c
* examples/Makefile.am: more deps
* raptor_internal.h:
Added raptor_print_statement_part_as_ntriples prototype
* raptor_general.c:
raptor_print_ntriples_string moved to raptor_general.c
(raptor_print_statement_part_as_ntriples): Added, internal.
(raptor_print_statement_as_ntriples): Now uses above.
* ntriples_parse.c:
raptor_print_ntriples_string moved to raptor_general.c
2003-03-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* examples/Makefile.am: another deps attempt
* examples/Makefile.am: typo
* examples/Makefile.am: Use LDADD and hunt for @REDLAND_LIBS@
Added $(top_builddir)/../librdf/librdf.la
* configure.ac: Hunt for librdf.la in abs dir
* rapper.1: added -c/--count
* examples/Makefile.am: Fixes to make cross-dir building work.
* TODO.html: docs
* configure.ac, Makefile.am: Added examples dir
* raptor_general.c (raptor_parse_uri_with_connection): Added.
(raptor_parse_abort): Added.
redland/raptor/ChangeLog.4 view on Meta::CPAN
* raptor_www_curl.c (raptor_www_curl_free): Tidy
* raptor_www_curl.c (raptor_www_curl_init,raptor_www_curl_free):
Use/mark field
curl_init_here to note when to cleanup a handle - don't destroy one
that was provided.
* raptor_internal.h:
for curl, record when curl_easy_init was done in raptor
* raptor_general.c (raptor_init): Call raptor_www_init
(raptor_finsh): Call raptor_www_finish
(raptor_parse_uri): Delete www object on failure.
* configure.ac: Bumped version to 0.9.10
* Snapshotted raptor_0_9_9 for 0.9.9 release
* NEWS.html, README.html: Updated for 0.9.9 release
2003-03-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* TODO.html: fixed crashing when rdf/xml parser has no base URI
2003-03-26 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor_set.c: Only use raptor_set_stats_print with RAPTOR_DEBUG
* raptor_general.c: Some comment tidying.
(raptor_start_parse): Docucomment. Copy the uri into the parser
structure (base_uri, locator uri), don't just keep the pointer.
(raptor_free_parser): Free the base URI in the structure, if
present.
* raptor_parse.c (raptor_xml_parse_start):
Remove uri arg. Fail if no base URI is
given - stored in the parser object
* ntriples_parse.c (raptor_ntriples_parse_start): Remove uri arg.
* raptor_internal.h:
raptor_parser_factory start method: Remove (base) uri arg, it's in
the object data.
* raptor_www.c: Use RAPTOR_FREE,MALLOC,CALLOC
(raptor_www_free): Free the www object. Doh.
* TODO.html:
raptor_start_parse crash with NULL base URI for rdfxml parser
* libraptor.3: raptor_parse_chunk: Takes unsigned char buffer.
* libraptor.3: raptor_start_parse: Note NULL base URI ok for ntriples
* libraptor.3: Typo: raptor_start_parse not raptor_parse_start
* raptor_general.c (raptor_xml_escape_string):
Make it work with 10ffff again
* raptor_parse.c (raptor_xml_cdata_handler):
Cast around raptor_xml_escape_string
* raptor_general.c (raptor_xml_escape_string):
Null terminate new string
* raptor_www_libxml.c, raptor_www.c:
Use RAPTOR_WWW_BUFFER_SIZE for I/O buffers
* raptor_internal.h: Define RAPTOR_WWW_BUFFER_SIZE for I/O buffers
* rdfdump.c: Declare raptor_stats_print when RAPTOR_DEBUG
* raptor_general.c: (raptor_stats_print) C99
2003-03-24 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rdfdump.c: Call raptor_stats_print with RAPTOR_DEBUG
* raptor_set.c: Record set hits/misses with RAPTOR_DEBUG
(raptor_set_stats_print): Defined with RAPTOR_DEBUG
* raptor_internal.h:
Move raptor_xml_parser typedef here (still internal).
raptor_xml_parser_stats_print, raptor_set_stats_print: Defined with
RAPTOR_DEBUG
* raptor_parse.c (raptor_xml_parser_stats_print):
Defined with RAPTOR_DEBUG
* raptor_general.c (raptor_stats_print): Defined with RAPTOR_DEBUG
* TODO.html: Fixed escaping rdf:parseType="Literal" content
* raptor_parse.c (raptor_xml_cdata_handler):
Use raptor_xml_escape_string when content
type is an XML literal
* raptor_general.c (raptor_xml_escape_string):
Now takes and returns lengths
Fix assumption of '\0' terminated strings.
(main): Update for counted strings
* raptor.h: raptor_xml_escape_string now takes and returns lengths
* raptor.h: Added raptor_xml_escape_string
* Makefile.am: Added raptor_general_test
* raptor_general.c (raptor_xml_escape_string):
Added, XML-escapes UTF-8 strings.
(main): Added set of tests for raptor_xml_escape_string
2003-03-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* tests/ex-48.out, tests/ex-48.rdf:
ex-48 parse type literal with entity encoding
* tests/Makefile.am: Added ex-48
* raptor_www_libxml.c (raptor_www_libxml_fetch): Make this work again
* raptor_parse.c (raptor_record_ID): Dealloc item after adding
* raptor_parse.c: typo
* raptor_parse.c:
Remove raptor_id_list implementation for ID checking to use raptor_set.
(raptor_xml_parse_init): Init raptor_set for ids.
(raptor_xml_parse_terminate): Use raptor_free_set.
(raptor_record_ID): Use raptor_set_add to check for unique
"ID base-URI"
(raptor_free_ID_list): Gone
* raptor_uri.c (raptor_default_uri_as_counted_string,
raptor_uri_as_counted_string):
Added and used in default factory.
* raptor.h: Added raptor_uri_as_counted_string.
* raptor_internal.h:
Added raptor_set and raptor_new_set constructor, raptor_free_set
destructor and raptor_set_add only method
* Makefile.am: Added raptor_set.c, raptor_set_test
* raptor_set.c: Raptor sets for ID checking
2003-03-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* tests/Makefile.am: Added OWL namespace document / rdf schema
owl-schema.rdf, owl-schema.out
* raptor_www.c: init w3c libwww
( run in 2.740 seconds using v1.01-cache-2.11-cpan-75ffa21a3d4 )