diff --git a/ChangeLog b/ChangeLog index 4f506d9e..ef40dfcb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,2096 +1,68 @@ -2023-03-01 Dave Beckett +2024-05-29 Dave Beckett - * Snapshotted raptor2_2_0_16 for 2.0.16 release (GIT b2d89d96cb43a93f751e17619491955abb41dbd1) + * src/turtle_lexer.l: Change compare to EOF to compare to + YY_END_OF_BUFFER_CHAR -2023-03-01 Dave Beckett - - * docs/raptor-changes.tsv, scripts/process-changes.pl: Support - constants in changes TSV - * docs/raptor-changes.tsv: 2.0.16 API changes - -2023-02-28 Dave Beckett - - * configure.ac: https and 2023 - * INSTALL.html, LICENSE.html, NEWS.html, README.html, RELEASE.html, - TODO.html, UPGRADING.html: - https and 2023 - * docs/.gitignore: Ignore raptor2.actions - -2023-02-22 Dave Beckett - - * docs/tmpl/section-avltree.sgml, - docs/tmpl/section-constants.sgml, docs/tmpl/section-www.sgml: - Updated doc templates - - * src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: - Remove set but unused variable i - -2022-12-27 Dave Beckett - - * ChangeLog, INSTALL.html, LICENSE.html, NEWS.html, RELEASE.html, - configure.ac, src/raptor_general.c: 2023 and https - -2022-12-27 Dave Beckett - - * Merge pull request #53 from trofi/shared-by-default - CMakeLists.txt: default to shared libraries by default (just like - GNU configure) - -2022-12-26 Dave Beckett - - * Merge pull request #55 from thesamesam/clang16 configure.ac: fix - -Wimplicit-function-declaration in HAVE___FUNCTION_… - -2022-11-04 Sam James - - * configure.ac: configure.ac: fix -Wimplicit-function-declaration - in HAVE___FUNCTION__ test (Clang 16) - - Clang 16 will make -Wimplicit-function-declaration errors by - default. - - ``` error: call to undeclared library function 'printf' - with type 'int (const char *, ...)'; ISO C99 and later do not - support implicit function declarations - [-Werror,-Wimplicit-function-declaration] error: call to undeclared - library function 'printf' with type 'int (const char *, ...)'; ISO - C99 and later do not support implicit function declarations - [-Werror,-Wimplicit-function-declaration] ``` - - For more information, see LWN.net [0] or LLVM's Discourse [1], - gentoo-dev@ [2], or the (new) c-std-porting mailing list [3]. [0] - https://lwn.net/Articles/913505/ [1] - - https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213[2] - - https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240[3] hosted at lists.linux.dev. - -2022-07-08 Dave Beckett - - * Merge pull request #52 from Artturin/cmakefix - -2022-07-03 Dave Beckett - - * src/raptor_uri.c: - (raptor_uri_counted_filename_to_uri_string): Copy NUL when copyin - file:// prefix. Coverity false positive since the following lines - of code always add more characters and a NUL. "Fixes" CID 353858 - -2022-06-15 Artturin - - * src/CMakeLists.txt: - fix the cmake generated pc file before - libdir=${exec_prefix}//nix/store/i7abvb760gzca1wqk9g617shqdj5sr7f-raptor2-aarch64-unknown-linux-gnu-2.0.15/lib - includedir=${prefix}//nix/store/i7abvb760gzca1wqk9g617shqdj5sr7f-raptor2-aarch64-unknown-linux-gnu-2.0.15/include/raptor2note the double // due to CMAKE_INSTALL_LIBDIR already being a - absolute path after - libdir=/nix/store/rlhzlak7chagd23898n1x9id6f5a6qpn-raptor2-aarch64-unknown-linux-gnu-2.0.15/lib - includedir=/nix/store/rlhzlak7chagd23898n1x9id6f5a6qpn-raptor2-aarch64-unknown-linux-gnu-2.0.15/include/raptor2 - -2022-06-06 Dave Beckett - - * src/raptor_internal.h, src/raptor_nfc_icu.c, - src/raptor_rdfxml.c, src/raptor_unicode.c, - tests/rdfxml/Makefile.am: Fix internal ICU string NFC check to - convert to UTF-16 first - - (raptor_nfc_icu_check, raptor_unicode_check_utf8_nfc_string): - Changed signature of these internal functions to not have error_p - which wasn't even consistently used. Instead return -1 on failure - which is also "falsey" in C. - - (raptor_nfc_icu_check): Do an UTF-8 (raptor) to UTF-16 conversion - before trying to do a NFC normalization check. Update callers of - above internal functions to remove error_p argument which was - unused in all callers. Update rdfxmla tests to allow tests to - throw warnings. - -2022-06-04 Dave Beckett - - * Merge pull request #50 from passware/enkey/cases/POS-5043 - -2021-12-24 mathvich - - * src/CMakeLists.txt: [POS-5320] librdfa directory fix - - * CMakeLists.txt, src/CMakeLists.txt: [POS-5230] librdfa directory fix - - * CMakeLists.txt, src/CMakeLists.txt: [POS-5230] tabs changed to spaces - -2021-12-15 mathvich - - * utils/CMakeLists.txt: [POS-5103] utils dir fix - - * CMakeLists.txt: [POS-5103] returned to origin - - * CMakeLists.txt: [POS-5103] debug message - -2021-12-14 mathvich - - * CMakeLists.txt: [POS-5103] directory change - - * CMakeLists.txt: [POS-5103] directory change - - * src/CMakeLists.txt: [POS-5103] scripts directory fix - -2021-11-29 Dave Beckett - - * src/raptor_www_curl.c: - (raptor_www_curl_set_ssl_cert_options) Set res - -2021-11-21 Dave Beckett - - * src/turtle_parser.y: Add va_end to turtle_parser_error_simple - error paths - - (turtle_parser_error_simple): Ensure va_end is always called on all - normal and error paths. [coverity CID 343351] - - * src/raptor_internal.h, src/raptor_www.c, src/raptor_www_curl.c: - Summary: Check curl_easy_setopt() return values for errors In - several places check for curl_easy_setopt() erorr returns and - fail. [coverity CID 343360] - - (raptor_new_www_with_connection): On curl module init failures, - free up www object before error return. - - (raptor_www_curl_init): - Return error value for failure in init, check all calls with a - macro. - - (raptor_www_curl_fetch, raptor_www_curl_set_ssl_cert_options) - (raptor_www_curl_set_ssl_verify_options): Check and set error - messages on failure - -2021-11-21 Dave Beckett - - * src/raptor_grddl.c: - Fix leak on failure of WWW model methods - - (raptor_grddl_fetch_uri): On WWW call failures, free up www object - before error return. [coverity CID 343353] - - * librdfa/curie.c: Fix check for ".." string (rdfa_resolve_uri): - Fix check for ".." that never matched; if was always false - [coverity CID 343354] - - * src/raptor_serialize_rdfxmla.c: - Handle leak of iter on failure - - (raptor_rdfxmla_emit_subject_properties): Handle leak of iter on - rv failure by breaking loop to let normal return handle it. - [coverity CID 343358] - -2021-11-14 Dave Beckett - - * CMakeLists.txt, src/raptor_config_cmake.h.in: Add cmake check - for time.h with HAVE_TIME_H - -2021-11-09 mathvich - - * CMakeLists.txt, src/raptor_config_cmake.h.in: Fix for CMake - build on Windows HAVE_TIME_H definition added - -2021-10-16 Dave Beckett - - * configure.ac: Fix newline quoting for OSX sh/bash compatibility - - * Makefile.am: old ChangeLog are not interesting - -2021-10-13 Dave Beckett - - * src/Makefile.am: Add parsedate.h to BUILT_SOURCES - - * configure.ac: - Update bison check to find first new enough GNU - bison This probably should find all versions and pick the latest but - that's not so easy in this AC_PATH_PROGS_FEATURE_CHECK approach. It - remains that it can be overrridden with the BISON envar, as before. - -2021-10-10 Dave Beckett - - * src/parsedate.y: Remove ancient protection around ctype calls - The isTHING() calls do not need an isascii() wrapper ever. - - * src/parsedate.y, src/raptor_internal.h: Fix time header check - with HAVE_ prefix - - * configure.ac, src/parsedate.y, src/raptor_internal.h: Fix - headers after removal of AC_HEADER_TIME - -2021-10-09 Dave Beckett - - * configure.ac, src/parsedate.y: Remove and fix obsolete autoconf - - Give AC_PROG_LEX an argument - - Remove AC_HEADER_TIME - - Remove AC_HEADER_STDC and uses - - Update explicit header checks adding getopt.h unistd.h - -2021-09-20 Dave Beckett - - * INSTALL.html, LICENSE.html, README.html: - 2021 - -2021-09-19 Dave Beckett - - * NEWS.html, RELEASE.html: - Document CVE-2017-18926 fix commit - - * tests/rdfxml/Makefile.am: add bug-650.out - -2021-09-18 Dave Beckett - - * src/raptor_xml_writer.c: - XML Writer : compare namespace - declarations correctly Apply patch from - 0001-CVE-2020-25713-raptor2-malformed-input-file-can-lead.patch.1 - that fixes Issue#0000650 - https://bugs.librdf.org/mantis/view.php?id=650 which overwrote heap - during XML writing in parse type literal content. This was detected - with clang asan. Thanks to Michael Stahl / mst2 for the fix. - - * tests/rdfxml/CMakeLists.txt, tests/rdfxml/Makefile.am, - tests/rdfxml/bug-650.out, tests/rdfxml/bug-650.rdf: - Add Issue - #0000650 example to trigger clang asan failure - - * README.html, utils/rapper.1: - Mention Atom 0.3 in docs and manual - page Fixes Issue#0000652 https://bugs.librdf.org/mantis/view.php?id=652 - -2020-10-25 Dave Beckett - - * docs/raptor2-sections.txt: Add raptor_avltree_trim - - * Remove callers of deprecated raptor_www setters - -2020-10-25 Dave Beckett - - * src/raptor_grddl.c, src/raptor_parse.c, src/raptor_www_test.c: - Remove callers of deprecated raptor_www setters - -2020-10-23 Dave Beckett - - * docs/raptor2-sections.txt, src/raptor2.h.in, src/raptor_parse.c, - src/raptor_www.c: Add raptor_www setters taking value string - length and returning error code on failure errors - - (raptor_www_set_user_agent2): Added, deprecating - raptor_www_set_user_agent. - - (raptor_www_set_proxy2): Added, deprecating - raptor_www_set_proxy. - - (raptor_www_set_http_accept2): Added, deprecating - raptor_www_set_http_accept. - - Fixes Issue #0000649 - https://bugs.librdf.org/mantis/view.php?id=649 - -2020-10-06 Dave Beckett - - * src/turtle_common.c: - (raptor_stringbuffer_append_turtle_string): Work around clang - --analyze warning not understanding ownership model - - * src/raptor_sax2.c: - (raptor_sax2_start_element): Work around clang --analyze warning - not understanding ownership model - - * src/raptor_uri.c: Use RAPTOR_LEN_FILE_CSS - -2020-09-29 Dave Beckett - - * src/.gitignore: ignore .c.bak - - * Merge pull request #43 from akimd/update-bison-usage Update - bison usage - -2020-09-24 Akim Demaille - - * src/turtle_parser.y: Stylistic change in the parser Propose a - shorter, more readable (IMHO) approach to typing tokens. - - * src/turtle_parser.y: Use per-type Bison destructors rather than - per symbols - - I can see two differences, and I believe this is an improvement: - before we were not reclaiming memory associated to - blankNodePropertyList and GRAPH_NAME_LEFT_CURLY. Now we do. - - * src/turtle_parser.y: Use Bison directives rather than CPP macros - - "%define parse.error verbose" is supported since 3.0, and support - for YYERROR_VERBOSE (deprecated since Bison 2.6, 2012-07-19), was - removed in 3.6. - -2020-09-20 Dave Beckett - - * src/raptor_ntriples.c: - (raptor_ntriples_parse_term): Free N-Triples datatype_uri - -2020-09-18 Dave Beckett - - * .travis.yml: Travis CI: Add clang ASAN on Linux - -2020-09-13 Dave Beckett - - * src/raptor_avltree.c: - (raptor_avltree_delete_internal): Handle deleting empty tree. - Fixes invalid pointer reference reported by Li Qiang via email. - - * src/raptor_qname.c: cast for warning - - * src/raptor_namespace.c: Do not declare any functions if - STANDALONE - - * configure.ac, src/raptor_nfc_icu.c: Use newer ICU NFC check for - ICU V56 or newer (raptor_nfc_icu_check): Switch to use - unorm2_quickCheck() for ICU >= 56 - - * docs/raptor2-sections.txt, src/raptor2.h.in, - src/raptor_namespace.c: Add raptor_rdf_schema_namespace_uri_len to - API Update raptor_namespace_test to define strings once to avoid - ASAN odr-violation test failure. - -2020-09-12 Dave Beckett - - * Merge pull request #42 from hughmcmaster/pkgconfig configure.ac: - Remove unused LIBXSLT_VERSION variable - -2020-09-08 Dave Beckett - - * .travis.yml: Remove slow (un-necessary) brew update for Travis - OSX build - -2020-09-08 Dave Beckett - - * Merge pull request #41 from hughmcmaster/pkgconfig Add - additional pkg-config support - -2020-08-21 Hugh McMaster - - * configure.ac: configure.ac: Use PKG_CHECK_MODULES to detect the - ICU library - -2020-09-08 Dave Beckett - - * src/CMakeLists.txt: Guess at making cmake do the same change to - turtle_lexer.h - -2020-09-07 Dave Beckett - - * scripts/fix-flex.pl, src/Makefile.am, src/turtle_parser.y: Fix - turtle_lexer__scan_bytes signatures for C++ - scripts/fix-flex.pl: - Fix length type call for newer flex naming convention - Run flex - output header file through fix-flex.pl - - * .travis.yml, scripts/install-bison3.sh: Travis config and - install-bison3.sh updates - - * .travis.yml: Add experimental builds for Travis for cmake, ppc, - arm64 - - * src/raptor_grddl.c, src/raptor_internal.h, src/raptor_json.c, - src/raptor_libxml.c, src/snprintf.c: Supporess worning to allow - YAJL2 to use long long in API - - * CMakeLists.txt: Add bison and flex versions to CMake - - * src/raptor_abbrev.c: - (raptor_print_abbrev_po): Another signature fix - - * src/raptor_abbrev.c: - (raptor_print_abbrev_po): Fix signature with casting - - * src/raptor_qname.c: Protect some debug messages from null URI - -2020-09-06 Dave Beckett - - * src/raptor_internal.h: Include ICU (vi libxml) in C++ context if - running under C++ - - * src/raptor_internal.h: Fix GCC version check that was not - working around IGNORE_FORMAT_NONLITERAL_START - - * src/turtle_parser.y: - Correct error callbacks for raptor and - mid-parsing - - (turtle_parser_error): Parsing error handling with scanner context - (turtle_parser_error_simple): Added for error handling for raptor - functions, matching the raptor_simple_message_handler method - - * INSTALL.html, configure.ac, scripts/install-bison3.sh, - src/parsedate.y, src/turtle_common.c, src/turtle_common.h, - src/turtle_lexer.l, src/turtle_parser.y: Move to bison 3.4+ - - * src/turtle_parser.y: - (turtle_parser_error): Allow and pass on varargs error - - * src/raptor_grddl.c: - (grddl_free_xml_context): Remove unused context Just free - xml_context via userdata arg. Fix callers - -2020-09-05 Dave Beckett - - * Merge pull request #40 from himajin100000/zero_on_failure - Documentation says "0 on failure." At least size_t >= 0 - -2020-09-05 Dave Beckett - - * Merge pull request #38 from hroptatyr/feat/turtle-flush provide - raptor_turtle_serialize_flush() - -2020-09-05 Dave Beckett - - * src/turtle_lexer.l, tests/trig/Makefile.am, - tests/trig/issue-37.out, tests/trig/issue-37.trig: Add test that - fails for PR#37 - - Pull request - https://github.com/dajobe/raptor/pull/37 - -2019-04-08 himajin100000 - - * src/turtle_common.c: - Documentation says "0 on failure." At least - size_t >= 0 - -2018-06-01 Adam Novak - - * scripts/fix-bison.pl, scripts/install-bison3.sh: Update to work - with Bison 3.0.5 - -2018-02-09 Sebastian Freundt - - * src/raptor2.h.in: fix, PEBKAC, actually declare - raptor_avltree_trim() as it is implemented - -2018-02-08 Sebastian Freundt - - * src/raptor2.h.in, src/raptor_avltree.c, - src/raptor_serialize_turtle.c: fix, actually trim the avltrees - after successful emission upon raptor_serialize_flush() - - * src/raptor_serialize_turtle.c: provide - raptor_turtle_serialize_flush() - - This changeset clones raptor_turtle_serialize_end() as - raptor_turtle_serialize_flush() without the reset for the header. - This, via raptor_serializer_flush(), allows for fine grained - emission of turtle statements. - -2018-02-07 Sebastian Freundt - - * src/turtle_parser.y: - This changeset fixes an issue with the turtle - chunk parser which defers statements internally to pick up the work - with the next chunk. - - Should the chunk parser not be called anymore any statements - recorded as deferred would be lost. An example to reproduce the - bug (TriG mode): - { [ a ] .} - - With this fix applied the above correctly produces the following 2 - quads: - _:genid1 . _:genid1 - . - -2017-07-01 Dave Beckett - - * src/raptor_xml_writer.c: - (raptor_xml_writer_start_element_common): Add and use - XML_LANG_PREFIX define - -2017-04-16 Dave Beckett - - * src/raptor2.h.in: Write UTF-8 for JSON literals - - Add #RAPTOR_ESCAPED_WRITE_BITFLAG_UTF8 to - #RAPTOR_ESCAPED_WRITE_JSON_LITERAL and document why - - Fixes Issues #0000606 - https://bugs.librdf.org/mantis/view.php?id=606 - - * src/raptor_xml.c, src/raptor_xml_writer.c: Make nsd compare - methods handle NULLs (raptor_nsd_compare, - raptor_xml_writer_nsd_compare): Sort NULLs separate and avoid - strcmp() where those are undefined. - - * src/raptor_xml_writer.c: Calcualte max nspace declarations - correctly for XML writer - - (raptor_xml_writer_start_element_common): Calculate max including - for each attribute a potential name and value. - - Fixes Issues #0000617 - https://bugs.librdf.org/mantis/view.php?id=617 - and #0000618 - https://bugs.librdf.org/mantis/view.php?id=618 - - * src/sort_r.h: Accept cygwin as a Linux-like Fixes Issue - #00000600 https://bugs.librdf.org/mantis/view.php?id=600 - -2017-04-02 Dave Beckett - - * src/raptor_uri.c: Add _POSIX_C_SOURCE for lstat() in test code - -2017-01-08 Dave Beckett - - * .travis.yml: Add back OSX brew gtk-doc so autogen.sh works - - * src/raptor_internal.h: Annotate raptor_simple_message_handler as - having format arg. - - * src/snprintf.c: Define _GNU_SOURCE it not already set - - * src/raptor_avltree.c, src/raptor_grddl.c, src/raptor_internal.h, - src/raptor_rss_common.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c: Add - RAPTOR_VOIDP macro for casting fprint %p object arguments. - - * src/snprintf.c: - [c++] Test pointer against NULL rather than use as implicit bool - - * .travis.yml: - Travis: No need to install gtk-doc for OSX now - - * .travis.yml: - Travis: --disable-gtk-doc for speed - - * scripts/process-changes.pl: - Ignore changes from raptor v1 to v2 - - * librdfa/rdfa_utils.c: - cast for C++ - - * INSTALL.html, LICENSE.html, NEWS.html, README.html, - RELEASE.html, TODO.html, UPGRADING.html, docs/raptor-docs.xml: - 2017 - - * configure.ac, librdfa/curie.c, librdfa/iri.c, librdfa/lists.c, - librdfa/rdfa_utils.c, librdfa/rdfa_utils.h, src/Makefile.am, - src/raptor_internal.h, src/strdup.c: Get rid of strdup configure - code; move to librdfa. Easier to replace strdup() calls in - librdfa/ with it's own version and just alway use it. Remove - strdup checks from configure.ac - (rdfa_strdup): Added. Updated all callers. - - * configure.ac, src/Makefile.am, src/raptor_internal.h, - src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_uri.c, - src/raptor_www_curl.c, src/strdup.c: Portability fixes for C11 and - newer clang - - - Fix some RAPTOR_ASSERT_DIE() calls to have an arg value. - - Add strdup.c for when it is missing and a configure check. - - Write special configure.ac checks for strdup and strtok_r to - work (ie fail) when there functions are not defined in headers. - - Update compiler warning arguments: - - Add -std=c11 so it'll try to use C11 if available - - Add -Wstrict-overflow - - Add -Wpedantic - - Remove -Wno-conversion -Wno-sign-conversion that are no longer - warnings - - For clang (OSX) always add -Wno-nullability-completeness since even - stdio.h fails this. - - Remove duplicate functions in AC_CHECK_FUNCS that AC_HEADER_STDC - already calls. - - Move maintainer mode warning flags very early so they get picked - up by tests. - - * src/raptor_general.c, src/raptor_www.c: Fix RAPTOR_ASSERT and - RAPTOR_ASSERT_DIE call args - - * configure.ac: Pull out OSX-specific and clang-specific warnings - OSX 10.2 + clang is too noisy with warnings in stdio.h - - * scripts/fix-flex.pl, src/turtle_parser.y: - Fixes for newer flex Testing with flex 2.6.3 - -2017-01-07 Dave Beckett - - * src/raptor_internal.h: - (OSX) clang fix for ignoring -Wformat-nonliteral - - * src/raptor_internal.h: RAPTOR_ASSERT() macro: Pass return arg to - RAPTOR_ASSERT_DIE() - - * ChangeLog, NEWS.html, RELEASE.html: 2.0.16 - -2016-11-14 Dave Beckett - - * Merge pull request #36 from ariadnext/cmake-GNUInstallDirs - cmake: use GNUInstallDirs for install paths - -2016-10-06 Eric Le Lay - - * CMakeLists.txt, src/CMakeLists.txt, utils/CMakeLists.txt: use - GNUInstallDirs for install paths to be able to install - libraptor2.a and raptor2.pc to a specific directory when - cross-compiling - -2016-09-05 Dave Beckett - - * Merge pull request #34 from JervenBolleman/master - Change to count option of rapper to count in longs instead of ints - -2016-08-29 Stephan Bergmann - - * src/raptor_uri.c: -fsanitize=nonnull-attribute - -2016-08-05 Jerven Bolleman - - * utils/rapper.c: Untested change to count option of rapper to - count in longs instead of ints - -2015-12-29 Dave Beckett - - * src/raptor_general.c: Fix RAPTOR_ASSERT_DIE() call - -2015-12-12 Dave Beckett - - * RELEASE.html: html - -2015-10-27 Dave Beckett - - * ChangeLog, NEWS.html, RELEASE.html: 2.0.16 changes - - * Merge pull request #33 from schnitzeltony/master - configure.ac: do additional checks on libxml2 when library is found - -2015-10-27 Andreas Müller - - * configure.ac: - configure.ac: do additional checks on libxml2 when library is found - - In yocto cross environments we must use pkg-config. Configuring with - - --without-xml2-config - --without-curl-config - - causes - - | checking for LIBXML... yes - | checking for libxml via pkg-config... yes - 2.9.2 - | checking for LIBCURL... yes - | checking for libcurl via pkg-config... yes - 7.44.0 - | checking for ICU... no - | checking for yajl installation... not found. Get it from http://lloyd.github.com/yajl/ and use --with-yajl=DIR if necessary to configure the installation directory. - | checking GRDDL parser requirements... no - libxml2 and libxslt are both not available - - Applying this patch fixes configuration. - - Signed-off-by: Andreas Müller - -2015-07-20 Dave Beckett - - * .travis.yml, scripts/install-bison3.sh: Revert "Make Travis-CI - run in a container" - This reverts commit e02d2c43ad2c3e2ba5a9279861c943c9559f967e. - - * .travis.yml, scripts/install-bison3.sh: Make Travis-CI run in a - container - -2015-07-05 Dave Beckett - - * utils/rdfdiff.c: - (rdfdiff_new_blank) resource leak on error [CID 122405] - -2015-07-05 Dave Beckett - - * utils/rdfdiff.c: - (rdfdiff_new_file) resource leak on error [CID 122404] - -2015-05-03 Dave Beckett - - * src/turtle_lexer.l: - (YY_FATAL_ERROR): Remove never reachable abort() after longjmp() - - * Merge pull request #32 from dajobe/openbsd-fixes Fixes for - OpenBSD - -2015-05-02 Dave Beckett - - * librdfa/subject.c: Define BNODE_BUFFER_LEN - - * librdfa/rdfa.c: Fix librdfa end_element() generation without - sprintf - - * src/raptor_uri.c: remove another sprintf() - - * src/raptor_abbrev.c, src/raptor_librdfa.c, src/raptor_rss.c, - src/raptor_www.c: Several #ifdef fixes to avoid code after abort() - - * src/raptor_general.c, src/raptor_internal.h: Make - RAPTOR_ASSERT_DIE take parameter for non-abort case To prevent gcc - 'will never be executed' warnings. - - * librdfa/rdfa.c, librdfa/subject.c, src/turtle_lexer.l: Remove - sprintf() and replace with snprintf() or hard-coded format - - * examples/grapper.c, librdfa/curie.c, utils/rdfdiff.c: Remove - strcpy() and replace with count and memcpy() - - * src/raptor_grddl.c, src/raptor_internal.h, src/raptor_libxml.c, - src/snprintf.c: OpenBSD fixes - -2015-04-24 Dave Beckett - - * .gitignore, scripts/.gitignore, src/.gitignore, utils/.gitignore: - Update .gitignore - - * Merge pull request #29 from 0u812/cmake-update-squashed - CMake build system upgrade to allow building from git sources - -2015-04-24 Dave Beckett - - * tests/feeds/test01-result.atom, tests/feeds/test02-result.atom, - tests/feeds/test03-result.atom: Fix atom results after serializer - changes - -2015-04-23 0u812 <0u812@github.com> - - * appveyor.yml: don't split echo command - - * appveyor.yml: - Update appveyor.yml to let CMake build the lexers/parsers - - Also download latest Cygwin setup due to the one installed - on appveyor being out of date - - Squashed commit of the following: - - commit 103bee37c4a215494f4929a00497ced9238c8164 - Author: 0u812 <0u812@github.com> - Date: Thu Apr 23 14:20:30 2015 -0700 - - add CYG_SETUP_URL - - commit b4ef42b2c2449089a6295c19c2cced0bd485cade - Author: 0u812 <0u812@github.com> - Date: Thu Apr 23 14:12:07 2015 -0700 - - download latest Cygwin setup - - commit 02d81375698a12b52ef4c0a61af2f105c214d5c7 - Author: 0u812 <0u812@github.com> - Date: Wed Apr 22 23:24:55 2015 -0700 - - specify path to Cygwin-installed Perl/Bison/Flex in shared build as well - - commit 20e5181b1d2b098179d199e67d47ef24dbebafd9 - Author: 0u812 <0u812@github.com> - Date: Wed Mar 4 16:01:44 2015 -0800 - - prevent appveyor script from generating parser tables (done in - CMake instead) - -2015-03-23 Dave Beckett - - * src/raptor_serialize_rss.c: RSS 1.0 serializing default - namespaces fixes. - - Separate default namespace from root element namespace - - Root element is rdf:RDF for rss 1.0 always - - Attributes are always rdf:name - -2015-02-01 Dave Beckett - - * autogen.sh: Handle updated glibtoolize (OSX) name in --version - -2015-01-29 0u812 <0u812@github.com> - - * CMakeLists.txt, tests/rdfa/CMakeLists.txt, - tests/rdfa11/CMakeLists.txt: Make rdfa/rdfa11 tests expected - failures (they are not counted as failing tests, so get 100% - passing). - - Reject Bison at CMake config stage if major version - is older than 3. - - -- - - Squashed commit of the following: - - commit 5394d2817384d8ca18ca4b8f8b2eefd34aa60f4c - Author: 0u812 <0u812@github.com> - Date: Thu Jan 29 14:49:51 2015 -0800 - - add rdfa11 expected failures - - commit 1c205f2444dfe7b4341a08e35c00cc9627f58d3b - Author: 0u812 <0u812@github.com> - Date: Thu Jan 29 14:44:44 2015 -0800 - - add rdfa expected failures - - commit 81fbc40f08c430267559998024fdbaef5f67b532 - Author: 0u812 <0u812@github.com> - Date: Thu Jan 29 14:41:42 2015 -0800 - - allow expected failures for tests - - workaround: TRUE is not true in a CMake if statement - - commit cae280b8ad68f98f8256b11db2f7ca7ae51aa7e1 - Author: 0u812 <0u812@github.com> - Date: Thu Jan 29 14:11:20 2015 -0800 - - RAPPER_RDFDIFF_TEST func - - commit 14fa0f99419729b815c94e429a983174f0cc26fd - Author: 0u812 <0u812@github.com> - Date: Thu Jan 29 13:41:27 2015 -0800 - - specify bison ver - -2015-01-22 0u812 <0u812@github.com> - - * src/parsedate.y, src/turtle_parser.y: Required version of Bison - too specific. - - Must use 3.0 avail. via win_flex_bison-2.5.1. Compiles on Windows - via CMake with this change. - - * src/CMakeLists.txt: missed a few paths - - * src/CMakeLists.txt: use abs paths in custom commands/targets - -2015-01-21 0u812 <0u812@github.com> - - * CMakeLists.txt, src/CMakeLists.txt: Upgrade CMake build system - to allow building from source. Generate parsers and - tokenizers using flex/bison. Tested compile on FC21 with GNU - Bison 3.0.2 and flex 2.5.37. - - Squashed commit of the following: - - commit 680a64599970b07d9e4c797bf9ae876536257ac1 - Author: 0u812 <0u812@github.com> - Date: Wed Jan 21 13:42:21 2015 -0800 - - fix turtle flex dep - - commit 4de1288bbf84b18834332747e30e3ca6c92fa301 - Author: 0u812 <0u812@github.com> - Date: Wed Jan 21 13:35:28 2015 -0800 - - find flex - - commit 446387d3778ebb760f395e354e3b6cfeb1c700f7 - Author: 0u812 <0u812@github.com> - Date: Wed Jan 21 13:30:46 2015 -0800 - - LIBXML2_INCLUDE_DIRS wrong var; use LIBXML2_INCLUDE_DIR - - commit 76e852ef1acc2309c1a78c6e264fd7c538edd633 - Author: 0u812 <0u812@github.com> - Date: Wed Jan 21 13:26:32 2015 -0800 - - correct cmake rename command - - commit 109c4a3159e338af0e0aa6c886110ea9e31749c6 - Author: 0u812 <0u812@github.com> - Date: Tue Jan 20 12:21:35 2015 -0800 - - resolve paths of src and generated files - - commit 5d8366ef60d72e99f5bac3c29e68c903b16265dd - Author: 0u812 <0u812@github.com> - Date: Tue Jan 20 12:17:05 2015 -0800 - - headers are not sources - - commit 93e8ed1765ccc0da449a4515a264843954199838 - Author: 0u812 <0u812@github.com> - Date: Tue Jan 20 12:11:34 2015 -0800 - - fix output names - - commit 0a7e13ca88b4ffb6c0bf73b9eb635478cd852846 - Author: 0u812 <0u812@github.com> - Date: Tue Jan 20 12:10:32 2015 -0800 - - add turtle flex tgt - - commit 11c76cfa21b0457bb67411a1eae230c5f2f89008 - Author: 0u812 <0u812@github.com> - Date: Tue Jan 20 12:02:25 2015 -0800 - - fix dependencies for autogenerated tgts - - commit d30f99cecd27872edc5b9e2c31bef8079a717171 - Author: 0u812 <0u812@github.com> - Date: Tue Jan 20 11:53:57 2015 -0800 - - add custom cmd to generate turtle parser - - -2015-01-15 Dave Beckett - - * Merge pull request #28 from philjohn/patch-1 - Fixing build errors using raptor2.spec - -2015-01-14 philjohn - - * raptor2.spec.in: - Fixing build errors using raptor2.spec - - The spec file uses the wrong libdir for raptor2, - /usr/lib(|64)/raptor instead of /usr/lib(|64)/raptor2, it also - excludes some files (.a and .la) that rpmbuild complains about. - -2015-01-07 Dave Beckett - - * docs/raptor-docs.xml: 2015 - -2015-01-04 Dave Beckett - - * INSTALL.html, LICENSE.html, NEWS.html, RELEASE.html, TODO.html, - UPGRADING.html: 2015 - -2015-01-01 Dave Beckett - - * Merge pull request #27 from dajobe/appveyor - CMake and windows fixes targetted for Appveyor builds - -2014-12-23 Dave Beckett - - * docs/tmpl/section-general.sgml: tmpls - -2014-12-22 Dave Beckett - - * Merge pull request #26 from hroptatyr/feat/turtle-chunk-parser - Provide turtle chunk parser - -2014-12-20 Sebastian Freundt - - * src/turtle_parser.y: Stop passing chunks to turtle_parser if - there have been errors - -2014-12-18 Dave Beckett - - * src/raptor_serialize_turtle.c: code style - -2014-12-18 Sebastian Freundt - - * src/turtle_common.h: - hygiene, kick superfluous slot `statement' - - It seems the turtle parser routines will use the `statement' slot - from the rdf_parser structure only. - -2014-12-17 Dave Beckett - - * src/raptor_serialize_turtle.c: fix comment - -2014-12-17 Sebastian Freundt - - * src/turtle_common.h, src/turtle_lexer.l, src/turtle_parser.y: - Provide turtle chunk parser - - This changeset allows to parse huge turtle, trig and n3 files. - Huge hereby means file sizes bigger than the main memory. It has - been tested on the GND dataset of the Deutsche Nationalbibliothek - (121 MTriples), the dbpedia dataset (583 MT) and a private - production dataset (1225 MT). - - Previously, the turtle parser tried to stack up all input in a - huge buffer which it then proceeded to process at once. - - This changeset introduces a parser that attempts to parse each - given chunk immediately. Syntax errors that arise due to - end-of-buffer situations in the middle of a grammar rule are - accounted for by resolving statements using the special `error' - rule accompanied with error recovery that copies over the - remainder of the buffer to the beginning so it can be appended by - the next chunk. - - Full turtle statements (the ones ending in DOT) will never be part - of the remainder. However, because of blank nodes and collections - statements can't be issued immediately anymore, instead the - concept of deferring the emission of a statement is introduced. - This is to avoid dangling (bnodeid) statements in case a turtle - SPO statement isn't DOT ended yet but the blank node property list - or collection has been read already. - - * struct raptor_turtle_parser_s: introduce slots for buffer book - keeping - * turtle_lexer.l: use YY_USER_ACTION to keep track of buffer - consumption - * turtle_parser.y: - (raptor_turtle_generate_statement): split in two, see following - (raptor_turtle_clone_statement): prepare statement for handling - (raptor_turtle_handle_statement): call a parser's statement handler - (raptor_turtle_defer_statement): like - raptor_turtle_generate_statement() but instead of calling the - statement handler immediately put it on a list of deferred - statements, called (handled) only if the statement rule path has - been taken (triples DOT) - (raptor_turtle_parse_chunk): begin parsing on chunks for every - call, only stack up things in buffers if the remainder of a chunk - has been resolved through the `error' rule. - -2014-12-17 Dave Beckett - - * src/raptor_serialize_turtle.c: Fix check - - * src/raptor_serialize_turtle.c: - (raptor_mkr_emit_subject_resultset): code style - - * src/raptor_serialize_turtle.c: Move - raptor_mkr_emit_subject_resultset statics into turtle context. - - struct raptor_turtle_context gains fields mkr_rs_size / arity / - ntuple / nvalue / processing_value - - (raptor_mkr_emit_subject_resultset): Switch statics to context - vars above. - - * Merge pull request #25 from rhmccullough/master change mKR - relation to SPARQL compatible CSV format - - * NEWS.html, RELEASE.html: 2.0.16 - - * utils/rapper.c, utils/rdfdiff.c: Restore space between title and - version - -2014-12-15 Dave Beckett - - * scripts/process-changes.pl: Warn if no difference seen in - functions - -2014-12-14 Sebastian Freundt - - * src/raptor_uri.c: - fix, do fputs() properly - -2014-12-05 Dave Beckett - - * scripts/install-bison3.sh: Update install bison script to do - nothing if bison is new enough - -2014-11-25 Dave Beckett - - * src/raptor_grddl.c: Disable "-Wformat-nonliteral" with GCC - pragma for GRDDL error format - -2014-11-24 Dave Beckett - - * src/raptor_avltree.c, src/raptor_escaped.c, - src/raptor_general.c, src/raptor_grddl.c, - src/raptor_json_writer.c, src/raptor_librdfa.c, - src/raptor_ntriples.c, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_rss_common.c, src/raptor_serialize_dot.c, - src/raptor_serialize_html.c, src/raptor_serialize_json.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c: Replace - type %d (for enums) with %u in error messages (-Wformat) - -2014-11-23 Dave Beckett - - * configure.ac: - Redisable -Wconversion - generated lexer too noisy - - * librdfa/curie.c, src/ntriples_parse.c, src/raptor_grddl.c, - src/raptor_internal.h, src/raptor_iostream.c, - src/raptor_ntriples.c, src/raptor_parse.c, src/raptor_sax2.c, - src/raptor_serialize_turtle.c, src/raptor_stringbuffer.c, - src/raptor_unicode.c, src/raptor_www_curl.c, src/raptor_xml.c: - Fixes for -Wconversion - - casting into to char near tolower and constructing chars from - ints - - unsigned int foo : 1 for bit flag - - raptor_stringbuffer_length() to unsigned int - - * configure.ac: Enable -Wconversion - - * src/snprintf.c: Disable "-Wformat-nonliteral" with GCC pragma - for snprintf test code - -2014-11-22 Dave Beckett - - * src/raptor_libxml.c: Disable GCC -Wformat-literal in a few - places using GCC pragma - - Using #pragma GCC diagnostic <...> from - https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html - - * utils/rapper.c, utils/rdfdiff.c: Remove static string printfs in - utilities (-Wformat) - - * configure.ac, src/raptor_internal.h, src/raptor_parse.c, - src/raptor_rdfxml.c: Enable -Wformat=2 for gcc and fix that - - (raptor_parser_log_error): Added to allow passing in format - message and log level. - - Use above in cases where a message can be an error or warning so - that -Wformat=2 will work with gcc: it can now check all - printf-style formats used in Raptor. - - * RELEASE.html: 2.0.16 - - * .travis.yml: docs - - * scripts/install-bison3.sh: Install bison with a C compiler - - * .travis.yml: try compile c++ - - * .travis.yml: Add matrix for CC=cc, CC=c++ - -2014-11-21 Dave Beckett - - * Merge pull request #21 from rhmccullough/master fix memory - leak with format, meaning - - * docs/Makefile.am, scripts/Makefile.am, scripts/fix-groff-xhtml, - scripts/fix-groff-xhtml.pl, utils/Makefile.am: Rename - scripts/fix-groff-xhtml to scripts/fix-groff-xhtml.pl - -2014-11-20 Richard H. McCullough - - * src/raptor_serialize_turtle.c: set pointers to NULL after - freeing memory - - I even ran "make distcheck" this time. I noticed a few permission - errors, but I don't worry about those because Windows ACLs often - take control of your files. - - * src/raptor_serialize_turtle.c: fix memory leak with format, - meaning check just before return at end of function - -2014-11-19 Dave Beckett - - * docs/Makefile.am: Add $(EXEEXT) to build-formats exe name - - * src/raptor_internal.h, src/raptor_serialize_turtle.c, - src/raptor_turtle_writer.c, tests/mkr/rdf-schema.mkr, - tests/mkr/rdfq-results.mkr, tests/mkr/rdfs-namespace.mkr, - tests/mkr/test-07.mkr, tests/mkr/test-08.mkr, - tests/mkr/test-16a.mkr, tests/mkr/test-28.mkr, - tests/mkr/test-31.mkr, tests/mkr/test-32.mkr, - tests/mkr/test-34.mkr: Add mkr turtle writer flag, move it out of - internal API. - - @base ends in ; raptor_turtle_writer_flags is now part of internal - API with bitflag values TURTLE_WRITER_FLAG_AUTO_INDENT and - TURTLE_WRITER_FLAG_MKR - - (raptor_new_turtle_writer): Gains flags arg. - - (raptor_turtle_writer_namespace_prefix, raptor_turtle_writer_base): - Lose emit_mkr arg and take it from the turtle_writer struct flags - field. Update mkr tests to end @base lines with ';' like other - mkr lines. - -2014-11-16 Dave Beckett - - * src/raptor_serialize_turtle.c: Remove trailing ws from lines - - * src/raptor_serialize_turtle.c: Code style fixes around mkr - serializer code - - * src/raptor_serialize_turtle.c: Free rs_ResultSet_uri and - rs_resultVariable_uri - -2014-11-14 Dave Beckett - - * NEWS.html, RELEASE.html: 2.0.16 - - * README.html, docs/raptor-serializers.xml: Add mKR serializer - references to docs - - * Merge pull request #18 from dajobe/mkr-serializer mKR serializer - - single commit - -2014-11-12 Dave Beckett - - * scripts/fix-bison.pl, scripts/fix-gtkdoc-header.pl: Update perms - - * scripts/Makefile.am: Add AM_CPPFLAGS - -2014-11-04 Dave Beckett - - * src/raptor_parse.c, src/raptor_serialize.c: Fix error returns in - new world methods - - (raptor_world_get_parser_factory, - raptor_world_get_serializers_count): Fix return value in - assertions - -2014-11-01 Dave Beckett - - * CMakeLists.txt, NEWS.html, RELEASE.html, configure.ac: Bumped - version to 2.0.16 - - * Snapshotted raptor2_2_0_15 for 2.0.15 release (GIT 815e4a75a0e1f15a5cf35de48a3d0b32a14c5663) - - * src/turtle_lexer.l, tests/trig/Makefile.am, - tests/trig/bug-584-dos.out, tests/trig/bug-584-dos.trig, - tests/trig/bug-584-unix.out, tests/trig/bug-584-unix.trig: Handle - \r in TRiG "graph-name {" - - Fixes Issue #0000584 - https://bugs.librdf.org/mantis/view.php?id=584 - - * src/turtle_lexer.l: - (turtle_token_print): Add GRAPH_NAME_LEFT_CURLY - - * src/turtle_lexer.l: - (turtle_token_print): Add LEFT/RIGHT_CURLY - - * src/turtle_lexer.l: - (main): Fix turtle_lexer_test to pass in string, not use yyinput - - * tests/ntriples/Makefile.am, tests/ntriples/bug-577.nt, - tests/ntriples/bug-577.out: Add ntriples test bug-577 for URI - escaping - - * src/turtle_common.h, src/turtle_parser.y: Rename - raptor_turtle_expand_name_escapes to - raptor_turtle_expand_qname_escapes + * scripts/fix-flex.pl: Make yy_n_chars into a yy_size_t - * src/raptor_internal.h, src/turtle_common.c, src/turtle_lexer.l: - (raptor_stringbuffer_append_turtle_string): Enforce URI - restrictions. +2024-05-25 Dave Beckett - Add is_uri argument to distinguish. Report type label correctly. - URIs may not have \t \b \n \r \f or raw ' ' or \u0020 or \u003C or - \u003E + * INSTALL.html: autogen.sh for flex note - Update all raptor_stringbuffer_append_turtle_string callers to - pass URI flag. +2024-05-24 Dave Beckett - * src/raptor_ntriples.c: - (raptor_ntriples_parse_term_internal): Enforce URI restrictions. - URIs may not have \t \b \n \r \f or raw ' ' or \u0020 or \u003C or - \u003E + * scripts/fix-flex.pl: Make yy_buf_size into a yy_size_t - * src/raptor_internal.h, src/raptor_ntriples.c, - src/turtle_common.c, src/turtle_lexer.l: - Remove raptor_turtle_check_uri_string() which is at wrong level. +2024-05-23 Dave Beckett - Needs to be checked in earlier lexing so e.g. illegal escapes in - URIs such as \b are found. For example. + * src/turtle_parser.y: Preliminary fix for trig graph URI double + free -2014-10-28 Dave Beckett + * src/turtle_parser.y: Set parser name to trig if filename ends in + .trig - * docs/raptor-changes.tsv, docs/raptor2-sections.txt, - src/raptor2.h.in, src/raptor_parse.c, src/raptor_serialize.c: - (raptor_world_get_parsers_count, - raptor_world_get_serializers_count): Added +2023-12-04 Dave Beckett - Fixes Issue #0000581 - https://bugs.librdf.org/mantis/view.php?id=581 + * scripts/fix-bison.pl: + Remove all mention of unused var yynerrs -2014-10-26 Dave Beckett +2023-09-11 Dave Beckett - * src/raptor_general.c: doc fix - - Fixes Issue #0000579 - https://bugs.librdf.org/mantis/view.php?id=579 - - * src/raptor_iostream.c: Code tidy; use nobj for - raptor_iostream_write_bytes() return value. - - Related to Issue #0000575 fix - - * src/raptor_iostream.c: - Fix return values for - raptor_iostream_{hexa,}decimal_write - - (raptor_iostream_decimal_write, - raptor_iostream_hexadecimal_write): Return non-0 if number of - objects returned from raptor_iostream_write_bytes() does not match - expected length. - - Fixes Issue #0000575 - https://bugs.librdf.org/mantis/view.php?id=575 - - * src/raptor_ntriples.c, src/raptor_term.c, - tests/ntriples/Makefile.am, tests/ntriples/bug-574.nt, - tests/ntriples/bug-574.out: Accept '_' as alias/typo for '-' in - lang strings. - - Replace on parsing. - Fixes Issue #0000574 - https://bugs.librdf.org/mantis/view.php?id=574 - -2014-10-20 Dave Beckett - - * Merge pull request #16 from rhmccullough/rdf-nil do not change - "( )" to "rdf:nil" - -2014-10-19 Dave Beckett - - * docs/Makefile.am, docs/raptor-1-to-2-map.tsv, - docs/raptor-changes.tsv: Rename changes file to raptor-changes.tsv - - Not just about v1 to v2 - - * scripts/process-changes.pl: Make process-changes.pl report wrong - fields count - - * .travis.yml: run autogen.sh not configure twice - - * scripts/install-bison3.sh: - delete working dir - - * scripts/install-bison3.sh: sudo - - * .travis.yml: Looks like Travis OS support is not generally - available - - http://blog.travis-ci.com/2014-05-13-multi-os-feature-available/ - -2014-10-19 Richard H. McCullough - - * src/raptor_serialize_turtle.c: do not change "( )" to "rdf:nil" - - In tests/turtle: rapper -i turtle -o turtle test-08.ttl - changes "( )" to "rdf:nil". - This change to src/raptor_serialize_turtle.c will produce "( )" in - the output file. - -2014-10-19 Dave Beckett - - * .travis.yml: Quote TRAVIS_OS_NAME that doesn't always seem to be - defined - - * .travis.yml: use test not [ ] - - * RELEASE.html: 2.0.15 - - * .travis.yml, scripts/install-bison3.sh: Travis update attempt - -2014-10-12 Dave Beckett - - * tests/rdfa11/Makefile.am: doc - - * tests/rdfa11/0297.out, tests/rdfa11/Makefile.am: 0297 passes - - * tests/rdfa11/0303.out, tests/rdfa11/Makefile.am: 0303 passes - - * tests/rdfa11/Makefile.am: 26 failures - - * tests/rdfa11/0235.out, tests/rdfa11/Makefile.am: 0235 passes - - * tests/rdfa11/Makefile.am: Fix error report again - - * tests/rdfa11/0134.out: fix 134 out - - * tests/rdfa11/0134.out, tests/rdfa11/Makefile.am: 0134 passes - - * tests/rdfa11/0197.out, tests/rdfa11/Makefile.am: 0197 passes - - * tests/rdfa11/Makefile.am: 0197 now fails, 0302 now passes. - - * tests/rdfa11/Makefile.am: Tidy failure output - - * tests/rdfa11/0295.out: Update 0295 output - -2014-10-10 Dave Beckett - - * librdfa/curie.c: Support full URLs for typeof. - librdfa commit 5b73975a778ee00f328457356a69163911d540a5 - -2014-10-09 Dave Beckett - - * src/Makefile.am: Further fix flex/bison rules to silence them in - normal runs - - * configure.ac, src/parsedate.y, src/raptor_internal.h, - src/raptor_rdfxml.c: Use __FUNCTION__ (c99) replacing __func__ - (c90) - - * src/sort_r.h: Add BSD header checks from sort_r - - * src/raptor_turtle_writer.c: Trailing , - - * configure.ac: Add some GCC5 warning flags - - * Merge pull request #14 from hroptatyr/compiler-support Intel C - compiler (icc) support - -2014-10-09 Sebastian Freundt - - * librdfa/rdfa.c, librdfa/triple.c, utils/rapper.c: const'ify - string literals and char pointers that needn't be changed - - librdfa (start_element): const'ify umap_key - librdfa (rdfa_complete_object_literal_triples): const'ifty - current_object_literal - rapper (print_graph): const'ify label - - * configure.ac: Always use AC_LANG_WERROR when checking for - compiler warning flags - - Many gcc-compatible compilers (icc, clang, etc.) verbosely ignore - gcc command line flags issuing a warning of some sort. Catch - these warnings and turn them into errors when checking for support - of specific warning flags. - -2014-10-04 Dave Beckett - - * scripts/Makefile.am, scripts/fix-bison, scripts/fix-bison.pl, - scripts/fix-flex, scripts/fix-flex.pl, src/Makefile.am: Rename - fix-flex, fix-bison to have .pl suffix - - * ChangeLog, NEWS.html, RELEASE.html: - 2.0.15 - -2014-09-25 Dave Beckett - - * src/raptor_grddl.c: - (raptor_grddl_filter_triples): Fix check [gcc5] - - This has been broken since 2007 but just meant too much work was - being done. Original commit that added this - 8bb88c9c4a5800b1163b50d2ff12b5245b4b1498 - -2014-08-21 Dave Beckett - - * utils/rdfdiff.c: Provide title and usage if args are missing - [Coverity CID 72385] - -2014-08-09 Dave Beckett - - * src/raptor_term.c: - (raptor_new_term_from_blank): Accept "" as same as NULL blank - -2014-08-04 Dave Beckett - - * src/raptor_uri.c: raptor_uri_counted_filename_to_uri_string - handles a counted string - - (raptor_uri_counted_filename_to_uri_string): Do not look for end - NUL char, count lengths. - - Fixes Issue #0000576 - https://bugs.librdf.org/mantis/view.php?id=576 - - * src/raptor_turtle_writer.c: - raptor_turtle_writer_quoted_counted_string handles a counted - string - - (raptor_turtle_writer_contains_newline): Add len param and use it, - drop strlen(). - - (raptor_turtle_writer_quoted_counted_string): Use len, drop - strlen() and call raptor_turtle_writer_contains_newline with - passed in len. - - Fixes Issue #0000576 - https://bugs.librdf.org/mantis/view.php?id=576 - - * src/raptor_uri.c: - Do not assume NUL terminated string in - raptor_new_uri_from_counted_string - - (raptor_new_uri_from_counted_string): Remove debug assert and use - fwrite to emit counted URI string to debug file handler. - - Fixes Issue #0000576 - https://bugs.librdf.org/mantis/view.php?id=576 - - * src/raptor_internal.h, src/turtle_parser.y: Add RAPTOR_DEBUG_FH - define internally - -2014-08-02 Dave Beckett - - * INSTALL.html: Fix flex url - -2014-07-27 Dave Beckett - - * src/raptor_iostream.c: Document sink handlers - -2014-07-26 Dave Beckett - - * src/raptor_rfc2396.c: - (raptor_uri_normalize_path): Check size of output buffer is big - enough. - -2014-07-07 Dave Beckett - - * README.html, INSTALL.html: bye bye sf - - * README.html: Update TRiG pointer, conformance - -2014-06-29 Dave Beckett - - * src/sort_r.c: correct docs; does not always use sort_r - - * src/ssort.h: one more rename - - * docs/raptor-1-to-2-map.tsv, src/raptor2.h.in, - src/raptor_sequence.c, src/sort_r.c: - raptor_data_compare_arg_handler renamed from raptor_sort_r_compare - Added it to changelog too - - * src/sort_r.c: Make sort test quiet on success - - * src/sort_r.c: const - - * src/sort_r.c: portability - - * configure.ac, src/Makefile.am, src/sort_r.c, src/ssort.h: + * src/raptor_internal.h, src/sort_r.h: Add - public domain ssort_r if qsort_r and qsort_s are not present - - * docs/raptor-1-to-2-map.tsv, src/raptor2.h.in, - src/raptor_sequence.c: - (raptor_sequence_sort_r): Added based on raptor_sort_r() - - * docs/raptor-1-to-2-map.tsv, src/Makefile.am, src/raptor2.h.in, - src/sort_r.c: - (raptor_sort_r): Added based on public domain sort_r() - - * src/sort_r.h, sort_r.c: Public Domain sort_r() by Isaac Turner - Imported GIT commit 7c60ef94753624291055af0b1eec291f8c4bd5a7 from - https://github.com/noporpoise/sort_r - -2014-05-21 Dave Beckett - - * src/parsedate.y: - Update to point to PHP GIT - - * src/parsedate.y: Fix -99 <= var <= 99 timezone interval check. - Thanks to Richard Trieu for the report. - -2014-05-11 Dave Beckett - - * docs/raptor-docs.xml: 2014 - -2014-05-09 Dave Beckett - - * src/raptor_locator.c, src/snprintf.c: - (raptor_locator_format): Add a NUL to terminate output string. - See librdf commit aa3bf4ccf4cc9381a1c198566428812af28944de that - works around this. - -2014-05-05 Dave Beckett - - * utils/rapper.1: Use \- for hyphen - - * CMakeLists.txt, NEWS.html, RELEASE.html, configure.ac: Bumped - version to 2.0.15 - - * ChangeLog: - Snapshotted raptor2_2_0_14 for 2.0.14 release (GIT - 93bc8ef8fa1c0b6b4278412f5d12e558b70db708) - - * src/raptor_uri.c: fix autodoc - - * NEWS.html, RELEASE.html: 2.0.14 - - * Update tmpls - - * Snapshotted raptor2_2_0_14 for 2.0.14 release (GIT 93bc8ef8fa1c0b6b4278412f5d12e558b70db708) - -2014-05-03 Dave Beckett - - * configure.ac: Import flex check from rasqal - -2014-04-28 Dave Beckett - - * scripts/fix-bison: Remove dead code from bison output - -2014-04-27 Dave Beckett - - * tests/rdfa/Makefile.am: Fix failure test and update expected - failures: +0294.xml +0349.xml - - * tests/rdfa11/Makefile.am: Echo message when failures are not - what expected - - * librdfa/rdfa.c: - (rdfa_init_base): Fix Fixes support broke in commit - 9447e886ad66a1c3dd2c877341feca639824488a - -2014-04-26 Dave Beckett - - * tests/rdfa11/Makefile.am: Fail exit on test failures - broken - for a long itme - - * src/turtle_parser.y: - (collection): Use YYERR_MSG_GOTO to stop early break and add debug - info - - * src/turtle_parser.y: Import header code from turtle-parser.y - -2014-04-20 Dave Beckett - - * configure.ac, src/turtle_lexer.l: Define FLEX_VERSION_DECIMAL - and use to not duplicate column prototypes. - - * scripts/fix-flex: Convert buffer check for PREFIX_restart into - simple form - - * scripts/fix-flex: Use YY_CURRENT_BUFFER_LVALUE in - PREFIX_pop_buffer_state [coverity CID 29295] + PRAGMA_IGNORE_WARNING_REDUNDANT_DECLS_START for qsort_r prototype - * scripts/fix-flex: pop_buffer_state does not get changed with - rule; delete ref +2023-07-03 Dave Beckett - * src/turtle_lexer.l: YY_FATAL_ERROR always calls abort() - - hopefully coverity notices + * Merge pull request #60 from pinotree/hurd Fix sort_r selection + on GNU/Hurd - * scripts/fix-flex: - Remove dead code after YY_INPUT - which is a - return NULL [coverity CID 29302] +2023-06-24 Dave Beckett - * scripts/fix-flex: - Match (static) yy_ prefix functions too + * tests/feeds/Makefile.am, tests/grddl/Makefile.am, + tests/json/Makefile.am, tests/mkr/Makefile.am, + tests/nquads-2013/Makefile.am, tests/ntriples-2013/Makefile.am, + tests/ntriples/Makefile.am, tests/rdfa/Makefile.am, + tests/rdfa11/Makefile.am, tests/rdfxml/Makefile.am, + tests/trig/Makefile.am, tests/turtle-2013/Makefile.am, + tests/turtle/Makefile.am: + Make tests work with parallel make (-j) - * scripts/fix-flex: - Use YY_CURRENT_BUFFER_LVALUE when ensured ok - [coverity CID 29242 29252 29253 29295] +2023-05-30 Dave Beckett - Rewrite YY_CURRENT_BUFFER to YY_CURRENT_BUFFER_LVALUE in some - functions after a PREFIX_ensure_buffer_stack() call has been seen. + * Merge pull request #58 from kraptor/master Remove the access to + entities 'checked' private symbol for libxml2 2.11.0 - * scripts/fix-flex: - Give function processing a state var %fn_state +2023-03-19 Dave Beckett - * scripts/fix-flex: Cleanups - Figure out lexer prefix from input - - Capture current function name in $cur_function - Rewrite some - checks to use exact function name - Added $debug var + * Merge pull request #57 from 0-wiz-0/sunos-fixes Fix build on SunOS -2014-04-19 Dave Beckett - - * scripts/fix-bison: Set yytoken to non-negative value for - [coverity CID 29259] - - * scripts/fix-bison: Add a default value for yyformat for - [coverity CID 10838] - - * src/raptor_xml.c: Added coverity[negative_returns] for second - use of unichar_len [CID 29257] - - * librdfa/lists.c: - (rdfa_complete_list_triples): Init tmp for error path [coverity - CID 36737] - - * src/raptor_grddl.c: - (raptor_grddl_run_xpath_match): Free base_uri on error path - [coverity CID 34618] - - * src/raptor_serialize_turtle.c: - (raptor_turtle_emit_subject): Free iterator on error path [coverity - CID 34617] - -2014-04-18 Dave Beckett - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_rdfxml_item_triples): root_element NULL [coverity - CID 34616] (raptor_rss10_emit_rdfxml_item_triples): start xml root_element if - not NULL [coverity CID 34616] - - * librdfa/curie.c: - (rdfa_resolve_uri): Check end_index2 is not NULL [coverity CID - 29261] - - * librdfa/lists.c: - (rdfa_complete_list_triples): strdup and strstr output. [coverity - CID 29260] - - (rdfa_complete_list_triples): Be careful for strdup and strstr - returning NULL. [coverity CID 29260] - - * src/raptor_namespace.c: Check return of raptor_xml_escape_string - for errors [coverity CID 29258] - - (raptor_namespace_format_as_xml): Check return values of - raptor_xml_escape_string() for negative failure before casting to - size_t. - - * src/raptor_iostream.c: - (test_read_from_filename): Use int for read bytes values - - * src/raptor_parse.c: Treat raptor_iostream_read_bytes() returning - int [coverity CID 29256] - - (raptor_parser_parse_iostream): Treat raptor_iostream_read_bytes() - return as int, convert to size_t when it's known to be - non-negative. [coverity CID 29256] The real fix is incompatible - API change to make iostream return size_t or ssize_t for reads. - - * src/raptor_serialize_rdfxml.c: - (raptor_rdfxml_serialize_statement): Restore *name always [coverity - CID 29255] - - * librdfa/rdfa.c: - (end_element): Do not call rdfa_complete_list_triples() with no - new subject [coverity CID 29254] - - * src/raptor_xml_writer.c: - (raptor_xml_writer_start_element_common): attribute namespaces - [coverity CID 29244] - - (raptor_xml_writer_start_element_common): Process attribute - namespaces only if there is a namespace stack [coverity CID 29244] - - * src/raptor_librdfa.c: rdfa requires a base URI [coverity CID - 29250] - - (raptor_librdfa_parse_start): Add check for base URI - (raptor_librdfa_parser_register_factory): Mark 'rdfa' parser needs - a base URI. - - * librdfa/triple.c: - (rdfa_complete_object_literal_triples) strchr on NULL [coverity CID - 29429] - - (rdfa_complete_object_literal_triples): Need non NULL - context->xml_literal to do strchr() on it [coverity CID 29429] - - * src/raptor_serialize_rdfxml.c: - (raptor_rdfxml_serialize_statement): Remove always 0 - end_predicate_element [coverity CID 29238] - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_rdfxml_item_triples): Free root_qname in logical - place [coverity CID 29236] - - * src/raptor_xml_writer.c: - (raptor_xml_writer_start_element_common): nstack [coverity CID - 29244] - - (raptor_xml_writer_start_element_common): Defining xml language - declaration requires namespace declarations so add nstack check. - - * src/raptor_grddl.c: - (raptor_grddl_run_xpath_match): Check if uri_string is not NULL - [coverity CID 29243] - - * src/raptor_log.c: - (raptor_log_error): Allow world to be NULL [coverity CID 29241] - - * src/raptor_log.c: - (raptor_log_error_varargs): Allow world to be NULL [coverity CID - 29241] - - * librdfa/triple.c: - (rdfa_complete_current_property_value_triples): Remove duplicate - variable [coverity CID 29240] - - * src/raptor_grddl.c: - (raptor_grddl_parse_chunk): Remove logically dead code [coverity CID - 29239] loop is always 0 or 1 so don't check for other values. - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_rdfxml_item_triples): Remove logically dead code - [coverity CID 29237] No need to test freeing serializer twice. - - * src/raptor_grddl.c: - (raptor_grddl_run_grddl_transform_doc): Check parse start/chunk - returns [coverity CID 29235] - - * src/raptor_serialize_turtle.c: - (raptor_turtle_emit_subject): check raptor_avltree_iterator_next() - return [coverity CID 29234] - -2014-04-17 Dave Beckett - - * src/raptor_parse.c: - (raptor_parser_fatal_error): set parser failed if not NULL [coverity - CID 29283] - - * src/raptor_xml_writer.c: - (raptor_xml_writer_start_element_common): nspace_declarations is - never NULL on return path [coverity CID 29284] - - * src/raptor_xml_writer.c: - (raptor_xml_writer_start_element): element is not NULL [coverity CID - 29285] - - * src/raptor_rss.c: - (raptor_rss_end_element_handler): rss_element is never NULL - [coverity CID 29286] - - * src/raptor_abbrev.c: - (raptor_new_abbrev_subject): Do not use subject->properties on debug - path [coverity CID 29287] - - * src/raptor_uri.c: - (raptor_uri_counted_filename_to_uri_string): Error path cannot use - NULL buffer [coverity CID 29302] - - * src/raptor_serialize_rdfxml.c: - (raptor_rdfxml_serialize_statement): Free object_uri_string always - [coverity CID 29269] - - * src/raptor_serialize_turtle.c: - (raptor_turtle_emit_subject_collection_items): Free iter on error - [coverity CID 29263] - - * src/turtle_lexer.l: Free stringbuffer on error case [coverity - CID 29273] - -2014-04-16 Dave Beckett - - * librdfa/rdfa.c: - (rdfa_init_base): Fix uri_start dead code again [coverity CID 29700] - - * src/raptor_abbrev.c: - (raptor_new_abbrev_subject): node arg is never NULL [coverity CID - 29288] - - * src/raptor_qname.c: - (raptor_new_qname_from_namespace_local_name): move strlen after - local_name NULL check [coverity CID 29289] - - * utils/rdfdiff.c: - (main): from_string and to_string are never NULL [coverity CID - 29290, CID 29291] - - * librdfa/triple.c: - (rdfa_complete_object_literal_triples): NULL check for - context->xml_literal [coverity CID 29292] - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_set_xml_writer): Check xml_writer NULL - [coverity CID 29293] - - * src/raptor_log.c: - (raptor_log_error_varargs): Can assume world is not NULL [coverity - CID 29294] - - * librdfa/rdfa.c: - (end_element): Add parent_context check around block [coverity CID - 29296] - - * librdfa/rdfa.c: - (rdfa_init_base): Check for uri_start before use [coverity CID - 29297] - - * src/raptor_serialize_turtle.c: - (raptor_turtle_emit_subject_collection_items): Free iter on error - path [coverity CID 29263] - - * src/raptor_parse.c: - (raptor_world_guess_parser_name): Free scores on error path - [coverity CID 29264] - - * src/raptor_grddl.c: - (raptor_grddl_run_recursive): Free ibuffer [coverity CID 29265] - - * src/raptor_rss.c: - (raptor_rss_end_element_handler): Free field on error path [coverity - CID 29266] - - * src/raptor_rss.c: - (raptor_rss_insert_rss_link): Free field on error path [coverity CID - 29267] - - * src/raptor_serialize_rdfxml.c: - (raptor_rdfxml_serialize_statement): Free object_uri_string on error - path [coverity CID 29269] - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_end): Error path entry_uri cleanup [coverity - CID 29270] - - * librdfa/lists.c: - (rdfa_complete_list_triples): Free bnode after loop [coverity CID - 29272] Also strdup() the rdf:nil string so it can be freed. - - * src/turtle_lexer.l: Free stringbuffer on error case [coverity - CID 29273] - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt, - src/raptor2.h.in, src/raptor_internal.h, src/raptor_rfc2396.c, - src/raptor_uri.c: Added raptor_uri_counted_filename_to_uri_string - - (raptor_uri_counted_filename_to_uri_string): Added based on - raptor_uri_filename_to_uri_string. Updated to properly check the - length of the incoming filename and ensure (on unix) that the path - buffer is big enough. Eliminate strcat() calls while here. For - win32, properly calculate the length when there is a :\ in the - filename. RAPTOR_FATAL4 added for debugging URI length failures - - * src/turtle_common.c: (raptor_turtle_expand_name_escapes): arg - free on error path [coverity CID 29303] - - (raptor_turtle_expand_name_escapes): Remove RAPTOR_FREE of name - argument on error paths - this function does not own name. - -2014-03-24 Dave Beckett - - * ChangeLog, ChangeLog.14, Makefile.am: ChangeLog.14 for 2013 - -2014-03-24 Dave Beckett - - * librdfa/lists.c, librdfa/rdfa.c: librdfa fixes for - -Wunreachable-code (clang) - -2014-02-24 Dave Beckett - - * src/raptor_general.c, src/raptor_json.c, src/raptor_rss.c, - src/raptor_turtle_writer.c: Fixes for -Wunreachable-code (clang) - - (raptor_rss_insert_identifiers): When inserting identifiers, allow - the loop to continue searching. - - (raptor_rss_start_namespaces): Remove loop since 1 value is - enough. - - * configure.ac: Add -Wunreachable-code (clang) - -2014-02-13 Dave Beckett - - * tests/turtle-2013/Makefile.am, tests/turtle-2013/oops.nt, - tests/turtle-2013/oops.ttl: Add test and expected response for RDF - 1.1 Turtle post-REC error - - Announced: - http://lists.w3.org/Archives/Public/public-rdf-comments/2014Feb/0018.html - Expected answer requested: - http://lists.w3.org/Archives/Public/public-rdf-comments/2014Feb/0020.html - -2014-02-12 Dave Beckett - - * tests/ntriples-2013/LITERAL.nt, - tests/ntriples-2013/LITERAL_all_controls.nt, - tests/ntriples-2013/LITERAL_all_punctuation.nt, - tests/ntriples-2013/LITERAL_with_2_dquotes.nt, - tests/ntriples-2013/LITERAL_with_2_squotes.nt, - tests/ntriples-2013/LITERAL_with_UTF8_boundaries.nt, - tests/ntriples-2013/LITERAL_with_dquote.nt, - tests/ntriples-2013/LITERAL_with_squote.nt, - tests/ntriples-2013/Makefile.am, tests/ntriples-2013/README, - tests/ntriples-2013/literal.nt, - tests/ntriples-2013/literal_all_controls.nt, - tests/ntriples-2013/literal_all_punctuation.nt, - tests/ntriples-2013/literal_with_2_dquotes.nt, - tests/ntriples-2013/literal_with_2_squotes.nt, - tests/ntriples-2013/literal_with_UTF8_boundaries.nt, - tests/ntriples-2013/literal_with_dquote.nt, - tests/ntriples-2013/literal_with_squote.nt: Renames to match W3C - mercurial repo names +2023-03-01 Dave Beckett -2014-01-29 Dave Beckett + * docs/raptor-docs.xml: 2023 * CMakeLists.txt, NEWS.html, RELEASE.html, configure.ac: Bumped - version to 2.0.14 - - * Snapshotted raptor2_2_0_13 for 2.0.13 release (GIT - fde3f210e7442de6de16c410443fd8a695f09820) - -2014-01-29 Dave Beckett - - * NEWS.html, RELEASE.html: - 2.0.13 - -2014-01-27 Dave Beckett - - * ChangeLog, INSTALL.html, LICENSE.html, NEWS.html, README.html, - RELEASE.html, TODO.html, UPGRADING.html: 2.0.13 and 2014 - - * configure.ac: Use presence of libxml / curl config programs as - test for presence - - Symptom was that after configuring, curl was present but not used - for WWW fetching. - - Original commit that changed this was - commit 7da03ba5cd6e45ea41afebd4955acf6e96e9d622 - Date: Fri Apr 5 19:01:55 2013 +0100 - - which was Raptor 2.0.10 onwards - -2014-01-15 Dave Beckett - - * autogen.sh: Create NEWS and README - -2014-01-14 Dave Beckett - - * Makefile.am: fix html rules more - - * .travis.yml: Travis CI fix - - * Makefile.am: fix html rule - -2014-01-10 Dave Beckett - - * src/raptor_abbrev.c: - Revert: (raptor_abbrev_subject_find): Remove - double free of lookup_node. - - This reverts commit c1c82f1be5d86ebf95fa10b86a938d6799e35626. - - * src/raptor_rfc2396.c: - (raptor_uri_resolve_uri_reference): Handle NULL ref->path - - * src/raptor_abbrev.c: - (raptor_abbrev_subject_find): Remove double free of lookup_node - Remove call to raptor_free_abbrev_node() - -2014-01-07 Dave Beckett - - * configure.ac: Use AC_CHECK_PROGS to find jing - AC_CHECK_PROG doesn't default to setting it as found! - -2014-01-04 Dave Beckett - - * src/raptor_general.c: 2014 - - * src/turtle_lexer.l: Remove YY_INPUT - never want to read from - stdin/file - -2014-01-02 Dave Beckett - - * Merge pull request #12 from dajobe/bison3.0-new Switch to use - and require Bison 3.0 - - * src/turtle_lexer.l: Provide missing flex prototypes for flex - 2.5.35 or earlier - - * src/parsedate.y: - (raptor_parse_date): No need for cast to void* for yyparse - -2014-01-01 Dave Beckett - - * src/turtle_parser.y: Remove redundant declaration of - turtle_lexer_lex - - * configure.ac, src/Makefile.am: Alter configure to accept bison - 3.0.0 or newer, no yacc - - * src/parsedate.y: Add bison 3.0 directives - - * src/parsedate.y: Bison 3.0 the parsedate parser - - - Update to new directives - - Set %param - - Update error call - - * src/turtle_parser.y: Bison 3.0 the turtle parser - - - Use bison 3.0+ directives replacing all command line arguments - - Update lexer and parser parameters (remove use of YYLEX_PARAM) - - (turtle_parser_error): Add scanner arg. - - Use rdf_parser argument directly rather than via casted variable. - - Add %empty directives - - Remove casts to raptor_parser* that are no longer needed - - (turtle_parse): Pass in scanner - - * src/turtle_parser.y: Remove YY_DECL - - * src/turtle_lexer.l: Add %option bison-bridge - - * src/turtle_lexer.l: Remove turtle_lexer_lex prototype / header - override - - No longer use YYDECL - the default works. - - * src/turtle_lexer.l: Replace turtle_parser_lval with yylval - - * src/turtle_common.c: Move turtle_lexer.h include earlier so - YYSTYPE can be found - - * src/turtle_lexer.l, src/turtle_parser.y: Remove token union - unused integer field + version to 2.0.17 + * Snapshotted raptor2_2_0_16 for 2.0.16 release (GIT + b2d89d96cb43a93f751e17619491955abb41dbd1) diff --git a/ChangeLog.1 b/ChangeLog.1 deleted file mode 100644 index 9a3ec236..00000000 --- a/ChangeLog.1 +++ /dev/null @@ -1,57 +0,0 @@ -2000-12-15 Dave Beckett - - * rdfdump.c, rapier_parse.c, rapier.h, Makefile.am: - Snapshot 2000-12-15 - -2000-12-10 Dave Beckett - - * Makefile.am: Added test files - -2000-12-08 Dave Beckett - - * rapier_parse.c (rapier_print_ns_name): - Only compile when debugging. - Put LIBRDF_DEBUG2 around some debugging statements. - -2000-11-29 Dave Beckett - - * rapier.h: - Changed some interfaces slightly. - Added defines when not linked with Redland. - - * rdfdump.c: - Made work when compiled with Redland. - Added options via getopt/getopt_long and usage. - - * rapier_parse.c: - Added general container support and callback. - Made work with Redland librdf_uri and concepts when used inside - Redland. - Tidied some function declarations. - Split some super-long functions into two - 1) xml parsing 2) rdf - grammar - -2000-11-29 Dave Beckett - - * rapier.h: - Changed some interfaces slightly. - Added defines when not linked with Redland. - - * rdfdump.c: - Made work when compiled with Redland. - Added options via getopt/getopt_long and usage. - - * rapier_parse.c: - Added general container support and callback. - Made work with Redland librdf_uri and concepts when used inside it. - Tidied some function declarations. - Split some super-long functions into two - - 1) xml parsing - 2) rdf grammar - -2000-11-22 Dave Beckett - - * acconfig.h, AUTHORS, autogen.sh, config.h.in, configure.in, - .cvsignore, INSTALL.html, LICENSE.html, Makefile.am, MPL.html, - NEWS.html, rapier.h, rapier_parse.c, - rdfdump.c, README.html: Initial import. diff --git a/ChangeLog.10 b/ChangeLog.10 deleted file mode 100644 index 18295955..00000000 --- a/ChangeLog.10 +++ /dev/null @@ -1,1019 +0,0 @@ -2009-11-29 Dave Beckett - - * Merge from raptor 1.4.20 release SVNr15728 to trunk - -2009-11-28 Dave Beckett - - * Merge RDFa changes from Raptor branch raptor1 (r15719) - - * Snapshotted raptor_1_4_20 for 1.4.20 release (SVN 15727) - - * tests/rdfa/0172.out, tests/rdfa/0172.xhtml, tests/rdfa/0173.out, - tests/rdfa/0173.xhtml, tests/rdfa/0174.out, tests/rdfa/0174.xhtml, - tests/rdfa/Makefile.am: - Added unapproved RDFa tests from librdfa upstream test suite: - 0172: empty datatype attribute - 0173: empty xml:lang attribute on plain literal - 0174: single character namespace prefixes - - 0172 and 0173 test - Issue#0000306 http://bugs.librdf.org/mantis/view.php?id=306 - - 0174 tests - Issue#0000310 http://bugs.librdf.org/mantis/view.php?id=310 - - * librdfa/rdfa.c: - (start_element): For raptor, turn a NULL language to "" which is - what librdfa expects. - - * librdfa/curie.c, librdfa/language.c, librdfa/rdfa.c, - librdfa/triple.c: - Apply librdfa GIT commits up to - 5823cb8bffe50fb1b46960f237f7274388cb5f93 - - commit 5823cb8bffe50fb1b46960f237f7274388cb5f93 - Fixed @property CURIE processing unit tests to match code - updates. - - commit a85d8e9e2e3d28452ad03d1ca64fdd98eed1c180 - Fixed CURIE processing bug for TC 174. - - The bug caused single-character prefixed CURIEs to be processed - incorrectly. Also fixed @property processing to not use reserved - words specified in a very early version of the RDFa spec. Fixed - a small bug related to processing CURIEs that have ':' as the - second character in the URI string. - - commit f384b28bf916a2e0c7a7dbc99101a1a44c301965 - Fixed plain literal bug uncovered by TC 172. - - This bug caused plain literals to not be generated when - datatype="" was specified and when the content inside the element - contained XHTML child nodes. - - * librdfa/language.c: - Apply librdfa GIT commit - 9960791ee4beca8e52e5d3a9766aba73d33f0063 - Fixed bug that caused unreviewed TC 173 to partially fail. - - The currently active language, specified via xml:lang, was not - being cleared when xml:lang="" was specified. - - Related to Redland Issue#0000306 - http://bugs.librdf.org/mantis/view.php?id=306 - -2009-11-25 Dave Beckett - - * librdfa/rdfa.c, src/raptor_abbrev.c: Casts for C++ - -2009-11-25 Lauri Aalto - - * src/raptor_abbrev.c: - (raptor_abbrev_subject_lookup): Free node if - raptor_new_abbrev_subject() ownership transfer did not succeed. - - * src/raptor_abbrev.c: - (raptor_abbrev_subject_find): Check for failures. - - * src/raptor_serialize_turtle.c: - (raptor_turtle_emit): Free iterators on before returning an error. - - * src/raptor_abbrev.c, src/raptor_avltree.c: - (raptor_avltree_sprout): Always take ownership of passed in node - data - free it if malloc fails. Make sure free_fn is not null - before calling it. - - (raptor_abbrev_node_lookup,raptor_abbrev_subject_add_property): - raptor_avltree_add() now always takes ownership of added nodes. - - * src/raptor_internal.h, src/raptor_serialize_rdfxmla.c: - fixed indent tabs -> spaces - - * src/raptor_abbrev.c: - (raptor_abbrev_subject_invalidate): Return value expected - -2009-11-24 Dave Beckett - - * many files: Merge from raptor branch raptor1 - -2009-11-23 Dave Beckett - - * src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c, - tests/feeds/test01-result.ttl, tests/feeds/test02-result.ttl, - tests/feeds/test03-result.ttl, tests/feeds/test04-result.ttl, - tests/rdfxml/Makefile.am, tests/turtle/Makefile.am: Apply SVN - r15690 to raptor head - -2009-11-15 Dave Beckett - - * utils/rdfdiff.c: Apply SVN 15667 to raptor trunk - -2009-10-10 Dave Beckett - - * src/raptor_grddl.c: - (raptor_grddl_run_grddl_transform_uri): Fix XML parser context - resource leak if raptor_grddl_fetch_uri fails. - - * src/raptor_grddl.c: - (raptor_grddl_parse_chunk): Save and restore error handlers - properly - restore loop was broken. Remove memcpy for clarity in - copying. - -2009-08-25 Dave Beckett - - * autogen.sh: Update common autogen.sh - -2009-08-21 Lauri Aalto - - * src/raptor_www.c: - (raptor_www_set_http_cache_control): Avoid dangling pointers - -2009-08-03 Lauri Aalto - - * src/raptor_internal.h: Fixed comment - -2009-07-27 Dave Beckett - * src/turtle_parser.y - (main): Terminate parser - - * src/turtle_lexer.l - (main): Init world and namespaces so turtle lexing test does not - die. - - * src/raptor_parse.c - (raptor_parse_file): Simplify, no need for O_LARGEFILES flag and - open/fdopen sequence. - - * configure.ac: - Check for fcntl.h and AC_SYS_LARGEFILE to get large file checks - - * src/raptor_parse.c: - (raptor_parse_file): Use open(2) and apply O_LARGEFILE option to - allow 32bit systems to read multi-gigabyte files. - -2009-07-23 Dave Beckett - - * Changelog entries above this are on BRANCH raptor1 - - * Create raptor 1 branch (SVN r15287) - -2009-07-19 Dave Beckett - - * Tagged for raptor 1.4.19 (SVN r15280) - - * Snapshotted raptor_1_4_19 for 1.4.19 release (SVN 15279) - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_item): Handle C++'s picky casting between enum - types - that are really integers - to ints. - - * src/raptor_rss_common.c: static data raptor_rss_fields_info: - semantic data errors found by C++'s more strict aliasing. - - Fix author item class. - - Set URI flag value for atom:schema and atom:href - - * src/raptor_namespace.c: - (raptor_namespaces_init_v2, raptor_namespace_stack_to_array): - Casts for C++ in returns from RAPTOR_CALLOC for namespace stacks - - * src/raptor_grddl.c: - (raptor_grddl_run_grddl_transform_doc): Cast for C++ for arg to - xsltSetCtxtSecurityPrefs. - - * src/raptor_rfc2396.c: - (raptor_uri_resolve_uri_reference): Use memmove for overlapping - copy, not memcpy. [valgrind] - - * src/raptor_serialize_json.c: raptor_json_context - use - raptor_statement_v2 for last statement. - (raptor_json_serialize_avltree_visit): Make V1 statements for the - stored V2 statements. - Improve fatal error messages. - - * src/raptor_statement.c: - (raptor_free_statement): Restore actually freeing statement memory - - resource leak. - - * configure.ac: libtool version change. - was: current 2 revision 0 age 1 - rules steps: - 3. source code changed: revision++ = 3 - 4. interfaces added and changed: current++ = 3, revision = 0 - 5. interfaces added: age++ = 2 - 6. interfaces removed: no - now: current 3 revision 0 age 2 - - * docs/libraptor.3: 1.4.19 changes - - * src/raptor_turtle_writer.c: - (raptor_turtle_writer_literal): More silly games to prevent stupid - gcc warning: ignoring return value of 'strtol', declared with - attribute warn_unused_result so use the value and then discard it - in a stupid expression. Ditto strtod. - - * src/raptor_uri.c: - (raptor_uri_print_v2): Silly games to prevent stupid gcc warning: - ignoring return value of 'fwrite', declared with attribute - warn_unused_result but right now there is nowhere to return the - error too. - - * src/raptor_rss.c: - (raptor_rss_uplift_fields): Comment out variables used only in - debugging. - - * src/raptor_turtle_writer.c: - (raptor_turtle_writer_literal): Ignore unused return values from - strtol and strtod used for checking. - - * utils/rapper.c: Revert r15252 and reapply r14951 on rapper to - use experimental V2 APIs again - - * configure.ac, src/Makefile.am, src/raptor_internal.h, - src/raptor_v2.h: Remove raptor_v2.h again - no need to dup this - for an internal build. Instead use -DRAPTOR_V2_EXPERIMENTAL when - building - - * src/Makefile.am, src/raptor.h, src/raptor_internal.h, - src/raptor_v2.h: Added raptor_v2.h again - internal only and put - scary warning about V2 things into raptor.h - - * src/raptor.h: use -DRAPTOR_V2_EXPERIMENTAL to enable the V2 - structs and functions - - * src/Makefile.am: Remove raptor_v2.h - bad idea for now - - * src/Makefile.am, src/raptor.h, src/raptor_internal.h, - src/raptor_v2.h: Move public V2 structs and prototypes to internal - raptor_v2.h - - * utils/rapper.c: Revert r14951 on rapper to use V1 APIs only for now - - * COPYING, COPYING.LIB: Add specific versions of GPL (2) and - LGPL (2.1) to source control - -2009-07-16 Dave Beckett - - * docs/raptor-docs.xml, docs/raptor-sections.txt, - docs/tmpl/section-general.sgml, docs/tmpl/section-parser.sgml, - docs/tmpl/section-serializer.sgml, docs/tmpl/section-world.sgml: - Add new functions. Add section world for init/cleanup and V2 - world stuff - - * src/raptor.h, src/raptor_grddl.c, src/raptor_sequence.c: - (raptor_new_sequence_v2): Renamed from - raptor_new_sequence_with_handler_context - - * tests/rdfxml: Ignore automake outputs - - * tests/ntriples: Ignore automake outputs - - * tests/feeds: Ignore ttl outputs - - * tests/feeds/Makefile.am: (check-serialize-atom): Make test use - generated file from build dir. - - * utils/rapper.c: calloc another feature_value - - * tests/feeds/Makefile.am: set result=1 on failures - - * utils/rapper.c: calloc feature_value so that fields are - initialised to 0/NULL - - * Raptor passes 'make check' test suite as of SVN r15234 - - * src/raptor_serialize_rss.c: Guess whether on - input is xml or not based on if it starts with < - - * tests/feeds/test02-result.atom, tests/feeds/test02-result.ttl, - tests/feeds/test02.rdf: Add
...
once to descs - - * tests/feeds/test02.rdf: use
...
in descriptions - - * tests/feeds/test03-result.atom: fix relative atom:link @href in - expected output - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_atom_feed): Output relative URIs for - - - * src/raptor_serialize_rss.c: Extra/tidy debug messages - -2009-07-15 Dave Beckett - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_statement, raptor_rss10_build_items): Use - raptor_rss_item_set_uri to always assign item identifier and uri - fields correctly. - - * src/raptor_rss.h, src/raptor_rss_common.c: - (raptor_rss_item_set_uri): Added to set the item identifier fields - plus the item->uri field correctly. - -2009-07-13 Dave Beckett - - * autogen.sh: Add SHAVE support - disabled by default and enabled - for maintainers. - libtool V2 needed - Add -Wall to automake args - Reorder args to remove dups - Find config_aux_dir and config_macro_dir and use them for copying in - config.{sub,guess} and adjusting aclocal args respectively. - -2009-06-21 Dave Beckett - - * src/raptor_serialize_rss.c: - (raptor_rss10_move_statements, raptor_rss10_store_statement): When - mapping fields rss to atom, do not copy into a field that has a - value already. - -2009-06-13 Dave Beckett - - * src/raptor_parse.c: - (raptor_get_name): Use factory method if present. - - * src/raptor_guess.c: - (raptor_guess_guess_get_name): Implement get_name by passing it on - to internal guessed parser. - (raptor_guess_parser_register_factory): Register get_name - - * src/raptor_internal.h: struct raptor_parser_factory_s gains - get_name method - - * src/raptor_guess.c: - (raptor_guess_parse_chunk): docs - - * src/raptor_grddl.c: - (raptor_grddl_run_grddl_transform_doc): Init userCtxt *after* - sheet is defined as not NULL. GRDDL transforms now work again. - - * utils/rapper.c: - (main): If counting, do not use a serializer at all. - -2009-05-16 Dave Beckett - - * src/raptor_serialize_rss.c: autodocs - - * src/raptor_rss.c: - (raptor_rss_insert_rss_link): Added to add rss:link from atom:id - or - (raptor_rss_insert_identifiers): Call above for channel and items. - - * tests/feeds/test04-result.ttl: items and rss:links point to url - not tag: uri - - * tests/feeds/test05-result.ttl: Moved dc:date to top - - * tests/feeds/test02-result.atom, tests/feeds/test03-result.atom: - Added more atom:entrymap values - -2009-05-12 Dave Beckett - - * src/raptor_rss.c: - (raptor_rss_insert_identifiers): Add an rss:link with - /atom:link[@rel="self"]/@href string contents if not already - present. - - * src/raptor_rss.c: - (raptor_rss_emit_block): Add resource parameter for the subject of - the triples to set. Do not try to play save/restore games with - the statement.subject - (raptor_rss_emit_item): Pass in item identifier to above. - -2009-05-11 Dave Beckett - - * src/raptor_rss.c: - (raptor_rss_emit_item): Set the atom author output node type by a - quick hack to alter the URIs. - -2009-05-10 Dave Beckett - - * src/raptor_rss.c: raptor_rss_uplift_map merged into - raptor_atom_to_rss - (raptor_rss_copy_field): Added to do field copy/conversion with - pair - (raptor_rss_uplift_fields): Iterate over list of conversions and - call raptor_rss_copy_field. - - * src/raptor_rss_common.c: - (raptor_rss_field_conversion_date_uplift): Added for converting - from junk date to ISO dates. - (raptor_rss_date_uplift): Deleted, replaced by above. - raptor_atom_to_rss: gains fields from raptor_rss_uplift_map and - uses above conversion function to fix rss:pubdate to dc:date - - * src/raptor_rss.h: Add raptor_rss_field_conversion for converting - field values and add to raptor_field_pair - - * tests/feeds/test05-result.ttl: Add dc:date, atom:id, atom:title - fields - -2009-05-09 Dave Beckett - - * tests/feeds/test04-result.ttl: add both rss and renamed atom - fields rather than just one: - - dc:date & atom:updated - - rss:title & atom:title - - atom:id - - atom:summary - - * src/raptor_rss.c: - (raptor_rss_start_element_handler): Remove renaming of atom terms - to rss - (raptor_rss_uplift_fields): Add copying of atom to rss terms, not - renaming. - - * src/raptor_rss_common.c: atom:author is a container, not a block - raptor_rss_items_info - set value type to RAPTOR_RSS_ITEM_CONTAINER - raptor_rss_fields_info - set class to RAPTOR_RSS_RDF_ATOM_AUTHOR_CLASS - raptor_rss_block_fields_info - remove author from list of blocks - - * tests/feeds/test04.atom: Restore xhtml namespace to div - -2009-05-01 Dave Beckett - - * docs/tmpl/section-general.sgml: update tmpls - - * tests/turtle/Makefile.am, tests/turtle/test-32-out.ttl, - tests/turtle/test-32.ttl: Added test-32 based on test for - http://bugs.librdf.org/mantis/view.php?id=274 - - * src/raptor_serialize_turtle.c: - (raptor_turtle_emit_subject_collection_items): Notice when a new - subject happens and reset property iterator. - (raptor_turtle_emit_subject): Look for trees with 2 or more - properties to be a potential collection. - Fixes Issue#0000277 http://bugs.librdf.org/mantis/view.php?id=277 - - * src/raptor_parse.c: - (raptor_get_feature): Return raw parser int feature. - Fixes Issue#0000288 http://bugs.librdf.org/mantis/view.php?id=288 - - * src/raptor_feature.c: raptor_features_list use bit 16 to record - that an int is not a boolean flag. Should refactor these flags - for Raptor V2 and alter the raptor_feature_value_type() return. - -2009-04-30 Dave Beckett - - * tests/feeds/Makefile.am: Add atom to turtle expected results to - EXPECTED_TTLS - - * tests/turtle/Makefile.am: Add $(TURTLE_SERIALIZE_RDF_FILES) to dist - - * tests/turtle/Makefile.am: More fixes for make distcheck testing - - * tests/turtle/Makefile.am: - (check-turtle-parse-ntriples, check-turtle-serialize-rdf): Get - filenames from invoking Makefiles in nearby build-dirs not - src-dirs, which won't have makefiles in 'make distcheck' mode - - * tests/ntriples/Makefile.am: Revert r15175 - - * tests/ntriples/Makefile.am: Make print-nt-test-files work in - 'make distcheck' mode - - * src/raptor_sax2.c: - (raptor_sax2_parse_chunk): Make undeclared entity not fatal in - parsing - errors are still thrown by the error callback, but - parsing continues. Makes - http://bugs.librdf.org/mantis/view.php?id=303 easier to deal with - - primary data gets out when errors are present; when DTDs are not - loaded. - - * src/raptor_libxml.c: - (raptor_libxml_xmlStructuredErrorFunc): Hunt for error_handlers in - parser context user data too. - - * src/raptor_sax2.c: - (raptor_new_sax2): Save correct libxml error handlers - -2009-04-24 Dave Beckett - - * src/raptor.h: Revert raptor_error_handlers ABI change for now - -2009-04-23 Dave Beckett - - * src/raptor.h, src/raptor_general.c, src/raptor_internal.h, - src/raptor_sax2.c: Protect calls to xmlSetStructuredErrorFunc() - and xmlSetGenericErrorFunc() by libxml flags and if enabled, save - and restore the previous values. Added - raptor_set_libxml_flags() (raptor V1) and - raptor_world_set_libxml_flags() (raptor V2) to set these flags. - Flags are defined in new enum raptor_libxml_flags. - - Fixes Issue#000299 http://bugs.librdf.org/mantis/view.php?id=299 - - * docs/tmpl/section-feature.sgml, src/raptor.h, - src/raptor_general.c, src/raptor_grddl.c, src/raptor_internal.h, - src/raptor_parse.c: Use context-specific libslt security - configuration to avoid calling xsltSetDefaultSecurityPrefs(). - - Also allow user to set the policy for raptor globally with new API - function raptor_set_libxslt_security_preferences() (and in Raptor V2 - with raptor_world_set_libxslt_security_preferences method on the - world class) - - Fixes Isssue#0000296 http://bugs.librdf.org/mantis/view.php?id=296 - -2009-04-21 Dave Beckett - - * src/raptor_libxml.c: - (raptor_libxml_init, raptor_libxml_init_sax_error_handlers): Init - per-context structured error handlers to go to - raptor_libxml_xmlStructuredErrorFunc - - * configure.ac: Use RAPTOR_LDFLAGS for rest of internally linked - libs for libm, curl, fetch, libxml, expat, libxslt, libinn (for - parsedate) - - * configure.ac, raptor.pc.in, src/Makefile.am: Introduce - RAPTOR_LDFLAGS to replace raw LIBS as the internal set of - arguments to use in linking. - - * configure.ac, src/Makefile.am, utils/Makefile.am: Add - --enable-debug configure option. use AM_CPPFLAGS for defines and - include options Remove unused STANDARD_CFLAGS - -2009-03-31 Lauri Aalto - - * src/raptor_namespace.c: - (raptor_new_namespaces_v2): Lowmem fix. Use calloc instead of - malloc to have struct members initialized to zero in case - raptor_namespaces_init_v2() fails and need to free a partially - initialized nstack. - -2009-03-30 Dave Beckett - - * configure.ac, src/raptor_serialize_rss.c: Test for - gettimeofday. (raptor_rss10_ensure_atom_feed_valid): Use condition - to avoid calling it on windows that doesn't have it. Patch from - Lou Sakey 2008-07-31 to redland-dev - - * src/raptor_sax2.c: - (raptor_sax2_finish): Call xmlCleanupParser() libxml call last to - avoid an access violation on windows. Patch from Lou Sakey - 2008-07-31 to redland-dev. - - * src/raptor_general.c: - (raptor_vsnprintf): Windows vsnprintf() portability patch from Lou - Sakey. - -2009-03-29 Dave Beckett - - * configure.ac: Substitute ECHO - - * src/raptor_rss.c: - (raptor_rss_start_element_handler): Make namespaces seen in fields - after any potential renames, so they will get declared later. - (raptor_rss_end_element_handler): End any blocks in all cases - - was not happening when there was no cdata. - (raptor_rss_emit_block): Only emit block strings that are not - NULL. - (raptor_rss_emit_connection): Turn predicate ordinals into URIs - since the RAPTOR_IDENTIFIER_TYPE_ORDINAL is deprecated (and turtle - serialiser does not handle it). - (raptor_rss_uplift_fields): Gain rss_parser arg and mark - namespaces seen in renames. - - * src/raptor_rss_common.c: raptor_rss_fields_info - restore - rss:link value to string. raptor_rss_block_fields_info - fix - clashing offset for atom author name/email fields. - -2009-03-28 Dave Beckett - - * tests/feeds/Makefile.am, tests/feeds/test02-result.atom, - tests/feeds/test04-result.ttl, tests/feeds/test04.atom, - tests/feeds/test05-result.ttl, tests/feeds/test05.atom: Add test04 - and test05 atom parsing to turtle. Update test suite to show - errors better and use ECHO macros - - * tests/feeds/test0[123].rdf:: Rename test0[123].rss to .rdf - - * tests/turtle/Makefile.am: Use TURTLE_SERIALIZE_RDF_FILES so that - ex-62.rdf gets used - - * tests/turtle/Makefile.am, tests/turtle/test-31-out.ttl, - tests/turtle/test-31.ttl: Add tests for serializing rdf:_ - properties back to themselves. - -2009-03-23 Dave Beckett - - * tests/feeds/Makefile.am: use conditionals to execute tests in - sane order via FEED_TESTS var - - * tests/feeds/Makefile.am: - (check-serialize-atom): Set parser/input base URI for test. - - * tests/feeds/Makefile.am: notes - - * tests/feeds/Makefile.am, tests/feeds/test01-result.ttl, - tests/feeds/test02-result.ttl, tests/feeds/test03-result.ttl: Add - parsing and serializing tests with intermediate turtle results to - check - - * src/raptor.h, src/raptor_feature.c, src/raptor_internal.h, - src/raptor_parse.c, src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_serialize_rss.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: Renamed - RAPTOR_FEATURE_ALIAS_DEFAULT_NAMESPACE to - RAPTOR_FEATURE_PREFIX_ELEMENTS (prefixElements) and change - meaning; it always declares prefix: and default namespace but this - option flips whether it core vocab is in the prefixed or default - namespace. - - * src/raptor_serialize_rss.c: - (raptor_rss10_build_xml_names): Do not declare or start namespaces - with NULL prefix; only the default namespace *may* do that. - -2009-03-20 Dave Beckett - - * tests/feeds/test01-result.atom: fix namespaces - - * tests/feeds/test01-result.atom, tests/feeds/test02-result.atom, - tests/feeds/test03-result.atom: Add namespaces back to all - expected results - - * src/raptor_serialize_rss.c: - (raptor_rss10_build_xml_names): Enable turning on/off namespaced - elements based on feature_alias_default_namespace - -2009-03-19 Dave Beckett - - * tests/feeds/Makefile.am, tests/feeds/test01-result.atom, - tests/feeds/test02-result.atom, tests/feeds/test03-result.atom: - Remove -f aliasDefaultNamespace=0 from tests for now, to enable - fixing of other things on their own - -2009-03-17 Dave Beckett - - * tests/feeds/Makefile.am: use $(srcdir) before expected - - * tests/feeds/Makefile.am: report failure diff the right way - around: from expected to actual - -2009-03-12 Dave Beckett - - * tests/feeds/test02-result.atom, tests/feeds/test03-result.atom: - Fix atom namespaces - - * tests/feeds/Makefile.am: Set aliasDefaultNamespace=0 - - * tests/feeds/Makefile.am, tests/feeds/test01-result.atom, - tests/feeds/test02-result.atom, tests/feeds/test03-result.atom: - Add expected test results, make check works from Makefile alone - - * tests/feeds/Makefile.am: Fix RAPPER call - -2009-03-10 Dave Beckett - - * tests/feeds/test01.atom, tests/feeds/test02.atom, - tests/feeds/test03.atom: Remove atom output - now generated via - test - - * tests/feeds/Makefile.am: fix error in error logging - - * configure.ac, tests/Makefile.am, tests/feeds, - tests/feeds/Makefile.am: automaked tests/feed - - * tests/feeds/Makefile: Removed, now autogenerated - -2009-02-28 Dave Beckett - - * src/raptor_serialize_rss.c: comments - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_statement): - Code style, remove if() depth. - -2009-02-27 Dave Beckett - - * src/raptor_rss_common.c: Make itunes:owner container work again. - -2009-02-25 Dave Beckett - - * src/raptor_rss_common.c: fix enclosure class/predicate RDF names - - * src/raptor_rss.h, src/raptor_rss_common.c: Added - RAPTOR_RSS_RDF_ENCLOSURE for enclosure predicate in RDF as well as - RAPTOR_RSS_RDF_ENCLOSURE_CLASS for enclosure class in RDF - - * src/raptor_rss.c: - (raptor_rss_start_element_handler): Declare as - seen the namespace for a block. - - * src/raptor_rss.h, src/raptor_rss_common.c: Add RAPTOR_ATOM_LINK - block type - - * src/raptor_rss.c: - (raptor_rss_emit_block): Emit type URI from - cls field, not predicate. - -2009-02-23 Dave Beckett - - * src/raptor_rss.c: raptor_rss_element loses unused rel field - - * src/raptor_rss.c: - (raptor_rss_start_element_handler): Remove - unused element attribute recognition and - - * src/raptor_rss.c: - (raptor_rss_start_element_handler): Set - enclosure namespace used if an enclosure block was seen. - -2009-02-22 Dave Beckett - - * src/raptor_rss_common.c: raptor_rss_items_info - add block - predicate types raptor_rss_fields_info - make atom:author a - block. add atom:Author, atom:Category, atom:label, atom:schema and - atom:term raptor_rss_block_fields_info - add new predicates for - atom:category block add atom:author block - - * src/raptor_rss.c: raptor_rss_parser gains current_block field to - store current metadata block object. - (raptor_rss_start_element_handler): Set current_block. - (raptor_rss_end_element_handler): Store any cdata in block field - with NULL attribute if there is one. - - * src/raptor_rss.c: - (raptor_rss_start_element_handler): Wildcard element name matches - for RSS namespaces - - * src/raptor_rss.c: - (raptor_rss_block_set_field): Added. - (raptor_rss_start_element_handler): Use above to set a block - attribute value - - * src/raptor_rss.c: raptor_rss_parser - comment. - (raptor_rss_start_element_handler): Use - raptor_rss_get_current_item to get item. When checking block - attributes, skip NULL attribute names - for element cdata - - * src/raptor_rss.c: - (raptor_rss_emit_block): Code style and skip block fields with no name. - (raptor_rss_emit_item): Code style. - - * src/raptor_rss_common.c: raptor_rss_fields_info modify to make - rss:link and rss:docs take URLs - - * src/raptor_rss.c, src/raptor_rss_common.c, - src/raptor_serialize_rss.c: Use RAPTOR_RSS_RDF_ENCLOSURE_CLASS for - enclosure class and RAPTOR_RSS_FIELD_ENCLOSURE for predicate - - * src/raptor_rss.h: RAPTOR_RSS_BLOCKS_SIZE 10 after removing rss - container - - * src/raptor_rss.h, src/raptor_rss_common.c: Add itunes: namespace - and itunes:owner container with fields in namespace itunes: - author, subtitle, summary, keywords explicit, image, name, block, - category and email - - * src/raptor_rss.h, src/raptor_rss_common.c: raptor_rss_type loses - RAPTOR_RSS_CATEGORY type. raptor_rss_block_fields_info loses rss - category - just make it a string value - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c: - raptor_rss_type delete RAPTOR_RSS_UNKNOWN and replace with - RAPTOR_RSS_NONE everywhere - -2009-02-21 Dave Beckett - - * src/raptor_rss.h, src/raptor_rss_common.c, - src/raptor_serialize_rss.c: raptor_rss_field_info renamed from - raptor_rss_info - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c, - src/raptor_serialize_rss.c: raptor_rss_items_info renamed from - raptor_rss_types_info raptor_rss_types_info gains a flags field to - distinguish blocks from containers. - (raptor_rss_add_container): Use flag to only scan containers, not - blocks. - (raptor_rss_emit_block): Handle all types of blocks. Use the node - type from raptor_rss_types_info to emit the node type. Use the - raptor_rss_block_fields_info to emit the predicates for all - blocks. - -2009-02-20 Dave Beckett - - * src/raptor_rss.c: - (raptor_rss_start_element_handler): Code style. - - * src/raptor_rss.c: - (raptor_rss_insert_identifiers): Tidy to use - raptor_set_identifier_uri. Indenting. - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c, - src/raptor_serialize_rss.c: - (raptor_rss_start_element_handler, raptor_rss_insert_identifiers, - raptor_rss10_serialize_statement): Use raptor_set_identifier_uri - and raptor_set_identifier_id and refactor to use them better. - (raptor_rss_block_make_blank_node, - raptor_rss_insert_block_identifiers): Deleted. - (raptor_rss_item_equals_statement_subject): Added. - (raptor_new_rss_block): Add id argument. - - * src/raptor_identifier.c, src/raptor_internal.h: - Added raptor_set_identifier_uri and raptor_set_identifier_id - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c, - src/raptor_serialize_rss.c: Remove old enclosure core and switch - to data-driven raptor_rss_block metadata code. Update copyrights - for 2009. typedef raptor_rss_block_fields_info renamed from - raptor_rss_block_info and add docs. Renamed field 'attribute' - from field_name, attribute_type from field_type. Added rdf - predicate info 'field'. raptor_rss_block_fields_info adds - predicate info. - (raptor_rss_start_element_handler): Read from - raptor_rss_block_fields_info. - (raptor_rss_insert_block_identifiers): Renamed from - raptor_rss_insert_enclosure_identifiers. - (raptor_rss_insert_identifiers): Call above with new name. - (raptor_rss_emit_block): Use more data tables to emit block. - - * src/raptor_rss_common.c: Add sentinel to end - raptor_rss_blocks_info array - - * src/raptor_rss.c: - (raptor_rss_start_element_handler): Recognise blocks from flags - and handle attributes @url, @length and @type - - statically for now. - - * src/raptor_rss.h, src/raptor_rss_common.c: raptor_rss_info gains - block flag and block_type to use when a block is found. - - * src/raptor_rss.c: - (raptor_rss_start_element_handler): Fix conditions for recognizing - inner containers. - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c: Add - raptor_rss_block_info to record other metadata blocks - configuration: rss enclosues, atom categories, rss category and - rss source. Switch raptor_rss_block structure from a list of - specific fields to short arrays of urls and strings. - (raptor_free_rss_block, raptor_rss_start_element_handler, - raptor_rss_insert_enclosure_identifiers, raptor_rss_emit_block): - Switch to generic raptor_rss_block URLs, strings - -2009-02-20 Lauri Aalto - - * src/raptor_rss.c: - (raptor_rss_emit_block): Compilation fix after function parameter - rename - -2009-02-19 Dave Beckett - - * src/raptor_rss.c: - (raptor_rss_emit_block): Renamed from raptor_rss_emit_enclosure - - * src/raptor_rss.h, src/raptor_rss_common.c: Add none raptor node type - - * src/raptor_rss.c: Code style / whitespace. - (raptor_rss_end_element_handler): Use - raptor_rss_get_current_item() to get update_item. - -2009-02-18 Dave Beckett - - * src/raptor_rss.c: - (raptor_rss_get_current_item): Pull logic out to get item for - current type. - (raptor_rss_start_element_handler): Fix inner container - processing. Look for rdf:about on an item to get item URI there - first. Pull out enclosure construction from general field - handling. - - * src/raptor_rss.c: - (raptor_rss_start_element_handler): Remove extra code block & - outdent. - - * src/raptor_rss.c: - (raptor_rss_promote_namespace_uri): Added for storing namespace - change rules. - (raptor_rss_start_element_handler): Use above to simplify field - search logic. Document how an element matches a field. - - * src/raptor_rss.c: - (raptor_rss_add_container): Add rules about inner containers, - setting prev_type if seen and put author element ambiguity rules - here. - (raptor_rss_start_element_handler): Use above to replace inner - container identification code. - - * src/raptor_rss.c: - (raptor_rss_add_container): Added, pulled out of - raptor_rss_start_element_handler to include the logic for - determining feed type and container from element name. - (raptor_rss_start_element_handler): Call above. - - * src/raptor_rss.c: - (raptor_rss_start_element_handler): Comments and tidying control - flow when identifying a container for rss_parser->current_type - - * src/raptor_rss.c: - (raptor_rss_block_make_blank_node): Added - pulled out of raptor_rss_insert_identifiers - (raptor_rss_insert_identifiers): Call above. - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c: - raptor_rss_block gains rss_type field - (raptor_new_rss_block): Take type as param and use to set - node_type. - (raptor_rss_insert_enclosure_identifiers): Remove node_type init - and let raptor_new_rss_block set it. - (raptor_rss_start_element_handler): Call raptor_new_rss_type with - param for enclosure. - - * src/raptor_rss.h: prototype param - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c: - raptor_rss_item renamed field enclosure to blocks. - (raptor_rss_insert_identifiers, raptor_rss_emit_item, - raptor_free_rss_item, raptor_rss_item_add_block): Renamed - item->enclosure to item->blocks and renamed variables. - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c: - Rename raptor_rss_enclosure to raptor_rss_block throughout and - corrected naming convention. - - (raptor_new_rss_block): Renamed from raptor_rss_new_enclosure. - (raptor_rss_item_add_block): Renamed from - raptor_rss_item_add_enclosure. - (raptor_free_rss_block): Renamed from raptor_enclosure_free. - - * src/raptor.h, src/raptor_feature.c, src/raptor_internal.h, - src/raptor_parse.c, src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_serialize_rss.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c, utils/rapper.c: - Added serializer feature - RAPTOR_FEATURE_ALIAS_DEFAULT_NAMESPACE (aliasDefaultNamespace) for - atom and rss 1.0 serializers to prevent declaring the default - namespace twice with a prefix and without. raptor_feature gains - RAPTOR_FEATURE_ALIAS_DEFAULT_NAMESPACE raptor_features_list gains - new feature - - (raptor_turtle_writer_set_feature, raptor_sax2_set_feature, - raptor_xml_writer_set_feature, raptor_set_feature, - raptor_get_feature, raptor_serializer_set_feature_string, - raptor_serializer_get_feature_string): enum extensions for - raptor_feature switches. struct raptor_serializer_s gains int - field feature_alias_default_namespace - raptor_rss10_serializer_context gains a flag free_default_nspace - to know when to free default namespace now that it may not be - needed. - (raptor_rss10_serialize_terminate): Use the free_default_nspace - flag. - (raptor_rss10_build_xml_names): Implement altered namespace - declaration rules. - (raptor_new_serializer_v2): Initialise default namespace aliasing - to true by default. - (raptor_serializer_set_feature): Set flag. - - * src/raptor_rss.h: document struct raptor_rss_enclosure_s fields - -2009-02-18 Lauri Aalto - - * src/raptor_internal.h, src/raptor_sax2.c: Lowmem fixes in - raptor_sax2 - - (raptor_sax2_s): Internal struct gains "failed" field. - - (raptor_sax2_parse_start): - Check for raptor_namespaces_init_v2() failure and set sax2 struct - failure flag. - - (raptor_sax2_start_element, raptor_sax2_end_element, - raptor_sax2_characters, raptor_sax2_cdata, raptor_sax2_comment, - raptor_sax2_unparsed_entity_decl, - raptor_sax2_external_entity_ref): - No-op if sax2 struct in failed state. - - * src/raptor_namespace.c: - (raptor_namespaces_init_v2): Check for alloc failure - - * src/raptor_namespace.c: - (raptor_namespaces_qname_from_uri): Init ns to NULL to prevent - use-before-init warnings from some optimizing compilers. - -2009-02-17 Dave Beckett - - * src/raptor_namespace.c: - (raptor_namespaces_get_default_namespace): Make this work again - - look for default namespace in correct bucket. - - * librdfa/rdfa.c, src/raptor_internal.h, src/raptor_namespace.c: - Replace namespace storage from a linked list to a hash on prefix - using raptor_hash_ns_string() witb a DJ Bernstein hash. This - makes turtle parsing with lots of namespaces (100s) much faster. - Based on the initial patch in the bug it fixes. - - Fixes Issue#0000290 http://bugs.librdf.org/mantis/view.php?id=290 - -2009-02-10 Dave Beckett - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_ensure_writen_header): - For XMP add a cosmetic newline after - - * src/raptor_rdfxml.c: - (raptor_rdfxml_generate_statement): Adjust predicate_type when - removing ordinal identifier type from predicate. - Fixes Issue#0000293 http://bugs.librdf.org/mantis/view.php?id=293 - diff --git a/ChangeLog.11 b/ChangeLog.11 deleted file mode 100644 index 43ab1f31..00000000 --- a/ChangeLog.11 +++ /dev/null @@ -1,5416 +0,0 @@ -2010-12-29 Dave Beckett - - * src/raptor_parse.c: - (raptor_world_guess_parser_name): Fix guessing by URI - - * src/Makefile.am, src/raptor.h.in, src/raptor_parse.c, - src/raptor_serialize.c, src/raptor_syntax_description.c: Restore - array counts to syntax description. - - Pull out common validation. - - raptor_syntax_description gains names_count, mime_types_count and - uri_strings_count all computed at registration. - - (raptor_syntax_description_validate): Added to public API to - validate and compute counts. - - (raptor_world_register_parser_factory, - raptor_world_register_serializer_factory): Call above for common - validation checks. - - * src/ntriples_parse.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_json.c, src/raptor_librdfa.c, src/raptor_parse.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_serialize.c, - src/raptor_serialize_dot.c, src/raptor_serialize_html.c, - src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c, - src/turtle_parser.y: Update parsers and serializers to use - uri_strings for syntax description. - - * src/raptor.h.in: raptor_syntax_description has an array of URI - strings, loses mime types count. - -2010-12-02 Dave Beckett - - * src/raptor_rss.c: - Lower RSS mime type q values to 0.8 since that - is good enough, raptor cannot ever reach 100% - -2010-12-01 Dave Beckett - - * NEWS.html, RELEASE.html, configure.ac, - src/win32_raptor_config.h: - Bumped version to 1.9.2 - - * README.html: - N-Quads - -2010-12-01 Dave Beckett - - * Snapshotted raptor2_1_9_1 for 1.9.1 release (GIT - 697d55552c5897afab65715d16abbce838acd3e7) - -2010-11-30 Dave Beckett - - * src/raptor_www_curl.c: Respect Content-Location: header in HTTP - responses for final URI - - (raptor_www_curl_update_status): If HTTP header Content-Location: - was found, use that rather than the HTTP 3xx redirect URI. - - (raptor_www_curl_header_callback): Use raptor_strncasecmp rather - than strncmp to find content type and content location. If - content location is found, set the final_uri - - Fixes Issue#0000402 http://bugs.librdf.org/mantis/view.php?id=402 - - * docs/Makefile.am, docs/raptor1-eol.html: Add raptor1-eol.html - - * INSTALL.html: - update - encouraging the released tarballs path - - * src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: - Remove unused created_p args / variables from raptor_abbrev - internal APIs - -2010-11-29 Dave Beckett - - * src/raptor.h.in, src/raptor_term.c: Added convenience methods - for constructing URI terms - - (raptor_new_term_from_counted_uri_string, - raptor_new_term_from_uri_string): Added to replace a common - pattern of make uri, make term, free uri. - -2010-11-22 Dave Beckett - - * src/raptor_general.c, src/raptor_internal.h: Update defensive - code for checking raptor_world - - * src/raptor_general.c: autodocs - - * docs/raptor-sections.txt: Add new symbols - -2010-11-21 Dave Beckett - - * docs/tmpl/section-world.sgml: - Update tmpls - - * src/.gitignore: - ignore raptor.h - - * configure.ac, src/Makefile.am, src/raptor.h, src/raptor.h.in, - src/raptor_general.c: - (raptor_new_world): Turn into a macro around the internal - raptor_new_world_internal() - - * src/raptor_general.c, src/raptor_internal.h, - src/raptor_iostream.c, src/raptor_libxml.c, - src/raptor_namespace.c, src/raptor_parse.c, src/raptor_qname.c, - src/raptor_sax2.c, src/raptor_serialize.c, src/raptor_statement.c, - src/raptor_term.c, src/raptor_turtle_writer.c, src/raptor_uri.c, - src/raptor_www.c, src/raptor_xml_writer.c: Check world object is - valid for Raptor V2 in every constructor - - RAPTOR2_WORLD_MAGIC: Alter the RAPTOR_MAGIC value to be different - for raptor V2 and rename it in code. RAPTOR1_WORLD_MAGIC is the - old value. - - (raptor_check_constructor_world): Added to handle the check and - provide a function to debugger-break on. It warns once about the - pointer problems using a static var. - - (RAPTOR_CHECK_CONSTRUCTOR_WORLD): Macro added to call - raptor_check_constructor_world() and replace generic - RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE check. - - * src/raptor_librdfa.c: - (raptor_librdfa_parse_start): Call - rdfa_set_processor_graph_triple_handler with context. - - * scripts/process-changes.pl: - print_statement_field_renames_as_perl_script added. - labels - - * docs/raptor-1-to-2-map.tsv: more notes - - * scripts/process-changes.pl: Update titles - - * scripts/process-changes.pl: Fix delete enum output - - * docs/raptor-1-to-2-map.tsv: RAPTOR_FEATURE_ASSUME_IS_RDF and - RAPTOR_FEATURE_START_URI were deleted. - - * docs/raptor-1-to-2-map.tsv: - Add enum changes - - * scripts/process-changes.pl: Handle enums - - * docs/Makefile.am: upgrade-script.pl depends on tsv file - -2010-11-17 Dave Beckett - - * src/raptor_librdfa.c: Replace rdfa_set_triple_handler with - rdfa_set_default_graph_triple_handler - - * librdfa/rdfa.c, librdfa/rdfa.h, librdfa/triple.c: Update to - librdfa GIT 1a1a08c790b7649a7f6c12fb9e40c0d3dbe70481 - -2010-11-08 Dave Beckett - - * src/ntriples_parse.c, src/raptor_grddl.c, src/raptor_internal.h, - src/turtle_parser.y: Fixes for C++ - Casts for C++ from void* to - typed pointer/function pointers - Rename some prototype args to - avoid 'explicit' C++ keyword. - -2010-11-07 Dave Beckett - - * docs/raptor-sections.txt, docs/tmpl/section-stringbuffer.sgml, - docs/tmpl/section-triples.sgml: Update generated docs - - * src/raptor_stringbuffer.c: docs - - * UPGRADING.html: deleted questions - - * RELEASE.html: 1.9.1 - - * RELEASE.html, src/raptor.h, src/raptor_term.c: Removed - raptor_term_as_counted_string() and raptor_term_as_string() - replaced by _to_ versions. These were 'deprecated' in GIT but - since 1.9.0 Raptor V2 was beta, it is OK to delete them. - - * RELEASE.html: 1.9.1 - -2010-10-27 Dave Beckett - - * src/raptor_avltree.c: - (raptor_avltree_print): Free avltree_iterator at end - -2010-10-22 Dave Beckett - - * src/ntriples_parse.c: N-Quads code tidying - - * tests/ntriples/Makefile.am: Remove N-Quads from N-Triples test - files so Turtle parser doesn't barf. - - * tests/ntriples/Makefile.am: #typo - - * configure.ac: Typo in AM_CONDITIONAL enabling N-Quads parser - - * tests/ntriples/Makefile.am: Add $(NQ_OUT_FILES) to dist - - * tests/json/Makefile.am: example4.nt - - * configure.ac, src/Makefile.am, src/ntriples_parse.c, - src/raptor_internal.h, src/raptor_parse.c, - tests/ntriples/Makefile.am, tests/ntriples/testnq-1.nq, - tests/ntriples/testnq-1.out: Added N-Quads parser. Hey, that was - easy! - - Don't allow literal graphs/contexts despite that being in the spec - at http://sw.deri.org/2008/07/n-quads/ because it's a stupid idea. - Added test from the spec - -2010-10-18 Dave Beckett - - * src/raptor.h, src/raptor_stringbuffer.c: - (raptor_stringbuffer_append_uri_escaped_counted_string): Added - - * src/raptor.h, src/raptor_stringbuffer.c: - (raptor_stringbuffer_append_hexadecimal): Added - -2010-10-18 Lauri Aalto - - * src/raptor_serialize.c: #doc typo - -2010-10-17 Dave Beckett - - * src/raptor_iostream.c: Fix major copying too much error with - raptor_read_string_iostream_read_bytes() memcpy - - (raptor_read_string_iostream_read_bytes): Adjust copied bytes to - the maximum available in the buffer, not the maximum requested by - user. Could cause crashes since memcpy is called to always copy - the maximum amount the user requests, whatever amount of data is - in the string. - -2010-10-15 Dave Beckett - - * src/raptor_serialize.c: - (raptor_serializer_start_to_iostream): Reset free_iostream_on_end - flag to prevent crashes on reuse. - -2010-10-11 Dave Beckett - - * src/ntriples_parse.c: - (raptor_ntriples_parse_recognise_syntax): Refuse to handle .ttl or - .n3 named content. - -2010-10-09 Dave Beckett - - * librdfa/rdfa.c, librdfa/rdfa.h: Update to librdf GIT commit - ddead5d1f72acd7fcd9e4c42503eadcce9d6ec87 - -2010-10-07 Dave Beckett - - * docs/raptor-1-to-2-map.tsv: Add raptor_parser_parse_iostream - - was new in 1.9.0 - -2010-10-01 Dave Beckett - - * src/raptor_log.c: - (raptor_log_error): code tidy - - * src/raptor.h: raptor_log_message: autodocs - -2010-09-28 Dave Beckett - - * src/raptor_uri.c: Remove use of strncmp when strings are same - length - - (raptor_uri_equals): Use memcmp() on same length strings to remove - need for strncmp that looks for NULs. - - (raptor_uri_compare): Use memcmp() on same length strings to - remove need for strncmp that looks for NULs. Sort shorter urls - earlier by comparing lengths. - -2010-09-28 Nicholas J Humfrey - - * tests/json/Makefile.am, tests/json/example4.json, - tests/json/example4.nt: Added a more 'real-world' JSON pasing test - file, that includes a rdf:type URI. - - * src/raptor_uri.c: - (raptor_uri_equals): small optimisation - URI lengths are now - compared before comparing strings. - - * src/raptor_uri.c: - (raptor_uri_compare): URI comparison now takes into account the - stored string length, and does not depend upon NULL-termination of - strings. - -2010-09-24 Dave Beckett - - * configure.ac: - Use AC_LANG_SOURCE for gcc flag test - -2010-09-19 Dave Beckett - - * ChangeLog, ChangeLog.10, Makefile.am: - Added ChangeLog.10 for 2009 - - * NEWS.html, RELEASE.html, configure.ac, src/win32_raptor_config.h: - - Bumped version to 1.9.1 - - * src/raptor_rss_common.c: - (raptor_new_rss_block): Copy block_term when needed, do not own - it. - -2010-09-16 Dave Beckett - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c: - Use raptor_term as arg to raptor_new_rss_block - - (raptor_new_rss_block): Change blank node ID to a raptor_term arg. - - (raptor_rss_start_element_handler): Adjust call to - raptor_new_rss_block. - -2010-09-13 Dave Beckett - - * src/raptor_serialize_rss.c: - (raptor_rss10_store_statement): Code tidy to move checks out of - loop. - -2010-09-12 Dave Beckett - - * src/raptor_abbrev.c, src/raptor_serialize_rss.c: Remove internal - uses of deprecated raptor_term_as_string() - - * src/raptor_serialize_rss.c: Copy statements when saving them for - later. - - (raptor_rss10_store_statement): Move copy statement only when not - handled, no need to do copy/free. - - (raptor_rss10_serialize_statement): Pass on handled but do not do - copy statmenethere. - - * src/raptor_serialize_rss.c: When debugging free memory allocated - by raptor_term_as_string() - - * src/raptor.h, src/raptor_term.c: - Deprecated raptor_term_as_..._string() for _to_...string form - - (raptor_term_to_counted_string): Added replacing - raptor_term_as_counted_string. - - (raptor_term_to_string): Added replacing - raptor_term_as_string. - - (raptor_term_as_counted_string, raptor_term_as_string): - Deprecated. - - * src/raptor_librdfa.c: Make rdfa (librdfa) parser correctly - initialize static statement - - (raptor_librdfa_parse_init): Init static statement with - raptor_statement_init() so reference counting and copying works. - - * src/raptor_rss.c: Make RSS parser correctly initialize static - statement - - (raptor_rss_parse_init): Init static statement with - raptor_statement_init() so reference counting and copying works. - - * src/raptor_serialize_rss.c: - (raptor_rss10_store_statement): Never call raptor_free_statement() - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_statement): Tidy logic looking for type - triples. - - * src/raptor_serialize_rss.c: Update debug messages to emit raptor - term not assume URIs - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_statement): Do not set block URIs from - blank nodes - - * src/raptor_serialize_rss.c: - Fix crash in serializing to atom when comparing blank node as URI - - (raptor_rss10_serialize_statement): Do not assume object is URI. - NOTE: This should use raptor_term_equals and be rewritten to - remove the item_uri code. - -2010-09-02 Nicholas J Humfrey - - * src/raptor_serialize_json.c: - (raptor_json_serialize_start): Corrected option macro name from - RAPTOR_OPTION_RELATIVE_URIS to RAPTOR_OPTION_JSON_CALLBACK. - -2010-08-22 Nicholas J Humfrey - - * raptor2.rdf.in: - Normalised tabs into spaces #ws - -2010-08-17 Dave Beckett - - * src/raptor_nfc_test.c: Update for Raptor 2 API. - -2010-08-16 Dave Beckett - - * Snapshotted raptor2_1_9_0 for 1.9.0 release (GIT - 9223bfb82c7291dfc778d5bde690a6ecdb652e8e) - -2010-08-15 Dave Beckett - - * UPGRADING.html: remove overview section - - * INSTALL.html, LICENSE.html, NEWS.html, README.html, - RELEASE.html, UPGRADING.html: Tidy HTML style and change title to - Raptor RDF Syntax Library - - * TODO.html: Empty document and point at bugs.librdf.org - - * UPGRADING.html, Makefile.am: Added UPGRADING.html - - * docs/tmpl/section-general.sgml: Update tmpl for adding - raptor_log_message - - * src/raptor.h: Remove newline so raptor_log_message gets scanned - by gtk-doc! - - * docs/raptor-sections.txt: Add raptor_log_message - - * docs/.gitignore: Ignore raptor-fake.i for real - - * docs/.gitignore: Ignore raptor-fake.i - - * docs/Makefile.am, docs/tmpl/section-general.sgml: Make - raptor-fake.i generate properly - - * scripts/Makefile.am: restore CLEANFILES - - * docs/Makefile.am, scripts/Makefile.am, - scripts/fix-gtkdoc-header.pl: Attempt to fix raptor.h header to - make gtk-doc happier - - * docs/raptor-1-to-2-map.tsv: more words in notes - - * docs/raptor-tutorial-parsing.xml: need base uri pointer - - * docs/raptor-tutorial-serializing.xml: enumeration - - * docs/raptor-tutorial-parsing.xml: enumeration - - * docs/raptor-tutorial-querying-functionality.xml: typo - - * docs/raptor-tutorial-parsing.xml: raptor 2 - - * docs/raptor-tutorial-intro.xml: raptor 2 - - * docs/.gitignore: Ignore upgrade-script.pl - - * scripts/build-formats.c: Call emit_format_to_syntax_list() at - end to emit last seen mime type. - - * scripts/build-formats.c: - (emit_format_to_syntax_list): Added to emit format -> list of - parser/serializers. - - * scripts/build-formats.c: print previous mime type in types index - - * src/raptor_serialize_ntriples.c: Label nquads as "N-Quads" - -2010-08-14 Dave Beckett - - * docs/libraptor2.3: Cut down for raptor2 and point to API docs in - HTML - - * README.html: N-Quads serializer - - * docs/raptor-parsers.xml: JSON parser - - * INSTALL.html, README.html, raptor2.rdf.in: Update docs to point - to GitHub source and browse - - * 000-README-GIT.txt: Remove migration text - - * AUTHORS: Add Nicholas J Humfrey - - * docs/tmpl/section-locator.sgml: Update generated tmpl for - locator rename - - * RELEASE.html: 1.9.0 notes - - * docs/raptor-serializers.xml: Add N-Quads section - - * tests/trig/Makefile.am: Add bug370.out to dist - - * tests/trig/Makefile.am, tests/trig/bug370.out, - tests/trig/bug370.trig, tests/trig/example1.out, - tests/trig/example2.out, tests/trig/example3.out: - Convert TRiG output results file to N-Quads to check graph - parameter. - - * configure.ac, src/Makefile.am, src/raptor_internal.h, - src/raptor_serialize.c, src/raptor_serialize_ntriples.c: - Add N-Quads serializer name 'nquads' using N-Triples serializer. - - Add conditions in makefile to allow ntriples and/or nquads - serializers - - raptor_ntriples_serializer_context rename dummy field to is_quads - - (raptor_ntriples_serialize_statement): Pass on flag to print - graph. - - (raptor_nquads_serializer_register_factory): Added to register - nquads serializer with text/n-quads mime type - - (raptor_init_serializer_nquads): Added - -2010-08-11 Dave Beckett - - * tests/turtle/Makefile.am, tests/turtle/bad-23.ttl: - Add bad test bad-23 for - http://bugs.librdf.org/mantis/view.php?id=369 - -2010-08-09 Dave Beckett - - * docs/raptor-1-to-2-map.tsv, docs/raptor-sections.txt, - src/raptor.h, src/raptor_locator.c: Revert - raptor_locator_uri_string to raptor_locator_uri to protect Reland - SWIG API - - * configure.ac, src/raptor_general.c, src/raptor_internal.h: - Remove --with-dmalloc and dmalloc library support - -2010-08-09 Lauri Aalto - - * src/raptor_term.c: STANDALONE flagging for raptor_term unit - tests - -2010-08-08 Dave Beckett - - * docs/raptor-1-to-2-map.tsv: ID function rename typo - -2010-08-08 Dave Beckett - - * docs/tmpl/section-parser.sgml, docs/tmpl/section-triples.sgml, - docs/tmpl/section-world.sgml: Update tmpls - -2010-08-08 Dave Beckett - - * docs/raptor-sections.txt: Update sections for ID handler changes - - * configure.ac: Protect checks for optional configure tests - with quoting and X - -2010-08-08 Nicholas J Humfrey - - * src/raptor_json.c: The JSON parser supports both - Resource-Centric and Triples. - -2010-08-06 Dave Beckett - - * src/raptor_grddl.c: Simplify libxslt save/restore logic - - (raptor_libxslt_set_global_state): Always save default - security prefs. - - (raptor_libxslt_reset_global_state): Always restore default - security prefs. - - (raptor_init_parser_grddl_common): Init sec prefs if policy - allows and NULL - - * src/raptor_grddl.c: Alter GRDDL init/cleanup of libxslt to be - done around transform - - This means that raptor can operate in a single threaded - environment with other libxslt users, since it saves/restores all - the libxslt global vars that it needs back to their original state - after every xslt transform. - - raptor_grddl_parser_context gains saved_xsltGenericError, - saved_xsltGenericErrorContext and saved_xsltSecurityPrefs fields. - - (raptor_grddl_run_grddl_transform_doc): Use - raptor_libxslt_set_global_state() and - raptor_libxslt_reset_global_state() to save restore around - transforms. - - (raptor_init_parser_grddl_common): Do not set default security - prefs. - - (raptor_terminate_parser_grddl_common): NULL security prefs after - freeing them. - - (raptor_libxslt_set_global_state): Added to save libxslt shared - state that grddl parser needs to overwrite. - - (raptor_libxslt_reset_global_state): Added to reset state back to - original values. - - Candidate for backporting to raptor1 since it has no API impact. - - * src/raptor_grddl.c: Document libxslt global settings. - - (raptor_grddl_run_grddl_transform_doc): set per-transform generic - error handler - - * docs/raptor-1-to-2-map.tsv: Update from genid changes - - Renamed 1.9.0 genid functions are renamed again, moving to world - class. - - raptor_world_set_generate_bnodeid_parameters renamed from - raptor_parser_set_default_generate_id_parameters - - raptor_world_set_generate_id_handler renamed from - raptor_parser_set_generate_id_handler - - New 1.9.0 genid function renamed: - - raptor_world_generate_bnodeid renamed from - raptor_parser_get_new_generated_id and loses type arg. - - * src/raptor_general.c, src/raptor_grddl.c, src/raptor_internal.h: - Make XSLT security preference setting totally disableable - - (raptor_world_set_libxslt_security_preferences): If user sets any - value, even NULL, record that. - - (raptor_init_parser_grddl_common): If pointer is NULL and user - didn't set it, only then make raptor-specific policy. - - (raptor_terminate_parser_grddl_common): If pointer is not NULL and - raptor set it, then free policy. - - xslt_security_preferences_policy field of raptor_world internal - renamed from free_xslt_security_preferences - - This patch is a candidate for backporting to raptor1. - - * src/raptor_www.c: - (raptor_www_set_user_agent): memcpy comment - - * src/raptor_libxml.c: memcpy replacing more strcpy for known - length strings. Check NUL copying. - - * src/raptor_www.c: memcpy replacing more strcpy for known length - strings. Check NUL copying. - - * src/raptor_sax2.c: - (raptor_sax2_start_element): memcpy replacing strcpy with known - length string. - - * src/raptor_qname.c: memcpy replacing more strcpy for known - length strings. Check NUL copying. - - * src/raptor_namespace.c: - (raptor_new_namespace_from_uri): memcpy replacing strcpy - - * src/raptor_uri.c: - (raptor_uri_filename_to_uri_string): memcpy replacing strcpy - - * src/raptor_uri.c: - (raptor_new_uri_for_rdf_concept): memcpy replacing strcpy - - * src/raptor_uri.c: - (raptor_new_uri_from_id): memcpy replacing strcpy - - * src/raptor_uri.c: - (raptor_uri_print): Correct error check and simplify code. - -2010-08-05 Nicholas J Humfrey - - * src/raptor_term.c: Changed behaviour of - raptor_new_term_from_counted_blank() and - raptor_new_term_from_blank() to generate a new identifier if NULL - is passed in. - - * src/ntriples_parse.c: Fix for ntriples parsing after the - raptor_world_generate_bnodeid() changes. Fix was to delete code - - blank nodes must be named in ntriples. - -2010-08-04 Dave Beckett - - * src/raptor_guess.c, src/raptor_internal.h: Remove internal - raptor_parser_get_current_base_id and raptor_parser_factory method - - * src/ntriples_parse.c, src/raptor.h, src/raptor_general.c, - src/raptor_grddl.c, src/raptor_internal.h, src/raptor_parse.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/turtle_parser.y: Move - generate ID code from raptor_parser to raptor_world class - - (raptor_world_generate_bnodeid): Replaces - raptor_parser_internal_generate_id with arg - RAPTOR_GENID_TYPE_BNODEID. - - Enum raptor_genid_type deleted - only RAPTOR_GENID_TYPE_BNODEID was - ever used. - - raptor_generate_bnodeid_handler handler typedef renamed from - raptor_generate_id_handler since it now just applies to blank node - IDs. - - raptor_generate_bnodeid_handler handler renamed from - raptor_generate_id_handler. - - (raptor_free_world): Free user genid prefix if set. - - (raptor_world_set_generate_bnodeid_handler): Renamed from - raptor_parser_set_generate_id_handler. - - (raptor_world_generate_bnodeid): Renamed from - raptor_parser_get_new_generated_id and loses type arg. - - (raptor_world_set_generate_bnodeid_parameters): Renamed from - raptor_parser_set_default_generate_id_parameters. - - Update all callers to mostly use raptor_world_generate_bnodeid() - except where a user bnode ID is given, such as in Turtle _:foo or - RDF/XML rdf:nodeid="foo". - - Remove copying of genid fields from parsers to parsers when - creating sub-parsers for e.g. grddl. - - typedef raptor_parser loses generate_id* and default_generate_id* - fields. - - (raptor_world_internal_generate_id): Renamed from - raptor_parser_internal_generate_id and loses type arg. - - typedef raptor_world gains generate_bnodeid and - default_generate_bnodeid fields. - - (raptor_free_parser): Lose tidying user genid prefix. - - (raptor_parser_copy_user_state): Remove copying of genid fields - between parser user states. - - (raptor_parser_get_current_base_id): Deleted, no longer needed to - support copying genids between parser states. - -2010-08-03 Dave Beckett - - * src/raptor_term.c: More raptor_term unit tests - - * src/Makefile.am, src/raptor_term.c: Add unit tests for - raptor_term - -2010-08-02 Dave Beckett - - * src/raptor_term.c: - (raptor_term_equals): Make terms *different* not equal if lengths - are different - -2010-07-20 Dave Beckett - - * tests/rdfa/Makefile.am: typo - - * tests/rdfa/Makefile.am: Use automake conditional - RAPTOR_PARSER_RDFA to enable tests - - * tests/json/Makefile.am: Use automake conditional - RAPTOR_PARSER_JSON to enable tests - - * tests/grddl/Makefile.am: Use automake conditional - RAPTOR_PARSER_GRDDL to enable tests - - * docs/raptor-parsers.xml: Added json parser section - - * src/raptor_json.c: Note this is RDF/JSON parser (resource - centric) today - - * src/raptor_serialize_json.c: Accept "text/json" mime type with - low Q for json serializers - - * INSTALL.html: words - - * INSTALL.html: correct autotools min versions - - * INSTALL.html: GIT - - * INSTALL.html: add YAJL pointers - - * configure.ac: add yajl pointer - - * configure.ac: Added --with-yajl=DIR (or 'no') to configure where - yajl is installed. - - * scripts/process-changes.pl: docs - -2010-07-02 Lauri Aalto - - * tests/json/Makefile.am: Run JSON parser tests only if the parser - is enabled - -2010-07-01 Nicholas J Humfrey - - * src/raptor_json.c: Added space after commas in parameter lists - - * src/raptor_json.c: Removed spaces after if - - * src/raptor_json.c: Changed single line if-statments to two line - if statements - - * src/raptor_json.c: Changed C++ style comments to C style - - * tests/json/Makefile.am, tests/json/bad-13.json: Added a Test - Case for missing out the term type - - * src/raptor_json.c: Textual changes to error messages. - -2010-06-30 Nicholas J Humfrey - - * src/raptor_json.c: Removed unused debugging code. - - * tests/json/Makefile.am, tests/json/bad-00.json, - tests/json/bad-01.json, tests/json/bad-02.json, - tests/json/bad-03.json, tests/json/bad-04.json, - tests/json/bad-05.json, tests/json/bad-06.json, - tests/json/bad-07.json, tests/json/bad-08.json, - tests/json/bad-09.json, tests/json/bad-10.json, - tests/json/bad-11.json, tests/json/bad-12.json: Added example of - bad RDF/JSON to check for parse errors. - - * src/raptor_json.c: Slightly stricter parsing of JSON. Better - error messages then things go wrong. - - * src/raptor_json.c, tests/json/Makefile.am, - tests/json/example3.json, tests/json/example3.nt: Enabled allowing - comments in JSON - - * src/raptor_json.c: Fixed comparision between signed and unsigned - integers. - -2010-06-29 Nicholas J Humfrey - - * src/raptor_json.c: Improved JSON syntax detection to look at the - content. - - * src/raptor_json.c: Lots of code re-factoring. - - Improved error handling - - Using Raptor memory allocation - - Improved memory management - - * src/raptor_json.c: Changed malloc() to RAPTOR_MALLOC, free() to - RAPTOR_FREE(). - - * src/raptor_json.c: Rewrote fprintf(stderr, ...) to - raptor_parser_fatal_error(...) - -2010-06-28 Dave Beckett - - * src/raptor_uri.c: - (raptor_new_uri_from_counted_string): autodoc to note counted - string need not be NULL-terminated. - - * src/raptor_term.c: autodocs to note counted string constructors - need not be given NULL-terminated strings. - -2010-06-27 Nicholas J Humfrey - - * src/raptor_json.c: Added RATOR_JSON_ prefix to symbols. Code - cleanup. - - * src/raptor_json.c, tests/json/Makefile.am, - tests/json/example1.json, tests/json/example1.nt, - tests/json/example2.json, tests/json/example2.nt: Added support - for parsing resource-centric JSON - - * configure.ac, tests/Makefile.am, tests/json/Makefile.am, - tests/json/example1.json, tests/json/example1.nt, - tests/json/example2.json, tests/json/example2.nt: Created some - tests for RDF/JSON. - - * src/raptor_json.c: Added support for Bnodes and Datatyped - literals. Fix for parsing small files. - - * src/raptor_json.c: Commiting initial work on writing an JSON - parser. - - Currently only handles json-triples. - - Lots of tidying up required: - symbol names - remove debugging - messages - sort out memory management - -2010-06-26 Nicholas J Humfrey - - * configure.ac, src/Makefile.am, src/raptor_internal.h, - src/raptor_parse.c: Added libyajl library checking and json parser - building to automake - -2010-06-06 Dave Beckett - - * examples/grapper.c: code style - - * examples/Makefile.am: Add grapper-future rule - - * examples/grapper.c: fix menu preferences link - - * examples/grapper.c: Remove more deprecated GTK - GtkToolTips and - trigger based on macro - -2010-06-05 Dave Beckett - - * examples/grapper.c: Better but preferences menu still broken - - * examples/grapper.c: Another attempt, still crashes. GTK docs - also suck - - * examples/grapper-ui.xml, examples/grapper.c: GtkUIManager and - external XML file is too damn complex to make work - disable. - - * examples/grapper-ui.xml: Add GTK UI xml - - * examples/grapper.c: more code explanation - - * examples/grapper.c: Make both combo box alternatives work - - * examples/grapper.c: Replace deprecated (in 2.4.x) - gtk_option_menu with gtk_combo_box - - * examples/grapper.c: more 2.5.0+ code pruning - - * examples/grapper.c: Require GTK 2.5.0+ (that's still quite old!) - - * examples/grapper.c: code style - - * examples/grapper.c: Update to Raptor 2 API - -2010-06-02 Dave Beckett - - * docs/raptor-sections.txt: added - raptor_new_term_from_counted_blank - - * src/raptor_term.c: fix raptor_new_term_from_counted_blank - - * docs/raptor-1-to-2-map.tsv, src/raptor.h, src/raptor_term.c: - Added raptor_new_term_from_counted_blank for term with counted - length ID. - - (raptor_new_term_from_counted_blank): Added - - * docs/raptor-1-to-2-map.tsv, docs/raptor-sections.txt, - docs/tmpl/section-triples.sgml: Update docs for - raptor_new_term_from_counted_literal - - * src/raptor.h, src/raptor_term.c: Added - raptor_new_term_from_counted_literal for constructing from strings - with known lengths. - - (raptor_new_term_from_counted_literal): Added - - (raptor_new_term_from_literal): Now calls - raptor_new_term_from_counted_literal. - -2010-05-25 Dave Beckett - - * src/raptor_term.c: - (raptor_new_term_from_literal): Fail if language and datatype are - given like librdf_new_node_from_typed_literal - - * docs/raptor-1-to-2-map.tsv, src/raptor.h, - src/raptor_serialize_ntriples.c: - (raptor_statement_ntriples_write): Add flag to decide whether to - write graph term. - - * src/raptor_serialize_ntriples.c, src/raptor_statement.c: - (raptor_statement_print_as_ntriples, - raptor_statement_ntriples_write): Write N-Triples not N-Quads - -2010-05-25 Lauri Aalto - - * src/raptor_term.c: - (raptor_new_term_from_literal): Ownership of language should not - be taken. - - * src/raptor_term.c: - (raptor_new_term_from_literal): Do not overwrite literal length - with language length. - -2010-05-24 Dave Beckett - - * docs/raptor-1-to-2-map.tsv, docs/raptor-sections.txt: Add new - statement methods to sections and functions map - - * src/raptor_serialize_html.c, src/raptor_serialize_rdfxml.c: - (raptor_term_html_write, raptor_rdfxml_serialize_statement): Use - literal and language length fields direct, remove strlen()s - - * src/raptor_serialize_ntriples.c: - (raptor_term_ntriples_write, raptor_statement_ntriples_write): - Check for NULL args and early write failures - - * src/raptor_term.c: - (raptor_term_as_counted_string, raptor_term_as_string, - raptor_term_print_as_ntriples, raptor_term_equals): Check for NULL - term args - - * src/raptor_statement.c: - (raptor_statement_compare): Return stable order if both statements - are NULL - - * src/raptor_statement.c: - (raptor_statement_print, raptor_statement_print_as_ntriples): - Check statement arg is not NULL - - * src/raptor.h, src/raptor_statement.c: - (raptor_statement_equals): Added to public API - - * src/raptor.h: Add raptor_statement_copy to public API - - * src/raptor.h, src/raptor_statement.c: Add new public function - raptor_statement_clear - (raptor_statement_clear): Added based on core of - raptor_statement_free. - (raptor_statement_free): Simplified. - - * src/raptor_statement.c: - (raptor_new_statement,raptor_new_statement_from_nodes, - raptor_statement_copy): Validate args are not NULL - - * src/raptor.h, src/raptor_internal.h: Export - raptor_new_statement, raptor_new_statement_from_nodes and - raptor_statement_copy to public API - -2010-05-18 Dave Beckett - - * src/Makefile.am, src/raptor_statement.c, src/raptor_term.c: Move - raptor_term class code to new raptor_term.c - - * src/raptor_uri.c: - (raptor_uri_compare): code tidier - - * src/raptor_uri.c: - (raptor_uri_compare): Make both NULL be equal. - - * src/raptor_uri.c: - (raptor_uri_compare): Update to match librdf_uri_compare when both - NULL. - -2010-05-16 Dave Beckett - - * docs/raptor-1-to-2-map.tsv: Added raptor_term_blank_value - - * scripts/Makefile.am: add rule for building libraptor2.la - - * src/raptor_locator.c: #docs - - * docs/raptor-sections.txt: Add raptor_term_blank_value - - * utils/rdfdiff.c: Update to new raptor_term blank fields - - * src/raptor_statement.c: Initialize raptor_term length fields - (raptor_new_term_from_literal, raptor_new_term_from_blank): - init the fields. - (raptor_term_equals): Use lengths as short cut for difference. - - * src/raptor.h, src/raptor_rdfxml.c, src/raptor_serialize_dot.c, - src/raptor_serialize_html.c, src/raptor_serialize_json.c, - src/raptor_serialize_ntriples.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c, - src/raptor_statement.c, src/turtle_parser.y: raptor_term blank is - now a new typedef raptor_term_blank_value with length field. - Update all callers - - * src/raptor.h: raptor_term_literal_value gains string_len and - language_len fields - -2010-05-14 Dave Beckett - - * src/ntriples_parse.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_namespace.c, src/raptor_option.c, src/raptor_parse.c, - src/raptor_qname.c, src/raptor_rfc2396.c, src/raptor_rss.c, - src/raptor_sax2.c, src/raptor_serialize_rss.c, - src/raptor_serialize_turtle.c, src/raptor_set.c, - src/raptor_stringbuffer.c, src/raptor_uri.c, src/raptor_www.c, - src/raptor_www_curl.c, src/raptor_www_libxml.c, src/raptor_xml.c, - src/turtle_lexer.l, src/turtle_parser.y: code style: - Replace strncpy with memcpy - never need strncpy - zero-checking/filling semantics. - -2010-05-12 Dave Beckett - - * src/raptor_internal.h: Deleted raptor_unique_id prototype - - * src/raptor_abbrev.c: - (raptor_unique_id): Deleted - never used. - -2010-05-07 Dave Beckett - - * src/raptor.h: Adjust raptor_term_type so enum values match - librdf_node_type raptor_term_type: Made enum values match - librdf_node_type usage and introduce unused type '3'. - -2010-05-05 Dave Beckett - - * LICENSE.html: Link to specific GPL 2.1 version doc. Wording and - formatting - -2010-05-04 Dave Beckett - - * docs/raptor-tutorial-parsing.xml: pkg-config - - * docs/raptor-tutorial-parsing.xml: statement not triples - - * docs/raptor-tutorial-querying-functionality.xml: Fix exampel of - listing parser options to use correct description. - - * docs/raptor-tutorial-querying-functionality.xml: RAPTOR_OPTION_LAST - - * docs/raptor-1-to-2-map.tsv: Update raptor_locator_print and - raptor_avltree_print signatures - - * docs/raptor-tutorial-parsing.xml, - docs/raptor-tutorial-serializing.xml: Update tutorial references - - * docs/tmpl/section-avltree.sgml, docs/tmpl/section-locator.sgml: - Update tmpls - - * src/raptor.h, src/raptor_avltree.c: - (raptor_avltree_print): Gains an int return status like other - print functions - - * src/raptor.h, src/raptor_locator.c: - (raptor_locator_print): Gains an int return status like other - print functions - - * src/raptor_avltree.c: autodocs - - * docs/tmpl/section-triples.sgml: Update tmpls for - raptor_term_compare and raptor_term_equals - - * src/raptor.h: fix prototype for raptor_term_equals to match code - - * docs/raptor-1-to-2-map.tsv, docs/raptor-sections.txt: Add - raptor_term_compare and raptor_term_equals to public API - - * src/raptor.h, src/raptor_internal.h: Move raptor_term_compare - and raptor_term_equals to public API - - * src/raptor_statement.c: - (raptor_term_equals): autodocs - - * src/raptor_parse.c: autodocs - - * docs/tmpl/section-triples.sgml: Remove RAPTOR_IDENTIFIER docs - - * docs/raptor-parsers.xml, docs/raptor-serializers.xml, - docs/raptor-tutorial-intro.xml, docs/raptor-tutorial-parsing.xml, - docs/raptor-tutorial-querying-functionality.xml, - docs/raptor-tutorial-serializing.xml: Start to update tutorial - - still working through WARNING - - * scripts/format-changes.pl, scripts/process-changes.pl: Update - scripts - -2010-05-03 Dave Beckett - - * scripts/process-changes.pl: Generate a perl script to rename - names - - * scripts/process-changes.pl: put docbook xml format generation - optional - - * scripts/process-changes.pl: Use Getopt::Long and Pod::Usage for - proper option handling - - * docs/Makefile.am: Rename format-changes.pl to process-changes.pl - - * scripts/Makefile.am: Rename format-changes.pl to - process-changes.pl - - * scripts/process-changes.pl: switch to file handle arg on print - functions Rename option to --docbook-xml DOCBOOK-XML file rather - than print to stdout - - * docs/raptor-1-to-2-map.tsv: add note for raptor_statement_v2 - - * docs/raptor-1-to-2-map.tsv: raptor_log is not a type - - * docs/raptor-1-to-2-map.tsv: # before names in notes - - * scripts/format-changes.pl: Make links to enum values - -2010-05-03 Lauri Aalto - - * src/raptor_xml.c: fixed compiler warning - - * src/raptor_serialize_rdfxmla.c: #ws - - * src/turtle_parser.y: fixed casts for !RAPTOR_DEBUG - -2010-05-02 Dave Beckett - - * utils/Makefile.am: fix rapper.html rule for scripts - - * docs/raptor-1-to-2-map.tsv: annotations for raptor_identifier to - raptor_term renamings - - * docs/raptor-1-to-2-map.tsv: Add annotations for old raptor_www_ - functions - - * docs/raptor-1-to-2-map.tsv: Add more annotations for old - functions and types - - * src/raptor_iostream.c: - (raptor_new_iostream_to_string): Rename arg to malloc_handler - - * docs/raptor-1-to-2-map.tsv: typo - - * docs/raptor-1-to-2-map.tsv: annotate former message handler - typedefs - - * docs/raptor-1-to-2-map.tsv: annotate former URI handler _func - typedefs - - * docs/raptor-1-to-2-map.tsv: raptor_log_message is new - - * docs/raptor-1-to-2-map.tsv, docs/raptor-sections.txt, - docs/tmpl/section-avltree.sgml, docs/tmpl/section-general.sgml, - docs/tmpl/section-www.sgml, src/raptor.h, src/raptor_abbrev.c, - src/raptor_avltree.c, src/raptor_grddl.c, src/raptor_iostream.c, - src/raptor_parse.c, src/raptor_rss_common.c, - src/raptor_sequence.c, src/raptor_serialize.c, - src/raptor_serialize_dot.c, src/raptor_serialize_json.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c, - src/raptor_serialize_turtle.c, src/raptor_set.c, src/raptor_uri.c, - src/raptor_www.c, src/turtle_parser.y: Renamed typedefs ending in - _function to _handler. - - Also changed parameter names and internal field names from foo_fn to - foo_handler to match. - - (raptor_data_free_handler, raptor_data_context_free_handler, - raptor_data_context_print_handler and - raptor_data_context_print_handler): Signature of these typedefs - were changed to match the other handlers to became *pointers* to - functions so - e.g. a call with e.g.(raptor_data_context_free_handler*)blah - becomes (raptor_data_context_free_handler)blah. - - raptor_data_compare_handler renamed from - raptor_data_compare_function - - raptor_data_malloc_handler renamed from - raptor_data_malloc_function - - raptor_data_free_handler renamed from raptor_data_free_function - - raptor_avltree_visit_handler renamed from - raptor_avltree_visit_function - - Updated all definitions, fields and arguments to match. - - * scripts/.gitignore: ignore more - - * scripts/format-changes.pl: add change table titles - - * scripts/format-changes.pl: format types - - * src/raptor.h: autodocs - - * docs/tmpl/section-serializer.sgml: update tmpls - - * docs/raptor-1-to-2-map.tsv: Added raptor_serializer_flush - - * docs/raptor-sections.txt: add new functions - - * src/raptor.h: raptor_data_free_handler autodocs - - * docs/raptor-1-to-2-map.tsv: more things were added not removed - - * docs/raptor-1-to-2-map.tsv: more things were added not removed - - * docs/raptor-1-to-2-map.tsv: raptor_uri_source type was deleted - not added. - - * docs/raptor-1-to-2-map.tsv: Add type changes - - * scripts/format-changes.pl: Ignore types for now - -2010-04-30 Dave Beckett - - * src/raptor.h, src/raptor_serialize.c: - (raptor_serializer_flush): Added - - * src/raptor_internal.h: raptor_serializer_factory_s gains - serialize_flush factory method. - - * Makefile.am, configure.ac, docs/Makefile.am, - docs/build-formats.c, docs/format-changes.pl, fix-groff-xhtml, - scripts/Makefile.am, scripts/build-formats.c, scripts/fix-bison, - scripts/fix-flex, scripts/fix-groff-xhtml, - scripts/format-changes.pl, src/Makefile.am, src/fix-bison, - src/fix-flex: Move scripts and utility programs into new scripts - dir - - * docs/tmpl/section-general.sgml, docs/tmpl/section-iostream.sgml, - docs/tmpl/section-www.sgml: Update tmpls - - * docs/raptor-sections.txt, docs/tmpl/section-iostream.sgml, - docs/tmpl/section-unused.sgml, docs/tmpl/section-www.sgml, - src/raptor.h, src/raptor_iostream.c, src/raptor_www.c: Add typedef - raptor_data_malloc_function - - raptor_data_malloc_function: added for a malloc() signature - function. - - (raptor_www_fetch_to_string, raptor_new_iostream_to_string): Use - for argument malloc_handler. - - * docs/raptor-sections.txt: Remove internal raptor_avltree_check - and raptor_avltree_dump - - * docs/tmpl/section-general.sgml, docs/tmpl/section-parser.sgml: - Update tmpls - - * src/raptor.h, src/raptor_internal.h: Move raptor_avltree_dump - and raptor_avltree_check debug prototypes to internal header - - * docs/raptor-sections.txt: Add raptor_graph_mark_flags, - raptor_parser_parse_iostream, raptor_syntax_bitflags - - * docs/tmpl/section-option.sgml, docs/tmpl/section-parser.sgml, - docs/tmpl/section-www.sgml, docs/tmpl/section-xml-namespace.sgml: - - Update tmpls - -2010-04-29 Dave Beckett - - * src/raptor_serialize_rss.c: code style - - * src/raptor_serialize.c: code style - - * src/raptor_abbrev.c: code style - - * src/raptor_librdfa.c: code style - - * src/raptor_turtle_writer.c: Update to add RAPTOR_OPTION_STRICT - to cases. - -2010-04-28 Dave Beckett - - * docs/format-changes.pl: intro section - - * docs/raptor-1-to-2-map.tsv: More replacements Replace - raptor_serializer_get_option_string with - raptor_serializer_get_option Note replace - raptor_iostream_write_string_turtle with - raptor_string_python_write - - * docs/raptor-1-to-2-map.tsv: Add replacement note for delete - raptor_set_parser_strict - - * docs/raptor-1-to-2-map.tsv: Remove - raptor_world_enumerate_parsers with - raptor_world_get_parser_description. - - * docs/raptor-sections.txt: update for - graph_handler->graph_mark_handler renames - - * docs/raptor-sections.txt: Update functions for changes - - * docs/raptor-1-to-2-map.tsv: Update functions for 2010-03-26 to - 2010-03-28 changes missed - - * docs/raptor-1-to-2-map.tsv: raptor_set_parser_strict removed - - * utils/rapper.1: Note -m/--mode removed but wasn't in the raptor - V1 man page. - - * src/raptor_parse.c, utils/rapper.c: Replaced - raptor_parser_set_strict() with RAPTOR_OPTION_STRICT - - (raptor_parser_set_strict): Removed from public API and made - static, internal. - - (raptor_parser_set_option): When RAPTOR_OPTION_STRICT is seen, - call above function to set the values. Update rapper to remove - the -m/--mode lax/strict favouring the -f strict option with - boolean value. - - * src/raptor.h, src/raptor_option.c: Add RAPTOR_OPTION_STRICT for - parser with bool value - - * tests/rdfxml/Makefile.am: - (check-scan-rdf): Use -f scanForRDF instead of removed option -s - -2010-04-27 Dave Beckett - - * docs/build-formats.c: - Fix use of wrong array index. Rewrite for - clarity - - * utils/rapper.1: changes - - * utils/rapper.1: adjust date - - * utils/rapper.1: Remove -s / --scan - - * utils/rapper.c: Remove option --scan / -s since it's the same as - -f scanForRDF - -2010-04-25 Dave Beckett - - * src/raptor_librdfa.c: Set mime types for RDFA parser with higher - Q than GRDDL parser - - * docs/build-formats.c: Add intro section and remove version from - top. - - * docs/build-formats.c: Note when there is no parser or serializer - for a mime type - - * src/raptor_serialize_html.c: Set html serializer Q 1.0 - - * src/raptor_serialize_json.c: Pick json resource serializer as - json Q 1.0 choice - - * src/raptor_serialize_rdfxml.c: Make rdfxml serializer accept - text/rdf with lower q - - * src/raptor_serialize_turtle.c: Make turtle serializer accept - other turtle mime types with q < 10 - - * src/raptor_serialize_rss.c: Make RSS tag soup serializer accept - other rss mime types with low q - - * src/raptor_rss.c: Make RSS tag soup parser accept - application/atom+xml q=1.0 for atom. - - * docs/build-formats.c: Emit mime types index section - -2010-04-24 Dave Beckett - - * src/raptor_avltree.c, src/raptor_general.c, - src/raptor_iostream.c, src/raptor_namespace.c, - src/raptor_option.c, src/raptor_parse.c, src/raptor_qname.c, - src/raptor_sax2.c, src/raptor_sequence.c, src/raptor_serialize.c, - src/raptor_statement.c, src/raptor_stringbuffer.c, - src/raptor_turtle_writer.c, src/raptor_uri.c, src/raptor_xml.c, - src/raptor_xml_writer.c: Make all raptor object destructors handle - NULL object pointer. - - All raptor_free_CLASS() functions when given a NULL object now - just return rather than a) crash or b) abort() - - * docs/.gitignore: - ignore more - - * tests/turtle/Makefile.am: - remove deprecated rapper -n when testing - turtle parser with with ntriples test - - * docs/.gitignore: - ignore more - - * tests/rdfxml/Makefile.am: - check-assume-rdf does not need -a flag. - - * docs/tmpl/section-avltree.sgml, - docs/tmpl/section-constants.sgml, docs/tmpl/section-general.sgml, - docs/tmpl/section-iostream.sgml, docs/tmpl/section-locator.sgml, - docs/tmpl/section-memory.sgml, docs/tmpl/section-option.sgml, - docs/tmpl/section-parser.sgml, docs/tmpl/section-sax2.sgml, - docs/tmpl/section-sequence.sgml, - docs/tmpl/section-serializer.sgml, - docs/tmpl/section-stringbuffer.sgml, - docs/tmpl/section-triples.sgml, docs/tmpl/section-unicode.sgml, - docs/tmpl/section-unused.sgml, docs/tmpl/section-uri.sgml, - docs/tmpl/section-world.sgml, docs/tmpl/section-www.sgml, - docs/tmpl/section-xml-namespace.sgml, - docs/tmpl/section-xml-qname.sgml, docs/tmpl/section-xml.sgml: - Update doc tmpls - - * docs/build-formats.c: init parsers/serializers count to 0 - - * docs/.gitignore, docs/rdfcat.c, docs/rdfprint.c, - docs/rdfserialize.c: Remove rdf*.c example files from git; copied - in by maintainer rule - - * examples/.gitignore: Update examples for raptor2 API - - * .gitignore: Do not ignore examples dir - -2010-04-19 Dave Beckett - - * docs/build-formats.c: ws - - * docs/build-formats.c: tidy words - - * docs/build-formats.c: do not put a title on variablelist - - * docs/build-formats.c: optional desc list title - - * docs/raptor-docs.xml: Added raptor-formats.xml - - * docs/Makefile.am: Added raptor-formats.xml - - * docs/build-formats.c: now using raptor_iostream - -2010-04-18 Dave Beckett - - * docs/build-formats.c: Helper to print raptor syntaxes into - docbook xml - -2010-04-17 Dave Beckett - - * utils/rapper.c: code style - - * utils/rapper.c: Remove unused -a flag. sort options strings - alphabetically - - * utils/rapper.1: 2.0.0 - - * utils/rapper.c: Remove long deprecated -n flag to set syntax to - ntriples - - * src/raptor_general.c, src/raptor_iostream.c, - src/raptor_namespace.c, src/raptor_option.c, src/raptor_parse.c, - src/raptor_qname.c, src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_statement.c, src/raptor_turtle_writer.c, - src/raptor_uri.c, src/raptor_www.c, src/raptor_xml.c, - src/raptor_xml_writer.c: Make all constructors check for non-NULL - args/world and call raptor_world_open() - - Adjusted some documentation to allow NULL args that weren't noted, - such as raptor_new_turtle_writer() can take a NULL base_uri. - - * src/raptor.h: raptor_syntax_description docs - - * src/ntriples_parse.c, src/raptor.h, src/raptor_grddl.c, - src/raptor_guess.c, src/raptor_librdfa.c, src/raptor_parse.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/turtle_parser.y: - - raptor_syntax_description need_base_uri now raptor_syntax_bitflags - enum. - - (raptor_syntax_description): Change need_base_uri filed to a - bitmask of bits defined in enum raptor_syntax_bitflags. Enables - this structure to be used beyond parser and serializer formats. - - (raptor_syntax_bitflags): Added with RAPTOR_SYNTAX_NEED_BASE_URI - flag. - -2010-04-06 Lauri Aalto - - * src/raptor_guess.c: - (raptor_guess_guess_get_description): Do not call - raptor_parser_get_description() with NULL arg. - - * src/ntriples_parse.c, src/raptor.h, src/raptor_grddl.c, - src/raptor_guess.c, src/raptor_librdfa.c, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_serialize_dot.c, - src/raptor_serialize_html.c, src/raptor_serialize_json.c, - src/raptor_serialize_ntriples.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c, - src/turtle_parser.y: Removed writable static data. - - Changed *_names arrays to be const. Also fixed dimensions of - *_names arrays to match number of elements. - - (raptor_syntax_description): Changed syntax names array to const - to not lose const qualifiers in initialization/assignment. - - * src/raptor.h, src/raptor_parse.c, src/raptor_serialize.c: - - (raptor_world_get_parser_description, - raptor_world_get_serializer_description): Removed const qualifier - from pass-by-value args. - - * src/raptor_serialize.c: #ws - -2010-04-01 Dave Beckett - - * src/raptor_serialize_html.c: code style - -2010-04-01 Nicholas J Humfrey - - * ChangeLog: Updated ChangeLog to include new HTML Table - serialiser. - - * configure.ac, src/Makefile.am, src/raptor_internal.h, - src/raptor_serialize.c, src/raptor_serialize_html.c: Added HTML - Table serialiser. - -2010-03-31 Dave Beckett - - * src/raptor_serialize_ntriples.c: ntriples writes text/plain - - * utils/rapper.c: Use raptor_world_get_serializer_description() - for serializer info. - -2010-03-29 Dave Beckett - - * examples/raptor_abort.c, examples/rdfcat.c, examples/rdfprint.c, - examples/rdfserialize.c: Update examples to raptor2 API - - * examples/Makefile.am: 2010 - - * configure.ac: package name is raptor2 makes things a little - easier - - * Makefile.am: Do not toy with distdir - - * raptor2.spec.in: Update for raptor2 - - * raptor2.pc.in: link with -lraptor2 - - * tests/Makefile.am: Use libraptor2.la - - * raptor2.pc.in: adjust includedir to be prefixed by package name - - * utils/Makefile.am: Use libraptor2.la - - * src/Makefile.am: libraptor2.la - - * .gitignore, docs/.gitignore, src/.gitignore: Update git ignores - - * docs/tmpl/section-general.sgml, docs/tmpl/section-option.sgml, - docs/tmpl/section-parser.sgml, docs/tmpl/section-serializer.sgml, - docs/tmpl/section-triples.sgml, docs/tmpl/section-world.sgml, - docs/tmpl/section-xml-namespace.sgml: update doc tmpls - - * Makefile.am, configure.ac, docs/Makefile.am, docs/libraptor.3, - docs/libraptor2.3, raptor-src-config.in, raptor.pc.in, - raptor.rdf.in, raptor.spec.in, raptor2.pc.in, raptor2.rdf.in, - raptor2.spec.in, src/Makefile.am, src/raptor-config.1, - src/raptor-config.in: Rename raptor to raptor2 - -2010-03-27 Dave Beckett - - * src/raptor.h, src/raptor_parse.c: Added - raptor_parser_parse_iostream() to parse from an iostream - - * src/raptor_rss.c: - (raptor_rss_emit): Implement emit graph marks for rss-tag-soup - parser. - - * src/raptor_rdfxml.c: Implement emit graph marks for rdfxml - parser. - - * src/raptor_librdfa.c: Implement emit graph marks for librdfa - parser. - - * src/ntriples_parse.c: - (raptor_ntriples_generate_statement): Tidy emit graph mark - condition. - - * src/raptor_librdfa.c: ws - - * src/raptor_librdfa.c: - (raptor_librdfa_generate_statement): Do nothing if there is no - statement handler. - - * src/raptor_grddl.c: - (raptor_grddl_parse_chunk): Implement graph marks for GRDDL - parser. - - * src/raptor_grddl.c: - (raptor_grddl_ensure_internal_parser): Disable graph marks for - child parsers. - - * src/raptor_parse.c: - (raptor_parser_start_graph, raptor_parser_end_graph): Use - emit_graph_marks flag. - - * src/raptor_internal.h, src/raptor_parse.c: Add internal - raptor_parser flag emit_graph_marks default set. - - * src/raptor_parse.c: save editor before commit! - - * src/raptor_internal.h, src/raptor_parse.c: - (raptor_parser_copy_flags_state): Added to copy flags to/from - parsers. - - * src/raptor_parse.c: - (raptor_parser_copy_user_state): Copy failed, - emitted_default_graph bit flags. - - * src/ntriples_parse.c: Implement graph marks for ntriples parser - - * src/turtle_common.h, src/turtle_parser.y: Switch to use - raptor_parser emitted_default_graph field - - * src/raptor_internal.h: raptor_parser_s gains - emitted_default_graph flag. - - * src/raptor.h, src/raptor_internal.h, src/raptor_parse.c, - src/turtle_parser.y: Added raptor_parser_get_graph() and factory - method - - (raptor_parser_get_graph): Added to get current graph for a - parser. - - raptor_parser_factory: Added optional method get_graph. If - missing this indicates that start/end graph marks need to be - synthesised. - - (raptor_turtle_get_graph): Added to implement this for Turtle and - TRiG parsers. - - * src/raptor.h, src/raptor_namespace.c, - src/raptor_serialize_turtle.c, src/raptor_xml.c, - src/raptor_xml_writer.c: Rename raptor_namespace_copy to - raptor_namespace_stack_start_namespace - - (raptor_namespace_stack_start_namespace): Renamed from - raptor_namespace_copy to follow conventions; this is not a copy - constructor for the raptor_namespace class, it's a method on the - raptor_namespace_stack class. Update all callers - - * src/raptor_qname.c: - (raptor_qname_copy): Handle NULL qname arg. - - * src/turtle_common.h, src/turtle_parser.y, utils/rapper.c: Update - Turtle and TRiG parsers to emit new graph marks - - * src/raptor.h, src/raptor_internal.h, src/raptor_parse.c: Updated - graph mark handler mechanism in a stream of triples - - raptor_graph_mark_handler: Renamed from raptor_graph_handler since - it returns not just a URI (or NULL for default graph) but flags - that indicate if it was a start/end and whether the graph name was - declared in the syntax or implicit by the stream of statements. - - raptor_graph_mark_flags: Added used above to record the start/end - marks and declared/not. - - (raptor_parser_set_graph_mark_handler): Renamed from - raptor_parser_set_graph_handler. - - raptor_parser: Renamed field to graph_mark_handler and changed - type to match above. - - (raptor_parser_start_graph): Renamed from - raptor_parser_set_graph_name and added is_declared flag. - - (raptor_parser_end_graph): Added. - -2010-03-26 Dave Beckett - - * docs/tmpl/section-triples.sgml: doc - - * docs/raptor-sections.txt: fix name - - * docs/raptor-sections.txt, src/raptor.h: - Add extra typedefs for - union to help gtkdoc - - * src/raptor.h: - autodocs - - * docs/raptor-sections.txt: - Update sections with renames - - * docs/raptor-1-to-2-map.tsv: Update for serializer descriptions - raptor_serializers_enumerate* replaced by - raptor_world_get_serializer_description. - - Added raptor_serializer_get_description - - * src/Makefile.am, src/raptor_internal.h, src/raptor_serialize.c, - src/raptor_serialize_simple.c: Remove obsolete 'simple' - serializer' from sources that has not been enabled for a long time - - * src/raptor.h, src/raptor_internal.h, src/raptor_rss.c, - src/raptor_serialize.c, src/raptor_serialize_dot.c, - src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_simple.c, - src/raptor_serialize_turtle.c, utils/rapper.c: Syntax description - replaces serializer enumeration and get desc methods. - - (raptor_world_get_serializer_description): Renamed from - raptor_world_enumerate_serializers and now just takes single int - param. - - (raptor_serializer_get_description): Added Updated all serializers - to register static descriptions of names, mime types, label, uris. - - Updated rapper utility to use raptor_serializer_get_description() - for listing serializers. - - * src/raptor_parse.c: - code style - - * docs/raptor-1-to-2-map.tsv: Update changes for parser - descriptions raptor_get_label, raptor_get_mime_type, - raptor_get_need_base_uri are deleted and use result fields from - raptor_parser_get_description() - - * docs/raptor-1-to-2-map.tsv: Use - raptor_world_get_parser_description to replace - raptor_parsers_enumerate* - - * src/raptor_parse.c: autodocs - - * src/raptor.h, src/raptor_guess.c, src/raptor_internal.h, - src/raptor_parse.c, utils/rapper.c: Syntax description replaces - parser enumeration and get desc methods. - - (raptor_world_get_parser_description): Renamed from - raptor_world_enumerate_parsers and now just takes single int param. - - (raptor_parser_get_label, raptor_parser_get_mime_type, - raptor_parser_get_need_base_uri): Deleted; use - raptor_world_get_parser_description() result fields instead. - - raptor_parser_factory gains an optional get_description factory - method. - - (raptor_parser_get_name): Note this returns main name and point to - raptor_parser_get_description() to get other names and info. - - (raptor_parser_get_description): Added to either use the factory - method or else return the factory desc. - - (raptor_guess_guess_get_description): Updated guess parser to - return internal description rather than that of 'guess'. Updated - rapper utility to use raptor_parser_get_description() for listing - parsers. - - * src/raptor.h: group public typedefs (code style) - - * src/ntriples_parse.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_internal.h, src/raptor_librdfa.c, src/raptor_parse.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/turtle_parser.y: Use - raptor_syntax_description inside raptor_parser_factory - raptor_parser_factory loses fields about description replaced by a - static raptor_syntax_description desc field. - - Updated all users to use factory->desc.FIELD rather than - factory->FIELD for the descriptive fields. - - * src/raptor.h: Added raptor_type_q and raptor_syntax_description - types to public API. - - * src/ntriples_parse.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_librdfa.c, src/raptor_rdfxml.c, src/raptor_rss.c, - src/turtle_parser.y: Update parsers to register mime types count - - * src/raptor_parse.c: Check and use mime_types_count field. - - (raptor_world_register_parser_factory): Add maintainer/debug check - of mime types count. - - (raptor_world_enumerate_parsers, raptor_parser_get_mime_type): Do - not access mime types unless there is one. - - * src/raptor_internal.h: raptor_parser_factory gains - mime_types_count field - - * src/raptor_internal.h, src/raptor_parse.c, src/turtle_parser.y: - Remove raptor_parser_simple_error - only used once. - - (turtle_parser_error): Call raptor_log_error() direct. - - (raptor_parser_simple_error): Deleted. - - * src/raptor_parse.c: ws, code style - -2010-03-25 Dave Beckett - - * src/ntriples_parse.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_internal.h, src/raptor_librdfa.c, src/raptor_parse.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/turtle_parser.y: Alter - parser registration to be more static and declarative. - - raptor_parser_factory: field name turns into C array of names. - field mime_types turns into a C array of #raptor_type_q - - (raptor_free_parser_factory): Do not free data fields that are now - static and shared. - - (raptor_world_register_parser_factory): Reduce args to just world - plus factory handler. - - (raptor_parser_factory_add_alias, - raptor_parser_factory_add_mime_type): - Deleted - - (raptor_world_get_parser_factory, raptor_world_enumerate_parsers, - raptor_parser_get_mime_type, raptor_world_guess_parser_name, - raptor_parser_get_accept_header_all): Update to handle mime_types - as array of #raptor_type_q - - Alter all parser registrations to pass in static data for names, - mime_types, label and uri_string in factory registration function - handler. - - * src/ntriples_parse.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_internal.h, src/raptor_librdfa.c, src/raptor_parse.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/turtle_parser.y: - (raptor_world_register_parser_factory): Renamed from - raptor_parser_register_factory. - -2010-03-24 Dave Beckett - - * src/raptor_internal.h: struct raptor_parser_factory_s: docs - - * src/raptor_parse.c: - (raptor_parser_register_factory): autodocs - -2010-03-23 Lauri Aalto - - * src/raptor_statement.c: - (raptor_term_as_counted_string): Fixed warning about strict - aliasing. - -2010-03-23 Lauri Aalto - - * src/raptor_parse.c, src/raptor_serialize_turtle.c, - src/strcasecmp.c: Fixed gcc4 warnings about using a char where an - int is required - -2010-03-21 Dave Beckett - - * docs/raptor-1-to-2-map.tsv, src/raptor.h, src/raptor_option.c: - Remove raptor_option_get_value_type() - can use option description - to get this and more details. - -2010-03-20 Dave Beckett - - * src/raptor_parse.c: - (raptor_new_parser): Set default options *after* initialising - options block. - - * src/raptor_option.c: autodoc words - - * src/raptor_option.c: raptor_world_get_option_from_uri - autodocs - - * src/raptor_option.c: raptor_option_get_value_type - fix autodoc - - * src/raptor_general.c: Added turtle writer label to - raptor_domain_labels - - * docs/raptor-sections.txt: Add raptor_option_description - - * src/raptor.h: raptor_option_description reformatting for - autodocs - - * docs/raptor-1-to-2-map.tsv: add notes - - * docs/raptor-1-to-2-map.tsv: Added new raptor_option_description - functions raptor_world_get_option_description and - raptor_free_option_description - - * docs/raptor-sections.txt: Added raptor_free_option_description - - * docs/raptor-sections.txt: raptor_parser_get_option_count renamed - to raptor_option_get_count - - * docs/raptor-1-to-2-map.tsv, docs/raptor-sections.txt: Update - docs and API ref to remove options enumeration functions. - - * src/raptor.h, src/raptor_internal.h, src/raptor_option.c, - src/raptor_parse.c, src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Remove all - raptor_world_enumerate_CLASS_options functions. - - (raptor_world_options_enumerate_common): Remove internal function - no longer used. - - Update parser test code to use option descriptions for testing - option URIs. - - Update autodocs to refer to raptor_world_get_option_description() - for getting the valid option IDs. - - * src/raptor.h, src/raptor_option.c, utils/rapper.c: Added option - description class to describe any domain option. - - typedef raptor_option_description added - - (raptor_world_get_option_description): Added, to create an option - description object for a domain and option ID. - - (raptor_free_option_description): Added to free an option - description. - - (raptor_option_get_option_area_for_domain): Added internal helper - to map option IDs to area bits. - - Update rapper to use option description instead of options - enumeration calls. - - * docs/raptor-1-to-2-map.tsv, src/raptor.h, src/raptor_option.c, - utils/rapper.c: Rename raptor_parser_get_option_count() to - raptor_option_get_count(). - - * src/raptor.h: Add RAPTOR_DOMAIN_TURTLE_WRITER - -2010-03-18 Lauri Aalto - - * src/raptor.h, src/raptor_internal.h, src/raptor_option.c, - src/raptor_parse.c, src/raptor_serialize.c: Changed - raptor_*_set_option() to take in a const char* instead of char*. - -2010-03-09 Dave Beckett - - * docs/raptor-1-to-2-map.tsv: code style - - * src/raptor.h: code style - - * docs/tmpl/section-parser.sgml, - docs/tmpl/section-serializer.sgml, docs/tmpl/section-world.sgml, - docs/tmpl/section-xml.sgml: Update doc tmpls - - * docs/raptor-1-to-2-map.tsv: Update - raptor_xml_writer_set_feature/string new names - - * docs/raptor-1-to-2-map.tsv: Remove raptor_world_set_www_flags - which was added in raptor2 - - * docs/raptor-sections.txt, src/raptor.h, src/raptor_general.c, - src/raptor_www.c: - (raptor_world_set_flag): Replaces raptor_world_set_www_flags with - world flag RAPTOR_WORLD_FLAG_WWW_SKIP_INIT_FINISH - - * docs/raptor-sections.txt: Remove get/set option_string forms - - * docs/raptor-1-to-2-map.tsv: Update serializer and xml_writer - get/set options to use just 1 function. - - * src/raptor_internal.h, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_sax2.c: Update sax2 set options (there is no get) to - use generic code. - - (raptor_new_sax2): Init options structure. - - (raptor_free_sax2): Clear options structure. - - (raptor_sax2_set_option): Alter signature to use new format. This - API is not yet public. - - Update code and callers to use the option access macros. - - * src/raptor_xml_writer.c: - (raptor_new_xml_writer): Call raptor_object_options_init - - * src/raptor.h, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_xml_writer.c, - utils/rapper.c: - - Update xml writer set/get option API to use generic code - raptor_xml_writer_s: - - Add raptor_object_options field and delete flags, indent, - xml_version, xml_declaration fields that are now managed by it. - - (raptor_new_xml_writer): Init options with - raptor_object_options_init. Set defaults that are not 0 or NULL. - - (raptor_free_xml_writer): Use raptor_object_options_clear() to - tidy up option strings. - - (raptor_xml_writer_set_option): Use - raptor_object_options_set_option(). - - (raptor_xml_writer_set_option_string): Deleted, merged into above. - - (raptor_xml_writer_get_option): Use - raptor_object_options_get_option(). - - (raptor_xml_writer_get_option_string): Deleted, merged into above. - - Update many references in xml_writer code to numeric and string - options to use RAPTOR_OPTIONS_GET/SET_STRING/NUMERIC macros. - - Update callers of raptor_xml_writer_set_option() inside - serializers to pass in NULL string arg. Update rapper utility to - use new set_options style calls for parser and serializer. - - * src/raptor.h, src/raptor_internal.h, src/raptor_serialize.c, - src/raptor_serialize_dot.c, src/raptor_serialize_json.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c: Update - serializer set/get option API to use generic code - - raptor_serializer_s: Add raptor_object_options field and delete - multiple option_* fields that are now managed by it. - - (raptor_new_serializer): Init options with - raptor_object_options_init. Set defaults that are not 0 or NULL. - - (raptor_free_serializer): Use raptor_object_options_clear() to - tidy up option strings. - - (raptor_serializer_set_option): Use - raptor_object_options_set_option(). - - (raptor_serializer_set_option_string): Deleted, merged into above. - - (raptor_serializer_get_option): Use - raptor_object_options_get_option(). - - (raptor_serializer_get_option_string): Deleted, merged into above. - - Update many references in serializers to numeric and string - options to use RAPTOR_OPTIONS_GET/SET_STRING/NUMERIC macros. Some - code tidying to break long lines. - - * docs/raptor-1-to-2-map.tsv: Update API docs for - raptor_parser_set_option: args changed - raptor_parser_set_option_string: deleted, use above - raptor_parser_get_option: args changed - raptor_parser_get_option_string: deleted, use above - - * src/raptor_parse.c: autodocs - - * src/raptor_option.c: autodocs - - * src/raptor.h, src/raptor_internal.h, src/raptor_parse.c: Update - parser set/get option API to use generic code - - raptor_parser_s: loose cache_control and user_agent char* option - fields that are now managed by the raptor_object_options. - - (raptor_free_parser): Use raptor_object_options_clear() to tidy up - option strings. - - (raptor_parser_set_option): Use - raptor_object_options_set_option(). - - (raptor_parser_set_option_string): Deleted, merged into above. - - (raptor_parser_get_option): Use - raptor_object_options_get_option(). - - (raptor_parser_get_option_string): Deleted, merged into above. - Update references to string options to use - RAPTOR_OPTIONS_GET/SET_STRING macros. - - * src/raptor_internal.h, src/raptor_option.c: Move support for - option get/set into generic code and handle strings. - - (raptor_object_options_copy_state): Copy strings when copying - state. - - (raptor_object_options_init): Set integers / strings to 0 / NULL. - - (raptor_object_options_clear_state): Added to free strings. - - (raptor_object_options_get_option): Added to get any option for an - option area. - - (raptor_object_options_set_option): Added to set any option for an - option area. - - * src/raptor_internal.h, src/raptor_option.c, src/raptor_parse.c: - - Added raptor_object_options_init to initialise options object. - - (raptor_object_options_init): Added - - (raptor_new_parser): Call above to init parser's options block. - - * src/raptor_internal.h: Made raptor_object_options contain an - array of union str/int values and area. - - raptor_object_options gains raptor_option_area area field and - options is now an array of raptor_str_int (union of char*/int) - - Adjusted RAPTOR_OPTIONS_GET/SET_NUMERIC macros to use integer part - of union. - - * src/raptor_internal.h, src/raptor_option.c, src/raptor_parse.c: - - Rename raptor_object_options_copy to - raptor_object_options_copy_state since it is not a copy - constructor - - (raptor_object_options_copy_state): Renamed from - raptor_object_options_copy. - - * src/raptor_internal.h, src/raptor_option.c, src/raptor_parse.c: - Add raptor_object_options_copy() for copying options - state (raptor_object_options_copy): Added. - - (raptor_parser_copy_user_state): Use above. - - * src/raptor_grddl.c, src/raptor_internal.h, src/raptor_parse.c, - src/raptor_rdfxml.c, src/raptor_rss.c: Move per-parser-project - options into a raptor_object_options type. - - raptor_object_options typedef added. raptor_parser_s: use above - rather than array of int. - - (RAPTOR_OPTIONS_GET_NUMERIC, RAPTOR_OPTIONS_SET_NUMERIC): Added - and used by parsers. - - * src/raptor_statement.c: - (raptor_term_as_counted_string): Use raptor_term_ntriples_write() - Intended to address Issue#0000357 - -2010-03-08 Dave Beckett - - * docs/raptor-docs.xml, docs/tmpl/section-uri-factory.sgml: Remove - remaining uri-factory files - - * src/raptor_general.c: - (raptor_world_set_log_handler): Allow setting after world is open. - - * docs/tmpl/section-unused.sgml: Update doc tmpls - - * docs/raptor-1-to-2-map.tsv: raptor_new_iostream_from_handler is - arg change. no notes - - * docs/raptor-1-to-2-map.tsv: raptor_uri_is_file_uri is just a - rename - - * docs/format-changes.pl: tweak format_notes regexes - - * docs/raptor-1-to-2-map.tsv: more deprecation notes - - * docs/raptor-1-to-2-map.tsv: update raptor_new_identifier/_v2 - notes - - * docs/raptor-1-to-2-map.tsv: raptor_syntax_name_check and - raptor_syntax_name_check_v2 replaced by - raptor_world_is_parser_name - - * docs/format-changes.pl: Make format_notes() take is_inline param - - * docs/format-changes.pl: remove # from formatted type name - - * docs/format-changes.pl: format notes - - * docs/format-changes.pl: format notes when present - - * docs/raptor-1-to-2-map.tsv: Add change notes field - - * docs/format-changes.pl: read notes field - - * docs/format-changes.pl: ignore comments - -2010-03-08 Lauri Aalto - - * src/raptor_general.c: - (raptor_world_set_flag): Set uri_interning to passed in value. - -2010-03-07 Dave Beckett - - * docs/format-changes.pl: headers for changed - - * docs/format-changes.pl: adjust headers - - * docs/.gitignore, docs/Makefile.am, docs/format-changes.pl, - docs/raptor-docs.xml: Add raptor changes formatting script - format-changes.pl - - * docs/raptor-1-to-2-map.tsv, raptor-1-to-2-map.tsv: Move - raptor-1-to-2-map.tsv to docs - - * raptor-1-to-2-map.tsv: move to 1 line TSV - - * raptor-1-to-2-map.tsv: raptor 1 to raptor 2 function API map - - * docs/raptor-sections.txt: Add RAPTOR_V2_AVAILABLE to sections. - - * docs/tmpl/section-unused.sgml, src/raptor_uri.c: fix docbook - escapes for % in comments - - * src/raptor_uri.c: autodocs and docbook for uri-hex literals - - * src/raptor.h: autodocs for raptor_data_compare_function and - raptor_data_free_function - - * src/raptor.h: autodocs for raptor_avltree, - raptor_avltree_iterator and raptor_avltree_visit_function. - - * src/raptor_avltree.c: autodocs for raptor_avltree_print - - * src/raptor_unicode.c: autodocs and docbook for linking to urls - with #s - - * src/raptor_xml.c: autodocs - - * src/raptor_statement.c: autodocs - - * docs/tmpl/section-avltree.sgml: Added avltree template - - * docs/tmpl/section-general.sgml, docs/tmpl/section-iostream.sgml, - docs/tmpl/section-option.sgml, docs/tmpl/section-sequence.sgml, - docs/tmpl/section-stringbuffer.sgml, - docs/tmpl/section-triples.sgml, docs/tmpl/section-unicode.sgml, - docs/tmpl/section-unused.sgml, docs/tmpl/section-uri.sgml, - docs/tmpl/section-world.sgml, - docs/tmpl/section-xml-namespace.sgml, - docs/tmpl/section-xml-qname.sgml, docs/tmpl/section-xml.sgml: - Updated sgml templates - - * docs/raptor-sections.txt: raptor_avltree_dump not - raptor_avltree_debug - - * docs/raptor-sections.txt, src/raptor.h, src/raptor_avltree.c: - Added enum raptor_avltree_bitflags for raptor_new_avltree() flags - with docs. raptor_avltree_bitflags added with docs on flags. - - (raptor_new_avltree): Updated docs to point to above. - - * src/raptor.h, src/raptor_general.c, src/raptor_libxml.c: Rename - raptor_world_flag enum values to remove plural FLAGS - - * src/raptor.h: autodocs - - * src/raptor_statement.c: autodocs - - * docs/raptor-sections.txt: autodocs - - * src/raptor_iostream.c: autodocs - - * src/raptor_locator.c: autodocs - - * src/raptor_avltree.c: autodocs - - * src/raptor.h: autodocs - - * src/raptor_namespace.c: autodocs - - * docs/raptor-sections.txt: more new names - - * src/raptor.h, src/raptor_general.c, src/raptor_internal.h, - src/raptor_libxml.c, src/raptor_uri.c: Give raptor_world a flags - mechanism for pre-open configuration - - raptor_world_flags: Replaces raptor_libxml_flags and is an enum - not a bitmask. - - Add RAPTOR_WORLD_FLAGS_URI_INTERNING flag for disabling URI - interning using an AVL-Tree. - - (raptor_world_set_libxslt_security_preferences, - raptor_world_set_log_handler): Gains an int return value to report - failure if world is already opened. - - (raptor_world_set_flag): Replaces raptor_world_set_libxml_flags - and has both an enum flag, int value and int error return. Update - libxml code looking for world->libxml_flags to use new enum names - as bitmasks. - - * src/Makefile.am, src/raptor_general.c, src/raptor_log.c: Move - raptor logging code to new raptor_log.c - -2010-03-06 Dave Beckett - - * src/raptor_option.c: code style static int - raptor_option_uri_prefix_len replaces #define - RAPTOR_OPTION_URI_PREFIX_LEN - - * src/raptor_parse.c: autodocs - - * src/raptor.h, src/raptor_general.c: Added raptor_domain and add - it to raptor_log_message structure - -2010-03-02 Dave Beckett - - * src/raptor_general.c: Code style - -2010-03-01 Dave Beckett - - * src/raptor.h, src/raptor_general.c, src/raptor_internal.h, - utils/rapper.c, utils/rdfdiff.c: Added raptor_log_message for - message callbacks. - - raptor_log_message: added struct - - raptor_log_handler function prototype now takes just user dat and - message. - - raptor_world_s gains a static raptor_log_message for use in errors. - No field here is reference counted. - - (raptor_log_error): Rename arg to text and init raptor_log_message - structure in world object. - - Updated rapper and rdfdiff log handler functions to new signature. - -2010-02-26 Dave Beckett - - * src/raptor.h, src/raptor_general.c: - (raptor_log_level_get_label): Added - - * src/raptor.h: Move raptor_log_level earlier - - * src/turtle_parser.y: - (graph): Do not free graph name twice for TRIG { } - - * src/raptor_general.c: 2010 - -2010-02-26 Lauri Aalto - - * src/raptor_statement.c: - (raptor_term_compare): Allow NULL terms in comparison - - * src/raptor_statement.c: - (raptor_new_statement_from_nodes): free passed in graph term on - alloc failure - - * src/turtle_parser.y: - (graph): No need to NULL something that's already NULL. - - * src/raptor.h: - (raptor_statement): fixed docs - - * src/turtle_parser.y: - (raptor_turtle_parse_terminate): Set graph_name to NULL after - freeing to prevent a double free. - -2010-02-25 Dave Beckett - - * src/turtle_common.h, src/turtle_parser.y: Generate graph name in - raptor_statement object for TRIG syntax - - struct raptor_turtle_parser_s gains raptor_term* graph_name. - - Turtle parser: if trig is set, update graph_name field when { and - } are parsed, in addition to the raptor_parser_set_graph_name() - calls - - (raptor_turtle_parse_terminate): Free any existing graph name. - - (raptor_turtle_generate_statement): Set statement graph name for - TRIG, free it if copied in. End early if there is no statement - handler, no need to compute and free terms. - - * src/raptor_statement.c: - (raptor_free_term): Return if term is nULL - - * src/raptor.h, src/raptor_internal.h, src/raptor_statement.c, - src/turtle_parser.y: Added graph name to raptor_statement - - raptor_statement typedef gains an optional raptor_term* graph - field for the graph name of the triple. - - (raptor_new_statement_from_nodes): Gains an optional graph - argument. - - (raptor_statement_copy, raptor_free_statement, - raptor_statement_print, raptor_statement_print_as_ntriples): - Updated to use graph field if present. Updated - raptor_new_statement_from_nodes() callers in turtle parser. - -2010-02-23 Lauri Aalto - - * src/raptor_uri.c: - (raptor_uri_finish): Set world->uris_tree to NULL after freeing - - * src/raptor_serialize_turtle.c: - (raptor_turtle_serialize_init): Free rdf_type_uri, uri_term - - already copied to other objects. - -2010-02-22 Lauri Aalto - - * src/raptor_parse.c: - (raptor_parser_factory_add_alias): Do not leak previously added - aliases. FIXME: Discards previously added aliases. - -2010-02-21 Dave Beckett - - * src/ntriples_parse.c, src/raptor.h, src/raptor_nfc_test.c, - src/raptor_unicode.c, src/turtle_common.c: - (raptor_unicode_utf8_string_put_char): renamed from - raptor_unicode_string_put_char() - - * src/raptor.h, src/raptor_internal.h: Export raptor_term_copy to - public API. - - * docs/raptor-sections.txt, src/ntriples_parse.c, src/raptor.h, - src/raptor_internal.h, src/raptor_nfc.c, src/raptor_nfc_test.c, - src/raptor_turtle_writer.c, src/raptor_unicode.c, - src/raptor_xml.c, src/turtle_common.c: Define - raptor_unicode_max_codepoint for magic number U+10FFFF - -2010-02-18 Dave Beckett - - * src/ntriples_parse.c, src/raptor.h, src/raptor_nfc.c, - src/raptor_nfc_test.c, src/raptor_turtle_writer.c, - src/raptor_unicode.c, src/raptor_xml.c: - (raptor_unicode_utf8_string_get_char): Renamed from - raptor_unicode_decode_utf8_char() - - * src/raptor.h, src/raptor_nfc_test.c, src/raptor_unicode.c: - (raptor_unicode_check_utf8_string): Renamed from - raptor_utf8_check() - - * src/raptor_internal.h, src/raptor_rdfxml.c, - src/raptor_unicode.c: - (raptor_unicode_check_utf8_nfc_string): Renamed from - raptor_utf8_is_nfc() Internal function rename. - - * src/ntriples_parse.c, src/raptor.h, src/raptor_nfc.c, - src/raptor_nfc_test.c, src/raptor_turtle_writer.c, - src/raptor_unicode.c, src/raptor_xml.c: - (raptor_unicode_decode_utf8_char): Renamed from - raptor_utf8_to_unicode_char() - - * src/Makefile.am, src/raptor_unicode.c, src/raptor_utf8.c: - Renamed raptor_utf8.c to raptor_unicode.c - - * src/raptor.h, src/raptor_abbrev.c, src/raptor_avltree.c, - src/raptor_serialize_json.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c, - src/raptor_set.c, src/raptor_uri.c: raptor_new_avltree() loses - world arg. (raptor_new_avltree): Delete world arg that is unused - and not necessary to tie an avltree to raptor world. - - * src/raptor.h, src/raptor_iostream.c, src/raptor_json_writer.c, - src/raptor_namespace.c, src/raptor_qname.c, - src/raptor_serialize_dot.c, src/raptor_serialize_json.c, - src/raptor_serialize_ntriples.c, src/raptor_serialize_simple.c, - src/raptor_turtle_writer.c, src/raptor_xml.c, - src/raptor_xml_writer.c: Rename raptor_iostream write bytes/string - method to raptor_iostream_TYPE_write form with iostream arg at - end. - - (raptor_iostream_write_bytes, raptor_iostream_write_byte, - raptor_iostream_read_bytes): Put iostream arg at end but don't move - type, bytes are the lowest level iostream read/writing routines so - use a different convention to writing 'types'. - - (raptor_iostream_string_write); Renamed from - raptor_iostream_write_string(). - - (raptor_iostream_counted_string_write): Renamed from - raptor_iostream_write_counted_string(). Update callers - lots of - them! - - * src/raptor_iostream.c: - (raptor_iostream_write_bytes): Move offset after a successful write. - - * src/raptor.h, src/raptor_iostream.c, src/raptor_json_writer.c, - src/raptor_serialize_simple.c, src/raptor_turtle_writer.c, - src/raptor_xml.c: Rename iostream writing methods to - raptor_iostream_TYPE_write form. - - (raptor_iostream_decimal_write): Renamed from - raptor_iostream_write_decimal() - - (raptor_iostream_hexadecimal_write): Renamed from - raptor_iostream_format_hexadecimal() - - (raptor_stringbuffer_write): Renamed from - raptor_iostream_write_stringbuffer() - - (raptor_uri_write): Renamed from raptor_iostream_write_uri() - - (raptor_xml_element_write): Renamed from - raptor_iostream_write_xml_element() - - * src/raptor.h, src/raptor_abbrev.c, src/raptor_namespace.c, - src/raptor_serialize_turtle.c, src/raptor_turtle_writer.c: Renamed - raptor_namespaces_qname_from_uri() to - raptor_new_qname_from_namespace_uri() - - * src/raptor.h, src/raptor_xml.c, src/raptor_xml_writer.c: Rename - XML escaping utility functions to be consistent - - (raptor_xml_escape_string_any): Renamed from - raptor_xml_any_escape_string() - - (raptor_xml_escape_string_any_write): Renamed from - raptor_xml_any_escaped_string_write() - - (raptor_xml_escape_string_write): Renamed from - raptor_xml_escaped_string_write() - -2010-02-18 Lauri Aalto - - * src/raptor_internal.h, src/raptor_sax2.c: - (raptor_sax2_init,raptor_sax2_finish,raptor_world_s): Removed - sax2_initialized flag as no longer necessary. - - * utils/rdfdiff.c: raptor_parse_uri() -> raptor_parser_parse_uri() - -2010-02-17 Dave Beckett - - * docs/raptor-sections.txt, docs/tmpl/section-general.sgml, - docs/tmpl/section-iostream.sgml, docs/tmpl/section-locator.sgml, - docs/tmpl/section-option.sgml, docs/tmpl/section-parser.sgml, - docs/tmpl/section-serializer.sgml, docs/tmpl/section-triples.sgml, - docs/tmpl/section-uri.sgml, docs/tmpl/section-world.sgml, - docs/tmpl/section-www.sgml, docs/tmpl/section-xml-namespace.sgml, - docs/tmpl/section-xml-qname.sgml, docs/tmpl/section-xml.sgml: - update doc templates and sections for function renames - - * src/raptor.h, src/raptor_serialize.c, - src/raptor_serialize_rss.c, utils/rapper.c: Rename serializer - methods to match raptor_CLASS_METHOD convention - - (raptor_serializer_serialize_end): Renamed from - raptor_serialize_end(). - - (raptor_serializer_set_namespace): Renamed from - raptor_serialize_set_namespace(). - - (raptor_serializer_set_namespace_from_namespace): Renamed from - raptor_serialize_set_namespace_from_namespace(). - - (raptor_serializer_start_to_file_handle): Renamed from - raptor_serialize_start_to_file_handle(). - - (raptor_serializer_start_to_filename): Renamed from - raptor_serialize_start_to_filename(). - - (raptor_serializer_start_to_iostream): Renamed from - raptor_serialize_start_to_iostream(). - - (raptor_serializer_start_to_string): Renamed from - raptor_serialize_start_to_string(). - - (raptor_serializer_serialize_statement): Renamed from - raptor_serialize_statement(). Updated callers - - * src/raptor.h, src/raptor_grddl.c, src/raptor_internal.h, - src/raptor_parse.c, utils/rapper.c: Rename parse methods to match - raptor_CLASS_METHOD convention - - (raptor_parser_parse_file_stream): Renamed from - raptor_parse_file_stream() - - (raptor_parser_parse_file): Renamed from raptor_parse_file() - - (raptor_parser_parse_uri): Renamed from raptor_parser_uri() - - (raptor_parser_parse_uri_with_connection): Renamed from - raptor_parse_uri_with_connection() - - * utils/rapper.c: - Update call to raptor_namespaces_format - - * src/raptor.h, src/raptor_namespace.c, src/raptor_xml.c, - src/raptor_xml_writer.c, utils/rapper.c: Rename namespace methods - to match raptor_CLASS_METHOD convention - - (raptor_namespace_format_as_xml): Renamed from - raptor_namespaces_format() - - (raptor_xml_namespace_string_parse): Renamed from - raptor_new_namespace_parts_from_string() since it is not a - constructor for anything. Tidied docs and code. Updated callers. - - * src/raptor.h, src/raptor_www.c: - (raptor_world_set_www_flags): Renamed from - raptor_www_no_www_library_init_finish() and gains flags arg. - - * src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_statement.c: raptor_term_print_as_ntriples() now uses - raptor_term_ntriples_write() - - (raptor_term_print_as_ntriples): Put handle at end like other - FILE* print methods. Update callers - - * src/raptor.h, src/raptor_general.c: Remove - raptor_print_ntriples_string() debug function - - * src/raptor.h, src/raptor_serialize_ntriples.c: Give - raptor_term_ntriples_write() and raptor_statement_ntriples_write() - a return value - - * src/raptor.h, src/raptor_json_writer.c, src/raptor_namespace.c, - src/raptor_qname.c, src/raptor_serialize_json.c, - src/raptor_serialize_ntriples.c, src/raptor_turtle_writer.c, - src/raptor_xml.c, src/raptor_xml_writer.c: Rename write to - iostream methods of class to follow raptor_CLASS_write() form - - (raptor_term_ntriples_write): Renamed from - raptor_iostream_write_term_ntriples() and moved iostream to last - arg. - - (raptor_xml_any_escaped_string_write): Renamed from - raptor_iostream_write_xml_any_escaped_string() and moved iostream - to last arg. - - (raptor_xml_escaped_string_write): Renamed from - raptor_iostream_write_xml_escaped_string() and moved iostream to - last arg. - - (raptor_qname_write): Renamed from raptor_iostream_write_qname() - and moved iostream to last arg. - - (raptor_namespace_write): Renamed from - raptor_iostream_write_namespace() and moved iostream to last arg. - - (raptor_string_ntriples_write): Renamed from - raptor_iostream_write_string_ntriples() and moved iostream to last - arg. - - (raptor_string_python_write): Renamed from - raptor_iostream_write_string_python() and moved iostream to last - arg. - - * src/raptor.h, src/raptor_internal.h, src/raptor_www.c: Move - raptor_www_init and raptor_www_finish to internal API. - - * src/raptor_parse.c: Define ACCEPT_HEADER_LEN since this has been - a crash bug twice. - - * src/ntriples_parse.c: - (raptor_ntriples_generate_statement): Let datatype URI be freed - after making literal term. - - * src/raptor_parse.c: - (raptor_parser_get_accept_header): strncpy 9 - - * src/ntriples_parse.c: Use raptor_free_statement() to clear - static statement. - - * src/raptor_statement.c: - (raptor_free_statement): use if(dynamic...) - - * src/raptor_statement.c: - (raptor_free_statement): NULL triple part pointers after free - terms. - - * src/ntriples_parse.c: - (raptor_ntriples_parse_init): Init static statement. - -2010-02-16 Dave Beckett - - * src/raptor_www_test.c: test fix for www - - * src/raptor.h, src/raptor_grddl.c, src/raptor_parse.c, - src/raptor_www.c, src/raptor_www_test.c: Rename raptor_www - constructor / destructor to standard names - - (raptor_new_www): Renamed from raptor_www_new - - (raptor_new_www_with_connection): Renamed from - raptor_www_new_with_commection - - (raptor_free_www): Renamed from raptor_www_free Update all - callers. - -2010-02-16 Lauri Aalto - - * src/raptor_statement.c: - (raptor_free_statement): Free terms contained in statically - allocated statements. - - * src/raptor_iostream.c: raptor_iostream write_bytes handlers are - supposed to return the number of bytes written or 0 on failure - - * src/raptor.h, src/raptor_uri.c: - (raptor_uri_get_world): Added new API helper function. Needed to - prevent API breakage in librdf_uri. - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_statement): Fixed compilation with - RAPTOR_DEBUG > 1. - - * src/turtle_parser.y: Replaced raptor_term_print() calls with - raptor_term_print_as_ntriples() to compile with RAPTOR_DEBUG > 1. - -2010-02-14 Dave Beckett - - * docs/tmpl/section-iostream.sgml, docs/tmpl/section-locator.sgml, - docs/tmpl/section-option.sgml, docs/tmpl/section-parser.sgml, - docs/tmpl/section-sequence.sgml, - docs/tmpl/section-serializer.sgml, docs/tmpl/section-world.sgml, - docs/tmpl/section-xml.sgml: Update generated docs - - * README.html: GIT - - * src/raptor_parse.c: - (raptor_parser_get_accept_header): Static accept header should be - 9 when string is correct. - -2010-02-12 Lauri Aalto - - * src/raptor.h: Reintroduced RAPTOR_V2_AVAILABLE flag so that - library users can support both raptor1 and raptor2. - -2010-02-11 Lauri Aalto - - * src/raptor.h, src/raptor_internal.h: Pulled - raptor_statement_init(), raptor_free_statement() to public - API. - -2010-02-10 Lauri Aalto - - * src/raptor.h, src/raptor_internal.h, src/raptor_statement.c: - - Pulled raptor_new_term_from_{uri,literal,blank}(), - raptor_free_term() to public API. Added API documentation. - -2010-02-09 Lauri Aalto - - * src/raptor_option.c: - Fixed warnings about enum-int mismatches. - -2010-02-05 Lauri Aalto - - * src/raptor_rss.c, src/raptor_sax2.c, - src/raptor_serialize.c, src/raptor_serialize_json.c, - src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c, - src/raptor_serialize_turtle.c, src/raptor_set.c, - src/raptor_uri.c, src/raptor_xml.c, src/raptor_xml_writer.c: - indent + whitespace - - * src/raptor_rdfxml.c: Made daml_namespace_uri_string_len - const. Does not need to be initialised data. - - * src/raptor_iostream.c: - (raptor_iostream_write_end): Return success (0) if iostream - handler does not implement write_end. Was returning an - uninitialized value (most likely non-0). - - * src/fix-bison, src/turtle_parser.y: - Removed fix-bison/yydestruct hack to pass in YYPARAM* to - %destructors. Was required for raptor_uri cleanup before - raptor_uri became a struct containting raptor_world*. - - * src/raptor_www.c: - (raptor_www_init,raptor_www_finish): Pulled functionality - from similar _common functions (removed, no longer a need to - share functionality). - - * src/raptor_serialize_rdfxmla.c: - Remove accidental formatting - whitespace from string literal. - - * src/raptor_rfc2396.c: Fixed code formatter artifact in - comment URL. - - * src/raptor.h: Fixed typo in comment. - -2010-02-06 Dave Beckett - - * tests/turtle/Makefile.am: Add check-warn-rdf to check-local - - * tests/turtle/Makefile.am: Move test-35 to TEST_WARN_FILES - - * src/raptor_statement.c: - (raptor_new_term_from_literal): Remove language used with - typed literal and generate warning - - * src/turtle_parser.y: Fix warning message - - * src/turtle_parser.y: Remove language used with typed - literal and generate warning - - * tests/turtle/Makefile.am, tests/turtle/test-35.out, - tests/turtle/test-35.ttl: Add turtle test 35 to ensure - language is removed when datatype is present - -2010-02-05 Dave Beckett - - * docs/raptor-sections.txt: some more fn renames - - * docs/raptor-docs.xml: rename section-feature.xml to - section.option.xml - - * src/raptor_parse.c: - (main): need program even when not debugging - - * docs/raptor-sections.txt, docs/tmpl/section-feature.sgml, - docs/tmpl/section-option.sgml: Rename feature to option - tutorial - docs not updated - - * utils/rapper.c: Use raptor_option_get_value_type_label to print - option types - - * src/raptor.h, src/raptor_option.c: - (raptor_option_get_value_type_label): Added - - * src/raptor_option.c: Update option descriptions to give specific - instance names. - - * utils/rapper.c: - feature->option in API calls except leave -f/--feature alone - - * src/raptor_internal.h, src/raptor_option.c: Renamed - raptor_options_enumerate_common to - raptor_world_options_enumerate_common - - * src/raptor_uri.c: - (main): Make test code less verbose except when very debuggy. - - * src/raptor_rfc2396.c: - (main): Make test code less verbose except when very debuggy. - - * src/raptor_www_test.c: - (main): Make test code less verbose except when very debuggy. - - * src/raptor_sequence.c: - (main): Make test code less verbose except when very debuggy. - - * src/raptor_iostream.c: - (main): Make test code less verbose except when very debuggy. - - * src/raptor_stringbuffer.c: - (main): Make test code less verbose except when very debuggy. - - * src/raptor_parse.c: - (main): Make test code less verbose except when very debuggy. - - * src/raptor_option.c: Restore old feature URI prefix - - * src/Makefile.am, src/raptor.h, src/raptor_feature.c, - src/raptor_grddl.c, src/raptor_internal.h, src/raptor_option.c, - src/raptor_parse.c, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_serialize_dot.c, src/raptor_serialize_json.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Rename - feature to option - - * src/raptor_feature.c, src/raptor_parse.c, src/raptor_sax2.c, - src/raptor_serialize.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: Move raptor_world_enumerate_*_features - functions to raptor_feature.c - - * src/raptor_serialize.c: #autodocs - - * src/raptor_feature.c, src/raptor_internal.h, src/raptor_sax2.c, - src/raptor_serialize.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: Replace raptor_feature_get_areas with - raptor_feature_is_valid_for_area - - (raptor_feature_get_areas): - Deleted. (raptor_feature_is_valid_for_area): Added to check if a - feature is valid for a given area; this all the calls to - raptor_feature_get_areas() ever was used for. - - * src/raptor_xml_writer.c: Check for valid xml writer features - before getting or setting them. - - (raptor_xml_writer_set_feature, - raptor_xml_writer_set_feature_string, - raptor_xml_writer_get_feature, - raptor_xml_writer_get_feature_string): Use - raptor_feature_get_areas() to check the features are valid. - - * src/raptor_internal.h, src/raptor_turtle_writer.c: Check for - valid turtle writer features before setting them. - - (raptor_world_enumerate_turtle_writer_features): Renamed from - raptor_turtle_writer_features_enumerate() - - (raptor_turtle_writer_set_feature, - raptor_turtle_writer_set_feature_string): Use - raptor_feature_get_areas() - - * src/raptor_serialize.c: Check for valid serializer features - before getting them - - (raptor_serializer_get_feature, - raptor_serializer_get_feature_string): Use - raptor_feature_get_areas() to check for valid serializer features. - - * src/raptor.h, src/raptor_feature.c, src/raptor_internal.h, - src/raptor_parse.c, src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Remove unused - RAPTOR_FEATURE_START_URI - - * src/raptor_serialize.c: Check for valid serializer features - before setting them - - (raptor_serializer_set_feature, - raptor_serializer_set_feature_string): Use - raptor_feature_get_areas() to check for valid serializer features. - - * src/raptor.h, src/raptor_sax2.c: Added - raptor_world_enumerate_sax2_features() - - * src/raptor_sax2.c: Check for valid features before setting - them - - (raptor_sax2_set_feature): Check for a feature that applies using - raptor_feature_get_areas() then set the values. - - * src/raptor_feature.c, src/raptor_internal.h: Added - raptor_feature_get_areas() - - * src/raptor_internal.h: Add RAPTOR_FEATURE_AREA_NONE - - * src/raptor_feature.c, src/raptor_internal.h: Added - RAPTOR_FEATURE_AREA_SAX2 for raptor_sax2 features - - raptor_feature_area gains RAPTOR_FEATURE_AREA_SAX2 - - raptor_features_list: Use RAPTOR_FEATURE_AREA_SAX2 for - RAPTOR_FEATURE_NORMALIZE_LANGUAGE and RAPTOR_FEATURE_NO_NET. - - * src/raptor.h, src/raptor_feature.c, src/raptor_sax2.c, - src/raptor_serialize.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: Reapply: Remove - RAPTOR_FEATURE_ASSUME_IS_RDF - obsolete since 2003 - - Reapply GIT d7b9a598372cf1630dad79943ecd262427240719 - - raptor_feature enum loses RAPTOR_FEATURE_ASSUME_IS_RDF - - (raptor_parser_set_feature, raptor_parser_get_feature): Remove check - for RAPTOR_FEATURE_ASSUME_IS_RDF. - - Remove all case RAPTOR_FEATURE_ASSUME_IS_RDF: - - * ChangeLog, src/raptor.h, src/raptor_feature.c, - src/raptor_internal.h, src/raptor_parse.c, src/raptor_sax2.c, - src/raptor_serialize.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: Revert the commits that removed the - switch()s around features - - Reverts commits - 60c814c462961b42e3e54dde1a4fb31bb274b2a8 - c0db820178c7b4df4d22d7b2e9bbbfb808e21ad4 - 8834cdc5fe3b9191b999dd1fb438912d19335771 - aaa15968153874b15cd084301fc9d01e625503c2 - 961f3225876929de7aa111b14bfa2470f1738175 - 791de39082f36e449f586021797e768b798bb4f3 - 24d277a1a920c393dd905be063784153f7ea6b00 - 30737c28676891e0602bd2f39c7fe4d2ad56ed03 - 85f3d2a285238f4dae1f3a344387be7e71afeb50 - 65f264148fcb4fba792dea2fe40c079ffaa2af0a - 33df189465408c1a877a2a8b8ce6ad03c17e3f32 - c9baae1679a55ac10b3bd91303679c7974c10335 - bf43e7b8a12818742420c7fd860629a10d9584f8 - 6355375feca96d6dcc2be74f9dd3422f30ff48a6 - faa08164fcbd21a390633adfc75ee56595b73857 - d7b9a598372cf1630dad79943ecd262427240719 - 6c28294c30f870f8a26c985af412477cafc4cba9 - -2010-02-04 Dave Beckett - - * src/raptor_xml_writer.c: code style - - * src/raptor_xml_writer.c: - (raptor_xml_writer_get_feature, raptor_xml_writer_set_feature): - Use raptor_feature_get_areas() to check for valid xml writer - features. - - * src/raptor_turtle_writer.c: - (raptor_turtle_writer_get_feature): Use raptor_feature_get_areas() - to check for valid turtle writer features. - - * src/raptor_internal.h, src/raptor_turtle_writer.c: Set turtle - writer features using feature data tables - - (raptor_turtle_writer_set_feature): Use raptor_feature_get_areas. - - (raptor_world_enumerate_turtle_writer_features): Renamed from - raptor_turtle_writer_features_enumerate() - - * src/raptor_serialize.c: Make raptor_serializer_get_feature and - raptor_serializer_get_feature_string use area and numeric checks - to remove cases - - (raptor_serializer_set_feature_string): docs. - - (raptor_serializer_get_feature, - raptor_serializer_get_feature_string): Use - raptor_feature_get_areas() and raptor_feature_value_is_numeric() - to validate features for serializers. - - * src/raptor.h, src/raptor_feature.c, src/raptor_internal.h, - src/raptor_serialize.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: Remove unused RAPTOR_FEATURE_START_URI - - * src/raptor_serialize.c: - (raptor_serializer_set_feature_string): Use - raptor_feature_get_areas() to check for valid serializer features. - - * src/raptor_serialize.c: - (raptor_serializer_set_feature): Use raptor_feature_get_areas() to - check for valid serializer features. - - * src/raptor_sax2.c: - (raptor_sax2_set_feature): use bit & - - * src/raptor.h, src/raptor_sax2.c: Added - raptor_world_enumerate_sax2_features() - - * src/raptor_sax2.c: Make raptor_sax2_set_feature smaller using - raptor_feature_get_areas - - (raptor_sax2_set_feature): Check for a feature that applies using - raptor_feature_get_areas() then set the values. - - * src/raptor_feature.c, src/raptor_internal.h: Added - raptor_feature_get_areas() - - * src/raptor_internal.h: Add RAPTOR_FEATURE_AREA_NONE - - * src/raptor_feature.c, src/raptor_internal.h: Added - RAPTOR_FEATURE_AREA_SAX2 for raptor_sax2 features - - raptor_feature_area gains RAPTOR_FEATURE_AREA_SAX2 - - raptor_features_list: Use RAPTOR_FEATURE_AREA_SAX2 for - RAPTOR_FEATURE_NORMALIZE_LANGUAGE and RAPTOR_FEATURE_NO_NET. - - * src/raptor.h, src/raptor_feature.c, src/raptor_parse.c, - src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Remove - RAPTOR_FEATURE_ASSUME_IS_RDF - obsolete since 2003 - - raptor_feature enum loses RAPTOR_FEATURE_ASSUME_IS_RDF - - (raptor_parser_set_feature, raptor_parser_get_feature): Remove - check for RAPTOR_FEATURE_ASSUME_IS_RDF. - - Remove all case RAPTOR_FEATURE_ASSUME_IS_RDF: - - * src/raptor_parse.c: Use raptor_feature_value_is_numeric() in - get/set parser features - - (raptor_parser_set_feature, raptor_parser_get_feature): Use - raptor_feature_value_is_numeric rather than huge cases with very - similar checks. - - * src/turtle_parser.y: Remove obsolete raptor_init() - raptor_finish() calls - - * utils/rapper.c: Update for feature type api - - * src/raptor_feature.c, src/raptor_internal.h, src/raptor_parse.c, - src/raptor_serialize.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: Added raptor_feature_value_is_numeric for - internal use. - - (raptor_feature_value_is_numeric): Added. - Replaced most uses of same pattern: - int value_is_string = (raptor_feature_get_value_type(feature) == RAPTOR_FEATURE_VALUE_TYPE_STRING); - if(!value_is_string) - ... - with a raptor_feature_value_is_numeric() call. - - * src/raptor.h, src/raptor_feature.c, src/raptor_internal.h, - src/raptor_parse.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Add - raptor_feature_value_type enum and use for features - - raptor_features_list gains a raptor_feature_value_type value_type - field and uses enum values in data. - - raptor_feature_area gains RAPTOR_FEATURE_AREA_TURTLE_WRITER since - XML writer features don't all apply; just indenting ones. - - typedef raptor_feature_value_type added to public API - - (raptor_feature_get_value_type): Renamed from - raptor_feature_value_type to return raptor_feature_value_type and - updated callers. - - * src/raptor_feature.c: #ws - - * src/raptor_feature.c: Use raptor_feature_area to split - raptor_features_list area / value type. - - raptor_features_list flags field is split into area and value_type. - - Use raptor_features_list enum values in data. - - (raptor_features_enumerate_common): Get features for an - area. (raptor_feature_value_type): Use VT_STRING define. - - * src/raptor_feature.c, src/raptor_internal.h, src/raptor_parse.c, - src/raptor_serialize.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: Added raptor_feature_area enum for - raptor_features_enumerate_common() - - raptor_feature_area added internally. - - (raptor_features_enumerate_common): Switch flags arg to use enum. - Update callers. - - * src/raptor_parse.c: #autodocs - - * src/raptor_feature.c: Turn feature flag magic numbers into - defines - - * src/raptor_feature.c: Add feature flag 32 for features with - URI-string values - - raptor_features_list: Split the flags into their bits and set - RAPTOR_FEATURE_START_URI and RAPTOR_FEATURE_ATOM_ENTRY_URI to have - URI string value. - -2010-02-03 Dave Beckett - - * docs/.gitignore: Ignore bak files - - * docs/tmpl/section-general.sgml, docs/tmpl/section-locator.sgml, - docs/tmpl/section-sequence.sgml, docs/tmpl/section-uri.sgml: - Update docbook tmpls - - * src/raptor_sequence.c: code style - - * src/raptor_sequence.c: Use RAPTOR_SEQUENCE_MIN_CAPACITY to - declare magic number - - * src/raptor_sequence.c: #autodocs - - * src/raptor.h, src/raptor_sequence.c: Make raptor_sequence_sort - take raptor_data_compare_function typedef - - (raptor_sequence_sort): Adjusted parameters to use - raptor_data_compare_function. It's the same parameter type but - now via a typedef. - - * src/raptor.h, src/raptor_iostream.c: iostream write_end now - returns a status code - - typedef raptor_iostream_write_end_func returns an int - - (raptor_iostream_write_end): Returns an int. - - (raptor_filename_iostream_write_end): Update file write handlers - to return fclose value. - - * src/raptor.h, src/raptor_iostream.c: Rename - raptor_iostream_handler2 to raptor_iostream_handler - - typedef raptor_iostream_handler: renamed from - raptor_iostream_handler2 - - Update all callers and rename parameters and variables from - handler2 to handler. - - (raptor_new_iostream_from_handler): Renamed from - raptor_new_iostream_from_handler2. - - * src/ntriples_parse.c: - Remove support for xml"..." N-Triples - literals, long obsolete. - - * tests/ntriples/Makefile.am, tests/ntriples/bad-07.nt: Add - bad07.nt to test literal form xml"..." is refused - - * .gitignore: - do not ignore rdf files - - * src/raptor.h, src/raptor_sequence.c: Remove - raptor_sequence_print_string from public API - - (raptor_sequence_print_string): Moved to static and used for test - only. - - * src/raptor.h, src/raptor_sequence.c: Remove - raptor_compare_strings from public API - - (raptor_compare_strings): Moved to static and used for test only. - - * src/raptor_abbrev.c, src/raptor_internal.h, src/raptor_rdfxml.c, - src/raptor_serialize_dot.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_statement.c, - src/turtle_parser.y: Rename raptor_new_term_from_term to - raptor_term_copy - - (raptor_term_copy): Renamed from raptor_new_term_from_term Updated - all callers with new name. All copy constructors should be - raptor_CLASS_copy now. - -2010-01-30 Dave Beckett - - * src/raptor.h: Reorder prototypes to group class and methods. - - * src/raptor.h: #ws - - * src/raptor.h, src/raptor_locator.c: Renamed - raptor_format_locator to raptor_locator_format - - * src/raptor.h, src/raptor_general.c, src/raptor_locator.c, - utils/rapper.c, utils/rdfdiff.c: raptor_print_locator renamed to - raptor_locator_print - - * src/raptor.h: Reorder and group by class. - - * src/raptor_avltree.c, src/raptor_internal.h: Remove legacy - raptor_avltree cursor functions - - raptor_avltree loses cursor_iterator field. - - (raptor_avltree_cursor_first, raptor_avltree_cursor_last, - raptor_avltree_cursor_prev, raptor_avltree_cursor_next, - raptor_avltree_cursor_get): Deleted - - * src/raptor_avltree.c: - code style - whitespace, line breaks - - * src/raptor.h, src/raptor_avltree.c: Rename - raptor_avltree_iterator_end to raptor_avltree_iterator_is_end - - * src/raptor_avltree.c, src/raptor_internal.h: Move - raptor_avltree_s internals into raptor_avltree.c module. - - * src/raptor_abbrev.c: Use term->world to save knowing internals - of raptor_avltree. - - * docs/raptor-docs.xml, docs/raptor-sections.txt, src/raptor.h, - src/raptor_avltree.c, src/raptor_internal.h: Move raptor_avltree - to public API. - - Public opaque typedefs: raptor_avltree and raptor_avltree_iterator - - Public function typedefs: raptor_data_compare_function, - raptor_data_free_function and raptor_avltree_visit_function - - Public functions: raptor_new_avltree, raptor_free_avltree, - raptor_avltree_add, raptor_avltree_delete, raptor_avltree_print, - raptor_avltree_remove, raptor_avltree_search, - raptor_avltree_set_print_handler, raptor_avltree_size, - raptor_avltree_visit, raptor_new_avltree_iterator, - raptor_free_avltree_iterator, raptor_avltree_iterator_end, - raptor_avltree_iterator_get and raptor_avltree_iterator_next NOTE: - These were not made public and seem to be internal/unused: - raptor_avltree_cursor_first, raptor_avltree_cursor_last, - raptor_avltree_cursor_prev, raptor_avltree_cursor_next and - raptor_avltree_cursor_get - - * docs/raptor-docs.xml: - 2010 - - * NEWS.html, RELEASE.html: - Merge 1.4.21 news and release notes - - * ChangeLog, ChangeLog.9, Makefile.am: - ChangeLog.9 for 2008 - - * .gitignore: - Do not ignore ChangeLog* - - * utils/rapper.c, utils/rdfdiff.c: Update raptor_print_locator - calling convention - -2010-01-29 Dave Beckett - - * src/raptor_serialize_turtle.c: Ensure serialized Turtle names - are legal - - (raptor_turtle_is_legal_turtle_qname): Added to enforce prefix and - local name character constraints. - - (raptor_turtle_emit_resource): Use above to ensure that XML Qnames - that are not legal Turtle Qnames are never serialized. - - Fixes Issue#0000337 http://bugs.librdf.org/mantis/view.php?id=337 - - * tests/turtle/Makefile.am, tests/turtle/test-34-out.ttl, - tests/turtle/test-34.ttl: Add Turtle serializing test 34 for not - serializing a qname with a . - - Test for Issue#0000337 http://bugs.librdf.org/mantis/view.php?id=337 - -2010-01-28 Dave Beckett - - * src/raptor_rdfxml.c: Create a new set for checking for duplicate - rdf:ID at start of every parse. - - (raptor_rdfxml_parse_init): Remove creating set from when parser is - constructed. - - (raptor_rdfxml_parse_start): At start of parsing, delete any - existing id set and only create a new one if the feature - RAPTOR_FEATURE_CHECK_RDF_ID is enabled. - - * src/turtle_lexer.l: Alter Turtle lexer to refuse to accept . in - namespace prefix/local names - - Adjust Turtle lexer to match spec for the prefixName and name - tokens: - http://www.w3.org/TeamSubmission/2008/SUBM-turtle-20080114/#prefixName - http://www.w3.org/TeamSubmission/2008/SUBM-turtle-20080114/#name - - This makes some previously accepted not-to-spec turtle documents be - rejected. - - It makes new bad turtle syntax tests bad-21 and bad-22 pass. - - (NCNAME_PREFIX): Updated for prefixName - - (NCNAME): Update for name - - Fixes Issue#0000326 http://bugs.librdf.org/mantis/view.php?id=326 - - * tests/turtle/Makefile.am, tests/turtle/bad-21.ttl, - tests/turtle/bad-22.ttl: Add bad turtle tests 21, 22 for . in - prefix and qname - - * src/ntriples_parse.c: Make ntriples parser accept text/plain - with q=0.1 - - (raptor_ntriples_parser_register_factory): Register mime type - text/plain via raptor_parser_factory_add_mime_type. - Fixes Issue#0000319 http://bugs.librdf.org/mantis/view.php?id=319 - - * src/turtle_lexer.l: Make Turtle lexer handle \\ at end of - triple-quoted literals - - Alter literal regex and let - raptor_stringbuffer_append_turtle_string report problems with - buffer ending in middle of \u and \U. - - Add rule for bare \ on it's own which can only happen if input - ends on a \. - - Fixes Issue#0000318 http://bugs.librdf.org/mantis/view.php?id=318 - - * tests/turtle/Makefile.am, tests/turtle/bad-20.ttl: Add - bad-20.ttl test for end of file in middle of \ escape - - * tests/turtle/Makefile.am, tests/turtle/test-33.out, - tests/turtle/test-33.ttl: Added test-33 for \\ at end of - triple-quoted turtle literal - - Added tests/turtle/test-33.ttl and tests/turtle/test-33.out files - to test Issue#0000318 http://bugs.librdf.org/mantis/view.php?id=318 - - * librdfa/iri.c: Update to librdfa GIT commit - 1979d7246a1d98f95bab78704a32b87cf95d1ef6 - - * librdfa/curie.c, librdfa/iri.c, librdfa/rdfa.c, librdfa/rdfa.h, - librdfa/triple.c: Merge librdfa changes to GIT - 88ca099befcb1b81be1a879663e5e891707e5239 - - Fixes several buffer alloc/realloc problems and failure to terminate - strings when using them with strstr(). - - Other librdfa changes: - - added "first" to list of allowed reserved words. - - allow @rel/@rev reserved word values to be in any case (TC 134) - - librdfa now treats the following characters as valid whitespace - characters: SPACE, \t, \n, \v, \f, and \r. (TC 131) - - fix generation of xml:lang if language was already in XML - Literal (TC 102) - -2010-01-26 Dave Beckett - - * src/raptor_general.c: ws - - * src/raptor.h, src/raptor_general.c, src/raptor_statement.c: - Adjust raptor_print_ntriples_string params to put FILE* last - - * src/raptor.h, src/raptor_general.c, src/raptor_locator.c: Adjust - raptor_print_locator params to put FILE* last like other print - methods. - - * src/raptor_locator.c: ws - - * src/raptor_general.c, src/raptor_internal.h, src/raptor_sax2.c: - Remove raptor_log_error_to_handlers and call raptor_log_error - directly. - - (raptor_log_error_to_handlers): Deleted. Update several sax2 - modules to call raptor_log_error instead. - - * src/raptor_sequence.c: - indent - - * src/raptor_abbrev.c, src/raptor_avltree.c, - src/raptor_internal.h: Update raptor_avltree to us - raptor_data_print_handler - - typedef raptor_data_print_function: deleted - - (raptor_new_abbrev_subject, raptor_avltree_set_print_handler): Use - raptor_data_print_handler* to replace raptor_data_print_function. - - (raptor_print_abbrev_po): Swap args to match - raptor_data_print_handler calling convention. - - * src/raptor.h, src/raptor_grddl.c, src/raptor_parse.c, - src/raptor_rss_common.c, src/raptor_sequence.c, - src/raptor_serialize.c, src/raptor_serialize_dot.c, - src/raptor_serialize_rss.c, src/turtle_parser.y: Rename - sequence-specific handlers typedefs to be more raptor-general - - raptor_data_free_handler renamed from raptor_sequence_free_handler - - raptor_data_context_free_handler renamed from - raptor_sequence_context_free_handler - - raptor_data_print_handler renamed from - raptor_sequence_print_handler and update docs - - raptor_data_context_print_handler renamed from - raptor_sequence_context_print_handler and update docs - - Update all users. - - * src/raptor_internal.h: Make all print methods return an int - status code - - (raptor_statement_print, raptor_uri_print, raptor_sequence_print, - raptor_term_print_as_ntriples): Return int success code. - - * src/raptor.h, src/raptor_sequence.c, src/raptor_statement.c, - src/raptor_uri.c: Make all print methods return an int status code - - (raptor_statement_print, raptor_uri_print, raptor_sequence_print, - raptor_term_print_as_ntriples): Return int success code. - - * src/raptor.h, src/raptor_grddl.c, src/raptor_sequence.c: - Update sequence _v2 constructor/methods to use _with_context - - Rename typedefs for handlers to match, update constructor - documentation to explain the difference. - - typedef raptor_sequence_context_print_handler renamed from - raptor_sequence_print_handler_v2. - - raptor_sequence - renamed fields to add context_NAME for the - formerly _v2 handler names. - - Add explanations of what they are for. - - (raptor_new_sequence): autodocs and example of use - - (raptor_new_sequence_with_context): Renamed from - raptor_new_sequence_v2 and autodocs. - - * src/raptor.h, src/raptor_sequence.c: Remove unused - raptor_sequence_set_print_handler() and - raptor_sequence_set_print_handler_2(). - - (raptor_sequence_set_print_handler, - raptor_sequence_set_print_handler_v2): Deleted. - -2010-01-24 Dave Beckett - - * src/turtle_parser.y: - (verb): Get rdf:type term from static term and do not lose an URI - reference. - - * src/turtle_parser.y: Free literal strings passed into - raptor_new_term_from_literal() - - * src/turtle_parser.y: - (resource): Free uri object references when making resource from - QNAME_LITERAL or URI_LITERAL. - - (raptor_turtle_generate_statement): Redo - free constructed terms - - * src/turtle_parser.y: - (raptor_turtle_generate_statement): UNDO Free constructed terms - - * src/turtle_parser.y: - (raptor_turtle_generate_statement): Free constructed terms - - * src/turtle_parser.y: Free blank_id not blank - - * src/raptor_rdfxml.c: - When creating new URIs or terms, free allocated values early. - - Since functions like raptor_new_term_from_uri() take copies of their - arguments, any allocated objects passed in such as URIs or literals - should be freed. Adjust the code so that's done early. - - (raptor_rdfxml_generate_statement): Free bag_predicate_uri. - - (raptor_rdfxml_start_element_grammar): For rdf:ID, move the syntax - checks earlier to save extra complexity on errors. - - Generally update all places to free generated IDs and constructed - URIs just after making raptor_uri or raptor_term - - * src/raptor_uri.c: Use raptor_uri_resolve_uri_reference length - with raptor_new_uri_from_counted_string internally. - - raptor_uri length is now unsigned int - - (raptor_new_uri_from_counted_string): Add maintainer assert that URI - string is length it is declared to be. - - (raptor_new_uri_relative_to_base): Use - raptor_uri_resolve_uri_reference return value to call - raptor_new_uri_from_counted_string. - - (raptor_new_uri_for_rdf_concept): Correctly calcuate passed in - buffer length - it was malloced correctly. - - (assert_uri_is_valid): Added. - - (assert_uri_to_relative): Use above for checks. - - * src/raptor_rfc2396.c: - (raptor_uri_resolve_uri_reference): set result_len when relative - is #frag. - - * src/raptor_abbrev.c: - (raptor_new_qname_from_resource): Calculate the length of namespace - part of predicate URI correctly. - - * src/raptor_abbrev.c: - (raptor_new_qname_from_resource): Namespace URI buffer was too short - by 1. - - * src/raptor_serialize_rdfxmla.c: Replace rdf_xml_literal_uri with - use of static rdf:XMLLiteral URI - - raptor_rdfxmla_serializer_context loses rdf_xml_literal_uri - - (raptor_rdfxmla_serialize_init): Remove init with rdf_type_uri, - copy RAPTOR_RDF_type_term(). Remove rdf_xml_literal_uri. - - (raptor_rdfxmla_serialize_terminate): Remove free of - rdf_xml_literal_uri. - - * src/raptor_serialize_rdfxml.c: - Replace rdf_xml_literal_uri with use of static rdf:XMLLiteral URI - - raptor_rdfxml_serializer_context loses rdf_xml_literal_uri - - (raptor_rdfxml_serialize_init, raptor_rdfxml_serialize_terminate): - Remove init, free. - - (raptor_rdfxml_serialize_statement): Use - RAPTOR_RDF_XMLLiteral_URI() - - * src/raptor.h, src/raptor_rfc2396.c: - (raptor_uri_resolve_uri_reference): Now returns length of URI. - -2010-01-23 Dave Beckett - - * src/raptor_librdfa.c: - (raptor_librdfa_generate_statement): Use - raptor_new_uri_from_counted_string for rdf:XMLLiteral datatype. - - * src/raptor_abbrev.c: - (raptor_new_qname_from_resource): Use - raptor_new_uri_from_counted_string. - - * src/raptor_feature.c: Create feature URI prefix from counted URI - string - - (raptor_features_enumerate_common): Use - raptor_new_uri_from_counted_string. - - * src/raptor_rdfxml.c: - Create daml namespaces from counted string URIs - - Added daml_namespace_uri_string and daml_namespace_uri_string - statics for DAML namespace URI. - - (raptor_rdfxml_parse_init): Use - raptor_new_uri_from_counted_string. - - * src/raptor_namespace.c: Create rdf and rdfs namespaces from - counted string URIs - - Added raptor_rdf_schema_namespace_uri_len constant int. - - (raptor_namespaces_init): Use raptor_new_uri_from_counted_string. - - * src/raptor_uri.c: - Ensure URI string field is always set - - Renamed raptor_uri_s field string_length to length. - - (raptor_new_uri_from_uri_local_name, - raptor_new_uri_relative_to_base, raptor_new_uri_for_rdf_concept): - Use raptor_new_uri_from_counted_string with already calculated - length. - - * src/raptor_grddl.c: - Create constant strings / lengths for GRDDL predicate URIs - - Added grddl_namespaceTransformation_uri_string and - grddl_profileTransformation_uri_string constant strings with - macros for lengths. - - (raptor_grddl_parse_init): Use above to create grddl parser URIs - with raptor_new_uri_from_counted_string. - - * src/raptor.h, src/raptor_uri.c: - Added new uri constructor raptor_new_uri_from_counted_string - - (raptor_new_uri_from_counted_string): Added - - (raptor_new_uri): Now a wrapper around - raptor_new_uri_from_counted_string. - -2010-01-22 Dave Beckett - - * src/raptor_serialize_rss.c: - Use raptor_term instead of URIs and 'fake' URIs - - raptor_rss_group_map uses a raptor_term as identifier, not URI. - - (raptor_free_group_map): Free term. - - (raptor_rss_group_map_compare): Compare terms. - - (raptor_rss10_get_group_item): Use terms in search. - - (raptor_rss10_set_item_group): Use term to create a new gm. - - (raptor_rss10_move_statements, - raptor_rss10_move_anonymous_statements, - raptor_rss10_store_statement): Replace URIs with terms from subject, - removing all fake_uri. - - (raptor_rss10_serialize_statement, raptor_rss10_build_items): Use - item term for calling raptor_rss10_set_item_group - - * src/raptor_serialize_rss.c: - Use raptor_term for rdf:Seq node identity and remove a fake_uri - - raptor_rss10_serializer_context replace seq_uri with raptor_term* - seq_term - - (raptor_rss10_serialize_terminate): Free term. - - (raptor_rss10_serialize_statement): Copy statement subject to get - seq node identity. - - (raptor_rss10_build_items): Use seq_term for comparisons with - subject and delete fake_uri - - * raptor.rdf.in: GITRepository - -2010-01-21 Dave Beckett - - * src/turtle_lexer.l: - Make Turtle long literals count raw newlines - correctly - - (Rule \" ....): Count the raw newlines seen in the yytext - to adjust the line numbers correctly for long literals. - Fixes Issue#0000331 http://bugs.librdf.org/mantis/view.php?id=331 - - * src/raptor_general.c: , - - * raptor.rdf.in: Update DOAP with GIT information. - -2010-01-20 Dave Beckett - - * src/raptor_rdfxml.c: Always take a copy of world concepts so - they are consitently freed - - * src/ntriples_parse.c, src/raptor_rdfxml.c: Use rdf namespace - raptor_terms to reduce raptor_term creations in parsers. - - (raptor_ntriples_generate_statement): Tidy code, moving URI - construction to local blocks. - - (raptor_rdfxml_generate_statement): Use concept terms for refiying - predicates and rdf:Statement class. - - (raptor_rdfxml_start_element_grammar, - raptor_rdfxml_end_element_grammar): Update to use concept terms. - - * src/raptor_internal.h: - Added macros to access the static RDF namespace raptor terms - - Added macros RAPTOR_RDF_{NAME}_term(world) to get a shared pointer - to the static raptor_term for rdf namespace concepts. - - * src/raptor_concepts.c, src/raptor_internal.h: - Make a set of raptor_term for RDF namespace terms used in graph. - - raptor_rdf_ns_term_id gains an alias RDF_NS_LAST_SYNTAX_TERM for the - last syntax term. - - raptor_world gains an array of raptor_term 'terms'; not all of these - will be used, the first few are syntax only. - - (raptor_concepts_init, raptor_concepts_finish): Initialised and - free the terms. - -2010-01-19 Dave Beckett - - * src/raptor_rss.c: - (raptor_rss_block_set_field): Fix failure check - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c: - Turn two magic number offsets 0 into defines in raptor_rss.h - - Add defines RAPTOR_RSS_LINK_HREF_URL_OFFSET and - RAPTOR_RSS_LINK_REL_STRING_OFFSET for indexes into block - urls/strings arrays - both at offset 0. - - (raptor_rss_insert_rss_link): Use above defines and remove fixme. - - Update raptor_rss_block_fields_info to use defines. - - * src/raptor_xml_writer.c: raptor_xml_writer_nsd_compare - Remove - FIXME; duplicating a 3 line function is not a worry. - - * src/raptor_uri.c: - (raptor_uri_print): Use world to report fwrite failure, remove - FIXME. - - * src/raptor_serialize_rss.c: raptor_rss10_emit_item - remove - fixme now it is documented. - - * docs/raptor-serializers.xml: note default atom:content type on - serializing to atom 1.0 - - * src/raptor_serialize_rdfxmla.c: - remove FIXME no longer relevant - - * src/raptor_rss.c: - Add some resilience to calloc/malloc failure - - (raptor_rss_parse_init): Code tidy. - - (raptor_rss_block_set_field): Add return value for failure. Check - for URI and string alloc failure. - - (raptor_rss_start_element_handler, raptor_rss_end_element_handler): - Set parser failure and end on alloc failure. - - (raptor_rss_insert_rss_link): Add return value for failure and check - for new field, string failure. - - (raptor_rss_insert_identifiers): Add return value for failure and - check for above function failing. - - (raptor_rss_copy_field): Return failure on string alloc failure. - - (raptor_rss_parse_chunk): Fail to parse when - raptor_rss_insert_identifiers fails. - - * src/raptor_parse.c: Make score sorting us a dynamic buffer in - raptor_world_guess_parser_name - - (raptor_world_guess_parser_name): Calloc/free the array and remove - FIXME! - - * src/raptor_grddl.c: raptor_grddl_run_grddl_transform_doc - - remove FIXMEs now that these are documented - - * docs/raptor-parsers.xml: document more GRDDL parser features - - * src/raptor_grddl.c: raptor_grddl_run_grddl_transform_doc - - remove FIXME now that the XSLT params are documented - - * docs/raptor-parsers.xml: document GRDDL XSTL parameters - - * src/raptor_abbrev.c: autodocs - - * src/turtle_parser.y: remove FIXMEs - - * src/turtle_lexer.l: Update test code to Raptor V2 APIs. - - * src/raptor_concepts.c, src/raptor_internal.h: Do not try to make - an rdf namespace concept URI for the NULL name - - * src/raptor_concepts.c: - (raptor_concepts_init): Return 1 if URI alloc failed not succeeded - - * src/raptor_concepts.c: - (raptor_concepts_init): Return 1 if URI alloc failed. - - * src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: - Rename abbrev struct compare functions to standard naming. - - (raptor_abbrev_node_compare): Renamed from raptor_abbrev_node_cmp. - - (raptor_abbrev_subject_compare): Renamed from - raptor_abbrev_subject_cmp. - -2010-01-18 Dave Beckett - - * src/raptor_grddl.c: GRDDL parser code style - whitespace, break - long lines, loop pre-counting - - Whitespace around operators and break long lines. - - For fixed size raptor_sequence or array loops, store size in a var - 'size' rather than run a function on every if/while loop. - - * src/raptor_grddl.c: code style: break into 2 lines the long - assignments to grddl_parser - - * src/raptor_grddl.c: Update conformance urls and doc ptr - - * src/raptor_rdfxml.c: Code style fixes - indenting, whitespace, add - vars to break long lines. - - Code style, indenting and whitespace. Add variables to break long - lines especially error reporting Use __func__ for internal error - message rather than hardcoding function name. - - * src/Makefile.am, src/raptor.h, src/raptor_concepts.c, - src/raptor_general.c, src/raptor_internal.h, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c, - src/raptor_serialize_rss.c, src/raptor_uri.c, src/turtle_common.h, - src/turtle_parser.y: 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. - - * src/fix-flex: alter lexer output to remove signed/unsigned - comparison that gcc 4.x warns. - - * src/raptor_librdfa.c: Do not strdup language in - raptor_librdfa_generate_statement - - * src/ntriples_parse.c, src/raptor_internal.h, - src/raptor_librdfa.c, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_rss_common.c, src/raptor_serialize_rss.c, - src/raptor_statement.c, src/turtle_parser.y: Change - raptor_new_term_from_blank calling semantics to copy id inside. - - (raptor_new_term_from_blank): Copy blank ID. - - Update all calls to raptor_new_term_from_blank to remove strdup()s - and add a few RAPTOR_FREE for generated IDs. - - * src/ntriples_parse.c, src/raptor_librdfa.c, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_statement.c, src/turtle_parser.y: - Change raptor_new_term_from_literal calling semantics to copy inside. - - (raptor_new_term_from_literal): Copy literals, optional language - and datatype URIs. - - Update all calls to raptor_new_term_from_literal to remove strdup(), - malloc/free, or stringbuffer copy for literal string; remove copy - URI for datatype URI. - - * src/raptor_rdfxml.c: Rename RDF ns-checking functions and document - their returns - - (raptor_rdfxml_check_propertyElement_name): Renamed from - raptor_rdfxml_forbidden_nodeElement_name and returns tri-state flag - - (raptor_rdfxml_check_propertyElement_name): Renamed from - raptor_rdfxml_forbidden_propertyElement_name and returns tri-state - flag. - - (raptor_rdfxml_check_propertyAttribute_name): Renamed from - raptor_rdfxml_forbidden_propertyAttribute_name and returns - tri-state flag. - - Update callers to check for <0: unknown name, 0: allowed, >0: not - allowed - - * src/raptor_rdfxml.c: Set raptor_rdf_ns_terms_info as unsigned int - 1 bit so bool works - - * src/raptor_rdfxml.c: Adjust raptor_rdf_ns_terms_info fields: - reorder, make positive and use bitfields. - - Altered raptor_rdf_ns_terms_info field order to group flag - attributes together and use 1 bit each, make them positive allowed - flags rather than mix of forbidden/allowed. - - Adjust the raptor_rdfxml_forbidden_TEST_name calling code to use - !raptor_rdf_ns_terms_info[field].allowed_TEST - - * src/raptor_rdfxml.c: Tidy comments for raptor_rdf_ns_term_id names - - * src/raptor_rdfxml.c: Tidy RDF terms description - raptor_rdf_ns_term_id: Renamed enum from rdf_attr. Names are all - RDF_ATTR_[name] now. - - * src/ntriples_parse.c, src/raptor_librdfa.c, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_rss_common.c, src/raptor_statement.c, - src/turtle_parser.y: Change raptor_new_term_from_uri calling - semantics to take URI copy inside - - (raptor_new_term_from_uri): autodocs and call raptor_uri_copy. - - Updated all calls to raptor_new_term_from_uri to remove a - raptor_uri_copy or add a raptor_uri_free as appropriate. - - * src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: Make - raptor_abbrev_node use raptor_term rather than another embedded - node - - raptor_abbrev_node loses the 'value' union and a pile of - sub-structure duplicating raptor_term* contents; yet another - librdf_node copy bites the dust. - - (raptor_new_abbrev_node): Use raptor_new_term_from_term - - (raptor_free_abbrev_node): Use raptor_free_term - - (raptor_abbrev_node_cmp): Thin wrapper around raptor_term_compare. - - (raptor_abbrev_node_equals): Thin wrapper around - raptor_term_equals. - - Update all references to the raptor_abbrev_node internals above. - - (raptor_rdfxmla_serialize_init, raptor_turtle_emit_subject): Fix a - couple of places where a static raptor_term was used for creating a - raptor_abbrev_node; now make a dynamic one so it can be reference - counted and freed. - - * src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_statement.c: Make raptor_term_print_as_ntriples internal - so can use for raptor_abbrev - - (raptor_term_print_as_ntriples): No longer static. - -2010-01-17 Dave Beckett - - * docs/rdfprint.c, examples/rdfprint.c, src/raptor.h, - src/raptor_grddl.c, src/raptor_rdfxml.c, src/raptor_rss_common.c, - src/raptor_serialize_rss.c, src/raptor_serialize_simple.c, - src/raptor_statement.c, src/turtle_parser.y, utils/rdfdiff.c: Rename - statement printing methods to raptor_statement_NAME() form - - (raptor_statement_print): Renamed from - raptor_print_statement - - (raptor_statement_print_as_ntriples): Renamed from - raptor_print_statement_as_ntriples - - * src/raptor.h: Remove unused typedefs for old URI handler code - raptor_new_uri_func, raptor_new_uri_from_uri_local_name_func, - raptor_new_uri_relative_to_base_func, - raptor_new_uri_for_rdf_concept_func, raptor_free_uri_func, - raptor_uri_equals_func, raptor_uri_compare_func, - raptor_uri_copy_func, raptor_uri_as_string_func, - raptor_uri_as_counted_string_func: Deleted. - - * docs/rdfcat.c, docs/rdfprint.c, examples/grapper.c, - examples/raptor_abort.c, examples/rdfcat.c, examples/rdfprint.c, - src/raptor.h, src/raptor_feature.c, src/raptor_general.c, - src/raptor_grddl.c, src/raptor_guess.c, src/raptor_internal.h, - src/raptor_parse.c, src/turtle_parser.y, utils/rapper.c, - utils/rdfdiff.c: - Rename parser methods to all start raptor_parser_METHOD - - (raptor_parser_get_feature): Renamed from raptor_get_feature. - - (raptor_parser_get_label): Renamed from raptor_get_label. - - (raptor_parser_get_locator): Renamed from raptor_get_locator. - - (raptor_parser_get_mime_type): Renamed from raptor_get_mime_type. - - (raptor_parser_get_name): Renamed from raptor_get_name. - - (raptor_parser_get_need_base_uri): Renamed from - raptor_get_need_base_uri. - - (raptor_world_get_parser_factory): Renamed from - raptor_get_parser_factory. - - (raptor_parser_parse_abort): Renamed from raptor_parse_abort. - - (raptor_parser_parse_chunk): Renamed from raptor_parse_chunk. - - (raptor_parser_set_uri_filter_no_net): Renamed from - raptor_parse_uri_no_net_filter. - - (raptor_parser_get_new_generated_i): Renamed from - raptor_parser_generate_id. - - (raptor_parser_set_default_generate_id_parameters): Renamed from - raptor_set_default_generate_id_parameters. - - (raptor_parser_set_generate_id_handler): Renamed from - raptor_set_generate_id_handler. - - (raptor_parser_set_graph_handler): Renamed from - raptor_set_graph_handler. - - (raptor_parser_set_namespace_handler): Renamed from - raptor_set_namespace_handler. - - (raptor_parser_set_statement_handler): Renamed from - raptor_set_statement_handler. - - (raptor_parser_parse_start): Renamed from raptor_start_parse. - - * src/raptor.h, src/raptor_general.c, src/raptor_libxml.c, - src/raptor_parse.c: - Adjust raptor_log_level to match log4j levels: add trace, debug, info. - - raptor_log_level gains RAPTOR_LOG_LEVEL_TRACE, - RAPTOR_LOG_LEVEL_DEBUG and RAPTOR_LOG_LEVEL_INFO. Reordered to - match severity from trace level to fatal error. Add autodocs. - - * src/raptor_statement.c: - code style - - * src/raptor_parse.c: - autodocs - - * src/raptor_serialize.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: autodocs - - * src/raptor.h, src/raptor_iostream.c, - src/raptor_serialize_simple.c: Renamed - raptor_iostream_write_uri_v2 to raptor_iostream_write_uri and lose - world arg - - * src/raptor.h, src/raptor_xml_writer.c: Rename - raptor_xml_writer_features_enumerate_v2 to - raptor_world_enumerate_xml_writer_features - - * src/raptor.h, src/raptor_general.c: Rename - raptor_error_handlers_init_v2 to raptor_error_handlers_init - - * src/raptor_serialize_rss.c: Fix debug calls to - raptor_print_statement_as_ntriples_v2 now called - raptor_print_statement_as_ntriples - - * src/raptor.h, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_xml_writer.c: - Remove _v2 from raptor_new_xml_writer_v2 name and remove unused arg. - - (raptor_new_xml_writer_v2): Renamed from raptor_new_xml_writer and - delete unused - - (never used) canonicalized arg. - - * src/raptor.h, src/raptor_feature.c, src/raptor_parse.c: - Renamed raptor_feature_from_uri_v2 to raptor_world_get_feature_from_uri - - * src/raptor.h, src/raptor_abbrev.c, src/raptor_namespace.c, - src/raptor_qname.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c, - src/raptor_turtle_writer.c, src/raptor_xml.c, - src/raptor_xml_writer.c: - Remove _v2 from raptor_new_qname_from_namespace_local_name_v2 - - (raptor_new_qname_from_namespace_local_name): Renamed from - raptor_new_qname_from_namespace_local_name_v2. - - * src/raptor.h, src/raptor_internal.h, src/raptor_namespace.c, - src/raptor_rss.c, src/raptor_sax2.c, src/raptor_serialize_dot.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c, - src/turtle_common.h, src/turtle_lexer.l, src/turtle_parser.y: - Rename raptor_namespaces/stack functions to lose _v2 in name - - (raptor_new_namespaces): Renamed from raptor_new_namespaces_v2. - - (raptor_namespaces_init): Renamed from raptor_namespaces_init_v2 - - Also note where raptor_namespace_stack is static such as in - raptor_sax2, some tests and in raptor_turtle_parser. - - * src/raptor_www_test.c: - Fix test o use raptor_www_new - - * src/raptor.h, src/raptor_general.c, src/raptor_grddl.c, - src/raptor_parse.c, src/raptor_www.c: - Rename raptor_www functions to lose _v2 in name - - (raptor_www_init): Renamed from raptor_www_init_2 - internal. - - (raptor_www_finish): Renamed from raptor_www_finish_v2 - internal. - - (raptor_www_new): Renamed from raptor_www_new_v2. - - (raptor_www_new_with_connection): Renamed from - raptor_www_new_with_connection_v2. - - * src/raptor.h, src/raptor_general.c, src/raptor_locator.c, - utils/rapper.c, utils/rdfdiff.c: - Remove _v2 from name and world arg from raptor_locator functions - - (raptor_print_locator): Renamed from raptor_print_locator_v2 and - loses world arg. - - (raptor_format_locator): Renamed from raptor_format_locator_v2 and - loses world arg. - - (raptor_locator_uri_string): Renamed from raptor_locator_uri_v2 and - renamed to reflect returns a string not a raptor_uri* - - * src/raptor_avltree.c, src/raptor_general.c, src/raptor_grddl.c, - src/raptor_iostream.c, src/raptor_json_writer.c, - src/raptor_namespace.c, src/raptor_nfc_test.c, src/raptor_parse.c, - src/raptor_qname.c, src/raptor_rdfxml.c, src/raptor_rfc2396.c, - src/raptor_rss.c, src/raptor_rss_common.c, src/raptor_sax2.c, - src/raptor_sequence.c, src/raptor_serialize.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_set.c, - src/raptor_statement.c, src/raptor_stringbuffer.c, - src/raptor_turtle_writer.c, src/raptor_www.c, src/raptor_xml.c, - src/raptor_xml_writer.c, src/turtle_lexer.l, src/turtle_parser.y: - - Code style: - use TYPE* var_name = RAPTOR_CALLOC(TYPE, 1, sizeof(*var_name)) - - This fix caught a few times where the calloc added an extra +1 - - presumably from the usual thing you need to do with a string - malloc. e.g. in raptor_new_json_writer(), - raptor_new_turtle_writer() and raptor_new_xml_writer_v2() which - probably were all from the same source. - - * src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c: - Remove some un-necessary casts to (unsigned char*) - - * src/raptor_serialize_rss.c, src/raptor_serialize_simple.c, - src/raptor_statement.c: - Remove some un-necessary casts to raptor_uri* - - * src/raptor_serialize_json.c: - (raptor_json_serialize_avltree_visit): Use raptor_term_equals - instead of hand-crafted equivalent. - - * src/raptor.h, src/raptor_abbrev.c, src/raptor_grddl.c, - src/raptor_internal.h, src/raptor_json_writer.c, - src/raptor_rdfxml.c, src/raptor_serialize_dot.c, - src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_simple.c, - src/raptor_serialize_turtle.c, src/raptor_statement.c, - src/turtle_parser.y, utils/rapper.c, utils/rdfdiff.c: - raptor_term values are now a union of uri / literal fields / blank - string - - raptor_term gains union value with uri field, literal struct and - blank field for URI, Literal and Blank rdf terms. - - Lots of consequent changes; mostly mechanical search and replace. - - Removed several (raptor_uri*)value and (unsigned char*)value casts. - - (raptor_rss10_move_statements): Changes but when zeroing uri / - literal, do that in separate steps rather than assigning to value. - - * src/raptor_serialize_dot.c: Convert DOT serializer to use - raptor_term not local raptor_dot_serializer_node - - Deleted raptor_dot_serializer_node typedef - - (raptor_dot_serializer_free_node, - raptor_dot_serializer_node_matches, raptor_dot_serializer_new_node): - Deleted and replaced with raptor_term versions - both based on - librdf_node. - - Code style fixes. - - * src/raptor_statement.c: - Fix formatting in raptor_term_as_counted_string for blank and uri - - (raptor_term_as_counted_string): RAPTOR_TERM_TYPE_BLANK and - RAPTOR_TERM_TYPE_URI code was wrong - bad casting. - -2010-01-16 Dave Beckett - - * Merge branch 'statement-term' to 'master' with - commit efd40982c2356eab8c37c1da1acd8b459ec06b56 - -2010-01-15 Dave Beckett - - * src/Makefile.am, src/raptor_internal.h, src/raptor_xsd.c: - Removed unused raptor_new_identifier_from_double and raptor_xsd module. - - * src/raptor_librdfa.c: - Updated RDFA parser to use statement and term object model - - * src/raptor_rss.c: - Skip attempting to output predicates with no URI/namespace - - (raptor_rss_emit_item): Check predicate_uri first. - - * src/raptor_rss.c: - Free allocate raptor_term - - (raptor_rss_emit_item): Free some predicate and object terms just - allocated. Code style. - - * docs/tmpl/section-iostream.sgml, docs/tmpl/section-triples.sgml, - docs/tmpl/section-uri.sgml: update generated docs - - * src/raptor_rss.c: - Construct terms in raptor_rss_emit_item - - (raptor_rss_emit_item): Use raptor_term constructors - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c, - src/raptor_serialize_rss.c: - Switch RSS parser and serializer internals from identfier to term - - Compiles but does not fully work yet. - - * src/raptor_internal.h: - Added raptor_term_equals - - * src/raptor_statement.c: - Added raptor_term_equals - -2010-01-14 Dave Beckett - - * src/turtle_parser.y: - Convert turtle parser to use raptor_statement and raptor_term - - Change raptor_identifier to raptor_term - - Change raptor_turtle_triple to raptor_statement - - Code style. - - (raptor_turtle_generate_statement): Use copy constructor for term. - - (raptor_turtle_new_triple, raptor_turtle_free_triple, - raptor_triple_print): Deleted - - * src/raptor_internal.h, src/raptor_statement.c: - Add raptor_new_statement_from_nodes - - (raptor_new_statement_from_nodes): Added - - * src/raptor_serialize_turtle.c, src/turtle_parser.y: - Update Turtle parser and serializer to statement reference model. - - (raptor_turtle_generate_statement): Generate new term objects for - each statement. - - (raptor_turtle_serialize_statement): Use correct reference to - statement fields. - - * src/raptor_internal.h, src/raptor_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_statement.c: - Made statement work statically and dynamically, promoting on copies - - (raptor_new_statement): Added to make a new dynamic statement - - (raptor_statement_init): Init a static statement with negative - usage. - - (raptor_statement_copy): Do promote to dynamic on copy. - - (raptor_free_statement): Do not free static statements. - - (raptor_rdfxml_generate_statement): Do proper predicate creation - when reifying - this broke statement copying and rdfdiff. - - (raptor_rdfxmla_serialize_statement): Correct pointers to statement - fields. - -2010-01-13 Dave Beckett - - * src/raptor_rdfxml.c: - Code style and more fixing up RDF/XML raptor_term object use - - Code style; introduce variables to break long lines/duplicate - expressions that hopefully the compiler will still optimize way. - - (raptor_rdfxml_generate_statement): Free a locally created - reified_term object. - - (raptor_rdfxml_process_property_attributes): Save a strlen. Code - style. - - (raptor_rdfxml_start_element_grammar): Code style. Add - element_name_uri to remove several long lines. Add some OOM checks - when an ID/URI then raptor_term are created in two steps. - - * src/ntriples_parse.c: - Update N-Triples parser to use raptor_term objects - - (raptor_ntriples_generate_statement): Use raptor_term constructors. - - * src/raptor_rdfxml.c: - More conversions of raptor_term statics to dynamic. - - (raptor_rdfxml_process_property_attributes): Return failure error - status. - - (raptor_rdfxml_process_property_attributes): Convert more - static (on stack) raptor_term objects into dynamic/by-reference. - - * src/raptor_statement.c: - (raptor_statement_copy): Delete commented out old deep copy code. - - (raptor_free_statement): Just call raptor_term to free inner terms. - - * src/raptor_internal.h, src/raptor_rdfxml.c, - src/raptor_statement.c: - Deleted raptor_clear_term and raptor_copy_term. literal languages - - (raptor_clear_term, raptor_copy_term): Deleted - no longer needed - or used. - - (raptor_free_term): Merge in old raptor_clear code here. - - (raptor_rdfxml_end_element_grammar): A little OOM checking. - - * src/raptor_rdfxml.c: - (raptor_rdfxml_end_element_grammar): Allocate new strings for - literals since they become owned by raptor_term. - - * src/raptor_rdfxml.c, utils/rapper.c: - change raptor_rdfxml_element - - raptor_term statics fields to objects - - raptor_rdfxml_element: reified, bag, subject, predicate and object - fields are now raptor_term* - - (raptor_free_rdfxml_element): Use raptor_free_term on above fields - instead of raptor_clear_term. - - (raptor_rdfxml_start_element_handler): Do not assign world to - above fields - not allocated yet. Move setting of default - literal_language inscope to code near the line where raptor_term - for a literal is created. Start turning direct references to - raptor_statement field->subject->type into static raptor_term - objects (memset then assigned) for bags, reified terms, - collections, bags, reified statements, ... - - First stage of conversion to allocated raptor_terms. - - * src/ntriples_parse.c, src/raptor.h, src/raptor_grddl.c, - src/raptor_internal.h, src/raptor_librdfa.c, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_rss_common.c, src/raptor_serialize.c, - src/raptor_serialize_dot.c, src/raptor_serialize_json.c, - src/raptor_serialize_ntriples.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c, - src/raptor_serialize_simple.c, src/raptor_serialize_turtle.c, - src/raptor_statement.c, src/turtle_parser.y, utils/rapper.c, - utils/rdfdiff.c: raptor_term and raptor_term get usages. - statement is pointer to 3 terms - - Compiles, does not all work. - - (raptor_statement_init): Init usage. - - (raptor_statement_copy): Now just a usage increment; comment out old - copying code. - - (raptor_free_statement): Free on zero usage. - - (raptor_free_term): Free on zero usage. - - (raptor_new_term_from_term, raptor_new_term_from_uri, - raptor_new_term_from_literal, raptor_new_term_from_blank): Added new - term constructors - taking ownership of their input objects. - - (raptor_rdfxml_generate_statement): Create raptor_term objects to - generate reified statements. Update lots of uses in parsers and - serializers of object.field to object->field for pointer based - access. - -2010-01-12 Dave Beckett - - * docs/tmpl/section-iostream.sgml, docs/tmpl/section-triples.sgml, - docs/tmpl/section-uri.sgml: Update generated docs - -2010-01-11 Dave Beckett - - * src/raptor_rdfxml.c: raptor_rdfxml_generate_statement() now - takes raptor_term subject/ raptor_uri term. - - (raptor_rdfxml_generate_statement): Use raptor_term fields. - - (raptor_rdfxml_element_has_property_attributes, - raptor_rdfxml_start_element_grammar): Create static raptor_term - objects on stack for use in constructing parameter sets for - raptor_rdfxml_generate_statement. Several of these should be - dynamic and/or constructed once parser-wide. - - * src/raptor_internal.h, src/raptor_rdfxml.c, - src/raptor_statement.c: Replace raptor_identifier with raptor_term - inside rdf/xml parser. - - struct raptor_rdfxml_element_s updated to change fields reified, - bag, subject, predicate, object from raptor_identifier to - raptor_term. Also added a reified_id field for storing an ID used - for reification; not clear if this is entirely necessary. - - (raptor_clear_term): Added based on raptor_clear_identifier. - - (raptor_free_term): Added. - - (raptor_copy_term): Added based on raptor_copy_identifier but not - calling raptor_free term on dest; call raptor_clear_term instead. - - (raptor_free_rdfxml_element): Use raptor_clear_term to replace - raptor_clear_identifier. - - (raptor_rdfxml_generate_statement): Updated to use raptor_term - field names. Some loss of clarity here since identifier URI/blank - node fields are merged into one void* term field 'value' for now. - - (raptor_rdfxml_process_property_attributes, - raptor_rdfxml_start_element_grammar): Updated for raptor_term - fields. For capturing bag/reified IDs, use local variables rather - than overloading subject/reified/bad.id fields. - - * src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: Make - abbrev_node constructors/lookup functions use raptor_term - - (raptor_new_abbrev_node): Pass in a raptor_term and use that to - find fields to copy. - - (raptor_abbrev_node_lookup, raptor_abbrev_subject_find, - raptor_abbrev_subject_lookup): Lookup using fields in a passed in - raptor_term. Update callers to use raptor_term when searching - - means creating some static raptor_term objects on the stack for - now; will be either references or dynamically created when - raptor_abbrev_node / raptor_term node merge is done. - - * src/raptor.h, src/raptor_serialize_ntriples.c: Added - raptor_iostream_write_term_ntriples and - raptor_iostream_write_statement_ntriples to public API - - (raptor_iostream_write_statement_ntriples): Renamed from - raptor_iostream_write_statement_ntriples_v2 and loses world arg. - - (raptor_iostream_write_term_ntriples): Renamed from internal - raptor_iostream_write_statement_part_ntriples and down to just 2 - args: the iostr and term. - - (raptor_ntriples_serialize_statement): Updated call to - raptor_iostream_write_statement_ntriples. - - * src/raptor_internal.h, src/raptor_statement.c: Added - raptor_term_compare split out from raptor_statement_compare - - * src/raptor.h, src/raptor_abbrev.c, src/raptor_statement.c: Turn - print-part-of-statements functions into methods of raptor_term - - (raptor_term_as_counted_string): Renamed from - raptor_statement_part_as_counted_string and just take term arg. - - (raptor_term_as_string): Renamed from - raptor_statement_part_as_string and just take term arg. Update - callers to use new 1-arg convention. - - * src/raptor_statement.c: raptor_term_print_as_ntriples formed from - raptor_print_statement_as_ntriples - - (raptor_term_print_as_ntriples): Renamed from - raptor_print_statement_part_as_ntriples - - (raptor_print_statement_as_ntriples): Call above with raptor_term - pointer. - - * librdfa/curie.c, librdfa/rdfa.c, src/ntriples_parse.c, - src/raptor.h, src/raptor_abbrev.c, src/raptor_expat.c, - src/raptor_feature.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_identifier.c, src/raptor_internal.h, - src/raptor_iostream.c, src/raptor_json_writer.c, - src/raptor_librdfa.c, src/raptor_locator.c, src/raptor_namespace.c, - src/raptor_parse.c, src/raptor_qname.c, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_rss_common.c, src/raptor_sax2.c, - src/raptor_serialize.c, src/raptor_serialize_dot.c, - src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c, - src/raptor_set.c, src/raptor_statement.c, - src/raptor_turtle_writer.c, src/raptor_uri.c, src/raptor_www.c, - src/raptor_www_curl.c, src/raptor_www_libfetch.c, - src/raptor_www_libxml.c, src/raptor_www_test.c, src/raptor_xml.c, - src/raptor_xml_writer.c, src/turtle_lexer.l, src/turtle_parser.y, - utils/rapper.c, utils/rdfdiff.c: - 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 - - * src/raptor_abbrev.c: Remove too-clever inline editing of uri - string in raptor_new_qname_from_resource - - * src/raptor_general.c, src/raptor_internal.h, src/raptor_uri.c: - Add raptor_uri_finish stup for uri class cleanup - - * docs/raptor-sections.txt, docs/tmpl/section-feature.sgml, - docs/tmpl/section-general.sgml, docs/tmpl/section-iostream.sgml, - docs/tmpl/section-locator.sgml, docs/tmpl/section-parser.sgml, - docs/tmpl/section-sax2.sgml, docs/tmpl/section-sequence.sgml, - docs/tmpl/section-serializer.sgml, docs/tmpl/section-triples.sgml, - docs/tmpl/section-unused.sgml, docs/tmpl/section-uri.sgml, - docs/tmpl/section-world.sgml, docs/tmpl/section-www.sgml, - docs/tmpl/section-xml-namespace.sgml, - docs/tmpl/section-xml-qname.sgml, docs/tmpl/section-xml.sgml: - Update some generated docs. - - * librdfa/rdfa.c, src/ntriples_parse.c, src/raptor.h, - src/raptor_abbrev.c, src/raptor_feature.c, src/raptor_grddl.c, - src/raptor_json_writer.c, src/raptor_librdfa.c, - src/raptor_namespace.c, src/raptor_qname.c, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_rss_common.c, src/raptor_sax2.c, - src/raptor_serialize.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c, - src/raptor_serialize_turtle.c, src/raptor_set.c, - src/raptor_turtle_writer.c, src/raptor_uri.c, src/raptor_www.c, - src/raptor_www_curl.c, src/raptor_www_test.c, - src/raptor_xml_writer.c, src/raptor_xsd.c, src/turtle_lexer.l, - src/turtle_parser.y, utils/rapper.c, utils/rdfdiff.c: - Remove _v2 suffix from raptor_uri constructors - - * src/raptor_rss.c: - (raptor_rss_emit_connection): Use raptor_uri* for predicate_uri - arg - - * src/raptor_internal.h, src/raptor_uri.c, src/raptor_xml_writer.c: - Removed raptor_uri_handler and made all URI functions work direct - with default implementation - - * src/raptor.h, src/raptor_internal.h, src/raptor_uri.c: - Move raptor_uri_handler to internal and remove get/set functions. - - (raptor_uri_get_handler_v2, raptor_uri_set_handler_v2): Deleted - - (raptor_uri_init): Set default handler directly. - - * src/raptor.h: Add raptor_new_identifier_from_identifier - prototype - - * src/raptor.h, src/raptor_identifier.c: - Add reference count model for raptor_identifier - - (raptor_new_identifier_from_identifier): Set initial usage to 1 when - allocaed as an object; initialising statically does not use this. - - (raptor_new_identifier_from_identifier): Added copy constructor - - (raptor_free_identifier): Free when usage is 0. static identifiers - do not call this; they use raptor_clear_identifier - -2010-01-08 Dave Beckett - - * src/raptor.h, src/raptor_identifier.c, src/raptor_internal.h, - src/raptor_rdfxml.c, src/turtle_parser.y: - Remove is_malloced field from raptor_identifier - - raptor_identifier loses is_malloc field - - (raptor_clear_identifier): Added to clear fields of static - identified; pulled out of raptor_free_identifier - - (raptor_free_identifier): Call above and then free the object. - - * src/raptor.h, src/raptor_parse.c, src/raptor_serialize.c, - utils/rapper.c: Rename parser/serializer feature enumeration - methods to be on raptor_world class - - (raptor_world_enumerate_parser_features): Renamed from - raptor_features_enumerate_v2 - - (raptor_world_enumerate_serializer_features): Renamed from - raptor_serializer_features_enumerate_v2. - - * src/raptor.h, src/raptor_feature.c, src/raptor_parse.c, - utils/rapper.c: - Rename raptor_set_feature to correct method name - raptor_parser_set_feature - - * src/raptor.h, src/raptor_parse.c, utils/rapper.c: Rename - raptor_set_parser_strict to correct method name - raptor_parser_set_strict - - * utils/rdfdiff.c: - Update for new parser constructor name - - * utils/rapper.c: Update for new parser/serializer enumerate/check - method names - - * src/raptor.h, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_parse.c, src/raptor_serialize.c, - src/raptor_serialize_rss.c: - Rename parser/serializer enumerating, checking and guessing - functions to be methods of raptor_world. - - (raptor_world_enumerate_parsers): Renamed from - raptor_parsers_enumerate_v2 - - (raptor_syntaxes_enumerate_v2): Deleted; use - raptor_world_enumerate_parsers. - - (raptor_world_is_parser_name): Renamed from - raptor_syntax_name_check_v2 - - (raptor_world_guess_parser_name): Renamed from - raptor_guess_parser_name_v2 - - (raptor_new_parser): Renamed from raptor_new_parser_v2 - - (raptor_new_parser_for_content): Renamed from - raptor_new_parser_for_content_v2. - - (raptor_world_enumerate_serializers): Renamed from - raptor_serializers_enumerate_v2. - - (raptor_world_is_serializer_name): Renamed from - raptor_serializer_syntax_name_check_v2 - - (raptor_new_serializer): Renamed from raptor_new_serializer_v2 - - * src/raptor_internal.h: - Restore raptor_simple_message_handler for internal use - - * src/raptor_general.c: - (raptor_log_error): All user error handlers are called here now. - - * src/raptor.h: Delete raptor_simple_message_handler - nothing - uses it anymore. - - * src/raptor.h, src/raptor_namespace.c, src/raptor_xml.c: - raptor_xml_any_escape_string and raptor_xml_any_escape_string use - raptor_world to replace error_handler/error_data args. - - (raptor_xml_any_escape_string, raptor_xml_any_escape_string): Delete - error_handler and error_data args and replace with raptor_world - initial argument. Pass errors via raptor_log_error/formatted. - - * src/raptor.h, src/raptor_internal.h, src/raptor_serialize.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c: - Serializer class loses specific fatal/error/warning handling - - (raptor_serializer_set_error_handler, - raptor_serializer_set_warning_handler): Deleted - - (raptor_serializer_error, raptor_serializer_simple_error, - raptor_serializer_error_varargs, raptor_serializer_warning, - raptor_serializer_warning_varargs): Removed the internal functions - that called the serializer-specific handlers. - - In serializers replaced calls to the above functions with - raptor_log_error or raptor_log_error_formatted depending on the - arguments present. - - * src/raptor_internal.h, src/raptor_serialize_turtle.c, - src/raptor_turtle_writer.c: - raptor_new_turtle_writer loses error_handler / error_data args. - - struct raptor_turtle_writer_s loses error_handler and error_data - fields. - - (raptor_new_turtle_writer): error_handler and error_data args - deleted. - - Updated callers. - - * src/raptor.h, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_xml_writer.c: - raptor_new_xml_writer_v2 loses error_handler / error_data args. - - raptor_xml_writer gains raptor_world field. - - (raptor_new_xml_writer_v2): Delete args. Store world. - - * src/raptor.h, src/raptor_internal.h, src/raptor_iostream.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml.c, - src/raptor_xml_writer.c: - All raptor_iostream constructors gain an initial raptor_world arg. - - (raptor_new_iostream_from_handler2, raptor_new_iostream_to_sink, - raptor_new_iostream_to_filename, raptor_new_iostream_to_file_handle, - raptor_new_iostream_to_string, raptor_new_iostream_from_sink, - raptor_new_iostream_from_filename, - raptor_new_iostream_from_file_handle, - raptor_new_iostream_from_string): Gain an initial raptor_world* - world argument. Consequently: - - (raptor_iostream_write_xml_any_escaped_string, - raptor_iostream_write_xml_escaped_string): Both lose the - error_handler and error_data args since it can send errors via the - internal world. - - * src/raptor.h, src/raptor_qname.c, src/turtle_parser.y: - raptor_qname_string_to_uri loses error_handler/error_data args. - - (raptor_qname_string_to_uri): Delete error_handler and error_data - args. Use raptor_log_error_formatted to report prefix error. - - * src/raptor.h, src/raptor_qname.c, src/raptor_sax2.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_xml_writer.c: - raptor_new_qname loses error_handler / error_data args - - (raptor_new_qname): delete args and use raptor_log_error_formatted - for error reporting. - - Update callers. - - * src/raptor.h, src/raptor_namespace.c, src/raptor_rss.c, - src/raptor_serialize_dot.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c, - src/raptor_serialize_turtle.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: - raptor_new_namespaces_v2 loses error_handler / error_data args. - - (raptor_new_namespaces_v2): Delete args. - - Update all callers with the change - many of which were NULL/NULL - anyway! - - * src/raptor.h, src/raptor_general.c, src/raptor_internal.h, - src/raptor_namespace.c, src/raptor_sax2.c, src/turtle_parser.y: - raptor_namespaces_init_v2 loses error_handler / error_data - - (raptor_log_error_formatted): Added to write a formatted error - message with sprintf style. - - raptor_namespace_stack: loses error_handler and error_data fields. - - (raptor_namespaces_init_v2): Remove error_handler and error_data - args. - - (raptor_new_namespace_from_uri): Use raptor_log_error_formatted to - format an error message with argument. - - Update all calls to raptor_namespaces_init_v2 to remove error - handler/data args. - - * src/raptor_json_writer.c: - Update call to error_handler in #defined-out code - - * src/raptor_internal.h, src/raptor_json_writer.c, - src/raptor_serialize_json.c: - Remove error_handler/error_data from json writer - - struct raptor_json_writer_s: loses error_handler and error_data - fields. - - (raptor_new_json_writer): loses error_handler and error_data args. - - (raptor_json_serialize_start): Update for new signature. - - * src/raptor_libxml.c: - Initialise libxml generic error with pointer to raptor_world - - (raptor_libxml_generic_error): Expect world and never a locator. - - (raptor_libxml_init): Initialise generic error func with world - user data. - - * src/raptor_libxml.c: - Handle new XML_FROM_SCHEMATRONV introduced in - libxml 2.6.32 2008-04-08 - - * src/raptor.h, src/raptor_general.c, src/raptor_internal.h, - src/raptor_libxml.c: - libxml generic & structured error saving defaults on. - - These are turned on by default so that when libxml library-wide - generic/structured error handlers are set, this happens by default. - Previously (1.4.x) it was done anyway, regardless of the flags. - - raptor_libxml_flags: update docs to note default is on. - - (raptor_new_world): set the flags on. - - raptor_world_s: update docs for libxml_flags field to note - default. - - (raptor_libxml_xmlStructuredError_handler_common): Renamed from - raptor_libxml_xmlStructuredErrorFunc and contains the core libxml - error handling but not the parameter guessing. - - (raptor_libxml_xmlStructuredError_handler_global): Added to take - structured errors from the global libxml handlers. Calls - raptor_libxml_xmlStructuredErrorFunc with world and always NULL - locator. - - (raptor_libxml_xmlStructuredError_handler_parsing): Added to take - structured errors from serror SAX handler. Calls - raptor_libxml_xmlStructuredErrorFunc with any world and locator - found. - - * src/raptor_general.c, src/raptor_internal.h, src/raptor_libxml.c: - raptor_log_error no longer needs/uses error hander/data args - - (raptor_log_error): Remove args and pick handler/data from work - error handlers. - - (raptor_log_error_varags): Just call raptor_log_error and no longer - pick error handler/data here. - - * src/raptor.h, src/raptor_general.c, src/raptor_parse.c, - utils/rapper.c, utils/rdfdiff.c: - Move error-handler setting functions to methods of raptor_world - - (raptor_world_set_fatal_error_handler): Renamed from - raptor_set_fatal_error_handler from parser class. - - (raptor_world_set_error_handler): Renamed from - raptor_set_error_handler from parser class. - - (raptor_world_set_warning_handler): Renamed from - raptor_set_warning_handler from parser class. - - Updated rapper.c and rdfdiff.c to use new names and calling - convention. - - * src/raptor_general.c, src/raptor_internal.h, src/raptor_libxml.c, - src/raptor_parse.c, src/raptor_sax2.c, src/raptor_www.c: - raptor_log_error_varargs no longer needs/users error handler/data - args - - (raptor_log_error_varargs): Remove args and pick handler and handler - data from world error_handlers. - - Update all callers of above. - - * src/raptor_www_libxml.c: - (raptor_www_libxml_init, raptor_www_libxml_free): Remove - error_handlers code. - - * src/raptor_libxml.c, src/raptor_sax2.c: Move libxml init/free - code to raptor_libxml_init and raptor_libxml_finish - - (raptor_libxml_init): Add xmlInitParser call. - - (raptor_libxml_finish): Add xmlCleanupParser call. - - (raptor_sax2_init): Remove xmlInitParser call. - - (raptor_sax2_finish): Remove xmlCleanupParser call. - - * src/raptor_grddl.c: - Remove use of xmlSetStructuredErrorFunc from GRDDL parser. - - (raptor_grddl_parse_chunk): Remove call to xmlSetStructuredErrorFunc - which is now done in raptor_libxml_init, once per-library. - - * src/raptor_internal.h, src/raptor_libxml.c: - Removed raptor_libxml_sax_init_error_handlers - no users remain. - - (raptor_libxml_sax_init_error_handlers): Deleted and merged back - into raptor_libxml_sax_init - - * src/raptor_grddl.c: - GRDDL parser does not need or use libxml2 sax object. - - struct raptor_grddl_parser_context_s loses sax field. - - (raptor_grddl_parse_init_common): Remove call to - raptor_libxml_sax_init_error_handlers. - - * src/raptor_grddl.c: - GRDDL parser does not need to create a raptor_sax2 for error - handlers. - - struct raptor_grddl_parser_context_s loses sax2 field. - - (raptor_grddl_parse_init_common, raptor_grddl_parse_terminate): Do - not init / free sax2. - - * src/raptor_general.c, src/raptor_grddl.c, src/raptor_internal.h, - src/raptor_libxml.c, src/raptor_sax2.c: - Make libxml error handling save/restore happen once in world - - struct raptor_sax2_s loses saved_structured_error_context, - saved_structured_error_handler, saved_generic_error_context and - saved_generic_error_handler - - struct raptor_world_s gains above fields. - - (raptor_libxml_init, raptor_libxml_finish): Added to capture the - save/restore of xmlSetStructuredErrorFunc and xmlSetGenericErrorFunc - context and handlers. - - (raptor_world_open, raptor_free_world): Call raptor_libxml_init and - raptor_libxml_finish. - - (raptor_libxml_sax_init_error_handlers): Renamed from - raptor_libxml_init_sax_error_handlers. - - (raptor_libxml_sax_init): libxml setup specific to a SAX setup - - (raptor_grddl_parse_init_common): Use above. - - (raptor_new_sax2): Delete libxml init code. - - (raptor_sax2_parse_start): Delete xmlSetStructuredErrorFunc call - and use raptor_libxml_sax_init. - - * src/raptor_grddl.c: - (raptor_grddl_parse_init_common): Code style. - -2010-01-07 Dave Beckett - - * librdfa/rdfa.c, librdfa/rdfa.h, src/raptor.h, src/raptor_grddl.c, - src/raptor_internal.h, src/raptor_librdfa.c, src/raptor_libxml.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_sax2.c: - Alter raptor_new_sax2() to take world and locator not - error_handlers. - - struct raptor_sax2_s loses error_handlers field. - - (raptor_new_sax2): Change to add world and locator at start; store - them and forget about error_handlers. - - (raptor_sax2_simple_error, raptor_sax2_parse_chunk, - raptor_sax2_start_element): Take error handlers from world, not - sax2. - - (raptor_grddl_parse_init_common, raptor_librdfa_parse_start, - raptor_rdfxml_parse_init, raptor_rss_parse_init): Update to new - raptor_new_sax2 calling convention. - - (raptor_libxml_warning, raptor_libxml_error_common, - raptor_libxml_validation_warning): Call error handlers under world - rather than in sax2 error_handlers object. - - (raptor_libxml_xmlStructuredErrorFunc): Find error handlers via - world. - - struct rdfacontext [in librdfa] replaces error_handlers with world - and locator fields for use in calling raptor_new_sax2() - - (rdfa_create_new_element_context) [in librdfa]: no need to copy - error_handlers. - - (rdfa_parse_start) [in librdfa] use stored world and locator. - - * src/raptor.h: - Removed prototype for raptor_www_set_error_handler - - * src/raptor_general.c, src/raptor_grddl.c, src/raptor_internal.h, - src/raptor_librdfa.c, src/raptor_parse.c, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_www.c: - Moved raptor_error_handlers to one instance in raptor_world. - - structs raptor_parser_s and raptor_www_s lose error_handlers - field. - - struct raptor_world_s gains error_handlers field and new - internal_ignore_errors flag to temporarily disable errors. - - (raptor_new_world): Initialise error handlers structure; this is now - the only place in the library this is done the public function - raptor_error_handlers_init_v2() - - Consequently raptor_error_handlers_init_v2() could be moved internal - and the raptor_error_handlers structure made just fields in - raptor_world rather than a public structure that is hard to - version. - - (raptor_world_internal_set_ignore_errors): Added internal function - to disable invoking all error handlers when set. Used in the GRDDL - parser and when WWW-fetching in some cases to ignore parse/404 - errors. - - (raptor_log_error_to_handlers, raptor_log_error_varargs, - raptor_log_error): Respect the ignore errors flag. - - (raptor_grddl_discard_message): Deleted. - - (raptor_grddl_fetch_uri): No longer uses above function but instead - calls raptor_world_internal_set_ignore_errors() before and after the - WWW fetch. - - (raptor_grddl_run_recursive): Also no longer sets error handlers to - ignore errors and uses raptor_world_internal_set_ignore_errors - before and after running an internal parser. - - (raptor_new_parser_v2): Do not init error_handlers field, just set - locator. - - (raptor_www_set_error_handler): Deleted; not necessary since the - error_handlers is part of raptor_world not in raptor_www. - - (raptor_parse_uri_with_connection): Removed call to - raptor_www_set_error_handler. - - (raptor_parser_copy_user_state): Do not copy removed error_handlers - field. - - (raptor_www_new_with_connection_v2): Do not init error_handlers - field. - - * src/raptor_parse.c: - (raptor_parser_copy_user_state): Code style for assignments. - - * src/raptor_internal.h: - Delete unused field from raptor_parser_s - - * src/raptor_abbrev.c, src/raptor_internal.h: - Remove unused ordinal code from raptor_abbrev_node - - raptor_abbrev_node: lose ordinal union part. - - (raptor_abbrev_subject_add_list_element): Deleted. - - * src/raptor.h: - Remove RAPTOR_WORLD_DECLARED - - * src/raptor_internal.h: - Remove an old RAPTOR_DISABLE_V1-protected prototype. - -2010-01-06 Dave Beckett - - * src/raptor.h: - Break raptor_error_handlers struct ABI moving handlers array to end. - - Remove V2 API fixmes near this; also allows new log levels to be - added later. - - * src/raptor_internal.h: - Remove unused static_usage field from raptor_world - - * src/ntriples_parse.c: - Replace raptor_ntriples_term_type with raptor_term_type - - (raptor_ntriples_generate_statement): Change types of args. Just - assign term types to statement types. - - (raptor_ntriples_parse_line): Declare array of 3 term types. - - * src/Makefile.am: remove n3 tests - - * configure.ac, src/Makefile.am, src/n3_common.h, src/n3_lexer.l, - src/n3_parser.y, src/turtle_parser.y: - Remove experimental N3 flex/bison parser - let turtle parser handle it - - This code was never in production/released code and will never be - since the turtle parser is likely to be updated and rewritten. - - * src/n3_parser.y, src/ntriples_parse.c, src/raptor.h, - src/raptor_abbrev.c, src/raptor_grddl.c, src/raptor_identifier.c, - src/raptor_internal.h, src/raptor_librdfa.c, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_serialize_dot.c, - src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_simple.c, - src/raptor_serialize_turtle.c, src/raptor_statement.c, - src/raptor_xsd.c, src/turtle_parser.y, utils/rapper.c, - utils/rdfdiff.c: - Rename raptor_identifier_type enum and values to raptor_term_type - - The enum values changed: from RAPTOR_IDENTIFIER_TYPE_RESOURCE to - RAPTOR_TERM_TYPE_URI, from RAPTOR_IDENTIFIER_TYPE_ANONYMOUS to - RAPTOR_TERM_TYPE_BLANK, from RAPTOR_IDENTIFIER_TYPE_LITERAL to - RAPTOR_TERM_TYPE_LITERAL and from RAPTOR_IDENTIFIER_TYPE_UNKNOWN to - RAPTOR_TERM_TYPE_UNKNOWN. - - * librdfa/iri.c: - fix warning: cast from pointer to integer of different size - - (rdfa_iri_get_base): Do pointer calculations then cast result to - unsigned int. - - * src/raptor.h: - Remove RAPTOR_V2_AVAILABLE - not needed - - * configure.ac: - Remove -DRAPTOR_V2_EXPERIMENTAL=1 not needed anymore - - * src/raptor.h, src/raptor_serialize.c: - raptor_serialize_start replaced by - raptor_serialize_start_to_iostream - - (raptor_serialize_start): Removed deprecated function replaced by - correctly named raptor_serialize_start_to_iostream. - - * src/ntriples_parse.c, src/raptor.h: - Removed raptor_ntriples_term_type from public api. - - Moved raptor_ntriples_term_type to ntriples_parse.c module only. - It could be replaced by a more general raptor_term_type in future - when it gets added. - - * src/raptor.h, src/raptor_abbrev.c, src/raptor_identifier.c, - src/raptor_librdfa.c, src/raptor_rdfxml.c, - src/raptor_serialize_dot.c, src/raptor_serialize_json.c, - src/raptor_serialize_ntriples.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_simple.c, - src/raptor_serialize_turtle.c, src/raptor_statement.c, - utils/rdfdiff.c: - Remove RAPTOR_IDENTIFIER_TYPE_XML_LITERAL - - This was used for rdf:parseType="Literal" object literals - internally but publically always is turned into - RAPTOR_IDENTIFIER_TYPE_LITERAL. - - raptor_identifier_type loses RAPTOR_IDENTIFIER_TYPE_XML_LITERAL value. - - Removed all code for this which mostly was deleting switch cases - but also deletes some functions from the Turtle and RDF/XML-abbrev - serializers. - - (raptor_rdfxmla_emit_xml_literal, raptor_turtle_emit_xml_literal): - Deleted. - - * src/raptor.h, src/raptor_abbrev.c, src/raptor_identifier.c, - src/raptor_rdfxml.c, src/raptor_serialize_dot.c, - src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c src/raptor_serialize_rdfxmla.c , - src/raptor_serialize_rss.c, src/raptor_serialize_simple.c, - src/raptor_serialize_turtle.c, src/raptor_statement.c, - utils/rdfdiff.c: - 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. - - * utils/rdfdiff.c: Remove checks for - RAPTOR_IDENTIFIER_TYPE_PREDICATE comparison with ordinal for - equality. - - * src/raptor.h, src/raptor_abbrev.c, src/raptor_serialize_dot.c, - src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c, - src/raptor_statement.c: Removed RAPTOR_IDENTIFIER_TYPE_PREDICATE - - raptor_identifier_type loses RAPTOR_IDENTIFIER_TYPE_PREDICATE - which has been a synonym for RAPTOR_IDENTIFIER_TYPE_RESOURCE for - some time. - - Update code to remove from switch()s and conditions. - - * src/n3_parser.y, src/raptor.h, src/raptor_identifier.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_serialize_rss.c, - src/raptor_xsd.c, src/turtle_parser.y: - Deleted raptor_uri_source enum and removed from raptor_identifier. - - Only in RDF/XML parser and not used for anything public. - - (raptor_new_identifier_v2): Delete uri_source arg. - - (raptor_copy_identifier, raptor_set_identifier_uri, - raptor_set_identifier_id): Remove assignments to uri_source field. - - (raptor_rdfxml_generate_statement): Remove 3 uri_source args. - - (raptor_rss10_emit_item): Remove assignment to uri_source field. - - Change all calls to raptor_new_identifier_v2() and - raptor_rdfxml_generate_statement() in the RDF/XML parser. - - * src/n3_parser.y, src/ntriples_parse.c, src/raptor.h, - src/raptor_grddl.c, src/raptor_librdfa.c, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_rss_common.c, - src/raptor_serialize_dot.c, src/raptor_serialize_json.c, - src/raptor_serialize_ntriples.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c, - src/raptor_serialize_simple.c, src/raptor_serialize_turtle.c, - src/raptor_statement.c, src/turtle_parser.y, utils/rapper.c, - utils/rdfdiff.c: - Make a raptor_statement into a 3-tuple of raptor_term. - - This is a short term stage before merging raptor_term with - raptor_identifier and getting rid of raptor_triple (in N3 and - Turtle parsers). Also want to make the 3 raptor_terms in - raptor_statement as object references not statics, and add a graph - term. raptor_identifier_type should be raptor_term_type and have - less values: kill ordinal and predicate types. Lots of structure - name field changes everywhere statement is used. - -2010-01-05 Dave Beckett - - * src/raptor.h, src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_parse.c, src/raptor_rss_common.c, - src/raptor_serialize_json.c, src/raptor_serialize_rss.c, - src/raptor_statement.c, utils/rdfdiff.c: - Add raptor_world field to raptor_statement, remove raptor_statement_v2. - - raptor_statment gains a raptor_world* field. raptor_statement_v2 - typedef is deleted. - - (raptor_print_statement_as_ntriples_common, - raptor_statement_compare_common): Deleted these internal helper - functions. - - (raptor_print_statement_v2): Renamed to raptor_print_statement - - (raptor_print_statement_as_ntriples_v2): Renamed to - raptor_print_statement_as_ntriples. - - (raptor_statement_part_as_counted_string_v2): Renamed to - raptor_statement_part_as_counted_string. - - (raptor_statement_part_as_string_v2): Renamed to - raptor_statement_part_as_string. - - (raptor_statement_compare_v2): Renamed to raptor_statement_compare. - - (raptor_statement_copy): Loses world arg. - - (raptor_statement_copy_v2, raptor_statement_copy_v2_from_v1): - Deleted. - - (raptor_free_statement): Loses world arg. - - (raptor_free_statement_v2, raptor_print_statement_v1): Deleted - - (raptor_statement_init): Added to initialise statically a - allocated statement. - - (raptor_new_parser_v2): Init static statement with - raptor_statement_init(). - -2010-01-05 Dave Beckett - - * src/ntriples_parse.c, src/raptor.h, src/raptor_iostream.c, - src/raptor_turtle_writer.c, src/raptor_uri.c: - Removed all V1 deprecated functions and structures. - - (raptor_ntriples_term_as_string, - raptor_ntriples_string_as_utf8_string, - raptor_new_iostream_from_handler, - raptor_iostream_get_bytes_written_count, - raptor_iostream_write_string_turtle, raptor_uri_is_file_uri): - Deprecated functions deleted - - raptor_ntriples_parser and raptor_iostream_handler: Deprecated - typedefs removed. - - * src/raptor.h: Remove RAPTOR_V2_AVAILABLE blocks - V2 is always - available - - * src/raptor.h, src/raptor_feature.c, src/raptor_general.c, - src/raptor_identifier.c, src/raptor_iostream.c, - src/raptor_locator.c, src/raptor_namespace.c, src/raptor_parse.c, - src/raptor_qname.c, src/raptor_sequence.c, src/raptor_serialize.c, - src/raptor_serialize_ntriples.c, src/raptor_statement.c, - src/raptor_uri.c, src/raptor_www.c, src/raptor_xml_writer.c: - Remove all raptor v1 APIs with v2 replacements. - - Remove RAPTOR_V2_EXPERIMENTAL - no longer experimental. Remove - RAPTOR_V1 - not needed. Remove all blocks that were protected by - RAPTOR_DISABLE_V1 including structs, prototypes and V1 functions. - - * src/raptor_parse.c: Fix static accept_header string length so - result is always NUL terminated - - (raptor_parser_get_accept_header): The static last-resource - accept_header static string is 11 chars not 9. Ensure buffer is - big enough so that the NUL gets copied by strncpy(). - - * tests/turtle/ex-38-turtle.out: Restore hack out file - ex-38-turtle.out - - * tests/.gitignore, tests/rdfxml/ex-38-rdfxmla.out: Restore hack out - file ex-38-rdfxmla.out - - * src/n3_lexer.l, src/n3_parser.y, src/ntriples_parse.c, - src/parsedate.y, src/raptor.h, src/raptor_abbrev.c, - src/raptor_avltree.c, src/raptor_expat.c, src/raptor_feature.c, - src/raptor_general.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_identifier.c, src/raptor_iostream.c, - src/raptor_json_writer.c, src/raptor_librdfa.c, - src/raptor_libxml.c, src/raptor_locator.c, src/raptor_memstr.c, - src/raptor_namespace.c, src/raptor_nfc.c, src/raptor_nfc_test.c, - src/raptor_parse.c, src/raptor_qname.c, src/raptor_rdfxml.c, - src/raptor_rfc2396.c, src/raptor_rss.c, src/raptor_rss.h, - src/raptor_rss_common.c, src/raptor_sax2.c, src/raptor_sequence.c, - src/raptor_serialize.c, src/raptor_serialize_dot.c, - src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_simple.c, - src/raptor_serialize_turtle.c, src/raptor_set.c, - src/raptor_statement.c, src/raptor_stringbuffer.c, - src/raptor_turtle_writer.c, src/raptor_uri.c, src/raptor_utf8.c, - src/raptor_www.c, src/raptor_www_curl.c, src/raptor_www_libfetch.c, - src/raptor_www_libxml.c, src/raptor_www_test.c, src/raptor_xml.c, - src/raptor_xml_writer.c, src/raptor_xsd.c, src/snprintf.c, - src/strcasecmp.c, src/turtle_common.c, src/turtle_lexer.l, - src/turtle_parser.y, utils/getopt.c, utils/rapper.c, - utils/rdfdiff.c: Code style - whitespace around assignment and - comparison ops - -2010-01-02 Dave Beckett - - * Use AM_SILENT_RULES and move autotools helper files to build/ dir - - Update autogen.sh with latest version; dependent on automake 1.11 - and it's dependencies to get AM_SILENT_RULES. - - Update configure.ac to invoke AM_SILENT_RULES defaulting to 'no'. - - * Remove RCS ID - - * Update another .gitignore - - * Add .gitignore to replace SVN properties svn:ignore diff --git a/ChangeLog.12 b/ChangeLog.12 deleted file mode 100644 index 0dc38ebe..00000000 --- a/ChangeLog.12 +++ /dev/null @@ -1,1124 +0,0 @@ -2011-11-27 Dave Beckett - - * NEWS.html, RELEASE.html, configure.ac: Bumped version to 2.0.7 - -2011-11-27 Dave Beckett - - * Snapshotted raptor2_2_0_6 for 2.0.6 release (GIT f9f3768e7080f1f132856b731c232c8cbeac1634) - - * docs/raptor-1-to-2-map.tsv: raptor_sequence swap, reverse and - next_permutation - - * docs/raptor2-sections.txt: - raptor_sequence_next_permutation - - * src/raptor_permute_test.c: - (intseq_get_at): Add for testing clarity - - * src/raptor_permute_test.c: Add a proper value checking test for - permute size 5 - - * src/Makefile.am, src/raptor_permute.c, src/raptor_permute_test.c: - raptor_permute_test.c is a pure test and never linked into - libraptor2 - - * src/raptor_permute.c: Turn permute code into a test for sequence - raptor_sequence_next_permutation - - * src/raptor2.h.in, src/raptor_sequence.c: - (raptor_sequence_next_permutation): Added based on int permute - code - - * docs/raptor2-sections.txt, src/raptor2.h.in, - src/raptor_sequence.c: - (raptor_sequence_swap): Added pulled out of raptor_sequence_reverse - -2011-11-25 Dave Beckett - - * src/raptor2.h.in, src/raptor_sequence.c: - (raptor_sequence_reverse): Added - - * src/raptor_expat.c, src/raptor_sax2.c: Fix expat support - -2011-11-23 Dave Beckett - - * src/Makefile.am, src/raptor_permute.c: - Add test permutations code - - * configure.ac: Use AWK - - * src/raptor_namespace.c: Explain namespace depth, starting and - scopes - -2011-11-15 Nicholas J Humfrey - - * src/Makefile.am: Made git-version.h a non-distributable source - file. - -2011-11-14 Dave Beckett - - * src/raptor_www_curl.c: - (raptor_www_curl_set_ssl_cert_options): Handle curl < 7.16.4 - - * NEWS.html, RELEASE.html, configure.ac: - Bumped version to 2.0.6 - - * Snapshotted raptor2_2_0_5 for 2.0.5 release (GIT - b286cc333996006f008a5ddd3ed116a7613a86bc) - -2011-11-13 Dave Beckett - - * docs/.gitignore, docs/Makefile.am: docs fixes to use - raptor-fake.h - - * docs/tmpl/section-general.sgml, src/snprintf.c, - src/raptor2.h.in: autodocs - - * ChangeLog, NEWS.html, RELEASE.html: 2.0.5 - - * src/Makefile.am: no rdfdiff here - - * src/ntriples_parse.c, src/raptor_nfc_test.c, - src/raptor_turtle_writer.c, src/raptor_xml.c: Check for error - return for all raptor_unicode_utf8_string_get_char() calls - - Fixes Issue #000481 - http://bugs.librdf.org/mantis/view.php?id=481 - - * .gitignore: Ignore git-version.h - - * tests/ntriples/Makefile.am, tests/ntriples/bug-481.nq, - tests/ntriples/bug-481.out: Add test/results for Issue #481 - - * autogen.sh: update autogen.sh - - * configure.ac, src/Makefile.am, src/raptor_general.c, - src/raptor_internal.h: - Generate GIT commit in version string when - compiling from GIT Approach copied from rasqal - -2011-11-05 Lauri Aalto - - * src/ntriples_parse.c: - (raptor_nquads_parse_recognise_syntax): Guess nquads over ntriples - since now ntriples parses fine on nquads parser - -2011-11-04 Lauri Aalto - - * tests/ntriples/Makefile.am, - tests/ntriples/testnq-optional-context.nq, - tests/ntriples/testnq-optional-context.out: added test case for - optional context node in nquads - - * src/ntriples_parse.c: - (raptor_ntriples_parse_line): Make context optional for nquads. - - Fixes Issue #0000479 - http://bugs.librdf.org/mantis/view.php?id=479 - -2011-10-18 Nicholas J Humfrey - - * src/turtle_parser.y: Added the W3C format URI for the Turtle - parser - -2011-10-13 Nicholas J Humfrey - - * src/ntriples_parse.c, src/raptor_librdfa.c, src/raptor_rdfxml.c, - src/raptor_serialize_ntriples.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: - Added W3C Format URIs to the parser and serialiser syntax - descriptions. - -2011-10-13 Nicholas J Humfrey - - * src/raptor_json.c, src/raptor_serialize_json.c: - Updated the URL - for RDF/JSON serialisation specification. - -2011-09-26 Dave Beckett - - * Merge GitHub pull request #2 from presbrey/master - -2011-09-26 Joe Presbrey - - * (raptor_uri_string_to_relative_uri_string): compare paths not - files. - - Bugfix raptor_uri_string_to_relative_uri_string - - Fixes Issue #0000472 - http://bugs.librdf.org/mantis/view.php?id=472 - -2011-09-13 Dave Beckett - - * src/raptor_uri.c: - set errno to 0 - -2011-09-08 Dave Beckett - - * configure.ac, src/raptor_internal.h, src/snprintf.c: Removed - calls to trunc() and lround() and optional linking of libm - - (raptor_format_float): Removed unused internal function and thus - removed the only need for trunc() and lround(). - - configure: Removed checks for trunc(), lround() in libc or libm. - - * src/raptor_abbrev.c, src/raptor_general.c, - src/raptor_internal.h, src/raptor_iostream.c, - src/raptor_locator.c, src/raptor_uri.c, src/raptor_xml.c, - src/snprintf.c: Make raptor_format_integer handle hex too - - (raptor_format_integer): Add base, width and padding fields - - (raptor_format_hexadecimal): Deleted, replaced by above with base - = 16. Updated all callers of above with new parameters. - - * src/raptor_json.c: - (raptor_json_parse_chunk): bad cast size_t to len for yajl API - -2011-08-31 Dave Beckett - - * src/raptor_general.c, src/raptor_iostream.c, - src/raptor_locator.c, src/raptor_nfc.c, src/raptor_nfc_test.c, - src/raptor_qname.c, src/raptor_turtle_writer.c, - src/raptor_unicode.c, src/raptor_www_curl.c, src/raptor_xml.c, - src/raptor_xml_writer.c, src/snprintf.c: Add more RAPTOR_GOOD_CAST - and RAPTOR_BAD_CAST and fix some. - - * src/raptor_uri.c: - (raptor_new_uri_from_rdf_ordinal): Use raptor_format_integer() - - * src/raptor_general.c, src/raptor_internal.h: Use - raptor_format_integer() in generating bnode IDs - - (raptor_world_default_generate_bnodeid_handler): Use - raptor_format_integer() and tidy code. raptor_world field - default_generate_bnodeid_handler_prefix_length is an integer; long - enough. - - * src/raptor_abbrev.c: - (raptor_new_qname_from_resource): Use raptor_format_integer() - - * src/raptor_internal.h, src/raptor_iostream.c, src/raptor_xml.c, - src/snprintf.c: - - (raptor_format_hexadecimal): Added for formatting uppercase hex in - a fixed width field. - - (raptor_iostream_hexadecimal_write): Use - raptor_format_hexadecimal() - - (raptor_xml_escape_string_any): Use raptor_format_hexadecimal() to - remove a sprintf for &#xXX. - - * utils/rdfdiff.c: - (rdfdiff_add_statement): Malloc right size - - * src/ntriples_parse.c, src/raptor_grddl.c, src/raptor_iostream.c, - src/raptor_libxml.c, src/raptor_nfc.c, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_sax2.c, src/raptor_serialize_html.c, - src/raptor_serialize_rdfxml.c, src/raptor_term.c, - src/raptor_turtle_writer.c, src/raptor_unicode.c, - src/raptor_xml.c, src/snprintf.c, src/turtle_common.h: Use - RAPTOR_BAD_CAST and RAPTOR_GOOD_CAST - - Some good uses: - narrowing a known, checked unicode char to a U16 - - Some 'bad' uses: - - only handing error messages, literal language, qname prefixes of - a max len constrained by int - - passing in data to libxml constrained by int max len - - locator column field constrained to int size - - Some bad uses: - - iostream read_bytes and write-bytes methods return int but could - easily return a lot more in the size_t range (compare to fread). - API change needed. - - locator byte field constrained to int size. should be size_t - - raptor_nfc_check returns int offset into a buffer that could be - larger raptor_ntriples_parser_context changed line_length and - offset to size_t raptor_turtle_parser changed buffer_length to - size_t - - * src/raptor_internal.h: Add macros for describing types of casts - - RAPTOR_GOOD_CAST: code checks or logic ensures cast will not - truncate - - RAPTOR_BAD_CAST: value may be truncated; may require API - change/break. Might be unrealistic e.g. a >4G error message, - qname prefix. - -2011-08-30 Dave Beckett - - * src/snprintf.c: snprintf return code and size guessing fixes - - vsnprintf_is_c99 macro: start guessing length from len - strlen(format) and grow size by 50% each loop to hopefully get big - enough faster. - - (raptor_vsnprintf): Error out when raptor_vasprintf result < 0 - - (raptor_snprintf): Note error is < 0 response - - (raptor_vasprintf): Error out when raptor_vsnprintf2 result is < 0 - -2011-08-28 Dave Beckett - - * src/raptor_locator.c: - (raptor_locator_format): Use raptor_format_integer to kill - snprintf - - * src/raptor_internal.h, src/snprintf.c: - (raptor_format_integer): Added - - * src/raptor_json_writer.c: - (raptor_json_writer_literal_datatype): Remove unused code. - -2011-08-27 Dave Beckett - - * utils/rdfdiff.c: Fix rdfdiff assumption that RAPTOR_DEBUG is - defined - - * src/raptor_grddl.c: Fix a few more RAPTOR_DEBUG is defined - assumptions - - * src/raptor_avltree.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_iostream.c, src/raptor_namespace.c, src/raptor_parse.c, - src/raptor_qname.c, src/raptor_rdfxml.c, src/raptor_rfc2396.c, - src/raptor_sequence.c, src/raptor_serialize_rss.c, - src/raptor_set.c, src/raptor_stringbuffer.c, - src/raptor_turtle_writer.c, src/raptor_uri.c, src/raptor_www.c, - src/raptor_www_curl.c, src/raptor_www_test.c, src/raptor_xml.c, - src/raptor_xml_writer.c, src/turtle_parser.y: Code style for - comparing a possibly undefined macro to a value - - Use: - #if defined(RAPTOR_DEBUG) && RAPTOR_DEBUG > N - rather than: - #if RAPTOR_DEBUG > N - - * src/raptor_internal.h: Do not assume RAPTOR_DEBUG is defined - - * src/snprintf.c: autodocs - - * configure.ac: Do not enable debug messages by default for - --enable-maintainer-mode - - This now requires the extra --enable-debug option to configure or - autogen.sh - - * docs/tmpl/section-general.sgml: - updated doc tmpl - - * configure.ac: Check for vasprintf once - - * configure.ac, src/snprintf.c: Define -D_GNU_SOURCE to get - vasprintf() - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt: Add new - snprintf functions to docs - - * src/raptor_json_writer.c, src/raptor_locator.c, - src/raptor_log.c: Use raptor_snprintf() and raptor_vasprintf() - - In preference to raw snprintf() or doing strlen() on - raptor_vsnprintf(). - - * configure.ac, src/raptor2.h.in, src/raptor_general.c, - src/snprintf.c: Portability fixes to snprintf / vsnprintf / - vasprintf - - (raptor_vsnprintf2): Added with actual vsnprintf() calling - contention, deprecating raptor_vsnprintf which doesn't - - (raptor_snprintf): Added with snprintf() calling convention using - raptor_vsnprintf2() to provide a portable version. - - (raptor_vasprintf): Added with vasprintf() calling convention - (GNU) using raptor_vsnprintf2() to implement it if not present. - Moved the formatted printing code all to src/snprintf.c - -2011-08-25 Dave Beckett - - * src/raptor_locator.c: Avoid snprintf(NULL, ) when there there is - no C99 vsnprintf() - - (raptor_locator_format): Pick a large enough buffer size if - snprintf is likely not portable, when HAVE_C99_VSNPRINTF is not - defined. - - Fixes Issue#0000465 - http://bugs.librdf.org/mantis/view.php?id=465 - -2011-08-21 Dave Beckett - - * librdfa/rdfa.c: Switch deprecated index() to more portable - strchr() - - * src/snprintf.c: Compile a local lround() if it is not present. - - * configure.ac: Add check for lround() - - * src/win32_raptor_config.h.in: Define isnan() macro around - _isnan() - - * configure.ac: Define HAVE_TRUNC and HAVE_ROUND from configure - -2011-08-12 Dave Beckett - - * src/raptor_statement.c: - (raptor_statement_compare): Calculate pointer differences using - ptrdiff_t - - * src/raptor_unicode.c: Casts for returning unicode char lengths - - (raptor_unicode_utf8_string_put_char, - raptor_unicode_utf8_string_get_char): Cast small int return values. - - * src/raptor_general.c: - (raptor_world_default_generate_bnodeid_handler): Use unsigned int - for ID lengths. - - * src/raptor_internal.h, src/raptor_qname.c: Use size_t for qname - value length and unsigned int for name lengths. - - raptor_qname_s changes value_length to size_t - - (raptor_new_qname, raptor_new_qname_from_namespace_local_name, - raptor_qname_string_to_uri): unsigned ints for prefix and name - lengths. - - * src/raptor_namespace.c: Use raptor_namespace prefix_length as - unsigned int; it's long enough. - - (raptor_namespaces_find_namespace, raptor_new_namespace_from_uri): - Casts for unsigned int. - - * src/raptor_internal.h: raptor_namespace prefix_length is - unsigned int - - * src/raptor_serialize_turtle.c, src/turtle_parser.y: Use turtle's - actual mime type text/turtle in syntax recognizing code. This - should make guessing from the registered mime type accurate. - -2011-08-09 Dave Beckett - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt, - docs/tmpl/section-unicode.sgml, src/raptor2.h.in, - src/raptor_unicode.c: Added UTF-8 strlen and substr utility - functions - - (raptor_unicode_utf8_strlen): Added - - (raptor_unicode_utf8_substr): Added - -2011-08-01 Dave Beckett - - * configure.ac: stddef.h for ptrdiff_t - - * src/raptor_uri.c: code style - casts for lengths - - (raptor_new_uri_from_counted_string, - (raptor_new_uri_from_counted_string): Cast size_t length from - strlen to unsigned int. - - (raptor_new_uri_from_uri_local_name, - raptor_new_uri_relative_to_base, raptor_new_uri_from_id) - raptor_new_uri_for_rdf_concept): size_t for string and uri - lengths - - (raptor_uri_path_common_base_length): Use size_t inside and return - size_t - - (raptor_uri_path_make_relative_path): size_t for path lengths. - - (raptor_uri_print): use size_t for number of objects fwrite prints - - * src/raptor_serialize_rss.c: cast uri len to unsigned int - - * src/raptor_www_curl.c: - size_t for len - -2011-07-31 Dave Beckett - - * src/ntriples_parse.c, src/raptor_abbrev.c, src/raptor_avltree.c, - src/raptor_general.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_internal.h, src/raptor_iostream.c, src/raptor_json.c, - src/raptor_json_writer.c, src/raptor_libxml.c, src/raptor_log.c, - src/raptor_namespace.c, src/raptor_option.c, src/raptor_parse.c, - src/raptor_qname.c, src/raptor_rdfxml.c, src/raptor_rfc2396.c, - src/raptor_rss.c, src/raptor_rss_common.c, src/raptor_sax2.c, - src/raptor_sequence.c, src/raptor_serialize.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c, - src/raptor_set.c, src/raptor_statement.c, - src/raptor_stringbuffer.c, src/raptor_term.c, - src/raptor_turtle_writer.c, src/raptor_uri.c, src/raptor_www.c, - src/raptor_www_curl.c, src/raptor_www_libxml.c, src/raptor_xml.c, - src/raptor_xml_writer.c, src/turtle_common.c, src/turtle_lexer.l, - src/turtle_parser.y, utils/rdfdiff.c: Code style change and - cleanup for alloc/free macros - - Code style: - 1. var = RAPTOR_CALLOC(type, count, size) - Prefering: - var = RAPTOR_CALLOC(type, 1, sizeof(*var)) - when count = 1 - - 2. var = RAPTOR_MALLOC(type, size) - - 3. RAPTOR_FREE(type, var) - - The consequence here is allocs that mostly fit into 1 line without - so much boilerplate and duplication of types. - - The RAPTOR_MALLOC and RAPTOR_CALLOC now do the cast to the return - type. - - RAPTOR_FREE takes the object type too but always casts arg to void - This certainly contains many wrong types to the arg but might be - used later in some kind of smart type-aware debugging allocator. - - * librdfa/curie.c: Use size_t to compute sizes otherwise may - truncate on 64-bit systems - - (rdfa_resolve_uri): Use size_t for strlen tmp - - (rdfa_resolve_curie): cast for strlen when ifdef LIBRDFA_IN_RAPTOR - - * librdfa/rdfa.c: Use size_t to compute sizes otherwise may - truncate on 64-bit systems - -2011-07-30 Dave Beckett - - * docs/.gitignore, docs/raptor-overrides.txt, - docs/raptor-sections.txt, docs/raptor.types, - docs/raptor2-overrides.txt, docs/raptor2-sections.txt, - docs/raptor2.types, docs/tmpl/.gitignore: More changes from - DOC_MODULE=raptor2 - - * docs/Makefile.am: Install raptor V2 docs in with doc module - raptor2 so they don't clash with raptor V1 docs - -2011-07-25 Dave Beckett - - * src/raptor_grddl.c: - (raptor_grddl_run_grddl_transform_uri): Set base_uri for sheet URI - get. - - * NEWS.html, RELEASE.html, configure.ac: - Bumped version to 2.0.5 - - * docs/tmpl/section-option.sgml, docs/tmpl/section-www.sgml: - Update tmpls - - * Snapshotted raptor2_2_0_4 for 2.0.4 release (GIT - 76194e074160848d6f690a62b395d5dd23aff728) - - * docs/raptor-1-to-2-map.tsv, docs/raptor-sections.txt, - src/raptor2.h.in, src/raptor_internal.h, src/raptor_option.c, - src/raptor_parse.c, src/raptor_turtle_writer.c, src/raptor_www.c, - src/raptor_www_curl.c: - Implement WWW feching SSL client certificate - options raptor_option gains: RAPTOR_OPTION_WWW_CERT_FILENAME, - RAPTOR_OPTION_WWW_CERT_TYPE and RAPTOR_OPTION_WWW_CERT_PASSPHRASE (raptor_www_set_ssl_cert_options): Added public API to set SSL - client certificates on WWW. (raptor_www_curl_set_ssl_cert_options): Added for libcurl to - implement above. (raptor_parser_parse_uri_with_connection): Use - raptor_www_set_ssl_cert_options() to turn the parser options into - settings on the WWW object. - -2011-07-24 Dave Beckett - - * src/ntriples_parse.c: - (raptor_ntriples_parse_line): Calculate term_lengths only when - debugging. [-Wunused-but-set-variable] - - * src/turtle_lexer.l: Disable input() for Turtle lexer - never - needed. - - * src/turtle_parser.y: - (turtle_parse): Do not assign buffer which is unused - [-Wunused-but-set-variable] - - * src/raptor_internal.h, src/raptor_parse.c: Move parser buffer - from stack to parser object (reducing call stack size) - - RAPTOR_READ_BUFFER_SIZE internal define added. - - raptor_parser gains a buffer of RAPTOR_READ_BUFFER_SIZE + 1 for - NUL. - - (raptor_parser_parse_file_stream): Use parser object buffer not - stack. - - (raptor_parser_parse_uri_write_bytes): Use size_t in len - calculation. - - (raptor_parser_parse_iostream): Use parser object buffer not - stack. Use size_t for read length. - - * configure.ac: -Wno-sign-conversion for now - - * src/raptor_internal.h, src/raptor_www.c: Reduce stack use of - raptor_www_file_handle_fetch - - (raptor_www_file_handle_fetch): Use www->buffer for file buffer - for all builds not just www with libxml or libfetch. - - * src/raptor_xml.c: - (raptor_valid_xml_ID): use size_t for strlen - - * src/raptor_locator.c: - (raptor_locator_format): Cast calculated bufsize to int return. - - * src/raptor_internal.h, src/raptor_www.c, src/raptor_www_curl.c: - Use a total_bytes for byte counts inside raptor_www - - * src/snprintf.c: - (raptor_format_float): use a long for the intpart. - - * configure.ac: - Expand (GCC) compiler warnings lots - - * docs/raptor-1-to-2-map.tsv, docs/raptor-sections.txt, - src/raptor2.h.in, src/raptor_internal.h, - src/raptor_serialize_ntriples.c, src/raptor_serialize_turtle.c, - src/raptor_turtle_writer.c: Make sure N-Triples and Turtle - serialize legal blank node IDs - - Fixes Issue #0000449 - http://bugs.librdf.org/mantis/view.php?id=449 - - (raptor_bnodeid_ntriples_write): Added to write a N-Triples blank - node ID in legal form, replacing any letters not in the allowed - set. - - (raptor_turtle_writer_bnodeid): Added internal method for Turtle - writer to do this too. - - (raptor_turtle_emit_blank): Use above. - - * configure.ac: - Enforce libcurl earliest version supported 7.12.0 - - See previous commit for Issue#0000457 - http://bugs.librdf.org/mantis/view.php?id=457 and curl GIT commit - https://github.com/bagder/curl/commit/ffc5fa3a2be787c8198eb68836a45c440876c1bd - - * src/raptor_internal.h: - Remove curl/types.h - - Fixes Issue#0000457 - http://bugs.librdf.org/mantis/view.php?id=457 - - Was made a blank file over 7 years ago. - - curl GIT commit ffc5fa3a2be787c8198eb68836a45c440876c1bd - Date: Mon Apr 26 14:06:51 2004 +0000 - "typedef CURL in the curl.h file instead of only having a single - useful typedef in the separate types.h" - - Which is 7.11.2 but it wasn't mentioned in the release notes (even - if I'd read them): http://curl.haxx.se/changes.html - - * configure.ac: - Improve checking for trunc and round - - Fixes Issue#0000308 - http://bugs.librdf.org/mantis/view.php?id=308 - -2011-07-14 Dave Beckett - - * src/raptor_avltree.c: - Condition protect more debug printfs - - * src/raptor_avltree.c: - Fix losing node parents in deleting - - (raptor_avltree_delete_internal, raptor_avltree_delete_internal2): - Fix parents when moving nodes during deletion. Based on patch - from 'v-for-vandal' in notes of Issue#0000455 - http://bugs.librdf.org/mantis/view.php?id=455 - Thanks! - - Fixes Issue#0000455 - http://bugs.librdf.org/mantis/view.php?id=455 - - * src/raptor_avltree.c: - Add extra AVL Tree debugging - - Based on patch in Issue #0000455 - http://bugs.librdf.org/mantis/view.php?id=455 with code style - changes - - * configure.ac, src/raptor_json.c: - Add YAJL V2 support - - Note that YAJL V1 and V2 both install the same library name - 'libyajl' even though they have different ABI & APIs. - - Fixes Issue #0000456 - http://bugs.librdf.org/mantis/view.php?id=456 - -2011-07-11 Dave Beckett - - * tests/trig/bug451.out, tests/trig/bug451.trig: Make bug451.trig - legal. - Fixes Issue #000451 - http://bugs.librdf.org/mantis/view.php?id=451 - - * src/turtle_lexer.l: - Allow = instead of := in TRiG - - * tests/trig/Makefile.am, tests/trig/bug451.out, - tests/trig/bug451.trig, tests/trig/example2.trig: - Add tests for bug - 451 - fixing TrIG to be legal - -2011-06-01 Dave Beckett - - * NEWS.html, RELEASE.html, configure.ac: - Bumped version to 2.0.4 - - * Snapshotted raptor2_2_0_3 for 2.0.3 release (GIT - 148879e3346d0976792b51bddf4d98db34263d07) - -2011-05-31 Dave Beckett - - * docs/raptor-1-to-2-map.tsv: Fix API change typos; there are no - raptor_term_as.*string() functions - - * src/turtle_lexer.l: Cleanup stringbuffer if EOF happens in a - literal - - * docs/tmpl/section-general.sgml: doc tmpls - -2011-05-30 Dave Beckett - - * src/turtle_parser.y: More fixups for going back to pull parser - - bison's yacc.c skeleton output does not support %lex-param so use - #define YYLEX_PARAM again - - * src/turtle_parser.y: - (turtle_parser_error): Remove yy_init_globals call. - -2011-05-22 Dave Beckett - - * utils/Makefile.am: CLEANFILES cleans *.plist from clang output - - * utils/rdfdiff.c: - (rdfdiff_statement_equals): Return different if object URIs - differ. - [CLANG] - - * utils/Makefile.am: ANALYZE - - * src/Makefile.am: all SOURCES - - * src/Makefile.am: analyze for maintainer only - - * src/Makefile.am: CLEANFILES cleans *.plist from clang output - - * librdfa/triple.c: - Fixes from clang --analyze - - (rdfa_complete_object_literal_triples): Remove assignment of - 'current_object_literal' that always assigns the existing value. - - * librdfa/rdfa.c: - Fixes from clang --analyze - - (start_element): Remove unused (attribute) 'value' var Remove - usless assignment of 'insert_xmlns_definition' at end of block it - is scoped to. - - * librdfa/curie.c: - Fixes from clang --analyze - - (rdfa_resolve_uri): use rval_copy to alter final char from '/' not - rval, which is always NULL. - - (rdfa_resolve_curie): Remove unused var 'expanded_prefix_length' - - * src/raptor_xml_writer.c: - (raptor_new_xml_writer): Remove useless assignment to 'nstack'. - [CLANG] - - * src/raptor_uri.c: - Fixes [CLANG] - (raptor_uri_print): Initialize 'world' carefully and check if it is - NULL when calling raptor_log_error_formatted. - - * src/raptor_unicode.c: Fixes [CLANG] - (raptor_unicode_utf8_string_get_char): Do not uslessly increment - 'input' pointer at end of function. - - * src/raptor_turtle_writer.c: Fixes [CLANG] - (raptor_new_turtle_writer): Remove useless assignment to 'nstack'. - - (raptor_turtle_writer_quoted_counted_string): Initialize 'rc' and - use it to return faiure from raptor_string_python_write() - - * src/raptor_serialize_turtle.c: Fixes [CLANG] - (raptor_turtle_emit_subject_collection_items) - - (raptor_turtle_emit_subject_properties): Return 'rv' on error. - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_statement): Return failure on not handled - [CLANG] - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_emit_subject_properties): Return 'rv' on error - [CLANG]. - - * src/raptor_serialize_rdfxml.c: - Fixes [CLANG] - - (raptor_rdfxml_serialize_statement): Remove - 'end_predicate_element' assignemnts that are immediately - overwritten. Use 'attrs_count' in writing a URI - be consistent - with other emitting even know we know in all cases what the values - will be. - - * src/raptor_rss.c: - Fixes [CLANG] - - (raptor_rss_start_element_handler): Remove unused 'attribute_type' - var. - - (raptor_rss_insert_identifiers): Initialize 'new_uri' to NULL and - check for failures of it and term construction. - - * src/raptor_rfc2396.c: - Fixes [CLANG] - - (raptor_uri_resolve_uri_reference): Remove assignment to - 'last_char' never needed - loop continue action overwrites it. - - * src/raptor_rdfxml.c: - Fixes [CLANG] - - (raptor_rdfxml_start_element_handler): Check element->parent is - not NULL before using pointer. - - (raptor_rdfxml_generate_statement): Remove unused rdf_xml_parser - var. (raptor_rdfxml_start_element_grammar): Remove assignments to - 'finished' that are immediately re-assigned. - - * src/raptor_nfc.c: - (raptor_nfc_check): Remove unused 'start' var [CLANG] - - * src/raptor_namespace.c: - (raptor_namespace_format_as_xml): Do not increment p at end [CLANG] - - * src/raptor_memstr.c: - (raptor_memstr): Remove unused 'c' var [CLANG] - - * src/raptor_libxml.c: - Fixes [CLANG] - - (raptor_libxml_error_common): Set world and locator to NULL and - carefully assign and check use. - - (raptor_libxml_xmlStructuredError_handler_parsing): Turn - assignment into something that does work. Hints that the - workaround for an ancient libxml2 context error pointer bug are no - longer needed since anyone using such an old libxml would have - crashed at this point when an error happened. Could bump minimum - libxml2 version. - - * src/raptor_librdfa.c: - (raptor_librdfa_parse_init): Remove unused librdfa_parser [CLANG] - - * src/raptor_json_writer.c: - Fixes [CLANG] - - (raptor_json_writer_quoted): Initialize rc and set it to value of - any raptor_string_python_write error return. Return rc. - - (raptor_json_writer_key_uri_value): Return error rc - - * src/raptor_grddl.c: - Fixes [CLANG] - - (raptor_grddl_run_grddl_transform_doc): Initialize userCtxt - - (raptor_grddl_run_grddl_transform_uri): Remove unused grddl_parser - - (raptor_grddl_parse_chunk): Remove assigning rc a value never read - - * src/ntriples_parse.c: - (raptor_ntriples_parse_line): Initialize term fields in all - cases[CLANG] - - * src/.gitignore: .gitignore - - * src/Makefile.am: 'analyze' target fixes - - * src/Makefile.am: Added 'analyze' target to invoke clang over - sources - -2011-05-19 Dave Beckett - - * src/turtle_parser.y: lets have bison debugging with push parser - too - - * src/raptor_parse.c, src/raptor_serialize.c, - src/raptor_www_curl.c: Fixes for building in RAPTOR_DEBUG > 2 mode - - * src/raptor_qname.c: docs - -2011-05-12 Dave Beckett - - * configure.ac: Ensure Bison 2.4+ is used - -2011-05-11 Dave Beckett - - * src/turtle_lexer.l: - Make TRiG lexer recognize URI/qname (ws)* - - (:-)? (ws)* { Add new rule to recognize QNAME as the graph name. - Adjust it to skip over extra optional tokens. Adjust existing - rule to handle all whitespace around optional ':-' - -2011-05-10 Dave Beckett - - * src/turtle_lexer.l: Handle trig graph name and start in lexer - (GRAPH_NAME_LEFT_CURLY): Added returning URI for { with - optional ':-' - - * src/turtle_parser.y: Fix calls to - raptor_term_print_as_ntriples() to raptor 2 API form - - * src/raptor_statement.c: - (raptor_statement_print): Handle printing partial statements for - debugging. - - * src/.gitignore: ignore raptor2.h - - * src/turtle_parser.y: - (turtle_push_parse): world only if very debuggy - - * src/turtle_parser.y: - (turtle_push_parse): print token on very debug only. - -2011-04-27 Dave Beckett - - * docs/libraptor2.3, examples/grapper.c, examples/raptor_abort.c, - examples/rdfcat.c, examples/rdfguess.c, examples/rdfprint.c, - examples/rdfserialize.c, scripts/build-formats.c, tests/empty.c: - Use raptor2.h header - -2011-04-26 Dave Beckett - - * docs/Makefile.am: - Make docs use raptor2.h - - * configure.ac, docs/tmpl/section-general.sgml, librdfa/rdfa.h, - src/.gitignore, src/Makefile.am, src/ntriples_parse.c, - src/raptor.h, src/raptor.h.in, src/raptor2.h.in, - src/raptor_abbrev.c, src/raptor_avltree.c, src/raptor_concepts.c, - src/raptor_expat.c, src/raptor_general.c, src/raptor_grddl.c, - src/raptor_guess.c, src/raptor_iostream.c, src/raptor_json.c, - src/raptor_json_writer.c, src/raptor_librdfa.c, - src/raptor_libxml.c, src/raptor_locator.c, src/raptor_log.c, - src/raptor_memstr.c, src/raptor_namespace.c, src/raptor_nfc.c, - src/raptor_nfc_data.c, src/raptor_nfc_test.c, src/raptor_option.c, - src/raptor_parse.c, src/raptor_qname.c, src/raptor_rdfxml.c, - src/raptor_rfc2396.c, src/raptor_rss.c, src/raptor_rss_common.c, - src/raptor_sax2.c, src/raptor_sequence.c, src/raptor_serialize.c, - src/raptor_serialize_dot.c, src/raptor_serialize_html.c, - src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c, - src/raptor_set.c, src/raptor_statement.c, - src/raptor_stringbuffer.c, src/raptor_syntax_description.c, - src/raptor_term.c, src/raptor_turtle_writer.c, - src/raptor_unicode.c, src/raptor_uri.c, src/raptor_www.c, - src/raptor_www_curl.c, src/raptor_www_libfetch.c, - src/raptor_www_libxml.c, src/raptor_www_test.c, src/raptor_xml.c, - src/raptor_xml_writer.c, src/snprintf.c, src/turtle_common.c, - src/turtle_lexer.l, src/turtle_parser.y, utils/rapper.c, - utils/rdfdiff.c: Switch to raptor2.h as main header. raptor.h - includes it - - * NEWS.html, RELEASE.html, configure.ac: - Bumped version to 2.0.3 - -2011-04-15 Nicholas J Humfrey - - * docs/Makefile.am: Set DISTCLEANFILES to empty before including - gtk-doc.make - - * docs/Makefile.am: Moved raptor-fake.i from CLEANFILES to - DISTCLEANFILES. - -2011-04-05 Dave Beckett - - * src/turtle_parser.y: - (graph): Ensure $1 is NULLed out and ownership passed on - - Fixes Issue #0000437 - http://bugs.librdf.org/mantis/view.php?id=437 - - * src/raptor_statement.c: - (raptor_statement_print): Handle NULL terms. - - * src/turtle_parser.y: Fix extra debugging use of - raptor_term_print_as_ntriples - -2011-03-27 Dave Beckett - - * src/turtle_lexer.l: Use %option extra-type to set type of extra - arg. - -2011-03-20 Dave Beckett - - * Snapshotted raptor2_2_0_2 for 2.0.2 release (GIT - 4d782df45fd4b3e11243008c4dc221effcaad591) - - * configure.ac, src/raptor_general.c: Error out when calling - library presents a too old header - - (raptor_new_world_internal): Switch to checking for too old, not - exact match. - - * NEWS.html, RELEASE.html, configure.ac: - Bumped version to 2.0.2 - - * src/raptor_term.c: autodocs - - * Snapshotted raptor2_2_0_1 for 2.0.1 release (GIT - 6f1655f985df370999a92897726d359946c1dbd9) - -2011-03-14 Dave Beckett - - * src/raptor.h.in, src/raptor_parse.c: autodocs - -2011-03-10 Dave Beckett - - * src/raptor_term.c: Autodocs - mention UTF-8 encodings in - args/returns for raptor_term docs - -2011-02-27 Dave Beckett - - * scripts/process-changes.pl: - Update to latest process-changes.pl - -2011-02-14 Dave Beckett - - * scripts/process-changes.pl: - Update to latest process-changes.pl - - * tests/turtle/Makefile.am, tests/turtle/test-36.out, - tests/turtle/test-36.ttl, tests/turtle/test-37.out, - tests/turtle/test-37.ttl: Add tests for long literal with dups and - lang - -2011-02-07 Dave Beckett - - * ChangeLog, ChangeLog.11, Makefile.am: - Add ChangeLog.11 for 2010 - -2011-02-06 Dave Beckett - - * LICENSE.html: Make GPL V2 or newer explicit. - -2011-02-01 Dave Beckett - - * raptor2.spec.in: fix Source: - -2011-01-27 Dave Beckett - - * src/raptor_internal.h: Remove get_curie_type rename for librdfa - - now static - - * librdfa/curie.c, librdfa/rdfa_utils.h: Update to librda GIT - commit 3838bb11fb155bbae200a2388096cbe6804a7551 No longer exports - get_curie_type. - - * NEWS.html, RELEASE.html, configure.ac: Bumped version to 2.0.1 - -2011-01-26 Dave Beckett - - * src/raptor_internal.h: Rename librdfa symbols for internal - linking of librdfa - - Fixes Issue #0000416 - http://bugs.librdf.org/mantis/view.php?id=416 - - * librdfa/rdfa.c, librdfa/rdfa_utils.c, librdfa/triple.c: Update - to librdfa GIT commit aeebd00d68ab7292cae35ebfbcb638f3a2625f39 - -2011-01-24 Nicholas J Humfrey - - * src/raptor_serialize_ntriples.c, tests/ntriples/testnq-1.out, - tests/trig/bug370.out, tests/trig/example1.out, - tests/trig/example2.out, tests/trig/example3.out: Fixed the nquads - serialiser to output the graph name in the fourth column, instead - of repeating the object - -2011-01-21 Dave Beckett - - * src/ntriples_parse.c, src/raptor_abbrev.c, src/raptor_librdfa.c, - src/raptor_serialize_dot.c, src/raptor_serialize_html.c, - src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c, - src/raptor_uri.c: Replace all RAPTOR_FATAL with error log messages - in user builds - - All RAPTOR_FATAL calls are now only called inside RAPTOR_DEBUG - blocks. - - * src/raptor_abbrev.c, src/raptor_internal.h: - (raptor_new_abbrev_subject): Made static to this module - - * src/raptor_statement.c: - (raptor_statement_init): Init statement to NULL pointers - -2011-01-03 Dave Beckett - - * Snapshotted raptor2_2_0_0 for 2.0.0 release (GIT - 8ba659697c83891eb6ae9b47ce0e0ce8bb070e40) - - * docs/raptor-docs.xml: shorter title - - * NEWS.html, RELEASE.html: 2.0.0 - - * librdfa/rdfa.c: Revert upstream - 62d939ec1e3756a69eef48a50be0ab0624e2d4ad - - * librdfa/triple.c: - (rdfa_generate_namespace_triple): Protect - processor_graph_triple_callback - - * examples/grapper.c, librdfa/iri.c, librdfa/rdfa.c, - src/raptor_general.c: Casts for C++ - - * examples/grapper.c: - Use raptor_term_to_string in final 2.0.0 API - - * docs/raptor-sections.txt: - Added raptor_syntax_description_validate - - * docs/raptor-1-to-2-map.tsv: Added - raptor_syntax_description_validate - - * docs/raptor-1-to-2-map.tsv: Update for older API change: - raptor_term_to_.*string not _as_ - - * src/.gitignore: - Ignore generated win32_raptor_config.h - - * src/win32_raptor_config.h.in: - Insert generated @symbols - - * src/win32_raptor_config.h, src/win32_raptor_config.h.in: Rename - win32_raptor_config.h to win32_raptor_config.h.in - - * configure.ac: - generate src/win32_raptor_config.h diff --git a/ChangeLog.13 b/ChangeLog.13 deleted file mode 100644 index b26e4c3b..00000000 --- a/ChangeLog.13 +++ /dev/null @@ -1,1599 +0,0 @@ -2012-12-11 Dave Beckett - - * .gitignore: Ignore CMakeTests.txt - -2012-11-07 Dave Beckett - - * librdfa/rdfa.c: Handle non-namespaced elements without crash in - RDFa - - Fixes Issue #0000521 - http://bugs.librdf.org/mantis/view.php?id=521 - -2012-10-22 Dave Beckett - - * Merge pull request #6 from ansell/master: Update turtle test - manifests - -2012-09-23 Dave Beckett - - * manifest.pl: - Remove ancient manifest.pl moved to testing project - -2012-09-19 Dave Beckett - - * Merge pull request #5 from iskunk/drg-win32-2 - Win32 parser-guess and DLL linkage fixes - -2012-09-19 Daniel Richard G - - * src/raptor_internal.h, src/turtle_common.h: Fix DLL export - linkage for internal functions needed by the test programs - - This allows the test programs to be linked against a DLL build of - Raptor. - - * src/raptor_internal.h, src/raptor_parse.c: Ensure that a small - system BUFSIZ does not affect parser guessing - - raptor_internal.h: Ensure that RAPTOR_READ_BUFFER_SIZE is never - smaller than 4096. (It really only needs to be as large as FIRSTN - in raptor_parse.c, i.e. 1024, but 4kB isn't all that much nowadays - anyway) - - (raptor_world_guess_parser_name): Added a compile-time check to - ensure that RAPTOR_READ_BUFFER_SIZE is at least as large as - FIRSTN, because otherwise the guesser sees fewer than FIRSTN bytes - from the document. - -2012-09-07 Dave Beckett - - * utils/rapper.c: Remove -m MODE from help - - This option was removed in commit - f94fa561db05b21132b14a2b72f05b77e666c252 on Wed Apr 28 21:31:54 - 2010 -0700 as part of the Raptor V2 work. - -2012-08-31 Dave Beckett - - * autogen.sh, configure.ac: Require autoconf 2.62 again - - * autogen.sh: Update autogen.sh - - * autogen.sh: Echo autoconf args - - Merge pull request #4 from iskunk/drg-win32 win32 and - autoconf-related changes - -2012-08-30 Daniel Richard G - - * CMakeLists.txt, src/CMakeLists.txt: Simplify CMake usage with - CMAKE_INCLUDE_CURRENT_DIR - - * configure.ac, docs/Makefile.am, examples/grapper.c, - examples/raptor_abort.c, scripts/fix-flex, src/.gitignore, - src/Makefile.am, src/ntriples_parse.c, src/parsedate.y, - src/raptor_abbrev.c, src/raptor_avltree.c, src/raptor_concepts.c, - src/raptor_general.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_iostream.c, src/raptor_json.c, - src/raptor_json_writer.c, src/raptor_librdfa.c, - src/raptor_libxml.c, src/raptor_locator.c, src/raptor_log.c, - src/raptor_memstr.c, src/raptor_namespace.c, src/raptor_nfc_icu.c, - src/raptor_nfc_test.c, src/raptor_option.c, src/raptor_parse.c, - src/raptor_permute_test.c, src/raptor_qname.c, - src/raptor_rdfxml.c, src/raptor_rfc2396.c, src/raptor_rss.c, - src/raptor_rss_common.c, src/raptor_sax2.c, src/raptor_sequence.c, - src/raptor_serialize.c, src/raptor_serialize_dot.c, - src/raptor_serialize_html.c, src/raptor_serialize_json.c, - src/raptor_serialize_ntriples.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c, - src/raptor_serialize_turtle.c, src/raptor_set.c, - src/raptor_statement.c, src/raptor_stringbuffer.c, - src/raptor_syntax_description.c, src/raptor_term.c, - src/raptor_turtle_writer.c, src/raptor_unicode.c, - src/raptor_uri.c, src/raptor_win32.c, src/raptor_www.c, - src/raptor_www_curl.c, src/raptor_www_libfetch.c, - src/raptor_www_libxml.c, src/raptor_www_test.c, src/raptor_xml.c, - src/raptor_xml_writer.c, src/snprintf.c, src/strcasecmp.c, - src/turtle_common.c, src/turtle_lexer.l, src/turtle_parser.y, - src/win32_raptor_config.h.in, utils/rapper.c, utils/rdfdiff.c: - Remove all traces of win32_raptor_config.h - - Remove the file itself, all #include uses of it, and all - references to it, as this file is no longer needed. - - * Makefile.am, README-cmake.md, configure.ac, win32/Makefile.am, - win32/README.md, win32/rapper.dsp, win32/rapper.vcproj, - win32/raptor.dsp, win32/raptor.dsw, win32/raptor.sln, - win32/raptor.vcproj, win32/raptortest.cpp, win32/raptortest.dsp, - win32/raptortest.vcproj: Delete win32/ subdirectory - - The MSVC6 and MSVC7.1 project files in win32/ fail to build - current versions of Raptor, require external projects for Curl and - Expat which do not appear to be publicly available, are unlikely - to get the extensive work they need in the near future due to John - Barstow's busy schedule, and are redundant now that Raptor can be - built on Windows using CMake. Thus, out they go. - - win32/README.md: Moved up to README-cmake.md, as this information - is useful, and CMake build support is not limited to Win32 - -2012-08-25 Dave Beckett - - * configure.ac: - fix PKG_CONFIG_REQUIRES version vars - - * configure.ac, raptor2.pc.in: Allow xml2-config and curl-config - to work for libxml and libcurl - - - report on source of xml, curl libraries in status - - remove extra oCPPFLAGS assignements - - substitute pkgconfig dependencies into raptor2.pc - -2012-08-20 Dave Beckett - - * src/raptor_log.c: - (raptor_log_error): sizeof should take size of field not pointer - -2012-08-16 Dave Beckett - - * src/raptor_libxml.c: Handle ret->checked field not being present - - The entities checked field was added 2006-10-10 in - http://git.gnome.org/browse/libxml2/commit/?id=a37a6ad91a61d168ecc4b29263def3363fff4da6and - released in libxml2 2.6.27 on 2006-10-25 - - Fixes Issue #0000520 - http://bugs.librdf.org/mantis/view.php?id=520 - -2012-08-14 Dave Beckett - - * src/raptor_rdfxml.c: - (raptor_rdfxml_element_content_type_as_string): LAST is not valid - -2012-08-10 Dave Beckett - - * RELEASE.html: 2.0.9 - - * win32/Makefile.am: - README.md in dist replacing README.txt - -2012-08-10 Daniel Richard G - - * CMakeLists.txt, Makefile.am, librdfa/config.h, - src/CMakeLists.txt, src/Makefile.am, src/raptor_config_cmake.h.in, - src/win32_raptor_config.h.in, tests/feeds/CMakeLists.txt, - tests/feeds/Makefile.am, tests/grddl/CMakeLists.txt, - tests/grddl/Makefile.am, tests/json/CMakeLists.txt, - tests/json/Makefile.am, tests/ntriples/CMakeLists.txt, - tests/ntriples/Makefile.am, tests/rdfa/CMakeLists.txt, - tests/rdfa/Makefile.am, tests/rdfa11/CMakeLists.txt, - tests/rdfa11/Makefile.am, tests/rdfxml/CMakeLists.txt, - tests/rdfxml/Makefile.am, tests/trig/CMakeLists.txt, - tests/trig/Makefile.am, utils/CMakeLists.txt, utils/Makefile.am, - win32/README.md, win32/README.txt: CMake build framework for - Raptor - win32 - - This commit is based on the email with patch that - Daniel Richard G. sent to redland-dev on 5th July 2012 - http://lists.librdf.org/pipermail/redland-dev/2012-July/002502.htmlI - lightly edited the email to fit into 80 chars and make more it - markdowny and turn it into win32/README.md -- Dave Beckett - -2012-07-27 Dave Beckett - - * configure.ac: Fix for flex version message from OSX - -2012-07-05 Dave Beckett - - * src/raptor2.h.in: - Protect macro checks for __GNUC__ are defined - -2012-07-01 Dave Beckett - - * src/raptor2.h.in: Add RAPTOR_NORETURN - - * configure.ac: - Set automake -W and gcc -W to same as librdf - -2012-06-26 Dave Beckett - - * Makefile.am: EXTRA_DIST: Remove ChangeLog NEWS since they are in - dist by default - - * scripts/build-formats.c: - (sort_type_syntax_by_mime_type): Add explicit cast for ordering mime - types - - * Makefile.am: - Restore NEWS building to maintainer mode. - - Reverts 979af117bb40de4e8391656b3e18f47f7096d1fc but requires - autogen.sh to touch NEWS after a GIT checkout so that automake can - run. - - * autogen.sh: - autogen.sh updates - - Abort run if a configuring program fails. - - Generate NEWS with old timestamp if missing so automake can run - - small doc and message updates - - * librdfa/strtok_r.h: Fix strtok_r typo - - * docs/Makefile.am: Added raptor-1-to-2-map.tsv to EXTRA_DIST - -2012-06-24 Dave Beckett - - * Snapshotted raptor2_2_0_8 for 2.0.8 release (GIT - dbdb2f9e4aee4e93383fe62751b52349be64187b) - - * librdfa/config.h, librdfa/rdfa.h: Fix fake librdfa config.h - - * librdfa/config.h, librdfa/context.c, librdfa/lists.c, - librdfa/rdfa.h: librdfa config.h now includes raptor_config.h - directly - -2012-06-23 Dave Beckett - - * src/raptor_www_libxml.c: - Init / cleanup libxml nano HTTP library - - (raptor_www_libxml_init, raptor_www_libxml_free): Call - xmlNanoHTTPInit and xmlNanoHTTPCleanup respectively. - -2012-06-22 Dave Beckett - - * librdfa/context.c: DECLARE_URI_MAPPING - start new namespace, do - not make a new one Call raptor_namespaces_start_namespace() - instead of raptor_namespace_stack_start_namespace() which copies - the namespace to the stack and then starts it. - - * tests/rdfa11/Makefile.am: Update rapper and rdfdiff use like - already done for 'rdfa' tests - - * librdfa/rdfa.c: - (raptor_rdfa_start_element): Free attr if allocated - - * src/raptor_nfc_test.c: Remove include of raptor_nfc.h - -2012-06-20 Dave Beckett - - * NEWS.html, RELEASE.html: 2.0.8 - - * librdfa/curie.c, librdfa/namespace.c, librdfa/rdfa.c: Build - fixes from Daniel Richard G. - - * RELEASE.html: 2.0.8 - -2012-06-19 Dave Beckett - - * src/raptor_parse.c: Lower min syntax guess score to 2 (Q 0.3) - - * src/turtle_parser.y: If Turtle and Trig are both present, make - guessing prefer Turtle - - Also score higher for Trig if 'trig' is in mime type - - * examples/.gitignore: ignore rdfguess - - * examples/rdfguess.c: Update rdfguess example code to read from - stdin or a file called '-' - - (rdfguess_guess_name): Added and alter to accept file called '-' - as reading from FILE* stdin. - - (main): Call above to support reading from stdin. Do something - with -h/--help - - * src/raptor_parse.c: Be conservative in guessing syntax - scoring - too low is a failure. - - (raptor_world_guess_parser_name): Set min guess core to 5 (Q - 0.6). this value isn't exposed or user configurable. - Addresses Issue #0000487 - http://bugs.librdf.org/mantis/view.php?id=487 - - * tests/feeds/Makefile.am: Fix output turtle files for out of - source tree 'make check' - -2012-06-18 Dave Beckett - - * NEWS.html, README.html, RELEASE.html: 2.0.8 - -2012-06-17 Dave Beckett - - * librdfa/curie.c: - (rdfa_resolve_curie): Protect NULL uri lookup [clang] - - * librdfa/rdfa_utils.c: - (rdfa_add_item): Protect NULL list lookup [clang] - - * librdfa/curie.c: - (rdfa_resolve_curie): Protect NULL uri lookup [clang] - - * src/raptor_namespace.c: - (raptor_namespaces_find_namespace): No NULL prefix for strcmp - [clang] - - * librdfa/context.c: - (rdfa_create_new_element_context): Return NULL on OOM [clang] - - * librdfa/context.c: librdfa in raptor: do not print to stdout on - failure - - (rdfa_create_context): Remove printf with hardcoded message. if - malloc fails return NULL - - * librdfa/rdfa.c: - (end_element): Protect for NULL xml_literal before strlen [clang] - - * librdfa/curie.c: - (rdfa_resolve_uri): empty rval check for OOM [clang] - - * src/raptor_qname.c: - (raptor_qname_copy): Free new_qname on OOM [clang] - - * NEWS.html, RELEASE.html: 2.0.8 - - * src/raptor_serialize_turtle.c: Do not emit a Turtle (...) - collection if the list item is a URI - - Fixes Issue #0000381 - http://bugs.librdf.org/mantis/view.php?id=381 - - * tests/rdfa11/Makefile.am: 29 failures - 0114 passes - - * tests/rdfa11/0114.out: Correct expected result based on original - sparql - - * src/raptor_rfc2396.c: - Fix URI resolving with reference uri '?y' - - (raptor_uri_resolve_uri_reference): When reference uri has no path, - copy the base path over. - - (main): Correct the test case expected result for '?y' following - RFC3986 section 5.4.1 Normal examples. Add test case based on - RDFa 1.1 test 0114 - - * tests/rdfa11/Makefile.am: 30 failures - 0234 passes - - * tests/rdfa11/0234.out: Fix test URI - - * tests/rdfa11/Makefile.am: notes - - * tests/rdfa11/Makefile.am: 32 failures - 0295 passes - - * tests/rdfa11/0295.out: Update XML ns; remove non-ascii junk - - * tests/rdfa11/Makefile.am: 32 failures - 0259 passes - - * librdfa/curie.c: - (rdfa_resolve_curie): Get XML namespace from constnat - -2012-06-13 Dave Beckett - - * src/raptor_guess.c, src/raptor_internal.h, src/raptor_parse.c: - Raptor locator accessor for guess parser struct - raptor_parser_factory_s gains optional get_locator method. - - (raptor_parser_get_locator): Call factory get_locator method if - present, otherwise use field. - - (raptor_guess_guess_get_locator): Added to get locator from inner - parser if it exists. - -2012-06-11 Dave Beckett - - * configure.ac: Compare libcurl hex vernums as strings - - * src/raptor_term.c: - (raptor_new_term_from_literal): Cast language length again - - * src/raptor_internal.h: Remove redundant - raptor_parser_log_error_varargs - - * librdfa/Makefile.am: Add missing librdfa files to dist - - * src/raptor_internal.h: Add prototype for - raptor_parser_log_error_varargs - - * tests/rdfa11/0226.out, tests/rdfa11/0226.xml, - tests/rdfa11/0227.out, tests/rdfa11/0227.xml: Updated RDFa 1.1 - tests 0226 and 0227 after upstream change - - Switches from (fake) rdf:inlist property to ex:inlist in - example.org namespace - -2012-06-10 Dave Beckett - - * tests/rdfa11/Makefile.am: - 33 failures - - * tests/rdfa11/0221.out: Add rdf:value triple that is - also generated by librdfa - - * tests/rdfa11/0218.out: Fix test URI - - * tests/rdfa11/0201.out: Fix test URI to .xml - - * tests/rdfa11/0220.out: Add rdf:value triple that is - also generated by librdfa - - * tests/rdfa11/0197.out: Add other triples not tested in sparql - - * tests/rdfa11/Makefile.am: More failures detail - - * tests/rdfa11/0255.out: 1 triple plain literal test - - * tests/rdfa11/Makefile.am: 39 failures - - * tests/rdfa11/0061.xml, tests/rdfa11/0062.xml, - tests/rdfa11/0076.xml, tests/rdfa11/0077.xml, - tests/rdfa11/0172.xml, tests/rdfa11/0173.xml, - tests/rdfa11/0260.xml: Format some tests as XHTML1 as the only - expected input form. 0061 0062 0076 0077 0172 0173 0260 are - marked in the test manifest as only having a host language - 'xhtml1' - - * tests/rdfa11/0260.out: Fix test URI - - * tests/rdfa11/Makefile.am: 44 failures - - * src/raptor_sax2.c: - (raptor_sax2_inscope_xml_language): Allow returning "" - - * tests/rdfa11/0296.out: Add vocab triple and homepage one that - sparql ommits - - * tests/rdfa11/0259.out: Add test URI - - * tests/rdfa11/0258.out: FIx test URI - - * librdfa/rdfa.c: Simplify and fix languag handling - - * src/raptor_general.c, src/raptor_internal.h: Move git-version.h - include to just one module to speed up recompiles. - -2012-06-09 Dave Beckett - - * tests/rdfa11/Makefile.am: 0295 - - * tests/rdfa11/0295.out: - Test passes if >0 triples are generated - - * src/raptor_librdfa.c: - (raptor_librdfa_parse_start): Set initial line/column to unknown. - - * librdfa/rdfa.c: librdfa in raptor - pass back error line number - info to user - - (start_element): Update locator from SAX2 - - * tests/rdfa11/Makefile.am: 50 failures - - * tests/rdfa11/0189.out: Fix test URI - - * tests/rdfa11/0187.out: Fix output vocabs - - * tests/rdfa11/Makefile.am: 0304 note - - * src/raptor_internal.h: Redefine rdfa_update_uri_mappings to - internal symbol - - * tests/rdfa11/Makefile.am: 52 failures - - * tests/rdfa11/0301.out, tests/rdfa11/0302.out, - tests/rdfa11/0303.out: Use exact output triples including - usesVocabulary - - * tests/rdfa11/0258.out: 1 triple - - * tests/rdfa11/Makefile.am: 53 failures - - * tests/rdfa11/0272.out, tests/rdfa11/0273.out, - tests/rdfa11/0274.out, tests/rdfa11/0275.out, - tests/rdfa11/0276.out, tests/rdfa11/0277.out, - tests/rdfa11/0278.out, tests/rdfa11/0279.out, - tests/rdfa11/0280.out, tests/rdfa11/0281.out, - tests/rdfa11/0282.out, tests/rdfa11/0283.out, - tests/rdfa11/0284.out, tests/rdfa11/0285.out, - tests/rdfa11/0286.out, tests/rdfa11/0287.out: Fixed expected - output bnode subject to be test URI - - * tests/rdfa11/0188.out, tests/rdfa11/0189.out: Add usesVocabulary - triple which comes from @vocab - why!? - - * tests/rdfa11/0186.out: Add usesVocabulary triple which comes - from @vocab - why!? - - * src/Makefile.am: Add librdfa/namespace.c - - * librdfa/rdfa.c: Let rdfa_update_uri_mappings() handle RDFa - namespace starting. - - * librdfa/Makefile.am, librdfa/namespace.c: Add namespace.c - - * librdfa/rdfa.c: Handle @lang tag for raptor - - * tests/rdfa11/0180.out: Expect 1 triple - - * tests/rdfa11/0173.out: just 1 triple with a plain literal - - * tests/rdfa11/Makefile.am: 58 failures - - * librdfa/rdfa.c: - (start_element): Do not abort @prefix handling too early - - * tests/rdfa11/Makefile.am: - 0176 passes - - * tests/rdfa11/0176.out: Use exact expected output for quick cmp - - * tests/rdfa11/Makefile.am: Use cmp as a quicker test before doing - an rdfdiff - - * tests/rdfa11/0107.out, tests/rdfa11/0122.out, - tests/rdfa11/0140.out, tests/rdfa11/0180.out, - tests/rdfa11/0235.out, tests/rdfa11/0258.out: Add expect 0 triples - files - - * tests/rdfa11/0295.out: 0295 expected output - - * tests/rdfa11/Makefile.am: comments - - * configure.ac, tests/Makefile.am, tests/rdfa11/0001.out, - tests/rdfa11/0001.xml, tests/rdfa11/0006.out, - tests/rdfa11/0006.xml, tests/rdfa11/0007.out, - tests/rdfa11/0007.xml, tests/rdfa11/0008.out, - tests/rdfa11/0008.xml, tests/rdfa11/0009.out, - tests/rdfa11/0009.xml, tests/rdfa11/0010.out, - tests/rdfa11/0010.xml, tests/rdfa11/0012.out, - tests/rdfa11/0012.xml, tests/rdfa11/0013.out, - tests/rdfa11/0013.xml, tests/rdfa11/0014.out, - tests/rdfa11/0014.xml, tests/rdfa11/0015.out, - tests/rdfa11/0015.xml, tests/rdfa11/0017.out, - tests/rdfa11/0017.xml, tests/rdfa11/0018.out, - tests/rdfa11/0018.xml, tests/rdfa11/0019.out, - tests/rdfa11/0019.xml, tests/rdfa11/0020.out, - tests/rdfa11/0020.xml, tests/rdfa11/0021.out, - tests/rdfa11/0021.xml, tests/rdfa11/0023.out, - tests/rdfa11/0023.xml, tests/rdfa11/0025.out, - tests/rdfa11/0025.xml, tests/rdfa11/0026.out, - tests/rdfa11/0026.xml, tests/rdfa11/0027.out, - tests/rdfa11/0027.xml, tests/rdfa11/0029.out, - tests/rdfa11/0029.xml, tests/rdfa11/0030.out, - tests/rdfa11/0030.xml, tests/rdfa11/0031.out, - tests/rdfa11/0031.xml, tests/rdfa11/0032.out, - tests/rdfa11/0032.xml, tests/rdfa11/0033.out, - tests/rdfa11/0033.xml, tests/rdfa11/0034.out, - tests/rdfa11/0034.xml, tests/rdfa11/0035.out, - tests/rdfa11/0035.xml, tests/rdfa11/0036.out, - tests/rdfa11/0036.xml, tests/rdfa11/0037.out, - tests/rdfa11/0037.xml, tests/rdfa11/0038.out, - tests/rdfa11/0038.xml, tests/rdfa11/0039.out, - tests/rdfa11/0039.xml, tests/rdfa11/0041.out, - tests/rdfa11/0041.xml, tests/rdfa11/0048.out, - tests/rdfa11/0048.xml, tests/rdfa11/0049.out, - tests/rdfa11/0049.xml, tests/rdfa11/0050.out, - tests/rdfa11/0050.xml, tests/rdfa11/0051.out, - tests/rdfa11/0051.xml, tests/rdfa11/0052.out, - tests/rdfa11/0052.xml, tests/rdfa11/0053.out, - tests/rdfa11/0053.xml, tests/rdfa11/0054.out, - tests/rdfa11/0054.xml, tests/rdfa11/0055.out, - tests/rdfa11/0055.xml, tests/rdfa11/0056.out, - tests/rdfa11/0056.xml, tests/rdfa11/0057.out, - tests/rdfa11/0057.xml, tests/rdfa11/0059.out, - tests/rdfa11/0059.xml, tests/rdfa11/0060.out, - tests/rdfa11/0060.xml, tests/rdfa11/0061.out, - tests/rdfa11/0061.xml, tests/rdfa11/0062.out, - tests/rdfa11/0062.xml, tests/rdfa11/0063.out, - tests/rdfa11/0063.xml, tests/rdfa11/0064.out, - tests/rdfa11/0064.xml, tests/rdfa11/0065.out, - tests/rdfa11/0065.xml, tests/rdfa11/0066.out, - tests/rdfa11/0066.xml, tests/rdfa11/0067.out, - tests/rdfa11/0067.xml, tests/rdfa11/0068.out, - tests/rdfa11/0068.xml, tests/rdfa11/0069.out, - tests/rdfa11/0069.xml, tests/rdfa11/0070.out, - tests/rdfa11/0070.xml, tests/rdfa11/0071.out, - tests/rdfa11/0071.xml, tests/rdfa11/0072.out, - tests/rdfa11/0072.xml, tests/rdfa11/0073.out, - tests/rdfa11/0073.xml, tests/rdfa11/0074.out, - tests/rdfa11/0074.xml, tests/rdfa11/0075.out, - tests/rdfa11/0075.xml, tests/rdfa11/0076.out, - tests/rdfa11/0076.xml, tests/rdfa11/0077.out, - tests/rdfa11/0077.xml, tests/rdfa11/0079.out, - tests/rdfa11/0079.xml, tests/rdfa11/0080.out, - tests/rdfa11/0080.xml, tests/rdfa11/0083.out, - tests/rdfa11/0083.xml, tests/rdfa11/0084.out, - tests/rdfa11/0084.xml, tests/rdfa11/0085.out, - tests/rdfa11/0085.xml, tests/rdfa11/0087.out, - tests/rdfa11/0087.xml, tests/rdfa11/0088.out, - tests/rdfa11/0088.xml, tests/rdfa11/0089.out, - tests/rdfa11/0089.xml, tests/rdfa11/0091.out, - tests/rdfa11/0091.xml, tests/rdfa11/0093.out, - tests/rdfa11/0093.xml, tests/rdfa11/0099.out, - tests/rdfa11/0099.xml, tests/rdfa11/0104.out, - tests/rdfa11/0104.xml, tests/rdfa11/0106.out, - tests/rdfa11/0106.xml, tests/rdfa11/0107.xml, - tests/rdfa11/0108.out, tests/rdfa11/0108.xml, - tests/rdfa11/0109.out, tests/rdfa11/0109.xml, - tests/rdfa11/0110.out, tests/rdfa11/0110.xml, - tests/rdfa11/0111.out, tests/rdfa11/0111.xml, - tests/rdfa11/0112.out, tests/rdfa11/0112.xml, - tests/rdfa11/0113.out, tests/rdfa11/0113.xml, - tests/rdfa11/0114.out, tests/rdfa11/0114.xml, - tests/rdfa11/0115.out, tests/rdfa11/0115.xml, - tests/rdfa11/0117.out, tests/rdfa11/0117.xml, - tests/rdfa11/0118.out, tests/rdfa11/0118.xml, - tests/rdfa11/0119.out, tests/rdfa11/0119.xml, - tests/rdfa11/0120.out, tests/rdfa11/0120.xml, - tests/rdfa11/0121.out, tests/rdfa11/0121.xml, - tests/rdfa11/0122.xml, tests/rdfa11/0126.out, - tests/rdfa11/0126.xml, tests/rdfa11/0131.out, - tests/rdfa11/0131.xml, tests/rdfa11/0134.out, - tests/rdfa11/0134.xml, tests/rdfa11/0140.xml, - tests/rdfa11/0147.out, tests/rdfa11/0147.xml, - tests/rdfa11/0172.out, tests/rdfa11/0172.xml, - tests/rdfa11/0173.out, tests/rdfa11/0173.xml, - tests/rdfa11/0174.out, tests/rdfa11/0174.xml, - tests/rdfa11/0175.out, tests/rdfa11/0175.xml, - tests/rdfa11/0176.out, tests/rdfa11/0176.xml, - tests/rdfa11/0177.out, tests/rdfa11/0177.xml, - tests/rdfa11/0178.out, tests/rdfa11/0178.xml, - tests/rdfa11/0179.out, tests/rdfa11/0179.xml, - tests/rdfa11/0180.xml, tests/rdfa11/0181.out, - tests/rdfa11/0181.xml, tests/rdfa11/0182.out, - tests/rdfa11/0182.xml, tests/rdfa11/0183.out, - tests/rdfa11/0183.xml, tests/rdfa11/0186.out, - tests/rdfa11/0186.xml, tests/rdfa11/0187.out, - tests/rdfa11/0187.xml, tests/rdfa11/0188.out, - tests/rdfa11/0188.xml, tests/rdfa11/0189.out, - tests/rdfa11/0189.xml, tests/rdfa11/0190.out, - tests/rdfa11/0190.xml, tests/rdfa11/0196.out, - tests/rdfa11/0196.xml, tests/rdfa11/0197.out, - tests/rdfa11/0197.xml, tests/rdfa11/0198.out, - tests/rdfa11/0198.xml, tests/rdfa11/0201.out, - tests/rdfa11/0201.xml, tests/rdfa11/0202.out, - tests/rdfa11/0202.xml, tests/rdfa11/0203.out, - tests/rdfa11/0203.xml, tests/rdfa11/0206.out, - tests/rdfa11/0206.xml, tests/rdfa11/0207.out, - tests/rdfa11/0207.xml, tests/rdfa11/0213.out, - tests/rdfa11/0213.xml, tests/rdfa11/0214.out, - tests/rdfa11/0214.xml, tests/rdfa11/0216.out, - tests/rdfa11/0216.xml, tests/rdfa11/0217.out, - tests/rdfa11/0217.xml, tests/rdfa11/0218.out, - tests/rdfa11/0218.xml, tests/rdfa11/0219.out, - tests/rdfa11/0219.xml, tests/rdfa11/0220.out, - tests/rdfa11/0220.xml, tests/rdfa11/0221.out, - tests/rdfa11/0221.xml, tests/rdfa11/0222.out, - tests/rdfa11/0222.xml, tests/rdfa11/0223.out, - tests/rdfa11/0223.xml, tests/rdfa11/0224.out, - tests/rdfa11/0224.xml, tests/rdfa11/0225.out, - tests/rdfa11/0225.xml, tests/rdfa11/0226.out, - tests/rdfa11/0226.xml, tests/rdfa11/0227.out, - tests/rdfa11/0227.xml, tests/rdfa11/0228.out, - tests/rdfa11/0228.xml, tests/rdfa11/0229.out, - tests/rdfa11/0229.xml, tests/rdfa11/0230.out, - tests/rdfa11/0230.xml, tests/rdfa11/0231.out, - tests/rdfa11/0231.xml, tests/rdfa11/0232.out, - tests/rdfa11/0232.xml, tests/rdfa11/0233.out, - tests/rdfa11/0233.xml, tests/rdfa11/0234.out, - tests/rdfa11/0234.xml, tests/rdfa11/0235.xml, - tests/rdfa11/0236.out, tests/rdfa11/0236.xml, - tests/rdfa11/0237.out, tests/rdfa11/0237.xml, - tests/rdfa11/0238.out, tests/rdfa11/0238.xml, - tests/rdfa11/0239.out, tests/rdfa11/0239.xml, - tests/rdfa11/0246.out, tests/rdfa11/0246.xml, - tests/rdfa11/0247.out, tests/rdfa11/0247.xml, - tests/rdfa11/0248.out, tests/rdfa11/0248.xml, - tests/rdfa11/0249.out, tests/rdfa11/0249.xml, - tests/rdfa11/0250.out, tests/rdfa11/0250.xml, - tests/rdfa11/0251.out, tests/rdfa11/0251.xml, - tests/rdfa11/0252.out, tests/rdfa11/0252.xml, - tests/rdfa11/0253.out, tests/rdfa11/0253.xml, - tests/rdfa11/0254.out, tests/rdfa11/0254.xml, - tests/rdfa11/0255.out, tests/rdfa11/0255.xml, - tests/rdfa11/0256.out, tests/rdfa11/0256.xml, - tests/rdfa11/0257.out, tests/rdfa11/0257.xml, - tests/rdfa11/0258.xml, tests/rdfa11/0259.out, - tests/rdfa11/0259.xml, tests/rdfa11/0260.out, - tests/rdfa11/0260.xml, tests/rdfa11/0261.out, - tests/rdfa11/0261.xml, tests/rdfa11/0262.out, - tests/rdfa11/0262.xml, tests/rdfa11/0263.out, - tests/rdfa11/0263.xml, tests/rdfa11/0264.out, - tests/rdfa11/0264.xml, tests/rdfa11/0265.out, - tests/rdfa11/0265.xml, tests/rdfa11/0266.out, - tests/rdfa11/0266.xml, tests/rdfa11/0267.out, - tests/rdfa11/0267.xml, tests/rdfa11/0268.out, - tests/rdfa11/0268.xml, tests/rdfa11/0269.out, - tests/rdfa11/0269.xml, tests/rdfa11/0271.out, - tests/rdfa11/0271.xml, tests/rdfa11/0272.out, - tests/rdfa11/0272.xml, tests/rdfa11/0273.out, - tests/rdfa11/0273.xml, tests/rdfa11/0274.out, - tests/rdfa11/0274.xml, tests/rdfa11/0275.out, - tests/rdfa11/0275.xml, tests/rdfa11/0276.out, - tests/rdfa11/0276.xml, tests/rdfa11/0277.out, - tests/rdfa11/0277.xml, tests/rdfa11/0278.out, - tests/rdfa11/0278.xml, tests/rdfa11/0279.out, - tests/rdfa11/0279.xml, tests/rdfa11/0280.out, - tests/rdfa11/0280.xml, tests/rdfa11/0281.out, - tests/rdfa11/0281.xml, tests/rdfa11/0282.out, - tests/rdfa11/0282.xml, tests/rdfa11/0283.out, - tests/rdfa11/0283.xml, tests/rdfa11/0284.out, - tests/rdfa11/0284.xml, tests/rdfa11/0285.out, - tests/rdfa11/0285.xml, tests/rdfa11/0286.out, - tests/rdfa11/0286.xml, tests/rdfa11/0287.out, - tests/rdfa11/0287.xml, tests/rdfa11/0289.out, - tests/rdfa11/0289.xml, tests/rdfa11/0290.out, - tests/rdfa11/0290.xml, tests/rdfa11/0291.out, - tests/rdfa11/0291.xml, tests/rdfa11/0292.out, - tests/rdfa11/0292.xml, tests/rdfa11/0293.out, - tests/rdfa11/0293.xml, tests/rdfa11/0295.xml, - tests/rdfa11/0296.out, tests/rdfa11/0296.xml, - tests/rdfa11/0297.out, tests/rdfa11/0297.xml, - tests/rdfa11/0298.out, tests/rdfa11/0298.xml, - tests/rdfa11/0299.out, tests/rdfa11/0299.xml, - tests/rdfa11/0300.out, tests/rdfa11/0300.xml, - tests/rdfa11/0301.out, tests/rdfa11/0301.xml, - tests/rdfa11/0302.out, tests/rdfa11/0302.xml, - tests/rdfa11/0303.out, tests/rdfa11/0303.xml, - tests/rdfa11/0304.out, tests/rdfa11/0304.xml, - tests/rdfa11/Makefile.am: Add RDFa 1.1 tests and expected failures - - * librdfa/rdfa.c: Crash fix for @prefix - - (start_element): Do not crash if strtok_r returns NULL during walk - through @prefix. Instead, abort attribute prefix search This - makes RDFA 1.0 test 0209 work for me - - * src/raptor_librdfa.c: Default for parser 'rdfa' is whatever - librdfa does by default - - * librdfa/lists.c: Removed assignment of never-read 'triple' - variable [clang] - - * src/turtle_lexer.l: Make failure to convert Turtle qname log as - level error not fatal - -2012-06-08 Dave Beckett - - * Makefile.am: Restore README and NEWS building for building from - GIT - - * RELEASE.html: 2.0.8 - - * ChangeLog, ChangeLog.12, Makefile.am: - Added ChangeLog.12 for 2011 - - * docs/tmpl/section-uri.sgml: Updated uri tmpl - - * src/snprintf.c: Prototypes for test functions to remove GCC - format warnings - - * src/Makefile.am, src/snprintf.c: Add snprintf module simple unit - tests - - * configure.ac: Set CPPFLAGS temporarily before libxml and libxslt - tests - - * configure.ac: Make stripping -O flags (for maintainer) work - unless --enable-release - - * configure.ac: --enable-debug no longer adds -g to CFLAGS - -2012-06-07 Dave Beckett - - * src/turtle_lexer.l, src/turtle_parser.y: Remove fatal errors - when a Turtle qname cannot be found - - (turtle_lexer_error): Renamed from turtle_lexer_fatal_error and - takes a log level and now is in varargs format. - - {QNAME}: Call turtle_lexer_error with a regular error log level - and provide user level information on the qname that failed. - Updated other calls to turtle_lexer_fatal error. - - (turtle_syntax_error): Call raptor_parser_log_error_varargs(). - Fixes Issue#0000507 - http://bugs.librdf.org/mantis/view.php?id=507 - - * src/raptor_grddl.c, src/raptor_internal.h, src/raptor_parse.c: - Pass in log level to parser error helper - - (raptor_parser_log_error_varargs): Renamed from - raptor_parser_error_varargs and pass on log level to - raptor_log_error_varargs - - * librdfa/Makefile.am, librdfa/config.h: Add librdfa config.h to - dist - - * src/raptor_term.c: - (raptor_new_term_from_literal): Bad cast for language len - truncation. - - * utils/Makefile.am: - Improve building of rdfdiff - - Declare rdfdiff as noinst_PROGRAMS instead of EXTRA_PROGRAMS, so - that it's always built (but not installed) - - There is no need to mention rdfdiff in CLEANFILES, as Automake - already knows to clean it - - * tests/grddl/Makefile.am, tests/json/Makefile.am, - tests/ntriples/Makefile.am, tests/rdfa/Makefile.am, - tests/rdfxml/Makefile.am, tests/trig/Makefile.am, - tests/turtle/Makefile.am: - Fixes for out of tree testing - - Place the path to rapper in a variable RAPPER that can be - overridden by the user and ensure all instances have a $(EXEEXT) - suffix. - - Use $(RAPPER) instead of the path to same in target bodies. - - Place the path to rdfdiff in a variable RDFDIFF that can be - overridden by the user. - - Use $(RDFDIFF) instead of the path to same in target bodies - - * tests/feeds/Makefile.am: Fixes for feeds testing for out of tree - builds and portability - - Do not use a variable containing a list of filenames both in a - target's dependencies and in the target body, at least outside of - maintainer mode. Make on Solaris 8 has a funny idea of how to - implement VPATH; it modifies the value of the variable by - prefixing the srcdir path to each filename therein, and this - breaks our rule code. - - Remove the use of $? as this is not well-supported outside of GNU - Make and the semantics of it are not needed or wanted. - - Adjust check-validate-atom target to look for input fields in - either builddir or srcdir since some are generated and some are - source. - - * tests/feeds/Makefile.am: TRANG in a variable and add docs ptr - - * src/Makefile.am: - Fixes for out of tree builds of library - - Declare the turtle lex/yacc sources as BUILT_SOURCES, to take - advantage of Automake semantics for these. - - Remove LEX and YACC variables, as these are already handled - automagically. - - Replaced all instances of $(srcdir)/.. with $(top_srcdir) - - Added some guard logic to the turtle_lexer.c rule so that it - doesn't erroneously generate the target file. - - Added dummy turtle_lexer.h and turtle_parser.h rules to satisfy - dependencies - - Fixed a typo in the raptor_parse_test rule - - * docs/Makefile.am: - Fixes for out of tree builds of docs - - Removed $(builddir)/ from target files since that is where they - already are. - - raptor2.h is a file generated by config.status, so it always lives - in $(builddir), not $(srcdir) - - Replaced all instances of $(srcdir)/.. with $(top_srcdir) - - Added "dist-hook-local: docs" so that the docs are generated - during a "make dist" if they haven't been generated already - (otherwise "make dist" fails when they can't be found) - - * configure.ac: Quote testing $use_memory_signing - - * configure.ac: - Make all AC_ARG_WITH(blah) options handle --without-blah correctly - - Now these forms can be used - --with-foo - enable feature - --without-foo - disable feature - --with-foo=blah - enable and give a value - --with-foo= - (default action) enable and search for value - (not given) - (default action) enable and search for value - for --with-xml2-config, --with-xslt-config, --with-curl-config, - --with-icu-config and --with-libwww-config where 'no' can be used - to disable it and prevent automatic searches for the config script - in the PATH. - - * configure.ac: - Fix some configure portability issues - - Fixed a typo in the STRCASECMP conditional - - Set CPPFLAGS whether or not the check for xsltSaveResultToString - succeeds, because AC_CHECK_HEADERS() depends on this and the - result of the header check should not depend on the result of the - lib check. - - Put -DRAPTOR_DEBUG and -DMAINTAINER_MODE into the config header - instead of CPPFLAGS. This prevents the flags from potentially - being passed to "make distcheck" builds, where they can cause - trouble (e.g. absence of git-version.h header) - - Removed -g from maintainer CPPFLAGS since it does not belong there - and add to CFLAGS when --enable-debug is given. - - * Makefile.am: - Fix README and NEWS building - only for maintainer - - Generate NEWS in $(srcdir) as automake won't look for it in - $(builddir) - - Remove not needed dist-hook target since README and NEWS are - copied in by the standard 'make dist' mechanism. - - * autogen.sh: Support NOCONFIGURE variable, like Lib{XML2,XSLT} - -2012-06-06 Dave Beckett - - * src/snprintf.c: Portability improvements to vsnprintf code and - macros - - (vsnprintf_check_is_c99): Initialize len to -1 when the variable - is declared instead of in the macro to remove redundancy. - - (vsnprintf_is_c99): Check that len < size before looking at - tmp_buffer[len] otherwise we may be looking past the buffer size. - - (macro VSNPRINTF_NOT_C99_BLOCK): free tmp_buffer when breaking out - of the while(1) loop. set len to a non-negative value in the - buffer != NULL case (raptor_vsnprintf2): Initialize len to -1 here - instead of in the VSNPRINTF_NOT_C99_BLOCK() macro. Return -1 if - format is NULL. - - (raptor_vasprintf): Copy var args to re-use them when calling - raptor_vsnprintf2() - - * configure.ac: Make configure vsnprintf() check more - comprehensive - - - Test program also needs and (now) - - Declare is_c99() function as static to avoid "no previous - declaration" warning from GCC's -Wmissing-declarations - - Improved test to invoke vsnprintf(NULL, 0, ...) because on Solaris - 8, the function returns -1 in this case but works normally otherwise - - Declare main(void) instead of main(int argc, char* argv) to avoid - "unused parameter" warnings - - Make test program return 0 if the test is successful, - as otherwise a false-positive result is possible (note that - AC_TRY_RUN() interprets failure to compile/link the program, etc. - the same as a non-zero program exit status) - - Make the test program return an exit status indicative of the - failure mode: 1 = non-NULL case fails, 10 = NULL case fails, 11 - = both fail - - Use proper m4 quoting in modified code - - * src/turtle_common.h: struct raptor_turtle_parser_s: trig field - is now int (compiler bugs) - - * src/parsedate.y: - Include raptor headers here for CAST macros - -2012-05-23 Dave Beckett - - * librdfa/rdfa.c: - (start_element): Start a raptor namespace for RDFa 1.1 @prefix - -2012-05-23 Lauri Aalto - - * src/snprintf.c: - (raptor_vsnprintf2): Fix uninitialized variable problems in non-c99 - variant. Thanks to John Emmas for reporting. - - - Compute len internally using int, not size_t as standard - vsnprintf() returns ints anyway. This fixes for negative value - comparison. Cast from size_t to int required for strlen() return - value. - - Initialize len earlier - - Use passed in size if a buffer is given - -2012-05-22 Dave Beckett - - * configure.ac: Use #ifdef in parsedate code fragment - -2012-05-21 Dave Beckett - - * src/win32_raptor_config.h.in: win32 config - RAPTOR_VERSION_DECIMAL renamed from RAPTOR_VERSION - - * src/turtle_parser.y: - (main): Store fread result in a size_t - - * utils/rdfdiff.c: Fixed reference leak of blank->owner - - * utils/rdfdiff.c: Add raptor internal macros when building - without RAPTOR_INTERNAL - - * utils/rapper.c, utils/rdfdiff.c: Need on Windows for - _access() - - * src/turtle_lexer.l: Removed const qualifier from - turtle_lexer_oom_text[] - - Fixes warning when passed as a non-const function argument - - * src/turtle_parser.y: - (turtle_parse): Added casts to quell type-compatibility warnings - - * src/strcasecmp.c: Removed needless #include and main() - prototype - - (assert_strcasecmp): Test raptor_strcasecmp(), not - whatever strcasecmp() resolves to - - * src/raptor_xml.c: Changed quote to a char for better type - compatibility - - * src/raptor_uri.c: - URI test build fixes - - Removed redundant WIN32_URI_TEST construct - - Added STANDALONE cpp conditional around library functions - - * src/raptor_term.c: - (raptor_new_term_from_literal): size_t and char casts. - - * src/raptor_serialize_rss.c: Fix reference leaks for rss tag soup - parser. - - (raptor_rss10_emit_rdfxml_item_triples): Don't make a copy of - base_uri to pass to raptor_serializer_start_to_iostream(), because - this function already makes its own copy - - (raptor_rss10_ensure_atom_feed_valid): Use time() instead of - gettimeofday() with struct timeval when HAVE_GETTIMEOFDAY is not - defined. - - (raptor_rss10_emit_item): Moved the "atom:summary" short-circuit - up to prevent a potential memory leak ("predicate") - - (raptor_rss10_serialize_end): Don't leak entry_uri - - * src/raptor_rdfxml.c: Fixed some rdfxml parser memory leaks / - double frees - - (raptor_rdfxml_start_element_grammar): Fixed a memory leak - - (raptor_rdfxml_end_element_grammar): Fixed a double-free() by - setting a pointer to NULL - - * src/raptor_rdfxml.c: Broaden range of RDF/XML entity recognizing - heuristic - - (raptor_rdfxml_parse_recognise_syntax): Removed angle brackets - from the HAS_RDF_ENTITY* strings to allow recognition of documents - produced by Stanford's Protege software (and possibly others) - - * src/raptor_rdfxml.c: - (raptor_rdfxml_parse_terminate): Fixed leaks when freeing - rdf_xml_parser - - * src/raptor_log.c: Guard against a buffer underrun - - * src/raptor_iostream.c: Change raptor_iostream offset type to - size_t - - (raptor_iostream_tell): Cast it (BAD) to "unsigned long" here. - FIXME: Needs a new iostream API method that returns the full - offset as a size_t - - * src/raptor_internal.h: Quell cpp warnings for undefined symbols - - * src/raptor_general.c: Use RAPTOR_VERSION_STRING for - raptor_version_string - - * src/parsedate.y: Quell cpp warnings for undefined symbols - - (LookupWord): Use a cast to assign a size_t to an int - -2012-05-17 Dave Beckett - - * tests/rdfa/0304.out, tests/rdfa/0304.xml, - tests/rdfa/Makefile.am: Add approved test 0304 (SVG) - failing - - * tests/rdfa/Makefile.am: 0294.xml now passes - - * librdfa/curie.c: Do not match the 'xml' prefix in raptor - - * tests/rdfa/Makefile.am: Remove unused unapproved test framework - - * utils/rapper.1: typo - -2012-05-16 Dave Beckett - - * librdfa/config.h, librdfa/context.c, librdfa/curie.c, - librdfa/iri.c, librdfa/language.c, librdfa/lists.c, - librdfa/rdfa.c, librdfa/rdfa.h, librdfa/rdfa_utils.c, - librdfa/rdfa_utils.h, librdfa/strtok_r.c, librdfa/strtok_r.h, - librdfa/subject.c, librdfa/triple.c, src/Makefile.am, - src/raptor_internal.h, src/raptor_librdfa.c, - tests/rdfa/Makefile.am: Update librdfa in raptor to latest GIT and - make it work for RDFa 1.0 - - Add RDFa parser version aliases rdfa10, rdfa11 and default to 1.1 - - Existing RDFa 1.0 tests pass ONLY IF RDFa 1.0 is forced with -i rdfa10 - - * tests/ntriples/bug-481.out: Add surrogate chars to bug 481 - output - - * tests/turtle/Makefile.am, tests/turtle/bad-15.ttl, - tests/turtle/bad-16.ttl: Add (currently) bad turtle forms of bnode - subjects - - * tests/turtle/Makefile.am, tests/turtle/test-38.out, - tests/turtle/test-38.ttl: Turtle test 38 for reading/writing - UTF-16 surrogates - - Test for Issue #0000505 - http://bugs.librdf.org/mantis/view.php?id=505 - - * src/turtle_lexer.l: Do not report double errors for Turtle - string decoding problems. - - * src/ntriples_parse.c, src/raptor_nfc_test.c, src/turtle_common.c: - Handle errors from raptor_unicode_utf8_string_put_char - - (raptor_stringbuffer_append_turtle_string) - (raptor_string_python_write, raptor_ntriples_term): Store result - in int and only use it if positive. - - Part of fix for Issue #0000505 - http://bugs.librdf.org/mantis/view.php?id=505 - - * src/raptor_unicode.c: - Allow reading/writing U+D800 to U+DFFF (UTF-16 surrogates) - - (raptor_unicode_utf8_string_put_char) - (raptor_unicode_utf8_string_get_char): Should be ok to pass - through. Leaving the BOMs as forbidden - definitely not UTF-8 - - Part of fix for Issue #0000505 - http://bugs.librdf.org/mantis/view.php?id=505 - - * tests/rdfa/0001.out, tests/rdfa/0001.xhtml, tests/rdfa/0001.xml, - tests/rdfa/0006.out, tests/rdfa/0006.xhtml, tests/rdfa/0006.xml, - tests/rdfa/0007.out, tests/rdfa/0007.xhtml, tests/rdfa/0007.xml, - tests/rdfa/0008.out, tests/rdfa/0008.xhtml, tests/rdfa/0008.xml, - tests/rdfa/0009.xhtml, tests/rdfa/0009.xml, tests/rdfa/0010.xhtml, - tests/rdfa/0010.xml, tests/rdfa/0011.out, tests/rdfa/0011.xhtml, - tests/rdfa/0012.xhtml, tests/rdfa/0012.xml, tests/rdfa/0013.xhtml, - tests/rdfa/0013.xml, tests/rdfa/0014.xhtml, tests/rdfa/0014.xml, - tests/rdfa/0015.out, tests/rdfa/0015.xhtml, tests/rdfa/0015.xml, - tests/rdfa/0017.xhtml, tests/rdfa/0017.xml, tests/rdfa/0018.out, - tests/rdfa/0018.xhtml, tests/rdfa/0018.xml, tests/rdfa/0019.xhtml, - tests/rdfa/0019.xml, tests/rdfa/0020.out, tests/rdfa/0020.xhtml, - tests/rdfa/0020.xml, tests/rdfa/0021.out, tests/rdfa/0021.xhtml, - tests/rdfa/0021.xml, tests/rdfa/0023.out, tests/rdfa/0023.xhtml, - tests/rdfa/0023.xml, tests/rdfa/0025.out, tests/rdfa/0025.xhtml, - tests/rdfa/0025.xml, tests/rdfa/0026.xhtml, tests/rdfa/0026.xml, - tests/rdfa/0027.xhtml, tests/rdfa/0027.xml, tests/rdfa/0029.xhtml, - tests/rdfa/0029.xml, tests/rdfa/0030.out, tests/rdfa/0030.xhtml, - tests/rdfa/0030.xml, tests/rdfa/0031.out, tests/rdfa/0031.xhtml, - tests/rdfa/0031.xml, tests/rdfa/0032.out, tests/rdfa/0032.xhtml, - tests/rdfa/0032.xml, tests/rdfa/0033.out, tests/rdfa/0033.xhtml, - tests/rdfa/0033.xml, tests/rdfa/0034.xhtml, tests/rdfa/0034.xml, - tests/rdfa/0035.xhtml, tests/rdfa/0035.xml, tests/rdfa/0036.xhtml, - tests/rdfa/0036.xml, tests/rdfa/0037.xhtml, tests/rdfa/0037.xml, - tests/rdfa/0038.xhtml, tests/rdfa/0038.xml, tests/rdfa/0039.xhtml, - tests/rdfa/0039.xml, tests/rdfa/0040.xhtml, tests/rdfa/0040.xml, - tests/rdfa/0041.xhtml, tests/rdfa/0041.xml, tests/rdfa/0042.xhtml, - tests/rdfa/0042.xml, tests/rdfa/0046.xhtml, tests/rdfa/0046.xml, - tests/rdfa/0047.xhtml, tests/rdfa/0047.xml, tests/rdfa/0048.xhtml, - tests/rdfa/0048.xml, tests/rdfa/0049.xhtml, tests/rdfa/0049.xml, - tests/rdfa/0050.xhtml, tests/rdfa/0050.xml, tests/rdfa/0051.out, - tests/rdfa/0051.xhtml, tests/rdfa/0051.xml, tests/rdfa/0052.xhtml, - tests/rdfa/0052.xml, tests/rdfa/0053.xhtml, tests/rdfa/0053.xml, - tests/rdfa/0054.out, tests/rdfa/0054.xhtml, tests/rdfa/0054.xml, - tests/rdfa/0055.out, tests/rdfa/0055.xhtml, tests/rdfa/0055.xml, - tests/rdfa/0056.xhtml, tests/rdfa/0056.xml, tests/rdfa/0057.xhtml, - tests/rdfa/0057.xml, tests/rdfa/0058.xhtml, tests/rdfa/0058.xml, - tests/rdfa/0059.out, tests/rdfa/0059.xhtml, tests/rdfa/0059.xml, - tests/rdfa/0060.xhtml, tests/rdfa/0060.xml, tests/rdfa/0061.out, - tests/rdfa/0061.xhtml, tests/rdfa/0061.xml, tests/rdfa/0062.out, - tests/rdfa/0062.xhtml, tests/rdfa/0062.xml, tests/rdfa/0063.out, - tests/rdfa/0063.xhtml, tests/rdfa/0063.xml, tests/rdfa/0064.out, - tests/rdfa/0064.xhtml, tests/rdfa/0064.xml, tests/rdfa/0065.out, - tests/rdfa/0065.xhtml, tests/rdfa/0065.xml, tests/rdfa/0066.out, - tests/rdfa/0066.xhtml, tests/rdfa/0066.xml, tests/rdfa/0067.out, - tests/rdfa/0067.xhtml, tests/rdfa/0067.xml, tests/rdfa/0068.out, - tests/rdfa/0068.xhtml, tests/rdfa/0068.xml, tests/rdfa/0069.out, - tests/rdfa/0069.xhtml, tests/rdfa/0069.xml, tests/rdfa/0070.out, - tests/rdfa/0070.xhtml, tests/rdfa/0070.xml, tests/rdfa/0071.out, - tests/rdfa/0071.xhtml, tests/rdfa/0071.xml, tests/rdfa/0072.xhtml, - tests/rdfa/0072.xml, tests/rdfa/0073.xhtml, tests/rdfa/0073.xml, - tests/rdfa/0074.xhtml, tests/rdfa/0074.xml, tests/rdfa/0075.xhtml, - tests/rdfa/0075.xml, tests/rdfa/0076.out, tests/rdfa/0076.xhtml, - tests/rdfa/0076.xml, tests/rdfa/0077.out, tests/rdfa/0077.xhtml, - tests/rdfa/0077.xml, tests/rdfa/0078.out, tests/rdfa/0078.xhtml, - tests/rdfa/0078.xml, tests/rdfa/0079.xhtml, tests/rdfa/0079.xml, - tests/rdfa/0080.xhtml, tests/rdfa/0080.xml, tests/rdfa/0081.xhtml, - tests/rdfa/0081.xml, tests/rdfa/0082.xhtml, tests/rdfa/0082.xml, - tests/rdfa/0083.xhtml, tests/rdfa/0083.xml, tests/rdfa/0084.xhtml, - tests/rdfa/0084.xml, tests/rdfa/0085.xhtml, tests/rdfa/0085.xml, - tests/rdfa/0086.out, tests/rdfa/0086.xhtml, tests/rdfa/0087.out, - tests/rdfa/0087.xhtml, tests/rdfa/0087.xml, tests/rdfa/0088.xhtml, - tests/rdfa/0088.xml, tests/rdfa/0089.xhtml, tests/rdfa/0089.xml, - tests/rdfa/0090.xhtml, tests/rdfa/0090.xml, tests/rdfa/0091.out, - tests/rdfa/0091.xhtml, tests/rdfa/0091.xml, tests/rdfa/0092.out, - tests/rdfa/0092.xhtml, tests/rdfa/0093.out, tests/rdfa/0093.xhtml, - tests/rdfa/0093.xml, tests/rdfa/0094.out, tests/rdfa/0094.xhtml, - tests/rdfa/0099.xhtml, tests/rdfa/0099.xml, tests/rdfa/0100.out, - tests/rdfa/0100.xhtml, tests/rdfa/0101.out, tests/rdfa/0101.xhtml, - tests/rdfa/0102.out, tests/rdfa/0102.xhtml, tests/rdfa/0103.out, - tests/rdfa/0103.xhtml, tests/rdfa/0104.out, tests/rdfa/0104.xhtml, - tests/rdfa/0104.xml, tests/rdfa/0105.out, tests/rdfa/0105.xhtml, - tests/rdfa/0106.out, tests/rdfa/0106.xhtml, tests/rdfa/0106.xml, - tests/rdfa/0107.xhtml, tests/rdfa/0107.xml, tests/rdfa/0108.xhtml, - tests/rdfa/0108.xml, tests/rdfa/0109.out, tests/rdfa/0109.xhtml, - tests/rdfa/0109.xml, tests/rdfa/0110.out, tests/rdfa/0110.xhtml, - tests/rdfa/0110.xml, tests/rdfa/0111.out, tests/rdfa/0111.xhtml, - tests/rdfa/0111.xml, tests/rdfa/0112.xhtml, tests/rdfa/0112.xml, - tests/rdfa/0113.out, tests/rdfa/0113.xml, tests/rdfa/0114.out, - tests/rdfa/0114.xml, tests/rdfa/0115.out, tests/rdfa/0115.xml, - tests/rdfa/0117.out, tests/rdfa/0117.xml, tests/rdfa/0118.out, - tests/rdfa/0118.xml, tests/rdfa/0119.out, tests/rdfa/0119.xml, - tests/rdfa/0120.out, tests/rdfa/0120.xml, tests/rdfa/0121.out, - tests/rdfa/0121.xml, tests/rdfa/0122.out, tests/rdfa/0122.xml, - tests/rdfa/0126.out, tests/rdfa/0126.xml, tests/rdfa/0131.out, - tests/rdfa/0131.xml, tests/rdfa/0134.out, tests/rdfa/0134.xml, - tests/rdfa/0140.out, tests/rdfa/0140.xml, tests/rdfa/0147.out, - tests/rdfa/0147.xml, tests/rdfa/0172.out, tests/rdfa/0172.xhtml, - tests/rdfa/0172.xml, tests/rdfa/0173.out, tests/rdfa/0173.xhtml, - tests/rdfa/0173.xml, tests/rdfa/0174.out, tests/rdfa/0174.xhtml, - tests/rdfa/0174.xml, tests/rdfa/0181.out, tests/rdfa/0181.xml, - tests/rdfa/0197.out, tests/rdfa/0197.xml, tests/rdfa/0201.out, - tests/rdfa/0201.xml, tests/rdfa/0202.out, tests/rdfa/0202.xml, - tests/rdfa/0203.out, tests/rdfa/0203.xml, tests/rdfa/0207.out, - tests/rdfa/0207.xml, tests/rdfa/0209.out, tests/rdfa/0209.xml, - tests/rdfa/0210.out, tests/rdfa/0210.xml, tests/rdfa/0211.out, - tests/rdfa/0211.xml, tests/rdfa/0212.out, tests/rdfa/0212.xml, - tests/rdfa/0215.out, tests/rdfa/0215.xml, tests/rdfa/0258.out, - tests/rdfa/0258.xml, tests/rdfa/0262.out, tests/rdfa/0262.xml, - tests/rdfa/0291.out, tests/rdfa/0291.xml, tests/rdfa/0292.out, - tests/rdfa/0292.xml, tests/rdfa/0294.out, tests/rdfa/0294.xml, - tests/rdfa/1001.out, tests/rdfa/1001.xhtml, tests/rdfa/Makefile.am: - Update RDFa 1.0 tests - - Rename test files to .xml so expected result urls are correct - - Just approved tests - - Turned sparql queries into expected triple output - - Hand edited all negative tests to expect 0 triples - - Removed duplicate xmlns from generated xml - - 0201.xml 0202.xml 0203.xml are SVG not XHTML; altered expected - output triples - - * librdfa/curie.c: - (rdfa_resolve_uri): Pulled from newer RDFA git - - * librdfa/rdfa.c: - (rdfa_init_base): Calculate buffer expansion correctly - - Pulled from newer RDFA git - - * tests/rdfa/Makefile.am: check-rdfa: Allow rapper result - warning (status 2) as success - - * src/raptor_librdfa.c: Do not generate blank node predicate RDFa - triples - - (raptor_librdfa_generate_statement): Return warning instead of - generating blank node predicate RDFa triples. Maybe should be - silent? - - * configure.ac: Add strtok_r check for upcoming librdfa RDFA 1.1 - -2012-05-15 Dave Beckett - - * src/raptor_qname.c: doc - -2012-05-14 Dave Beckett - - * src/raptor_libxml.c: - (raptor_libxml_resolveEntity): Init entity_input [clang] - -2012-04-13 Dave Beckett - - * src/raptor_www_curl.c: - (raptor_www_curl_header_callback): Do not send CRNL to URI - constructor. - - * src/raptor_www_curl.c: Interpret Content-Location header as - absolute or relative URI - - (raptor_www_curl_header_callback): Use - raptor_new_uri_relative_to_base_counted to construct URI relative - to current base. - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt, - src/raptor2.h.in, src/raptor_uri.c: - (raptor_new_uri_relative_to_base_counted): Added - -2012-03-30 Dave Beckett - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt, - docs/tmpl/section-triples.sgml, docs/tmpl/section-uri.sgml: Update - api docs for turtle write fns - - * Merge pull request #3 from Anchakor/node_rw_turtle_string - turtle uri and term writing/tostring functions - -2012-03-29 Jiří Procházka - - * src/raptor2.h.in, src/raptor_serialize_turtle.c: - (raptor_uri_to_turtle_counted_string, - raptor_term_to_turtle_counted_string): add counted string - versions. style and docs changes - - * Merge remote-tracking branch 'dajobe/master' into - node_rw_turtle_string - -2012-03-23 Dave Beckett - - * docs/raptor2-sections.txt, docs/tmpl/section-www.sgml: Add - raptor_www_set_ssl_verify_option to docs - missing 's' in sections - - * RELEASE.html: - RAPTOR_OPTION_LOAD_EXTERNAL_ENTITIES words - -2012-03-22 Dave Beckett - - * NEWS.html, RELEASE.html, configure.ac: - Bumped version to 2.0.8 - - * Snapshotted raptor2_2_0_7 for 2.0.7 release (GIT - a676f235309a59d4aa78eeffd2574ae5d341fcb0) - -2012-01-29 Dave Beckett - - * librdfa/rdfa.c, src/raptor2.h.in, src/raptor_libxml.c, - src/raptor_option.c, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_turtle_writer.c: CVE-2012-0037 - - Enforce entity loading policy in raptor_libxml_resolveEntity and - raptor_libxml_getEntity by checking for file URIs and network - URIs. - - Add RAPTOR_OPTION_LOAD_EXTERNAL_ENTITIES / loadExternalEntities - for turning on loading of XML external entity loading, disabled by - default. - - This affects all the parsers that use SAX2: rdfxml, rdfa, - rss-tag-soup (and aliases). - -2012-03-15 Dave Beckett - - * librdfa/rdfa.c: Pass on options NO_NET and NO_FILE to RDFA SAX2 - object - -2012-03-11 Dave Beckett - - * src/raptor_general.c: - (raptor_world_default_generate_bnodeid_handler): size_t for - id_length. - - * src/snprintf.c: - (raptor_format_integer): cast for comparing width to len - - * INSTALL.html, configure.ac, src/Makefile.am, - src/raptor_internal.h, src/raptor_nfc.c, src/raptor_nfc.h, - src/raptor_nfc_data.c, src/raptor_nfc_icu.c, src/raptor_rdfxml.c, - src/raptor_unicode.c: Use ICU to check for Unicode NFC - - This commit removes the built-in Raptor code for checking that - RDF/XML literals in Unicode NFC. This is now provided by the ICU - library which is only linked in if configure is given the - --with-icu-config=PATH argument. - - Advantages: - 1. Removes a large compiled-in static dataset in the library and - makes raptor smaller. - 2. Uses a library that is kept up to date for new Unicode - versions. - 3. Should make RDF/XML parsing faster since it does not need to - check for NFC on every literal. - - Disadvantages: - 1. Removes an existing (but likely rarely used) feature - - * src/raptor_nfc_test.c: - Run all tests, fix file decoding - - * src/raptor_nfc_test.c: size_t - -2012-02-20 Dave Beckett - - * src/raptor_internal.h, src/snprintf.c: - (raptor_format_integer): Return size_t for this internal function. - -2012-02-17 Dave Beckett - - * docs/tmpl/section-option.sgml, docs/tmpl/section-sax2.sgml, - docs/tmpl/section-uri.sgml: Update tmpls - -2012-02-13 Lauri Aalto - - * autogen.sh: - require automake 1.11.2+ for -Wextra-portability - -2012-02-08 Dave Beckett - - * build/.gitignore, configure.ac: Add automake option - -Wextra-portability and AM_PROG_AR to make it happy - -2012-02-04 Dave Beckett - - * utils/rapper.c: - Put raptor_option_get_count() out of the loops - - * src/raptor_parse.c: - (raptor_new_parser): Set default strictness - - * docs/raptor2-sections.txt: docs - - * ChangeLog, RELEASE.html: 2.0.7 - - * src/raptor_option.c, src/raptor_parse.c, src/raptor_serialize.c, - src/raptor_xml_writer.c: - (raptor_object_options_init): Move default option settings here - - * RELEASE.html, docs/raptor-1-to-2-map.tsv, src/raptor2.h.in, - src/raptor_internal.h, src/raptor_option.c, src/raptor_parse.c, - src/raptor_turtle_writer.c, src/raptor_www.c, - src/raptor_www_curl.c: Add options for controlling SSL certificate - verifying - - Add options RAPTOR_OPTION_WWW_SSL_VERIFY_PEER for controlling - verifying an SSL peer. Takes an integer value: non-0 to verify - peer SSL certificate (default 1) - - Add option RAPTOR_OPTION_WWW_SSL_VERIFY_HOST for controlling - verifying an SSL host. Takes an integer value: 0 none, 1 CN - match, 2 host match (default). Other values are ignored. - - (raptor_www_set_ssl_verify_options): Added to set the verify - options on the raptor_www object. - - Fixes Issue #0000469 - http://bugs.librdf.org/mantis/view.php?id=469 - - * INSTALL.html, LICENSE.html, NEWS.html, README.html, - RELEASE.html, TODO.html, UPGRADING.html: 2011 - - * configure.ac: tidy xml parser message - - * configure.ac, src/Makefile.am, src/raptor_expat.c, - src/raptor_internal.h, src/raptor_rdfxml.c, src/raptor_sax2.c: - Remove expat support - - Update configure to properly let you build raptor without any XML - support either - it only needs it if a parser that requires XML is - configured. - -2012-02-01 Dave Beckett - - * src/raptor_sax2.c: - (raptor_sax2_check_load_uri_string): Failure returned - - * src/raptor_uri.c: casts - - * src/raptor_uri.c: - (raptor_new_uri_from_uri_or_file_string): Never free - uri_or_file_string - - * src/raptor_uri.c: Make raptor_new_uri_from_uri_or_file_string - check for files first. - - (raptor_new_uri_from_uri_or_file_string): If the arg is a file - that exists, use that as the path. - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt, - src/raptor2.h.in, src/raptor_uri.c: - (raptor_uri_filename_exists): Added - -2012-02-01 Lauri Aalto - - * src/raptor_sax2.c: - (raptor_sax2_parse_chunk): Return parse errors to caller. - - Fixes part of Issue #0000488 - http://bugs.librdf.org/mantis/view.php?id=488 - - * src/raptor_json.c: - (raptor_json_new_term_from_counted_string): RAPTOR_BAD_CAST for - shortening size_t -> int cast - - * src/turtle_parser.y: - (turtle_parse,raptor_turtle_parse_chunk): Return parse error - status to caller - - Fixes Issue #0000488 - http://bugs.librdf.org/mantis/view.php?id=488 - -2012-01-30 Dave Beckett - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt, - src/raptor2.h.in, src/raptor_sax2.c, src/raptor_uri.c: More file - URI updates - - (raptor_new_uri_from_uri_or_file_string): Added new constructor - - (raptor_uri_uri_string_to_counted_filename): Removed - - (raptor_sax2_check_load_uri_string): Use - raptor_new_uri_from_uri_or_file_string() and just check for file: - - (raptor_uri_uri_string_is_file_uri): Just check for file: - - (raptor_uri_file_exists): Check if URI is a file URI and the file - exists. - - * src/raptor_internal.h, src/raptor_sax2.c, utils/rapper.c: - Consolidate URI policy checks and call SAX2 uri filter - - (raptor_sax2_check_load_uri_string): add and use for policy - checks, making file URIs from canonical filename and calling URI - filter callback on SAX2. - - rapper (rapper_uri_trace): Use trace word since it is not just - processing - -2012-01-29 Dave Beckett - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt, - src/raptor2.h.in, src/raptor_internal.h, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_sax2.c: - (raptor_sax2_set_uri_filter): Added to filter for SAX2 - - * src/raptor_www.c: - (raptor_www_fetch): Return status code from URI filter - - * docs/raptor-1-to-2-map.tsv, src/raptor2.h.in, - src/raptor_option.c, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_turtle_writer.c: Add RAPTOR_OPTION_NO_FILE to deny - internal file requests - - * src/raptor_json.c: - Handle size changing between YAJL V1 and V2 - - Use RAPTOR_YAJL_LEN_TYPE macro to deal with the arg type change - -2012-01-28 Dave Beckett - - * src/raptor_uri.c: code cleanup - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt, - src/raptor2.h.in, src/raptor_uri.c: Rename file uri string to - match convention - - (raptor_uri_uri_string_to_counted_filename_fragment): Added to - return count lengths - - (raptor_uri_uri_string_is_file_uri): Use - raptor_uri_uri_string_to_counted_filename() after a simple URI - test. - - (raptor_uri_uri_string_to_filename): Renamed from - raptor_uri_uri_string_as_filename and use above. - - (raptor_uri_uri_string_to_counted_filename): Added using above and - returning count. - - * configure.ac, docs/raptor-1-to-2-map.tsv, - docs/raptor2-sections.txt, src/raptor2.h.in, src/raptor_uri.c: - raptor_uri_uri_string_as_filename - - * src/raptor_internal.h, src/raptor_sax2.c: Add internal SAX2 - enabled flag for enabling/disabling callbacks diff --git a/ChangeLog.14 b/ChangeLog.14 deleted file mode 100644 index a3cd47f4..00000000 --- a/ChangeLog.14 +++ /dev/null @@ -1,1854 +0,0 @@ -2013-12-30 Dave Beckett - - * src/parsedate.y: bison %pure-parser - - * src/turtle_parser.y: bison %define api.push-pull pull - - * tests/ntriples/Makefile.am: Add bug-562.out to dist - - * src/raptor_json_writer.c: - (raptor_json_writer_literal_object): No need for strlen - - * src/raptor_json_writer.c: - (raptor_json_writer_quoted): No need for strlen - - * src/raptor_internal.h, src/raptor_json_writer.c: Add size arg to - raptor_json_writer_blank_object - - (raptor_json_writer_blank_object): use len and save a strlen - - (raptor_json_writer_term): Update call to above - - * src/raptor_internal.h, src/raptor_json_writer.c: Add len arg to - raptor_json_writer_literal_object - - (raptor_json_writer_literal_object): Remove use of - raptor_json_writer_quoted for constant string. - - * src/raptor_json_writer.c, src/raptor_serialize_json.c: Use - raptor_json_writer_term() in several places - - (raptor_json_serialize_statement): Use raptor_json_writer_term() - for s, p, o. - - (raptor_json_serialize_avltree_visit): Use - raptor_json_writer_term() for final object. - - * src/raptor_internal.h, src/raptor_json_writer.c: - (raptor_json_writer_term): Added - - * src/raptor_internal.h, src/raptor_json_writer.c, - src/raptor_serialize_json.c: Inline constant args for - raptor_json_writer_literal_object - - (raptor_json_writer_literal_object): Was always called with same - constants so inline them and update callers. - -2013-12-29 Dave Beckett - - * src/raptor_serialize_turtle.c: Use - raptor_turtle_writer_raw_counted to save strlen()s - - * src/raptor_internal.h, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_turtle.c: Add RAPTOR_DEBUG_ABBREV_NODE for - abbreviated serializing debugging - - Update RDF/XML-Abbrev and Turtle serializer to use it - - * src/ntriples_parse.c: - Allow ' in - - Fixes Issue #0000562 - http://bugs.librdf.org/mantis/view.php?id=562 - - * tests/ntriples/Makefile.am, tests/ntriples/bug-562.nt, - tests/ntriples/bug-562.out: Add bug-562 test files for Issue - #0000562 - -2013-12-13 Dave Beckett - - * src/raptor_term.c: - (raptor_new_term_from_counted_string): Fix memset transposed args. - - * NEWS.html: word - - * CMakeLists.txt, NEWS.html, RELEASE.html, configure.ac: Bumped - version to 2.0.13 - - * Snapshotted raptor2_2_0_12 for 2.0.12 release (GIT f38f4182b8d90a8f457e856e8eaa93cb1f135322) - -2013-12-07 Dave Beckett - - * configure.ac, src/raptor_internal.h: Add a configure test for - __func__ since it's not always a macro - - * tests/nquads-2013/README: Add nquads test README - - * src/ntriples_parse.c: Make N-Triples / N-Quads parser more - carefully handle NUL - - (raptor_ntriples_parse_chunk): Looks for end_ptr rather than NUL - when searching for \n or \r. It also checks for \\ and " 's - - * src/ntriples_parse.c: Fix code in #ifdef RASQAL_DEBUG - - * src/ntriples_parse.c: Improve debug messages - - * src/ntriples_parse.c: - (raptor_ntriples_parse_line): No triple if one term failed - - * src/raptor_ntriples.c: - (raptor_parse_turtle_term_internal): Allow 2.0E-1 - -2013-12-05 Dave Beckett - - * src/raptor_rfc2396.c: - (raptor_uri_normalize_path): end when string does - - * configure.ac, tests/Makefile.am, tests/nquads-2013/Makefile.am, - tests/nquads-2013/comment_following_triple.nq, - tests/nquads-2013/langtagged_string.nq, - tests/nquads-2013/lantag_with_subtag.nq, - tests/nquads-2013/literal.nq, - tests/nquads-2013/literal_all_controls.nq, - tests/nquads-2013/literal_all_punctuation.nq, - tests/nquads-2013/literal_false.nq, - tests/nquads-2013/literal_true.nq, - tests/nquads-2013/literal_with_2_dquotes.nq, - tests/nquads-2013/literal_with_2_squotes.nq, - tests/nquads-2013/literal_with_BACKSPACE.nq, - tests/nquads-2013/literal_with_CARRIAGE_RETURN.nq, - tests/nquads-2013/literal_with_CHARACTER_TABULATION.nq, - tests/nquads-2013/literal_with_FORM_FEED.nq, - tests/nquads-2013/literal_with_LINE_FEED.nq, - tests/nquads-2013/literal_with_REVERSE_SOLIDUS.nq, - tests/nquads-2013/literal_with_REVERSE_SOLIDUS2.nq, - tests/nquads-2013/literal_with_UTF8_boundaries.nq, - tests/nquads-2013/literal_with_dquote.nq, - tests/nquads-2013/literal_with_numeric_escape4.nq, - tests/nquads-2013/literal_with_numeric_escape8.nq, - tests/nquads-2013/literal_with_squote.nq, - tests/nquads-2013/manifest.ttl, - tests/nquads-2013/minimal_whitespace.nq, - tests/nquads-2013/nq-syntax-bad-literal-01.nq, - tests/nquads-2013/nq-syntax-bad-literal-02.nq, - tests/nquads-2013/nq-syntax-bad-literal-03.nq, - tests/nquads-2013/nq-syntax-bad-quint-01.nq, - tests/nquads-2013/nq-syntax-bad-uri-01.nq, - tests/nquads-2013/nq-syntax-bnode-01.nq, - tests/nquads-2013/nq-syntax-bnode-02.nq, - tests/nquads-2013/nq-syntax-bnode-03.nq, - tests/nquads-2013/nq-syntax-bnode-04.nq, - tests/nquads-2013/nq-syntax-bnode-05.nq, - tests/nquads-2013/nq-syntax-bnode-06.nq, - tests/nquads-2013/nq-syntax-uri-01.nq, - tests/nquads-2013/nq-syntax-uri-02.nq, - tests/nquads-2013/nq-syntax-uri-03.nq, - tests/nquads-2013/nq-syntax-uri-04.nq, - tests/nquads-2013/nq-syntax-uri-05.nq, - tests/nquads-2013/nq-syntax-uri-06.nq, - tests/nquads-2013/nt-syntax-bad-base-01.nq, - tests/nquads-2013/nt-syntax-bad-esc-01.nq, - tests/nquads-2013/nt-syntax-bad-esc-02.nq, - tests/nquads-2013/nt-syntax-bad-esc-03.nq, - tests/nquads-2013/nt-syntax-bad-lang-01.nq, - tests/nquads-2013/nt-syntax-bad-num-01.nq, - tests/nquads-2013/nt-syntax-bad-num-02.nq, - tests/nquads-2013/nt-syntax-bad-num-03.nq, - tests/nquads-2013/nt-syntax-bad-prefix-01.nq, - tests/nquads-2013/nt-syntax-bad-string-01.nq, - tests/nquads-2013/nt-syntax-bad-string-02.nq, - tests/nquads-2013/nt-syntax-bad-string-03.nq, - tests/nquads-2013/nt-syntax-bad-string-04.nq, - tests/nquads-2013/nt-syntax-bad-string-05.nq, - tests/nquads-2013/nt-syntax-bad-string-06.nq, - tests/nquads-2013/nt-syntax-bad-string-07.nq, - tests/nquads-2013/nt-syntax-bad-struct-01.nq, - tests/nquads-2013/nt-syntax-bad-struct-02.nq, - tests/nquads-2013/nt-syntax-bad-uri-01.nq, - tests/nquads-2013/nt-syntax-bad-uri-02.nq, - tests/nquads-2013/nt-syntax-bad-uri-03.nq, - tests/nquads-2013/nt-syntax-bad-uri-04.nq, - tests/nquads-2013/nt-syntax-bad-uri-05.nq, - tests/nquads-2013/nt-syntax-bad-uri-06.nq, - tests/nquads-2013/nt-syntax-bad-uri-07.nq, - tests/nquads-2013/nt-syntax-bad-uri-08.nq, - tests/nquads-2013/nt-syntax-bad-uri-09.nq, - tests/nquads-2013/nt-syntax-bnode-01.nq, - tests/nquads-2013/nt-syntax-bnode-02.nq, - tests/nquads-2013/nt-syntax-bnode-03.nq, - tests/nquads-2013/nt-syntax-datatypes-01.nq, - tests/nquads-2013/nt-syntax-datatypes-02.nq, - tests/nquads-2013/nt-syntax-file-01.nq, - tests/nquads-2013/nt-syntax-file-02.nq, - tests/nquads-2013/nt-syntax-file-03.nq, - tests/nquads-2013/nt-syntax-str-esc-01.nq, - tests/nquads-2013/nt-syntax-str-esc-02.nq, - tests/nquads-2013/nt-syntax-str-esc-03.nq, - tests/nquads-2013/nt-syntax-string-01.nq, - tests/nquads-2013/nt-syntax-string-02.nq, - tests/nquads-2013/nt-syntax-string-03.nq, - tests/nquads-2013/nt-syntax-subm-01.nq, - tests/nquads-2013/nt-syntax-uri-01.nq, - tests/nquads-2013/nt-syntax-uri-02.nq, - tests/nquads-2013/nt-syntax-uri-03.nq, - tests/nquads-2013/nt-syntax-uri-04.nq: Add N-Quads 2013 W3C tests - - From http://www.w3.org/2013/N-QuadsTests/ via mercurial and - https://github.com/dajobe/nquads-tests-w3c-mirror - - * src/ntriples_parse.c: Check for max allowed terms in N-Triples / - N-Quads - - * src/ntriples_parse.c: Fix error extra " - - * src/ntriples_parse.c: Check N-Triples and N-Quads are absolute - URIs - - * src/ntriples_parse.c: Check N-Quads has 3/4 terms and N-Triples - has 3 - - (raptor_ntriples_parse_line): Try to find 5th term and error out - if it is. - -2013-12-04 Dave Beckett - - * docs/tmpl/section-triples.sgml: Update tmpls - -2013-12-03 Dave Beckett - - * src/raptor_uri.c: - (raptor_uri_uri_string_is_absolute): Make a much cheaper test. - - * src/raptor_turtle_writer.c: - (main): remove unused var - -2013-12-01 Dave Beckett - - * NEWS.html: Add 2.0.11 release link - - * RELEASE.html: 2.0.12 - -2013-11-30 Dave Beckett - - * src/raptor_term.c: Port changes from rasqal_ntriples.c - - * src/raptor_ntriples.c: - (raptor_parse_turtle_term_internal): Fix parsing - -2013-11-29 Dave Beckett - - * src/ntriples_parse.c, src/raptor_internal.h, - src/raptor_ntriples.c, src/raptor_term.c: Allow reading Turtle - numeric strings - - (raptor_ntriples_parse_term): Gains a allow_turtle argument. - - (raptor_parse_turtle_term_internal): Added to implement numerics: - xsd:integer, xsd:decimal and xsd:double. - - (raptor_new_term_from_counted_string): Update code and docs to - note it allow reading Turtle numeric literals. - - * src/raptor_concepts.c, src/raptor_turtle_writer.c, - src/turtle_parser.y: Use XSD namespace, datatype URIs from - raptor_world - - * src/raptor_concepts.c, src/raptor_internal.h: Declare xsd - datatypes uris in raptor_world - - * src/raptor_json_writer.c: Remove dead code protected by - RAPTOR_JSON_WRITER_DATATYPES - -2013-11-28 Dave Beckett - - * src/raptor_ntriples.c, tests/ntriples/test.nt: Check for - N-Triples blank node '.' in positions 2-(N-1) - - * src/raptor_ntriples.c: - (raptor_ntriples_parse_term_internal): Internal docs - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt, - src/raptor2.h.in, src/raptor_internal.h, src/raptor_ntriples.c, - src/raptor_serialize_turtle.c, src/raptor_term.c: Added - raptor_new_term_from_counted_string to write a term as N-Triples - - (raptor_new_term_from_counted_string): Added - - (raptor_term_to_turtle_counted_string) - (raptor_term_to_turtle_string): Added references to new function - and N-Triples versions below. - - (raptor_term_to_counted_string, raptor_term_to_string): Added - reference to new function and Turtle versions above. - - * docs/raptor-1-to-2-map.tsv: fix 2.0.11 changes - - * src/raptor_ntriples.c: replace references to line with input - - * src/ntriples_parse.c: real_terms -> terms - - * src/ntriples_parse.c: - (raptor_ntriples_parse_line): No 'x' literal - - * src/raptor_ntriples.c: - (raptor_ntriples_parse_term_internal): Renamed from - raptor_ntriples_term - - * src/raptor_ntriples.c: Make locator optional - - * src/ntriples_parse.c, src/raptor_internal.h, - src/raptor_ntriples.c: Pull all reference to parser out of - raptor_ntriples code - - Pass in world and locator objects, just to return errors. - - * src/Makefile.am, src/ntriples_parse.c, src/raptor_internal.h, - src/raptor_ntriples.c: Add raptor_ntriples.c module exporting - raptor_ntriples_parse_term Make N-Triples parser use it - - * src/ntriples_parse.c: - (raptor_ntriples_parse_term): pull out of - raptor_ntriples_parse_line() - -2013-11-27 Dave Beckett - - * .gitignore: ignore .dirstamp - - * tests/ntriples/Makefile.am, tests/ntriples/bad-01.nt: N-Triples - 2008 test bad-01.nt is now valid N-Triples 2013 - - * src/ntriples_parse.c: - (raptor_ntriples_term_valid): Do not allow . in bnode - - This isn't correct; '.' is allowed in positions 1..N-1 but this - calling convention of character-by-character cannot check this. - - * src/ntriples_parse.c, tests/ntriples-2013/Makefile.am: N-Triples - 2013: fix bnode ID check - - (raptor_ntriples_term_valid): For bnodes, allow leading digits, _ - and : Allow trailing - and . Fixes N-Triples test - nt-syntax-bnode-03.nt No remaining failures - - * src/ntriples_parse.c, tests/ntriples-2013/Makefile.am: N-Triples - 2013: allow \b and \f escapes - - (raptor_ntriples_term): Add \b and \f to escape check. Fixes - N-Triples tests literal_with_BACKSPACE.nt and - literal_with_FORM_FEED.nt 1 remaining failure - - * src/ntriples_parse.c, tests/ntriples-2013/Makefile.am: N-Triples - 2013: allow no whitespace between terms - - (raptor_ntriples_parse_line): Remove whitespace check. Fixes - N-Triples test minimal_whitespace.nt 3 remaining failures - - * tests/ntriples-2013/Makefile.am: check-good-ntriples: fix return - result - - * tests/ntriples-2013/Makefile.am: Run latest set of N-Triples - tests: 4 expected failures - - * tests/ntriples-2013/comment_following_triple.nt, - tests/ntriples-2013/langtagged_string.nt, - tests/ntriples-2013/lantag_with_subtag.nt, - tests/ntriples-2013/literal.nt, - tests/ntriples-2013/literal_all_controls.nt, - tests/ntriples-2013/literal_all_punctuation.nt, - tests/ntriples-2013/literal_false.nt, - tests/ntriples-2013/literal_true.nt, - tests/ntriples-2013/literal_with_2_dquotes.nt, - tests/ntriples-2013/literal_with_2_squotes.nt, - tests/ntriples-2013/literal_with_BACKSPACE.nt, - tests/ntriples-2013/literal_with_CARRIAGE_RETURN.nt, - tests/ntriples-2013/literal_with_CHARACTER_TABULATION.nt, - tests/ntriples-2013/literal_with_FORM_FEED.nt, - tests/ntriples-2013/literal_with_LINE_FEED.nt, - tests/ntriples-2013/literal_with_REVERSE_SOLIDUS.nt, - tests/ntriples-2013/literal_with_REVERSE_SOLIDUS2.nt, - tests/ntriples-2013/literal_with_UTF8_boundaries.nt, - tests/ntriples-2013/literal_with_dquote.nt, - tests/ntriples-2013/literal_with_numeric_escape4.nt, - tests/ntriples-2013/literal_with_numeric_escape8.nt, - tests/ntriples-2013/literal_with_squote.nt, - tests/ntriples-2013/manifest.ttl, - tests/ntriples-2013/minimal_whitespace.nt, - tests/ntriples-2013/nt-syntax-bnode-03.nt: Updated from N-Triples - tests in Mercurial - -2013-11-24 Dave Beckett - - * CMakeLists.txt, NEWS.html, RELEASE.html, configure.ac: Bumped - version to 2.0.12 - - * ChangeLog: - Snapshotted raptor2_2_0_11 for 2.0.11 release (GIT - 74f5b7e9541d734494ef637ab1acd8f1d193ef30) - - * librdfa/.gitignore: ignore .o - - * docs/tmpl/section-uri.sgml, docs/tmpl/section-xml-qname.sgml: - Update tmpls - - * NEWS.html, README.html, ChangeLog: - release docs and changes for 2.0.11 - - * tests/rdfxml/Makefile.am: Add ex-62.out to dist - - * src/raptor_qname.c: autodocs - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt: Add - raptor_qname_format_as_xml to docs - - * src/raptor_qname.c: Fix pointer as integer issue - (raptor_qname_format_as_xml): Pass in integer to - raptor_xml_escape_string length arg. - - * tests/feeds/test01-result.atom, tests/feeds/test02-result.atom, - tests/feeds/test03-result.atom: Updated expected atom feeds output - for serialization attributes newlines - - * tests/rdfxml/ex-38-rdfxmla.out: Updated expected output for - serialization attributes newlines - - * src/raptor_xml_writer.c: Generate namespaces and attributes and - xml:lang in canonical order. - - Fixes Issue #0000554 - http://bugs.librdf.org/mantis/view.php?id=554 - - (raptor_xml_writer_start_element_common): Add attributes and - xml:lang to declarations list and sort, then emit namespaces and - attributes in separate order - as XML C14N wants - - * src/raptor2.h.in, src/raptor_qname.c: - (raptor_qname_format_as_xml): Added - - * tests/rdfxml/Makefile.am, tests/rdfxml/ex-63.out, - tests/rdfxml/ex-63.rdf: Added ex-63 for Issue #0000554 - - * src/raptor_rfc2396.c: remove dead condition - - * src/raptor_rfc2396.c: - (raptor_uri_resolve_uri_reference): Handle empty ref path - - * src/raptor_uri.c: - Normalize file URIs - - (raptor_uri_filename_to_uri_string): Use raptor_uri_normalize_path - to normalize the resulting URI - - * src/raptor_internal.h, src/raptor_rfc2396.c: Make - raptor_uri_normalize_path internal - - * src/raptor_rfc2396.c: - Handle normalizing reference URIs - - Fixes Issue #0000556 - http://bugs.librdf.org/mantis/view.php?id=556 - - * src/raptor_rfc2396.c: - Pull out URI normalizing - - (raptor_uri_normalize_path): Added and called from - raptor_uri_resolve_uri_reference(). - - (raptor_uri_resolve_uri_reference): Malloc path_buffer for - hierarchical ref, non-hierarchical base case and copy over, then - normalize. - - * docs/raptor-1-to-2-map.tsv, docs/raptor2-sections.txt, - src/ntriples_parse.c, src/raptor2.h.in, src/raptor_uri.c: Renamed - raptor_uri_string_is_absolute to raptor_uri_uri_string_is_absolute - -2013-11-16 Dave Beckett - - * tests/test.html, tests/test.svg: remove unused test.html - test.svg files - -2013-11-13 Dave Beckett - - * src/ntriples_parse.c: - Use memmove for overlapping copy [llvm address sanitizer] - - (raptor_ntriples_term): Use memmove to replace memcpy for an - overlapping copy. - - Found via LLVM address sanitizer in LLVM 3.4 (SVN) with options: - export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.4 - CC='clang -fsanitize=address -O1 -fno-omit-frame-pointer -g' ./configure ... - See https://code.google.com/p/address-sanitizer/wiki/AddressSanitizer - and http://llvm.org/releases/3.3/tools/clang/docs/AddressSanitizer.html - -2013-11-08 Dave Beckett - - * librdfa/Makefile.am: clean plist files - - * src/raptor_general.c: 2013 - - * librdfa/.gitignore: ignore plist - - * librdfa/.gitignore: ignore .la - - * librdfa/Makefile.am: Fix make distcheck for librdfa.la - - * src/Makefile.am: src needs -DLIBRDFA_IN_RAPTOR - - * librdfa/Makefile.am: Add analyze target - - * librdfa/Makefile.am, src/Makefile.am: librdfa.la as a - convenience library build fixes - - Do not build strtok for librdfa unless needed. Move - -DLIBRDFA_IN_RAPTOR include to librdfa dir only - - * Makefile.am, librdfa/Makefile.am, src/Makefile.am: Build - librdfa.la as a convenience library - - Trying to get away from the noisy subdir-objects warnings and - deprecation messages from newer automakes. - -2013-11-02 Dave Beckett - - * configure.ac: Fix clang test - - * configure.ac: Check for clang to enable correct discovery of - supported warnings - -2013-10-30 Dave Beckett - - * tests/turtle/Makefile.am, tests/turtle/test-35.out: Remove (now) - unused turtle warning tests - -2013-10-29 Daniel Richard G - - * configure.ac, src/Makefile.am, tests/Makefile.am, - tests/turtle/Makefile.am: Various build system fixes - - configure.ac: - - Place a ":" in the action-if-not-found arguments of the - PKG_CHECK_MODULES() calls for LIBXML and LIBCURL to override the - default action of quitting with an error, as neither of these - libraries are a hard requirement - - src/Makefile.am: - - Add parsedate.c to BUILT_SOURCES so that it can be handled - properly - - Move the parsedate.c rule into the MAINTAINER_MODE block, as - only maintainers should be regenerating this file - - Bump the "test" rule down after the test-program rules - - tests/Makefile.am: - - Add ntriples-2013 to SUBDIRS to fix configure script invocation - - tests/turtle/Makefile.am: - - Add logic to prevent breakage when TEST_WARN_FILES is empty - -2013-10-02 Dave Beckett - - * configure.ac, tests/feeds/Makefile.am: Test for jing and skip - feed validation tests if it is missing - -2013-09-28 Dave Beckett - - * src/raptor_rss.c: - (raptor_rss_insert_identifiers): Handle NULL uri [clang] - -2013-09-15 Dave Beckett - - * src/ntriples_parse.c, src/raptor_internal.h, src/turtle_common.h: - Move raptor_turtle_check_uri_string prototype to raptor_internal.h - -2013-09-13 Dave Beckett - - * tests/rdfxml/ex-59.nt, tests/rdfxml/ex-59.rdf, - tests/rdfxml/ex-60.nt, tests/rdfxml/ex-60.rdf: Update tests with - legal N-Triples URIs - -2013-09-12 Dave Beckett - - * src/ntriples_parse.c: Check language tag validity - - * src/ntriples_parse.c: Use raptor_uri_string_is_absolute to check - datatype URI is abs - - * src/ntriples_parse.c: Use raptor_uri_string_is_absolute to - enforce abs URIs for N-Triples - - * src/raptor2.h.in, src/raptor_uri.c: - (raptor_uri_string_is_absolute): Added - - * src/ntriples_parse.c: Check for bad URIs using turtle function - - FIXME - - * src/ntriples_parse.c: Check for illegal unicode escapes. - - * src/ntriples_parse.c: Move object_literal_language/datatype to - area of code that uses it. - - * src/ntriples_parse.c: Kill use of terms, term_lengths and - term_types - - * src/ntriples_parse.c: Make literals once during syntax parsing - Move language normalization to same area of code - - * src/ntriples_parse.c: Make URIs in one place during syntax - parsing - - * src/ntriples_parse.c: Pass a raptor_term for graph to - raptor_ntriples_generate_statement - - * src/ntriples_parse.c: Pass a raptor_term for object to - raptor_ntriples_generate_statement - - * src/ntriples_parse.c: Pass a raptor_term for predicate to - raptor_ntriples_generate_statement - - * src/ntriples_parse.c: Pass a raptor_term for subject to - raptor_ntriples_generate_statement - - (raptor_ntriples_parse_line): Make term here and pass to - raptor_ntriples_generate_statement subject - -2013-09-10 Dave Beckett - - * src/ntriples_parse.c: Remove special error for legacy N-Triples - "foo"-LANGTOKEN - - * src/ntriples_parse.c: - Remove unused RAPTOR_TERM_CLASS_FULL - - * configure.ac, tests/ntriples-2013/Makefile.am, - tests/ntriples-2013/manifest.ttl, - tests/ntriples-2013/nt-syntax-bad-base-01.nt, - tests/ntriples-2013/nt-syntax-bad-esc-01.nt, - tests/ntriples-2013/nt-syntax-bad-esc-02.nt, - tests/ntriples-2013/nt-syntax-bad-esc-03.nt, - tests/ntriples-2013/nt-syntax-bad-lang-01.nt, - tests/ntriples-2013/nt-syntax-bad-num-01.nt, - tests/ntriples-2013/nt-syntax-bad-num-02.nt, - tests/ntriples-2013/nt-syntax-bad-num-03.nt, - tests/ntriples-2013/nt-syntax-bad-prefix-01.nt, - tests/ntriples-2013/nt-syntax-bad-string-01.nt, - tests/ntriples-2013/nt-syntax-bad-string-02.nt, - tests/ntriples-2013/nt-syntax-bad-string-03.nt, - tests/ntriples-2013/nt-syntax-bad-string-04.nt, - tests/ntriples-2013/nt-syntax-bad-string-05.nt, - tests/ntriples-2013/nt-syntax-bad-string-06.nt, - tests/ntriples-2013/nt-syntax-bad-string-07.nt, - tests/ntriples-2013/nt-syntax-bad-struct-01.nt, - tests/ntriples-2013/nt-syntax-bad-struct-02.nt, - tests/ntriples-2013/nt-syntax-bad-uri-01.nt, - tests/ntriples-2013/nt-syntax-bad-uri-02.nt, - tests/ntriples-2013/nt-syntax-bad-uri-03.nt, - tests/ntriples-2013/nt-syntax-bad-uri-04.nt, - tests/ntriples-2013/nt-syntax-bad-uri-05.nt, - tests/ntriples-2013/nt-syntax-bad-uri-06.nt, - tests/ntriples-2013/nt-syntax-bad-uri-07.nt, - tests/ntriples-2013/nt-syntax-bad-uri-08.nt, - tests/ntriples-2013/nt-syntax-bad-uri-09.nt, - tests/ntriples-2013/nt-syntax-bnode-01.nt, - tests/ntriples-2013/nt-syntax-bnode-02.nt, - tests/ntriples-2013/nt-syntax-datatypes-01.nt, - tests/ntriples-2013/nt-syntax-datatypes-02.nt, - tests/ntriples-2013/nt-syntax-file-01.nt, - tests/ntriples-2013/nt-syntax-file-02.nt, - tests/ntriples-2013/nt-syntax-file-03.nt, - tests/ntriples-2013/nt-syntax-str-esc-01.nt, - tests/ntriples-2013/nt-syntax-str-esc-02.nt, - tests/ntriples-2013/nt-syntax-str-esc-03.nt, - tests/ntriples-2013/nt-syntax-string-01.nt, - tests/ntriples-2013/nt-syntax-string-02.nt, - tests/ntriples-2013/nt-syntax-string-03.nt, - tests/ntriples-2013/nt-syntax-subm-01.nt, - tests/ntriples-2013/nt-syntax-uri-01.nt, - tests/ntriples-2013/nt-syntax-uri-02.nt, - tests/ntriples-2013/nt-syntax-uri-03.nt, - tests/ntriples-2013/nt-syntax-uri-04.nt: N-Triples 2013 test suite - Current state: all good tests pass. 13 bad tests fail: - nt-syntax-bad-uri-01.nt nt-syntax-bad-uri-02.nt - nt-syntax-bad-uri-03.nt nt-syntax-bad-uri-04.nt - nt-syntax-bad-uri-06.nt nt-syntax-bad-uri-07.nt - nt-syntax-bad-uri-08.nt nt-syntax-bad-uri-09.nt - nt-syntax-bad-struct-01.nt nt-syntax-bad-struct-02.nt - nt-syntax-bad-lang-01.nt nt-syntax-bad-esc-03.nt - nt-syntax-bad-string-05.nt - -2013-09-09 Dave Beckett - - * src/ntriples_parse.c: - Tidy error column/byte offsets for errors - - * src/ntriples_parse.c: Support # comments after end of line in - N-Triples / NQuads 2013 - - * tests/ntriples/nt2013-ex3.out: Write expected result in \uHHHH - form - - * tests/ntriples/Makefile.am: check-nt: add rapper failure clause - - * tests/ntriples/Makefile.am: make check-nt show error output in a - rapper failure - - * tests/ntriples/Makefile.am, tests/ntriples/nt2013-ex1.nt, - tests/ntriples/nt2013-ex1.out, tests/ntriples/nt2013-ex2.nt, - tests/ntriples/nt2013-ex2.out, tests/ntriples/nt2013-ex3.nt, - tests/ntriples/nt2013-ex3.out, tests/ntriples/nt2013-ex4.nt, - tests/ntriples/nt2013-ex4.out: Add ntriples 2013 examples from - spec - -2013-08-27 Dave Beckett - - * tests/turtle-2013/Makefile.am: Remove dup tests - - * tests/turtle-2013/README, - tests/turtle-2013/localName_with_non_leading_extras.nt: Updated - Turtle W3C tests to latest files from repo - - * tests/turtle-2013/Makefile.am: Add the 4 negative eval tests - - * CMakeLists.txt, NEWS.html, RELEASE.html, configure.ac: Bumped - version to 2.0.11 - - * ChangeLog: #changes - - * 2.0.10 - - * NEWS.html, RELEASE.html: 2.0.10 - -2013-08-25 Dave Beckett - - * src/raptor_xml_writer.c: Make XML writer emit xml:lang on - elements - - Fixes Issue #0000548 - http://bugs.librdf.org/mantis/view.php?id=548 - - * src/ntriples_parse.c, src/raptor_internal.h: Revert - "(raptor_normalize_language): Added to normalize to en-US-BLAH" - This reverts commit 7b4788f656546be7abdd87122c03ea005e771c17. - - * src/ntriples_parse.c, src/turtle_lexer.l: Revert "Use - raptor_normalize_language to normalize N-Triples and Turtle - inputs" - - This reverts commit 74e9fc1160cbb300cb87445bebcca4033a627e56. - Conflicts: src/turtle_lexer.l - -2013-08-23 Dave Beckett - - * src/raptor_concepts.c, src/raptor_internal.h: Add rdf:HTML and - rdf:langString from RDF 1.1 concepts - - RDF 1.1 Concepts and Abstract Syntax W3C Last Call Working Draft 23 - July 2013 http://www.w3.org/TR/2013/WD-rdf11-concepts-20130723/ - http://www.w3.org/TR/2013/WD-rdf11-concepts-20130723/#section-html - http://www.w3.org/TR/2013/WD-rdf11-concepts-20130723/#section-Datatypes - -2013-08-12 Dave Beckett - - * tests/turtle-2013/Makefile.am: Add 4 bad eval tests to - check-bad-turtle - -2013-08-11 Dave Beckett - - * tests/turtle-2013/Makefile.am, - tests/turtle-2013/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_cha - r_boundaries.nt, - tests/turtle-2013/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_cha - r_boundaries.ttl, - tests/turtle-2013/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_cha - racter_boundaries.nt, - tests/turtle-2013/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_cha - racter_boundaries.ttl, tests/turtle-2013/manifest.ttl: - Renamed long turtle 2013 test file so it can be stored in tar - - localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries* - -> localName_with_assigned_nfc_bmp_PN_CHARS_BASE_char_boundaries* - - GNUtar can't handle file names >99 letters - - tar: raptor2-2.0.10/tests/turtle-2013/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.ttl: file name is too long (max 99); not dumped - tar: raptor2-2.0.10/tests/turtle-2013/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nt: file name is too long (max 99); not dumped - tar: Exiting with failure status due to previous errors - - * tests/turtle-2013/test-38.nt: remove unused test-38.nt - - * tests/turtle-2013/Makefile.am: Add all TEST_OUT_FILES - - * tests/.gitignore: Ignore raptor_empty_test.trs - - * src/turtle_lexer.l: cast for language - - * tests/turtle-2013/Makefile.am: - Use turtle parser to read exemplars - - * scripts/rdfcompare: rdfcompare - - * tests/turtle-2013/anonymous_blank_node_object.nt, - tests/turtle-2013/anonymous_blank_node_subject.nt, - tests/turtle-2013/blankNodePropertyList_as_object.nt, - tests/turtle-2013/blankNodePropertyList_as_subject.nt, - tests/turtle-2013/blankNodePropertyList_containing_collection.nt, - tests/turtle-2013/blankNodePropertyList_with_multiple_triples.nt, - tests/turtle-2013/collection_object.nt, - tests/turtle-2013/collection_subject.nt, - tests/turtle-2013/first.nt, - tests/turtle-2013/labeled_blank_node_object.nt, - tests/turtle-2013/labeled_blank_node_subject.nt, - tests/turtle-2013/labeled_blank_node_with_PN_CHARS_BASE_character_b - oundaries.nt, - tests/turtle-2013/labeled_blank_node_with_leading_digit.nt, - tests/turtle-2013/labeled_blank_node_with_leading_underscore.nt, - tests/turtle-2013/labeled_blank_node_with_non_leading_extras.nt, - tests/turtle-2013/last.nt, - tests/turtle-2013/nested_blankNodePropertyLists.nt, - tests/turtle-2013/nested_collection.nt, - tests/turtle-2013/sole_blankNodePropertyList.nt: Replace official - results with raptor expected ones - - * tests/turtle-2013/Makefile.am: - Use rdfcompare to compare - - * scripts/Makefile.am: Add rdfcompare - - * src/ntriples_parse.c, src/turtle_lexer.l: Use - raptor_normalize_language to normalize N-Triples and Turtle inputs - - * src/ntriples_parse.c, src/raptor_internal.h: - (raptor_normalize_language): Added to normalize to en-US-BLAH - - * tests/turtle/Makefile.am, tests/turtle/bad-24.ttl, - tests/turtle/test-35.ttl: Turtle test for lang and datatype - warning is now an error Renamed test-35.ttl to bad-24.ttl - - * tests/turtle-2013/literal_with_escaped_BACKSPACE.nt: Added - missing literal_with_escaped_BACKSPACE.nt - - * tests/turtle-2013/Makefile.am: Report normalize N-Triples diff - - * tests/turtle-2013/Makefile.am: Normalize N-Triples expected - output before comparing them with diff - - * src/raptor2.h.in: - Make N-Triples allow writing \b and \f - - * src/ntriples_parse.c: Always allow UTF-8 in N-Triples strings - and URIs (N-Triples 2013) - - (raptor_ntriples_term): Remove allow_utf8 arg and always set it - true. - - * src/ntriples_parse.c, src/raptor_serialize_ntriples.c: Use - N-Triples 2013 mime type - - * src/turtle_common.c: - Allow \b \f escapes in Turtle strings - -2013-08-10 Dave Beckett - - * src/turtle_parser.y: Make turtle literals with language and - datatype an error (Turtle 2013) - - Makes test - turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl fail as - it should. - - * tests/turtle-2013/Makefile.am: Count and report errors for good - tests - - * tests/turtle-2013/Makefile.am: Update BASE_URI - - * tests/turtle-2013/Makefile.am: Updated for Turtle 2013 tests - - * tests/turtle-2013/LITERAL_LONG2_with_UTF8_boundaries.ttl: add - missing LITERAL_LONG2_with_UTF8_boundaries.ttl - - * tests/turtle-2013/IRI_subject.nt, - tests/turtle-2013/IRI_with_eight_digit_numeric_escape.nt, - tests/turtle-2013/IRI_with_four_digit_numeric_escape.nt, - tests/turtle-2013/LITERAL1_with_UTF8_boundaries.nt, - tests/turtle-2013/LITERAL2.nt, - tests/turtle-2013/LITERAL2_with_UTF8_boundaries.nt, - tests/turtle-2013/LITERAL_LONG1.nt, - tests/turtle-2013/LITERAL_LONG1_with_UTF8_boundaries.nt, - tests/turtle-2013/LITERAL_LONG2.nt, - tests/turtle-2013/LITERAL_LONG2_with_UTF8_boundaries.nt, - tests/turtle-2013/SPARQL_style_base.nt, - tests/turtle-2013/SPARQL_style_prefix.nt, - tests/turtle-2013/anonymous_blank_node_object.nt, - tests/turtle-2013/anonymous_blank_node_subject.nt, - tests/turtle-2013/bareword_integer.nt, - tests/turtle-2013/comment_following_localName.nt, - tests/turtle-2013/default_namespace_IRI.nt, - tests/turtle-2013/labeled_blank_node_with_PN_CHARS_BASE_character_b - oundaries.nt, - tests/turtle-2013/labeled_blank_node_with_leading_digit.nt, - tests/turtle-2013/labeled_blank_node_with_leading_underscore.nt, - tests/turtle-2013/labeled_blank_node_with_non_leading_extras.nt, - tests/turtle-2013/langtagged_LONG.nt, - tests/turtle-2013/literal_with_escaped_CARRIAGE_RETURN.nt, - tests/turtle-2013/literal_with_escaped_CHARACTER_TABULATION.nt, - tests/turtle-2013/literal_with_escaped_FORM_FEED.nt, - tests/turtle-2013/literal_with_escaped_LINE_FEED.nt, - tests/turtle-2013/literal_with_numeric_escape8.nt, - tests/turtle-2013/old_style_base.nt, - tests/turtle-2013/old_style_prefix.nt, - tests/turtle-2013/prefix_only_IRI.nt, - tests/turtle-2013/prefix_with_PN_CHARS_BASE_character_boundaries.nt - , tests/turtle-2013/prefix_with_non_leading_extras.nt, - tests/turtle-2013/prefixed_IRI_object.nt, - tests/turtle-2013/prefixed_IRI_predicate.nt, - tests/turtle-2013/prefixed_name_datatype.nt, - tests/turtle-2013/repeated_semis_at_end.nt, - tests/turtle-2013/sole_blankNodePropertyList.nt: Add .nt versions - of shared result files - - * tests/turtle-2013/HYPHEN_MINUS_in_localName.nt, - tests/turtle-2013/HYPHEN_MINUS_in_localName.ttl, - tests/turtle-2013/IRIREF_datatype.nt, - tests/turtle-2013/IRIREF_datatype.ttl, - tests/turtle-2013/IRI_spo.nt, tests/turtle-2013/IRI_subject.ttl, - tests/turtle-2013/IRI_with_all_punctuation.nt, - tests/turtle-2013/IRI_with_all_punctuation.ttl, - tests/turtle-2013/IRI_with_eight_digit_numeric_escape.ttl, - tests/turtle-2013/IRI_with_four_digit_numeric_escape.ttl, - tests/turtle-2013/LICENSE, tests/turtle-2013/LITERAL1.nt, - tests/turtle-2013/LITERAL1.ttl, - tests/turtle-2013/LITERAL1_all_controls.nt, - tests/turtle-2013/LITERAL1_all_punctuation.nt, - tests/turtle-2013/LITERAL1_all_punctuation.ttl, - tests/turtle-2013/LITERAL1_ascii_boundaries.nt, - tests/turtle-2013/LITERAL1_with_UTF8_boundaries.ttl, - tests/turtle-2013/LITERAL2.ttl, - tests/turtle-2013/LITERAL2_ascii_boundaries.nt, - tests/turtle-2013/LITERAL2_with_UTF8_boundaries.ttl, - tests/turtle-2013/LITERAL_LONG1.ttl, - tests/turtle-2013/LITERAL_LONG1_ascii_boundaries.nt, - tests/turtle-2013/LITERAL_LONG1_with_1_squote.nt, - tests/turtle-2013/LITERAL_LONG1_with_1_squote.ttl, - tests/turtle-2013/LITERAL_LONG1_with_2_squotes.nt, - tests/turtle-2013/LITERAL_LONG1_with_2_squotes.ttl, - tests/turtle-2013/LITERAL_LONG1_with_UTF8_boundaries.ttl, - tests/turtle-2013/LITERAL_LONG2.ttl, - tests/turtle-2013/LITERAL_LONG2_ascii_boundaries.nt, - tests/turtle-2013/LITERAL_LONG2_with_1_squote.nt, - tests/turtle-2013/LITERAL_LONG2_with_1_squote.ttl, - tests/turtle-2013/LITERAL_LONG2_with_2_squotes.nt, - tests/turtle-2013/LITERAL_LONG2_with_2_squotes.ttl, - tests/turtle-2013/LITERAL_LONG2_with_REVERSE_SOLIDUS.nt, - tests/turtle-2013/LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl, - tests/turtle-2013/LITERAL_with_UTF8_boundaries.nt, - tests/turtle-2013/README, tests/turtle-2013/SPARQL_style_base.ttl, - tests/turtle-2013/SPARQL_style_prefix.ttl, - tests/turtle-2013/anonymous_blank_node_object.ttl, - tests/turtle-2013/anonymous_blank_node_subject.ttl, - tests/turtle-2013/bareword_a_predicate.nt, - tests/turtle-2013/bareword_a_predicate.ttl, - tests/turtle-2013/bareword_decimal.nt, - tests/turtle-2013/bareword_decimal.ttl, - tests/turtle-2013/bareword_double.nt, - tests/turtle-2013/bareword_double.ttl, - tests/turtle-2013/bareword_integer.ttl, - tests/turtle-2013/blankNodePropertyList_as_object.nt, - tests/turtle-2013/blankNodePropertyList_as_object.ttl, - tests/turtle-2013/blankNodePropertyList_as_subject.nt, - tests/turtle-2013/blankNodePropertyList_as_subject.ttl, - tests/turtle-2013/blankNodePropertyList_containing_collection.nt, - tests/turtle-2013/blankNodePropertyList_containing_collection.ttl, - tests/turtle-2013/blankNodePropertyList_with_multiple_triples.nt, - tests/turtle-2013/blankNodePropertyList_with_multiple_triples.ttl, - tests/turtle-2013/collection_object.nt, - tests/turtle-2013/collection_object.ttl, - tests/turtle-2013/collection_subject.nt, - tests/turtle-2013/collection_subject.ttl, - tests/turtle-2013/comment_following_PNAME_NS.nt, - tests/turtle-2013/comment_following_PNAME_NS.ttl, - tests/turtle-2013/comment_following_localName.ttl, - tests/turtle-2013/default_namespace_IRI.ttl, - tests/turtle-2013/double_lower_case_e.nt, - tests/turtle-2013/double_lower_case_e.ttl, - tests/turtle-2013/empty_collection.nt, - tests/turtle-2013/empty_collection.ttl, - tests/turtle-2013/first.nt, tests/turtle-2013/first.ttl, - tests/turtle-2013/labeled_blank_node_object.nt, - tests/turtle-2013/labeled_blank_node_object.ttl, - tests/turtle-2013/labeled_blank_node_subject.nt, - tests/turtle-2013/labeled_blank_node_subject.ttl, - tests/turtle-2013/labeled_blank_node_with_PN_CHARS_BASE_character_b - oundaries.ttl, - tests/turtle-2013/labeled_blank_node_with_leading_digit.ttl, - tests/turtle-2013/labeled_blank_node_with_leading_underscore.ttl, - tests/turtle-2013/labeled_blank_node_with_non_leading_extras.ttl, - tests/turtle-2013/langtagged_LONG.ttl, - tests/turtle-2013/langtagged_LONG_with_subtag.nt, - tests/turtle-2013/langtagged_LONG_with_subtag.ttl, - tests/turtle-2013/langtagged_non_LONG.nt, - tests/turtle-2013/langtagged_non_LONG.ttl, - tests/turtle-2013/lantag_with_subtag.nt, - tests/turtle-2013/lantag_with_subtag.ttl, - tests/turtle-2013/last.nt, tests/turtle-2013/last.ttl, - tests/turtle-2013/literal_false.nt, - tests/turtle-2013/literal_false.ttl, - tests/turtle-2013/literal_true.nt, - tests/turtle-2013/literal_true.ttl, - tests/turtle-2013/literal_with_BACKSPACE.nt, - tests/turtle-2013/literal_with_BACKSPACE.ttl, - tests/turtle-2013/literal_with_CARRIAGE_RETURN.nt, - tests/turtle-2013/literal_with_CARRIAGE_RETURN.ttl, - tests/turtle-2013/literal_with_CHARACTER_TABULATION.nt, - tests/turtle-2013/literal_with_CHARACTER_TABULATION.ttl, - tests/turtle-2013/literal_with_FORM_FEED.nt, - tests/turtle-2013/literal_with_FORM_FEED.ttl, - tests/turtle-2013/literal_with_LINE_FEED.nt, - tests/turtle-2013/literal_with_LINE_FEED.ttl, - tests/turtle-2013/literal_with_REVERSE_SOLIDUS.nt, - tests/turtle-2013/literal_with_REVERSE_SOLIDUS.ttl, - tests/turtle-2013/literal_with_escaped_BACKSPACE.ttl, - tests/turtle-2013/literal_with_escaped_CARRIAGE_RETURN.ttl, - tests/turtle-2013/literal_with_escaped_CHARACTER_TABULATION.ttl, - tests/turtle-2013/literal_with_escaped_FORM_FEED.ttl, - tests/turtle-2013/literal_with_escaped_LINE_FEED.ttl, - tests/turtle-2013/literal_with_numeric_escape4.nt, - tests/turtle-2013/literal_with_numeric_escape4.ttl, - tests/turtle-2013/literal_with_numeric_escape8.ttl, - tests/turtle-2013/localName_with_PN_CHARS_BASE_character_boundaries - .nt, - tests/turtle-2013/localName_with_PN_CHARS_BASE_character_boundaries - .ttl, - tests/turtle-2013/localName_with_assigned_nfc_PN_CHARS_BASE_charact - er_boundaries.nt, - tests/turtle-2013/localName_with_assigned_nfc_PN_CHARS_BASE_charact - er_boundaries.ttl, - tests/turtle-2013/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_cha - racter_boundaries.nt, - tests/turtle-2013/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_cha - racter_boundaries.ttl, - tests/turtle-2013/localName_with_leading_digit.nt, - tests/turtle-2013/localName_with_leading_digit.ttl, - tests/turtle-2013/localName_with_leading_underscore.nt, - tests/turtle-2013/localName_with_leading_underscore.ttl, - tests/turtle-2013/localName_with_nfc_PN_CHARS_BASE_character_bounda - ries.nt, - tests/turtle-2013/localName_with_nfc_PN_CHARS_BASE_character_bounda - ries.ttl, tests/turtle-2013/localName_with_non_leading_extras.nt, - tests/turtle-2013/localName_with_non_leading_extras.ttl, - tests/turtle-2013/localname_with_COLON.nt, - tests/turtle-2013/localname_with_COLON.ttl, - tests/turtle-2013/manifest.ttl, - tests/turtle-2013/negative_numeric.nt, - tests/turtle-2013/negative_numeric.ttl, - tests/turtle-2013/nested_blankNodePropertyLists.nt, - tests/turtle-2013/nested_blankNodePropertyLists.ttl, - tests/turtle-2013/nested_collection.nt, - tests/turtle-2013/nested_collection.ttl, - tests/turtle-2013/number_sign_following_PNAME_NS.nt, - tests/turtle-2013/number_sign_following_PNAME_NS.ttl, - tests/turtle-2013/number_sign_following_localName.nt, - tests/turtle-2013/number_sign_following_localName.ttl, - tests/turtle-2013/numeric_with_leading_0.nt, - tests/turtle-2013/numeric_with_leading_0.ttl, - tests/turtle-2013/objectList_with_two_objects.nt, - tests/turtle-2013/objectList_with_two_objects.ttl, - tests/turtle-2013/old_style_base.ttl, - tests/turtle-2013/old_style_prefix.ttl, - tests/turtle-2013/percent_escaped_localName.nt, - tests/turtle-2013/percent_escaped_localName.ttl, - tests/turtle-2013/positive_numeric.nt, - tests/turtle-2013/positive_numeric.ttl, - tests/turtle-2013/predicateObjectList_with_two_objectLists.nt, - tests/turtle-2013/predicateObjectList_with_two_objectLists.ttl, - tests/turtle-2013/prefix_only_IRI.ttl, - tests/turtle-2013/prefix_reassigned_and_used.nt, - tests/turtle-2013/prefix_reassigned_and_used.ttl, - tests/turtle-2013/prefix_with_PN_CHARS_BASE_character_boundaries.tt - l, tests/turtle-2013/prefix_with_non_leading_extras.ttl, - tests/turtle-2013/prefixed_IRI_object.ttl, - tests/turtle-2013/prefixed_IRI_predicate.ttl, - tests/turtle-2013/prefixed_name_datatype.ttl, - tests/turtle-2013/repeated_semis_at_end.ttl, - tests/turtle-2013/repeated_semis_not_at_end.nt, - tests/turtle-2013/repeated_semis_not_at_end.ttl, - tests/turtle-2013/reserved_escaped_localName.nt, - tests/turtle-2013/reserved_escaped_localName.ttl, - tests/turtle-2013/sole_blankNodePropertyList.ttl, - tests/turtle-2013/test-38.nt, tests/turtle-2013/test-38.ttl, - tests/turtle-2013/turtle-eval-bad-01.ttl, - tests/turtle-2013/turtle-eval-bad-02.ttl, - tests/turtle-2013/turtle-eval-bad-03.ttl, - tests/turtle-2013/turtle-eval-bad-04.ttl, - tests/turtle-2013/turtle-eval-struct-01.nt, - tests/turtle-2013/turtle-eval-struct-01.ttl, - tests/turtle-2013/turtle-eval-struct-02.nt, - tests/turtle-2013/turtle-eval-struct-02.ttl, - tests/turtle-2013/turtle-subm-01.nt, - tests/turtle-2013/turtle-subm-27.nt, - tests/turtle-2013/turtle-subm-27.ttl, - tests/turtle-2013/turtle-syntax-bad-LITERAL2_with_langtag_and_datat - ype.ttl, tests/turtle-2013/turtle-syntax-bad-base-02.ttl, - tests/turtle-2013/turtle-syntax-bad-base-03.ttl, - tests/turtle-2013/turtle-syntax-bad-blank-label-dot-end.ttl, - tests/turtle-2013/turtle-syntax-bad-esc-01.ttl, - tests/turtle-2013/turtle-syntax-bad-esc-02.ttl, - tests/turtle-2013/turtle-syntax-bad-esc-03.ttl, - tests/turtle-2013/turtle-syntax-bad-esc-04.ttl, - tests/turtle-2013/turtle-syntax-bad-kw-01.ttl, - tests/turtle-2013/turtle-syntax-bad-kw-02.ttl, - tests/turtle-2013/turtle-syntax-bad-kw-03.ttl, - tests/turtle-2013/turtle-syntax-bad-kw-04.ttl, - tests/turtle-2013/turtle-syntax-bad-kw-05.ttl, - tests/turtle-2013/turtle-syntax-bad-lang-01.ttl, - tests/turtle-2013/turtle-syntax-bad-ln-dash-start.ttl, - tests/turtle-2013/turtle-syntax-bad-ln-escape-start.ttl, - tests/turtle-2013/turtle-syntax-bad-ln-escape.ttl, - tests/turtle-2013/turtle-syntax-bad-missing-ns-dot-end.ttl, - tests/turtle-2013/turtle-syntax-bad-missing-ns-dot-start.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-01.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-02.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-03.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-04.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-05.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-06.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-09.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-10.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-11.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-12.ttl, - tests/turtle-2013/turtle-syntax-bad-ns-dot-end.ttl, - tests/turtle-2013/turtle-syntax-bad-ns-dot-start.ttl, - tests/turtle-2013/turtle-syntax-bad-num-01.ttl, - tests/turtle-2013/turtle-syntax-bad-num-02.ttl, - tests/turtle-2013/turtle-syntax-bad-num-03.ttl, - tests/turtle-2013/turtle-syntax-bad-num-04.ttl, - tests/turtle-2013/turtle-syntax-bad-num-05.ttl, - tests/turtle-2013/turtle-syntax-bad-number-dot-in-anon.ttl, - tests/turtle-2013/turtle-syntax-bad-pname-01.ttl, - tests/turtle-2013/turtle-syntax-bad-pname-02.ttl, - tests/turtle-2013/turtle-syntax-bad-pname-03.ttl, - tests/turtle-2013/turtle-syntax-bad-prefix-01.ttl, - tests/turtle-2013/turtle-syntax-bad-prefix-02.ttl, - tests/turtle-2013/turtle-syntax-bad-prefix-04.ttl, - tests/turtle-2013/turtle-syntax-bad-prefix-05.ttl, - tests/turtle-2013/turtle-syntax-bad-string-01.ttl, - tests/turtle-2013/turtle-syntax-bad-string-02.ttl, - tests/turtle-2013/turtle-syntax-bad-string-03.ttl, - tests/turtle-2013/turtle-syntax-bad-string-04.ttl, - tests/turtle-2013/turtle-syntax-bad-string-05.ttl, - tests/turtle-2013/turtle-syntax-bad-string-06.ttl, - tests/turtle-2013/turtle-syntax-bad-string-07.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-01.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-02.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-03.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-04.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-05.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-06.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-07.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-08.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-09.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-10.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-11.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-12.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-13.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-14.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-15.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-16.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-17.ttl, - tests/turtle-2013/turtle-syntax-bad-uri-01.ttl, - tests/turtle-2013/turtle-syntax-bad-uri-02.ttl, - tests/turtle-2013/turtle-syntax-bad-uri-03.ttl, - tests/turtle-2013/turtle-syntax-bad-uri-04.ttl, - tests/turtle-2013/turtle-syntax-bad-uri-05.ttl, - tests/turtle-2013/turtle-syntax-base-01.ttl, - tests/turtle-2013/turtle-syntax-base-02.ttl, - tests/turtle-2013/turtle-syntax-base-03.ttl, - tests/turtle-2013/turtle-syntax-base-04.ttl, - tests/turtle-2013/turtle-syntax-blank-label.nt, - tests/turtle-2013/turtle-syntax-blank-label.ttl, - tests/turtle-2013/turtle-syntax-bnode-01.ttl, - tests/turtle-2013/turtle-syntax-bnode-02.ttl, - tests/turtle-2013/turtle-syntax-bnode-03.ttl, - tests/turtle-2013/turtle-syntax-bnode-04.ttl, - tests/turtle-2013/turtle-syntax-bnode-05.ttl, - tests/turtle-2013/turtle-syntax-bnode-06.ttl, - tests/turtle-2013/turtle-syntax-bnode-07.ttl, - tests/turtle-2013/turtle-syntax-bnode-08.ttl, - tests/turtle-2013/turtle-syntax-bnode-09.ttl, - tests/turtle-2013/turtle-syntax-bnode-10.ttl, - tests/turtle-2013/turtle-syntax-kw-03.ttl, - tests/turtle-2013/turtle-syntax-lists-01.ttl, - tests/turtle-2013/turtle-syntax-lists-02.ttl, - tests/turtle-2013/turtle-syntax-lists-03.ttl, - tests/turtle-2013/turtle-syntax-lists-04.ttl, - tests/turtle-2013/turtle-syntax-lists-05.ttl, - tests/turtle-2013/turtle-syntax-ln-colons.nt, - tests/turtle-2013/turtle-syntax-ln-colons.ttl, - tests/turtle-2013/turtle-syntax-ln-dots.nt, - tests/turtle-2013/turtle-syntax-ln-dots.ttl, - tests/turtle-2013/turtle-syntax-ns-dots.ttl, - tests/turtle-2013/turtle-syntax-pname-dots.ttl, - tests/turtle-2013/turtle-syntax-pname-esc-01.ttl, - tests/turtle-2013/turtle-syntax-pname-esc-02.ttl, - tests/turtle-2013/turtle-syntax-pname-esc-03.ttl, - tests/turtle-2013/turtle-syntax-prefix-01.ttl, - tests/turtle-2013/turtle-syntax-prefix-02.ttl, - tests/turtle-2013/turtle-syntax-prefix-03.ttl, - tests/turtle-2013/turtle-syntax-prefix-04.ttl, - tests/turtle-2013/turtle-syntax-prefix-05.ttl, - tests/turtle-2013/turtle-syntax-prefix-06.ttl, - tests/turtle-2013/turtle-syntax-prefix-07.ttl, - tests/turtle-2013/turtle-syntax-prefix-08.ttl, - tests/turtle-2013/turtle-syntax-prefix-09.ttl, - tests/turtle-2013/turtle-syntax-str-esc-01.ttl, - tests/turtle-2013/turtle-syntax-str-esc-02.ttl, - tests/turtle-2013/turtle-syntax-str-esc-03.ttl, - tests/turtle-2013/turtle-syntax-string-01.ttl, - tests/turtle-2013/turtle-syntax-string-02.ttl, - tests/turtle-2013/turtle-syntax-string-03.ttl, - tests/turtle-2013/turtle-syntax-string-04.ttl, - tests/turtle-2013/turtle-syntax-string-05.ttl, - tests/turtle-2013/turtle-syntax-string-06.ttl, - tests/turtle-2013/turtle-syntax-string-07.ttl, - tests/turtle-2013/turtle-syntax-string-08.ttl, - tests/turtle-2013/turtle-syntax-string-09.ttl, - tests/turtle-2013/turtle-syntax-string-10.ttl, - tests/turtle-2013/turtle-syntax-string-11.ttl, - tests/turtle-2013/turtle-syntax-struct-01.ttl, - tests/turtle-2013/turtle-syntax-struct-02.ttl, - tests/turtle-2013/turtle-syntax-struct-03.ttl, - tests/turtle-2013/turtle-syntax-struct-04.ttl, - tests/turtle-2013/turtle-syntax-struct-05.ttl, - tests/turtle-2013/turtle-syntax-uri-01.ttl, - tests/turtle-2013/turtle-syntax-uri-02.ttl, - tests/turtle-2013/turtle-syntax-uri-03.ttl, - tests/turtle-2013/turtle-syntax-uri-04.ttl, - tests/turtle-2013/two_LITERAL_LONG2s.nt, - tests/turtle-2013/two_LITERAL_LONG2s.ttl, - tests/turtle-2013/underscore_in_localName.nt, - tests/turtle-2013/underscore_in_localName.ttl: Import latest - Turtle 2013 tests - -2013-07-30 Dave Beckett - - * configure.ac: - Revert 53664470aca6c3393fe05724653c7e45d0c52588 - - * librdfa/.gitignore: - Add gitignore for objs in librdfa/ - - * configure.ac: Add automake option subdir-objects to keep librdfa - building - -2013-05-31 Dave Beckett - - * .travis.yml: Add yajl and run tests - - * .travis.yml: Do an update first - - * .travis.yml: More travis-ci.org config - -2013-04-27 Dave Beckett - - * scripts/fix-flex: Fix declaration of 'i' in generated flex - __scan_bytes function - - * src/turtle_parser.y: - Remove prototypes for column methods that - flex 2.5.36+ provides now. - - * configure.ac, src/turtle_lexer.l: - Recommend flex 2.5.36 Remove prototypes for column methods that - flex 2.5.36+ provides now. - -2013-04-05 Dave Beckett - - * ChangeLog, ChangeLog.13, Makefile.am: - ChangeLog.13 for 2012 - -2013-03-26 Dave Beckett - - * docs/tmpl/section-iostream.sgml: - Update tmpls - -2013-04-05 Dave Beckett - - * build/pkg.m4, configure.ac: Switch libxml and libcurl to use - PKG_PROG_PKG_CONFIG and PKG_CHECK_MODULES - - Preference is still to xml2-config and curl-config unless - --with-curl-config=no --with-xml2-config=no are used - - * configure.ac: Die if xml2-config or xslt-config point at non - executable files - - Patch from Michael Stahl - thanks - - Fixes Issue #0000534 - http://bugs.librdf.org/mantis/view.php?id=535 - - * autogen.sh, configure.ac: - Modernize LT_INIT call for libtool 2.2+ - -2013-03-26 Dave Beckett - - * src/raptor2.h.in: Document raptor_escaped_write_bitflags enum - values - - * docs/raptor2-sections.txt: Add escaped_write enum and functions - - * docs/raptor-1-to-2-map.tsv: 2.0.10 changes - -2013-03-23 Dave Beckett - - * configure.ac: Add curl or libxml pkg-config requires iff they - were found via pkg-config - - This enables building a good raptor pkg-config file when raptor is - built with libxml or libcurl installs that provide xml2-config / - curl-config, includes and libraries but no pkg-config files. - -2013-03-12 Dave Beckett - - * autogen.sh, src/ntriples_parse.c: Handle variations of header - macro - - Fixes Issue #0000532 - http://bugs.librdf.org/mantis/view.php?id=532 - - * .travis.yml: Test travis-ci.org - -2013-03-03 Dave Beckett - - * src/raptor_serialize_turtle.c: - (raptor_uri_turtle_write): Wraps raptor_turtle_writer_uri - - * src/raptor_serialize_turtle.c: - (raptor_term_turtle_write): Wraps raptor_turtle_writer_term - - * src/raptor_serialize_turtle.c: Make - raptor_uri_to_turtle_counted_string use a turtle writer. - - (raptor_uri_to_turtle_counted_string): Use turtle writer and - raptor_turtle_writer_uri. Add docs warning about inefficiency - - * src/raptor_serialize_turtle.c: Add docs warning about - inefficiencies - - (raptor_init_serializer_turtle, raptor_uri_turtle_write, - raptor_uri_to_turtle_counted_string, raptor_uri_to_turtle_string): - Add doc note warning they are inefficient - a turtle writer is - made and destroyed each time - and that a serializer is better. - - * src/raptor_statement.c: - (raptor_statement_print): Use raptor_uri_print - - * src/raptor_turtle_writer.c: docs - - * src/raptor_turtle_writer.c: - (raptor_turtle_writer_reference): Wraps raptor_uri_escaped_write - - * src/raptor_internal.h: Remove not needed RAPTOR_INTERNAL_API - prefix - - * src/raptor_internal.h, src/raptor_turtle_writer.c: Added turtle - writer methods for writing uris and term - - (raptor_turtle_writer_uri, raptor_turtle_writer_term): Added to - write URIs and terms. - - * src/raptor2.h.in: - Undeprecate raptor_statement_ntriples_write - - * src/raptor_escaped.c: - (raptor_string_escaped_write): 0x7f is never written raw - - * tests/ntriples/testnq-1.nq, tests/ntriples/testnq-1.out: Remove - spaces from test data URIs - - * src/raptor_escaped.c: - (raptor_string_escaped_write): Decode unicode chars - - * src/raptor_escaped.c: - (raptor_term_escaped_write): Encode uri not datatype uri - - * src/raptor_internal.h, src/raptor_serialize_turtle.c: Make - raptor_turtle_is_legal_turtle_qname internal not static - - * src/raptor_serialize_ntriples.c: ws - - * src/raptor_serialize_ntriples.c, src/raptor_term.c: Use - raptor_term_escaped_write instead of deprecated - raptor_term_ntriples_write - - (raptor_bnodeid_ntriples_write, raptor_statement_ntriples_write): - Use raptor_term_escaped_write instead of deprecated - raptor_term_ntriples_write - -2013-03-02 Dave Beckett - - * src/raptor_json_writer.c, src/raptor_serialize_json.c, - src/raptor_serialize_ntriples.c, src/raptor_turtle_writer.c: - Use raptor_string_escaped_write instead of raptor_string_python_write - - (raptor_json_writer_quoted, raptor_json_serialize_avltree_visit, - raptor_string_ntriples_write, - raptor_turtle_writer_quoted_counted_string): Replace deprecated - function with new one - - (raptor_turtle_writer_quoted_counted_string): Tidy code as well. - - * src/Makefile.am, src/raptor2.h.in, src/raptor_escaped.c, - src/raptor_turtle_writer.c: Added escaped writing module to write - Turtle/N-Triples terms - - Added enum of bitflags raptor_escaped_write_bitflags that describe - the escaping wanted. - - (raptor_string_escaped_write): Added - - (raptor_string_python_write): Deprecated, now calls - raptor_string_escaped_write() with flags. - - (raptor_term_escaped_write): Added. - - * src/raptor2.h.in, src/raptor_uri.c: - (raptor_uri_escaped_write): Added - -2013-02-27 Dave Beckett - - * tests/turtle-2013/Makefile.am, tests/turtle-2013/manifest.ttl: - Remove manifest.ttl from dist - -2013-02-26 Dave Beckett - - * CMakeLists.txt, NEWS.html, RELEASE.html, configure.ac: Bumped - version to 2.0.10 - - * Snapshotted raptor2_2_0_9 for 2.0.9 release (GIT - 32b08d01e8c378b43ca2fee2b849b4d14b36c32d) - - * INSTALL.html, NEWS.html, RELEASE.html, TODO.html, UPGRADING.html: - 2.0.9 - -2013-02-25 Dave Beckett - - * NEWS.html, README.html, RELEASE.html: 2.0.9 - - * src/Makefile.am, src/raptor2.h.in, src/raptor_sparql.c: - (raptor_sparql_name_check_type): Removed - not used - - * Merge pull request #7 from dajobe/turtle-2013 Support Turtle 2013 - -2013-02-24 Dave Beckett - - * src/turtle_lexer.l: Terminate parsing at bad URI characters - - * tests/turtle/Makefile.am: Add bad-15.out bad-17.out bad-18.out - bad-21.out bad-22.out to dist - - * tests/turtle-2013/Makefile.am: README - - * tests/turtle-2013/README: Add Turtle 2013 Readme - - * src/turtle_lexer.l: Use raptor_turtle_check_uri_string to valid - IRIs in Turtle docs - - * src/turtle_common.c, src/turtle_common.h: Ensure only an IRI - that matches Turtle rules passes parsing - - (raptor_turtle_check_uri_string): Added to check Turtle URI char - rules - - * src/raptor_internal.h, src/raptor_serialize_turtle.c, - src/raptor_turtle_writer.c: Update Turtle URI writing to match - Turtle 2013 encoding - - (raptor_turtle_writer_reference): Write URIs with Turtle 2013 - escaped characters; must escape #x00-#x20<>\"{}|^` - - * tests/turtle/Makefile.am: Mark turtle tests bad-17 and bad-18 as - now good - - * tests/turtle/bad-17.out, tests/turtle/bad-17.ttl, - tests/turtle/bad-18.out, tests/turtle/bad-18.ttl: Mark turtle - tests bad-17 and bad-18 as now good - - * tests/turtle/test-29.ttl: Turtle 2013 changes the way URIs are - encoded :/ - - * src/turtle_parser.y: Fix statement list to match Turtle 2013 - rules about '.'s Removes 4 lexer conflicts; now expect 0 - - * src/turtle_lexer.l: Fix DECIMAL, DOUBLE, INTEGER to match Turtle - 2013. '123.' is now an integer followed by '.' not a double - - * src/turtle_common.c: Check for valid \u and \U escapes in turtle - strings - - (raptor_stringbuffer_append_turtle_string) - (raptor_turtle_expand_name_escapes): Added checking code. - - * src/turtle_lexer.l: Replace QUOTEDURI with Turtle 2013 IRI - allowing u-escapes - - * tests/turtle-2013/Makefile.am: Report error counts and failing - tests - - * src/turtle_lexer.l: ws - - * src/turtle_common.c, src/turtle_common.h, src/turtle_parser.y: - Added turtle_expand_name_escapes for expanding escapes inline - - * src/turtle_lexer.l: Support '''single long''' quotes - - * src/turtle_lexer.l: Support 'single' quotes - - * src/turtle_lexer.l: \. - - * tests/turtle/Makefile.am, tests/turtle/bad-15.out, - tests/turtle/bad-21.out, tests/turtle/bad-22.out: Turtle tests - bad-15, bad-21 and bad-22 are good for Turtle 2013 - - * src/raptor_qname.c: - (raptor_qname_string_to_uri): Handle qnames with two :s - Need to handle ':foo:...' QNames; just care about first ':' - - * tests/turtle-2013/Makefile.am: Tidy and report number of errors - - * src/turtle_lexer.l: Fix Turtle 2013 lexing rules - - * src/turtle_lexer.l, src/turtle_parser.y: Switch to use LANGTAG - for language tag - - * src/turtle_parser.y: Fixes for debugging bison - - * src/turtle_common.c: - (raptor_stringbuffer_append_turtle_string): Handle Turtle 2013 - \-escapes - -2013-02-23 Dave Beckett - - * src/turtle_parser.y: Be resilient to NULL turtle_parser in - errors and qname lookups - - (turtle_syntax_error, turtle_qname_to_uri): Return NULL if no - turtle_parser is present. - - * src/raptor_namespace.c: - (raptor_namespaces_find_namespace): Be resilient to NULL or empty - stack. - - * tests/turtle-2013/Makefile.am: more turtle 2013 syntax tests - - * src/turtle_parser.y: Allow blankNodePropertyList %expect from 2 - to 4: - - State 25 conflicts: 2 shift/reduce - State 59 conflicts: 2 shift/reduce - - Altered some rules to match Turtle 2013: - - - predicateObjectList: renamed from propertyList - - predicateObjectListOpt: renamed from propertyListOpt - - blankNode: renamed from blank and altered to match - - subject: add blankNode and collection - - object: add collection and blankNodePropertyList - - * src/turtle_lexer.l, src/turtle_parser.y: - Support SPARQL "BASE " and "PREFIX : " for Turtle 2013 - - * tests/turtle-2013/Makefile.am: Add turtle 2013 syntax check - files - - * tests/turtle-2013/LICENSE, tests/turtle-2013/Makefile.am, - tests/turtle-2013/manifest.ttl, - tests/turtle-2013/turtle-eval-bad-01.ttl, - tests/turtle-2013/turtle-eval-bad-02.ttl, - tests/turtle-2013/turtle-eval-bad-03.ttl, - tests/turtle-2013/turtle-eval-bad-04.ttl, - tests/turtle-2013/turtle-eval-struct-01.nt, - tests/turtle-2013/turtle-eval-struct-01.ttl, - tests/turtle-2013/turtle-eval-struct-02.nt, - tests/turtle-2013/turtle-eval-struct-02.ttl, - tests/turtle-2013/turtle-subm-01.nt, - tests/turtle-2013/turtle-subm-01.ttl, - tests/turtle-2013/turtle-subm-02.nt, - tests/turtle-2013/turtle-subm-02.ttl, - tests/turtle-2013/turtle-subm-03.nt, - tests/turtle-2013/turtle-subm-03.ttl, - tests/turtle-2013/turtle-subm-04.nt, - tests/turtle-2013/turtle-subm-04.ttl, - tests/turtle-2013/turtle-subm-05.nt, - tests/turtle-2013/turtle-subm-05.ttl, - tests/turtle-2013/turtle-subm-06.nt, - tests/turtle-2013/turtle-subm-06.ttl, - tests/turtle-2013/turtle-subm-07.nt, - tests/turtle-2013/turtle-subm-07.ttl, - tests/turtle-2013/turtle-subm-08.nt, - tests/turtle-2013/turtle-subm-08.ttl, - tests/turtle-2013/turtle-subm-09.nt, - tests/turtle-2013/turtle-subm-09.ttl, - tests/turtle-2013/turtle-subm-10.nt, - tests/turtle-2013/turtle-subm-10.ttl, - tests/turtle-2013/turtle-subm-11.nt, - tests/turtle-2013/turtle-subm-11.ttl, - tests/turtle-2013/turtle-subm-12.nt, - tests/turtle-2013/turtle-subm-12.ttl, - tests/turtle-2013/turtle-subm-13.nt, - tests/turtle-2013/turtle-subm-13.ttl, - tests/turtle-2013/turtle-subm-14.nt, - tests/turtle-2013/turtle-subm-14.ttl, - tests/turtle-2013/turtle-subm-15.nt, - tests/turtle-2013/turtle-subm-15.ttl, - tests/turtle-2013/turtle-subm-16.nt, - tests/turtle-2013/turtle-subm-16.ttl, - tests/turtle-2013/turtle-subm-17.nt, - tests/turtle-2013/turtle-subm-17.ttl, - tests/turtle-2013/turtle-subm-18.nt, - tests/turtle-2013/turtle-subm-18.ttl, - tests/turtle-2013/turtle-subm-19.nt, - tests/turtle-2013/turtle-subm-19.ttl, - tests/turtle-2013/turtle-subm-20.nt, - tests/turtle-2013/turtle-subm-20.ttl, - tests/turtle-2013/turtle-subm-21.nt, - tests/turtle-2013/turtle-subm-21.ttl, - tests/turtle-2013/turtle-subm-22.nt, - tests/turtle-2013/turtle-subm-22.ttl, - tests/turtle-2013/turtle-subm-23.nt, - tests/turtle-2013/turtle-subm-23.ttl, - tests/turtle-2013/turtle-subm-24.nt, - tests/turtle-2013/turtle-subm-24.ttl, - tests/turtle-2013/turtle-subm-25.nt, - tests/turtle-2013/turtle-subm-25.ttl, - tests/turtle-2013/turtle-subm-26.nt, - tests/turtle-2013/turtle-subm-26.ttl, - tests/turtle-2013/turtle-subm-27.nt, - tests/turtle-2013/turtle-subm-27.ttl, - tests/turtle-2013/turtle-syntax-bad-base-01.ttl, - tests/turtle-2013/turtle-syntax-bad-base-02.ttl, - tests/turtle-2013/turtle-syntax-bad-base-03.ttl, - tests/turtle-2013/turtle-syntax-bad-esc-01.ttl, - tests/turtle-2013/turtle-syntax-bad-esc-02.ttl, - tests/turtle-2013/turtle-syntax-bad-esc-03.ttl, - tests/turtle-2013/turtle-syntax-bad-esc-04.ttl, - tests/turtle-2013/turtle-syntax-bad-kw-01.ttl, - tests/turtle-2013/turtle-syntax-bad-kw-02.ttl, - tests/turtle-2013/turtle-syntax-bad-kw-03.ttl, - tests/turtle-2013/turtle-syntax-bad-kw-04.ttl, - tests/turtle-2013/turtle-syntax-bad-kw-05.ttl, - tests/turtle-2013/turtle-syntax-bad-lang-01.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-01.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-02.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-03.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-04.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-05.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-06.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-07.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-08.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-09.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-10.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-11.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-12.ttl, - tests/turtle-2013/turtle-syntax-bad-n3-extras-13.ttl, - tests/turtle-2013/turtle-syntax-bad-num-01.ttl, - tests/turtle-2013/turtle-syntax-bad-num-02.ttl, - tests/turtle-2013/turtle-syntax-bad-num-03.ttl, - tests/turtle-2013/turtle-syntax-bad-num-04.ttl, - tests/turtle-2013/turtle-syntax-bad-num-05.ttl, - tests/turtle-2013/turtle-syntax-bad-pname-01.ttl, - tests/turtle-2013/turtle-syntax-bad-pname-02.ttl, - tests/turtle-2013/turtle-syntax-bad-pname-03.ttl, - tests/turtle-2013/turtle-syntax-bad-prefix-01.ttl, - tests/turtle-2013/turtle-syntax-bad-prefix-02.ttl, - tests/turtle-2013/turtle-syntax-bad-prefix-03.ttl, - tests/turtle-2013/turtle-syntax-bad-prefix-04.ttl, - tests/turtle-2013/turtle-syntax-bad-prefix-05.ttl, - tests/turtle-2013/turtle-syntax-bad-string-01.ttl, - tests/turtle-2013/turtle-syntax-bad-string-02.ttl, - tests/turtle-2013/turtle-syntax-bad-string-03.ttl, - tests/turtle-2013/turtle-syntax-bad-string-04.ttl, - tests/turtle-2013/turtle-syntax-bad-string-05.ttl, - tests/turtle-2013/turtle-syntax-bad-string-06.ttl, - tests/turtle-2013/turtle-syntax-bad-string-07.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-01.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-02.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-03.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-04.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-05.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-06.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-07.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-08.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-09.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-10.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-11.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-12.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-13.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-14.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-15.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-16.ttl, - tests/turtle-2013/turtle-syntax-bad-struct-17.ttl, - tests/turtle-2013/turtle-syntax-bad-uri-01.ttl, - tests/turtle-2013/turtle-syntax-bad-uri-02.ttl, - tests/turtle-2013/turtle-syntax-bad-uri-03.ttl, - tests/turtle-2013/turtle-syntax-bad-uri-04.ttl, - tests/turtle-2013/turtle-syntax-bad-uri-05.ttl, - tests/turtle-2013/turtle-syntax-base-01.ttl, - tests/turtle-2013/turtle-syntax-base-02.ttl, - tests/turtle-2013/turtle-syntax-base-03.ttl, - tests/turtle-2013/turtle-syntax-base-04.ttl, - tests/turtle-2013/turtle-syntax-bnode-01.ttl, - tests/turtle-2013/turtle-syntax-bnode-02.ttl, - tests/turtle-2013/turtle-syntax-bnode-03.ttl, - tests/turtle-2013/turtle-syntax-bnode-04.ttl, - tests/turtle-2013/turtle-syntax-bnode-05.ttl, - tests/turtle-2013/turtle-syntax-bnode-06.ttl, - tests/turtle-2013/turtle-syntax-bnode-07.ttl, - tests/turtle-2013/turtle-syntax-bnode-08.ttl, - tests/turtle-2013/turtle-syntax-bnode-09.ttl, - tests/turtle-2013/turtle-syntax-bnode-10.ttl, - tests/turtle-2013/turtle-syntax-datatypes-01.ttl, - tests/turtle-2013/turtle-syntax-datatypes-02.ttl, - tests/turtle-2013/turtle-syntax-file-01.ttl, - tests/turtle-2013/turtle-syntax-file-02.ttl, - tests/turtle-2013/turtle-syntax-file-03.ttl, - tests/turtle-2013/turtle-syntax-kw-01.ttl, - tests/turtle-2013/turtle-syntax-kw-02.ttl, - tests/turtle-2013/turtle-syntax-kw-03.ttl, - tests/turtle-2013/turtle-syntax-lists-01.ttl, - tests/turtle-2013/turtle-syntax-lists-02.ttl, - tests/turtle-2013/turtle-syntax-lists-03.ttl, - tests/turtle-2013/turtle-syntax-lists-04.ttl, - tests/turtle-2013/turtle-syntax-lists-05.ttl, - tests/turtle-2013/turtle-syntax-number-01.ttl, - tests/turtle-2013/turtle-syntax-number-02.ttl, - tests/turtle-2013/turtle-syntax-number-03.ttl, - tests/turtle-2013/turtle-syntax-number-04.ttl, - tests/turtle-2013/turtle-syntax-number-05.ttl, - tests/turtle-2013/turtle-syntax-number-06.ttl, - tests/turtle-2013/turtle-syntax-number-07.ttl, - tests/turtle-2013/turtle-syntax-number-08.ttl, - tests/turtle-2013/turtle-syntax-number-09.ttl, - tests/turtle-2013/turtle-syntax-number-10.ttl, - tests/turtle-2013/turtle-syntax-number-11.ttl, - tests/turtle-2013/turtle-syntax-pname-esc-01.ttl, - tests/turtle-2013/turtle-syntax-pname-esc-02.ttl, - tests/turtle-2013/turtle-syntax-pname-esc-03.ttl, - tests/turtle-2013/turtle-syntax-prefix-01.ttl, - tests/turtle-2013/turtle-syntax-prefix-02.ttl, - tests/turtle-2013/turtle-syntax-prefix-03.ttl, - tests/turtle-2013/turtle-syntax-prefix-04.ttl, - tests/turtle-2013/turtle-syntax-prefix-05.ttl, - tests/turtle-2013/turtle-syntax-prefix-06.ttl, - tests/turtle-2013/turtle-syntax-prefix-07.ttl, - tests/turtle-2013/turtle-syntax-prefix-08.ttl, - tests/turtle-2013/turtle-syntax-prefix-09.ttl, - tests/turtle-2013/turtle-syntax-str-esc-01.ttl, - tests/turtle-2013/turtle-syntax-str-esc-02.ttl, - tests/turtle-2013/turtle-syntax-str-esc-03.ttl, - tests/turtle-2013/turtle-syntax-string-01.ttl, - tests/turtle-2013/turtle-syntax-string-02.ttl, - tests/turtle-2013/turtle-syntax-string-03.ttl, - tests/turtle-2013/turtle-syntax-string-04.ttl, - tests/turtle-2013/turtle-syntax-string-05.ttl, - tests/turtle-2013/turtle-syntax-string-06.ttl, - tests/turtle-2013/turtle-syntax-string-07.ttl, - tests/turtle-2013/turtle-syntax-string-08.ttl, - tests/turtle-2013/turtle-syntax-string-09.ttl, - tests/turtle-2013/turtle-syntax-string-10.ttl, - tests/turtle-2013/turtle-syntax-string-11.ttl, - tests/turtle-2013/turtle-syntax-struct-01.ttl, - tests/turtle-2013/turtle-syntax-struct-02.ttl, - tests/turtle-2013/turtle-syntax-struct-03.ttl, - tests/turtle-2013/turtle-syntax-struct-04.ttl, - tests/turtle-2013/turtle-syntax-struct-05.ttl, - tests/turtle-2013/turtle-syntax-uri-01.ttl, - tests/turtle-2013/turtle-syntax-uri-02.ttl, - tests/turtle-2013/turtle-syntax-uri-03.ttl, - tests/turtle-2013/turtle-syntax-uri-04.ttl: Add Turtle 2013 tests - from W3C - - * src/.gitignore: Exclude .trs files from newer automate test - framework - - * src/turtle_lexer.l: - Add Turtle 2013 rules - - Added PN_CHARS_BASE (no Unicode), PN_CHARS from Turtle 2013 - - Added BS_ESCAPES based on Turtle 2013 PN_LOCAL escapes - - Added HEX - - Added PLX from Turtle 2013 - - Added BN_LABEL, PN_PREFIX and PN_LOCAL based on Turtle 2013 rules. - - Redefine QNAME in terms of PN_PREFIX and PN_LOCAL Replace BNAME - with BN_LABEL for blank node label Use PN_PREFIX for @prefix - prefix - - * configure.ac, tests/Makefile.am: - Add tests/turtle-2013 - -2013-02-22 Dave Beckett - - * build/.gitignore: Ignore automake test-driver - - * src/CMakeLists.txt: Add raptor_sparql.c - - * src/raptor_sparql.c: comment - -2013-02-21 Dave Beckett - - * src/raptor_sparql.c: docs - - * src/raptor_sparql.c: - (raptor_sparql_name_check): Check hex - - * src/Makefile.am, src/raptor2.h.in, src/raptor_qname.c, - src/raptor_sparql.c: Add sparql name check module - - * src/raptor_qname.c: - (raptor_sparql_name_check): Added to check sparql / turtle names - Adds new enum raptor_sparql_name_check_type - -2013-02-20 Dave Beckett - - * src/raptor_www.c: - (raptor_www_set_ssl_verify_options): Update docs to match curl - latest - -2013-02-18 Dave Beckett - - * INSTALL.html: Document how to find gtkdocize - Fixes Issue #0000526 - http://bugs.librdf.org/mantis/view.php?id=526 - -2013-02-13 Dave Beckett - - * src/raptor_www_curl.c: Never use CURLOPT_SSL_VERIFYHOST with a - value of 2 - - (raptor_www_curl_set_ssl_verify_options): curl 7.28.1 removed the - value 1 from being legal: - http://daniel.haxx.se/blog/2012/10/25/libcurl-claimed-to-be-dangerous/CURL - GIT commit da82f59b697310229ccdf66104d5d65a44dfab98 - Sat Oct 27 12:31:39 2012 +0200 - - Legal values are: 0 to disable host verifying 2 (default) to - enable host verifyinging - -2013-01-24 Dave Beckett - - * ChangeLog: 2.0.9 and 2013 - -2013-01-23 Dave Beckett - - * librdfa/triple.c: - Output correct literal datatypes ^^ - - librdfa commit f3d10545bc2dd4a7aa940dd11dfcb6c6035e23a4 - -2013-01-03 Dave Beckett - - * ChangeLog, LICENSE.html, NEWS.html, README.html, RELEASE.html: - 2.0.9 and 2013 diff --git a/ChangeLog.2 b/ChangeLog.2 deleted file mode 100644 index f77cec1a..00000000 --- a/ChangeLog.2 +++ /dev/null @@ -1,637 +0,0 @@ -2001-12-10 Dave Beckett - - * Makefile.am: Added dc.rdf to dist - - * dc.rdf: RDF/XML example file - - * tests/ex-20.rdf: use rdf:ID - -2001-10-10 Dave Beckett - - * configure.in: - Check for xmlParseFile in xml or xml2 - -2001-10-08 Dave Beckett - - * tests/Makefile.am: - Allow tests with empty correct results file - - * rdfdump.c: - Check that only file: URIs are used - -2001-09-21 Dave Beckett - - * tests/ex-19.rdf: - Check omitted rdf:RDF works - - * tests/ex-20.rdf: - Check rdf:ID generates right URI - - * tests/Makefile.am: - Added ex-19, ex-20 - Generate N-Triples output with fixed base URI - - * configure.in: - Updated for use of libtool - Remove XML_OBJS, use LIBS for xml parser dependencies - - * Makefile.am: - Create dynamic, static library using libtool - Reorganised rdfdump compile. - - * raptor_parse.c (raptor_make_uri_from_id): - Take base_uri and use it to create - absolute URI from id. - Update uses of above function to match changed interface. - -2001-09-20 Dave Beckett - - * rdfdump.c: - If quiet, don't even report number of statements - - * rdfdump.c: Fix help - -2001-09-13 Dave Beckett - - * ntriples_parse.c (raptor_ntriples_string): - A little optimising of switch cases - - * tests/test.nt: - Added \u and \U test cases - - * ntriples_parse.c: - Added \U and \U escapes - - * ntriples_parse.c (raptor_ntriples_unicode_char_to_utf8): - (raptor_ntriples_string): Tidy up, in preparation for adding new - escapes. - - * ntriples_parse.c (raptor_ntriples_unicode_char_to_utf8): - Added, - based on librdf_unicode_char_to_utf8 - (raptor_ntriples_string): Added, for handling \ escapes for both - "strings" and - - * tests/Makefile.am: - Automate test checks, diffs. Not doing proper model checks yet. - - * tests/Makefile.am: - Add raw output files to dist - - * configure.in: - Moved tests into tests directory - - * tests/Makefile.am: - automakefile for tests - - * Makefile.am: - Moved tests into tests directory - -2001-09-10 Dave Beckett - - * raptor.h: - Added comments for raptor_identifier_type - -2001-08-21 Dave Beckett - - * configure.in: - Handle libxml v1 (xml-config) and v2 (xml2-config) - Report libxml version found in configuring and status - - * configure.in: - Bumped version to 0.9.4 - - * Snapshotted raptor_0_9_3 for 0.9.3 release - - * configure.in: - When choosing xml parsers, end when one found. - - * INSTALL.html: - Updated for xml parser choosing changes - Added N-Triples test - - * configure.in: - Choose an xml parser from any available, --with-xml-parser selects one specifically. - - * Makefile.am: - Use -n for invoking ntriples output; --ntriples only works when GNU - getopt_long is around. - - * rdfdump.c: - Add ntriples to short getopt string - - * configure.in: - Update CPPFLAGS from xml-config when it exists and testing for - headers. - - * NEWS.html: - Updated for 0.9.3 release - -2001-08-17 Dave Beckett - - * raptor_parse.c (raptor_xml_set_document_locator): - Capture SAX document locator - (raptor_xml_update_document_locator): Update raptor locator with that - info. - Update gnome xml/libxml error and warning functions to use the above. - -2001-08-15 Dave Beckett - - * raptor_parse.c (raptor_generate_statement): - Handle generating reified statements - with IDs as well as URIs etc. - - * Makefile.am: Added tests/ex-18.rdf - - * tests/ex-18.rdf: - test rdf:Description as document element - - * raptor_parse.c (raptor_xml_start_element_handler): - Process rdf: attributes on - document element. - (raptor_start_element_grammar): Handle at top level - when not present. - - * raptor_parse.c: Fix it again - - * raptor_parse.c: - Fix things triggered by previous typo fix! - - * raptor_parse.c: Typo - - * configure.in: - Bumped version to 0.9.3 - - * TODO.html: Record more fixes - - * Makefile.am: - Started adding test answer files with tests/ex-13.nt - - * tests/ex-13.nt: - N-Triples output for tests/ex-13.rdf - - * raptor.h: - RAPTOR_IDENTIFIER_TYPE_NONE => RAPTOR_IDENTIFIER_TYPE_UNKNOWN - different from RAPTOR_URI_SOURCE_NOT_URI to catch uninitialisation - - * raptor_parse.c: - RAPTOR_IDENTIFIER_TYPE_NONE => RAPTOR_IDENTIFIER_TYPE_UNKNOWN - (raptor_print_statement_detailed): Added some debug-only tests - (raptor_copy_identifier): Oops, copy all fields in identifier. - Remove some void* casts no longer needed. - When copying DAML collection URI to parent, set type, uri_source too - - * ntriples_parse.c: - Fix for debug output - calculate length of generated terms correctly. - - * raptor.h: - added raptor_identifier for holding (URI, ID, types etc.) - raptor_identifier_type enum now union of raptor_subject,predicate,object_type - removed feature RAPTOR_FEATURE_INTERPRET_CONTAINERS_AS_TYPEDNODE - Added prototypes for raptor_identifier functions - - * rdfdump.c, ntriples_parse.c: - Updates for change with introduction of raptor_identifier - - * tests/ex-13.rdf: - Note results are in tests/ex-13.nt - - * raptor_parse.c: - Major update with pervasive changes - Added skipping state to just ignore XML content (not used yet) - Removed seq, bag, alt, container parser FSM states. - Added rdf:type, rdf:value support when used as attributes. - Replaced loads of (URI, ID, literal, type) with raptor_identifier - - still more to do - Removed feature interpret_containers_as_typedNode - now default. - Removed support for 'bare' XML elements - now illegal. - Minor bug fixes found from above changes. - (raptor_new_identifier): Added - (raptor_init_identifier): Added - (raptor_copy_identifier): Added - (raptor_free_identifier): Added - (raptor_process_property_attributes): Lots of updates to handle - rdf:type, rdf:value and rdf:_n. - - * Makefile.am: Added tests/ex-17.rdf - - * tests/ex-17.rdf: - test empty propertyElt off a node - - * tests/ex-01.rdf: - Added the two empty element XML forms - - * Makefile.am: Added tests/ex-16.rdf - - * tests/ex-16.rdf: - test rdf:value as an attribute - - * Makefile.am: Added tests/ex-15.rdf - - * tests/ex-15.rdf: - test rdf:type as an attribute - - * tests/ex-07.rdf: - Strictly, Literal not literal - -2001-07-26 Dave Beckett - - * raptor_parse.c: - Don't peek at current_element before it is constructed. - For elements inside parsetype literal, pass on state to potential - child elements. - -2001-07-24 Dave Beckett - - * README.html: - Move quality warning from alpha->beta - -2001-07-23 Dave Beckett - - * raptor_parse.c: - Updates to get daml:collection stuff working inside Redland - -2001-07-22 Dave Beckett - - * rdfdump.c: - Added --output=simple | ntriples to use raptor_print_statement_as_ntriples - - * raptor.h: - Added raptor_print_statement_as_ntriples - - * raptor_parse.c (raptor_print_statement_as_ntriples): - Added. - (raptor_make_uri_from_id): No longer uses base_uri. Probably need - to do this differently later. - Throughout - always store uri_source in parent when copying uris up. - Fix some mistakes in uri_source tracking. - - * ntriples_parse.c: - Make _:name not include _: in name - - * ntriples_parse.c (raptor_ntriples_generate_statement): - Handle _:name object stored - as strings, not URIs. - - * raptor_parse.c (raptor_print_statement_detailed): - Handle _:name subject, object - stored as strings, not URIs. - - * ntriples_parse.c (raptor_ntriples_generate_statement): - Handle _:name subject stored - as strings, not URIs. - - * tests/test.nt: - Added tests for all end of lines: CR and CR LF (other lines are all LF) - Changed all subject resource names so easier to see missing results. - - * ntriples_parse.c: - Added CR | LF | CR LF handling. - Handle space before/after trailing . - Various bits of tidying - -2001-07-21 Dave Beckett - - * Makefile.am: Added tests/ex-14.rdf - - * tests/ex-14.rdf: Test that was crashing - - * raptor_parse.c: - Store propertyElt/rdf:li resource/ID in object, not subject. - - * configure.in, Makefile.am: - Added win32 dir to dist - - * win32/raptor.dsw, win32/raptor.plg, win32/raptortest.cpp, - win32/raptortest.dsp, win32/Makefile.am, win32/raptor.dsp: - win32 files - - * TODO.html: - Updated from recent fixes, improvements. - - * Makefile.am: - Added RDF/XML test 11-13 - - * tests/ex-11.rdf, tests/ex-12.rdf, tests/ex-13.rdf: - tests for parseType literal, resource - - * raptor.h: - Updated after patch from Aaron Michal to provide Win32 and - daml:collection support - - * raptor_parse.c: - Added patch from Aaron Michal including - 1) Win32 support - 2) daml:collection support - 3) fixes to parseType literal and the raptor_format_element function - 4) Fixed passing on varargs in error, warning handlse. - 5) Various s/int i/unsigned int i/ - I also: - Added memory cleanup for daml:collection URIs - Fixed some fencepost errors in parseType literal string management - - * raptor_parse.c: - Update comment to match new rdf:value - - * raptor_parse.c: - Added rdf:value property to list of rdf_attr_names - -2001-07-21 Dave Beckett - - * raptor_parse.c: - Update comment to match new rdf:value - - * raptor_parse.c: - Added rdf:value property to list of rdf_attr_names - -2001-07-16 Dave Beckett - - * README.html: - Updated for ntriples parser. - - * raptor.h: - Make URI function prototypes public - - * ntriples_parse.c: - Handle anonymous nodes passed back properly. - -2001-07-13 Dave Beckett - - * ntriples_parse.c: - Tidied some comments - - * Makefile.am: - Added ntriples parser files, test file - - * rdfdump.c: - Added ntriples support, --ntriples arg to invoke it. - - * raptor_parse.c: - Moved raptor_uri stuff to raptor.h - Made some uri functions public for ntriples - - * raptor.h: - Define, use raptor_uri typedef here. - Add prototypes for raptor_uri functions - - * ntriples.h, ntriples_parse.c: - N-Triples parser - - * tests/test.nt: N-Triples test cases - -2001-07-02 Dave Beckett - - * NEWS.html: HTML tweak - - * raptor_parse.c, raptor.spec.in, raptor.h: - Now called raptor - - * Snapshotted raptor_0_9_2 for 0.9.2 release - - * NEWS.html: - Updated for 0.9.2 release - - * raptor_parse.c, raptor.spec.in, raptor.h, rdfdump.c, - configure.in, autogen.sh, acconfig.h, TODO.html, README.html, - NEWS.html, Makefile.am, LICENSE.html, INSTALL.html: - Now called raptor - -2001-06-06 Dave Beckett - - * README.html: - Point to TODO.html, NEWS.html, ChangeLog earlier on. - - * configure.in: - Bumped version to 0.9.2 - - * NEWS.html: - Updated for 0.9.1 release - - * Snapshotted rapier_0_9_1 for 0.9.1 release - -2001-06-04 Dave Beckett - - * rapier_parse.c: - Generate properties connecting parent nodes to contained resources - for all parent node types - - * Makefile.am: Fix test typo2 - - * Makefile.am: Fix test typo - - * Makefile.am: Renamed test files - - * tests/ex-05.rdf, tests/ex-06.rdf, tests/ex-07.rdf, - tests/ex-08.rdf, tests/ex-09.rdf, ex-10.rdf, tests/ex-00.rdf, - tests/ex-01.rdf, tests/ex-02.rdf, tests/ex-03.rdf, - tests/ex-04.rdf: Test RDf/XML files - - * rapier_parse.c: - Fixed some missing frees for IDs, bagIDs - Containers now return resource to parent properties. - - * configure.in: - Fix XML_SetNamespaceDeclHandler detection when using expat sources - - * configure.in: - One more return(0); added to AC_TRY_RUN - - * configure.in: - Updated configure for better expat, libxml detection - - * TODO.html: More todo. - - * Makefile.am: Run ./rdfdump - - * rdfdump.c: Count the statements - - * rapier.h: Added rapier_uri_source - - * rapier_parse.c: - Changed qname to local_name throughout. - (rapier_process_property_attributes): Pass in the element with the - attributes and the element that contains the resource - Added FIXMEs about ID attribute on empty propertyElt. - -2001-03-29 Dave Beckett - - * rapier_parse.c: - Replaced internal fields with more evocative names (subject_uri, - predicate_uri, object_uri) - Added rapier_uri_source for every URI so can follow URI provenance. - Pass the URI provenance to the generation of statements - Lots of bug squashing for tests ms_4.1_1.rdf (too many statements) - and ms_7.4_2.rdf (too few, parseType resource) - -2001-03-22 Dave Beckett - - * rapier_parse.c: - Added a cast for c++ - -2001-02-22 Dave Beckett - - * rapier_parse.c: - More parseType literal buffer length overruns fixed. - -2001-02-21 Dave Beckett - - * rapier.h: - Added librdf_world support when inside Redland - - * rapier_parse.c: - Added librdf_world support when inside Redland - (rapier_format_element): Count length of literal XML better - - correctly? - -2001-02-18 Dave Beckett - - * rapier_parse.c (rapier_parse_file): - Catch more conditional filename deallocs - - * rapier_parse.c: - Split RAPIER_URI_AS_FILENAME into _TO_FILENAME versions, dealloc - resulting string when using _TO_ version. - -2001-02-09 Dave Beckett - - * README.html: - Moved bugs to separate page. - - * TODO.html: Rapier todo/bugs - -2001-02-04 Dave Beckett - - * LICENSE.html: - Specify particular versions of licenses. - - * Many files: - Change license boilerplate - -2001-01-25 Dave Beckett - - * rapier.h: - Prototype changes to use Redland URI objects (when available) for - public functions and locators. - - * rapier_parse.c: - Changes to use Redland URI objects (when available) for public - functions and locators. - - * rapier.h: - Updated for new prototypes. - - * rapier_parse.c (rapier_new): - No args - (rapier_parse_file): Take rapier_uri pointers. - - * rdfdump.c: - Fixed base URI handling, updated to new rapier_new api - Added -r, --replace-newlines for replacing newlines with spaces in literals - Added -q, --quiet for less messages. - - * rapier_parse.c: - Add child_uri field to pass down to child nodes and use it when - rdf:resource used on propertyElts (not rdf:li) - inc rdf_attr_count for non RDF M&S attribtues - When ID seen on propertyElt, refify. But what to do with bagID then? - Fill in many missing bag_uri references when generating statements - -2001-01-24 Dave Beckett - - * configure.in: - Define RAPIER_INTERNAL here - - * rapier_parse.c: - Fixes for integration with Redland - -2001-01-23 Dave Beckett - - * rdfdump.c, configure.in, acconfig.h: - Added test for needing optind declaration (portability) - - * rapier_parse.c: - s/namespace/nspace/ to make compilable with c++ - Added qname_length and value_length to rapier_ns_name and use them to - reduce number of strlen()s. - Added some more casts for c++, especially near LIBRDF_MALLOC - - * configure.in: - Bumped version to 0.9.1 - -2001-01-22 Dave Beckett - - * Snapshotted rapier_0_9_0 for 0.9.0 release - - * configure.in: - Try to detect and use old and new installed expat libs - - * configure.in: - Try a better way to get correct expat headers - - * rdfdump.c: Use HAVE_GETOPT_H - - * configure.in: - Test for getopt.h (for rdfdump) - Test for expat.h, xmlparse.h - expat options. - - * rapier_parse.c: - Use HAVE_EXPAT_H and HAVE_XMLPARSE_H - - * configure.in: - Added fatal error if no XML parser found. - - * Makefile.am: - Add rapier.spec.in to dist - - * rapier.spec.in: RPM spec - - * configure.in: - Made first version 0.9.0 - - * rdfdump.c: Tidy comment. - - * NEWS.html, LICENSE.html, INSTALL.html: - Updated style, preparing for release - - * README.html: - Updated features, todo, preparing for release. - - * rapier_parse.c: Tidy comments. - - * rapier.h: - Changed prototype of container test function - - * rdfdump.c: - Fix error message formatting. - - * rapier_parse.c: - Major updates from 2001-01-21: - parseType literal works mostly. - Added reification. - Fixed some compile-with-Redland problems - Made use of more Redland URI concepts - (rapier_generate_property): Removed - now use - rapier_generate_statement or: - (rapier_generate_named_statement): Added - handles statements with - predicates that can be either XML names or namespaced names. - -2001-01-19 Dave Beckett - - * Makefile.am: Tidy cflags - - * configure.in: - Made version a lot bigger; alpha quality. - Added configurable expat/libxml choice - Tidy cflags - - * config.h.in: Shouldn't be in CVS - - * NEWS.html, LICENSE.html, INSTALL.html, README.html: - First version. - - * rapier_parse.c: - Mostly working except for - reification (ignored), - rdf:li as propertyType doesn't work, - parseType literal not supported. - Little testing. - diff --git a/ChangeLog.3 b/ChangeLog.3 deleted file mode 100644 index 7f3fa4ca..00000000 --- a/ChangeLog.3 +++ /dev/null @@ -1,2026 +0,0 @@ -2002-12-22 Dave Beckett - - * raptor_uri.c: - (main) Try test again with /etc - surely that is least likely to - be a symlink? - - * tests/Makefile.am: - check-bad-rdf: turn off bourne shell exiting while running - tests expected to fail. - - * tests/Makefile.am: - Set baseuri from test file basename; ensure no dirs are in the base URI - -2002-12-21 Dave Beckett - - * configure.ac: Removed just for now - -2002-12-20 Dave Beckett - - * NEWS.html: tweak - - * configure.in: Bumped version to 0.9.8 - - * NEWS.html: date - - * Snapshotted raptor_0_9_7 for 0.9.7 release - - * raptor.spec.in: Updated for 0.9.7 release - -2002-12-19 Dave Beckett - - * INSTALL.html, README.html, NEWS.html: Updated for 0.9.7 release - - * acconfig.h: - Seems like PACKAGE and VERSION are not needed here, and later - autoconfs generate headers that moan. - - * raptor_parse.c, raptor_general.c: castings - - * raptor.h: Indent CPP directives after column 1 # for lame C compiler - - * TODO.html: Updated after recent bug fixes - - * tests/Makefile.am: test(1) string equality is = not == - -2002-12-18 Dave Beckett - - * autogen.sh: Delete autom4te too - - * configure.ac: auto-configure source for newer autoconfs - -2002-12-16 Dave Beckett - - * raptor_uri.c (main): - Use /bin to test, seems more likely to be around on more posix - systems such as OSX - - * raptor_parse.c (raptor_generate_statement): - Handle NULL reified being passed. - (raptor_process_property_attributes): Property attributes are never - reified explicitly but may be in a bag. - (raptor_start_element_grammar,raptor_end_element_grammar): Turn bad - uses of bag:ID into errors not warnings. - - * tests/Makefile.am: - Added more bag:ID checks (44-45) and errors (bad 05-09) - Make test failures stop the 'make check'. - - * tests/bad-05.rdf, tests/bad-06.rdf, tests/bad-07.rdf, - tests/bad-08.rdf, tests/bad-09.rdf, tests/ex-48.rdf, - tests/ex-49.rdf, tests/ex-50.rdf, tests/ex-46.rdf, - tests/ex-47.rdf, tests/ex-48.out, tests/ex-49.out, - tests/ex-50.out, tests/ex-46.out, tests/ex-47.out: - Turned rdf:bagID property element checks into errors - - * raptor_parse.c: - Add rdf:bagID checks - only allow it in the two cases it is in the - grammar - on a node element and an empty property element. - Otherwise emit warnings since there is no error test case yet. - - * tests/ex-50.out, tests/ex-50.rdf, tests/ex-44.out, - tests/ex-45.out, tests/ex-46.out, tests/ex-47.out, - tests/ex-48.out, tests/ex-49.out, tests/ex-44.rdf, - tests/ex-45.rdf, tests/ex-46.rdf, tests/ex-47.rdf, - tests/ex-48.rdf, tests/ex-49.rdf: - Checking rdf:bagID ignored on other property element cases - - * raptor_parse.c (raptor_generate_statement): - Handles generating a reified statement - ID for use with bagID and then reiifying the statement too. - - * tests/Makefile.am: Add ex-43 - - * tests/ex-43.out, tests/ex-43.rdf: - Test rdf:bagID when property elements need generated reified ID - - * raptor_parse.c (raptor_generate_statement): - Gain bag_element argument, use it - throughout to indicate the element to find the rdf:bagID if any. - (raptor_start_element_grammar): Generate _:bagid rdf:type rdf:Bag - when rdf:bagID appears on node element. - - * tests/ex-42.out: Correct for actual output order - -2002-12-15 Dave Beckett - - * tests/ex-03.rdf, tests/ex-03.out: - correct this now that rdf:bagID support begins to work - - * tests/Makefile.am: Added ex-42 - - * tests/ex-42.out, tests/ex-42.rdf: rdf:bagID - - * tests/bad-04.rdf: Check rdf:ID and rdf:bagID with same value fails - - * tests/bad-02.rdf: Duplicate rdf:ID names - - * raptor_parse.c: - Make debug less chatty about cdata, unless RAPTOR_DEBUG_CDATA - defined. - - * raptor_parse.c (raptor_record_ID): - Added, notes rdf:ID and rdf:bagID values, checks - for duplicates (per in-scope base-URI). - (raptor_free_ID_list): Added, frees structure above. - (raptor_xml_start_element_handler): Handle xml:base using - raptor_new_uri_for_xmlbase to strip/fix parts that aren't used. - (raptor_start_element_grammar): Check for illegal rdf:ID, rdf:bagID - and rdf:nodeID using raptor_valid_xml_ID. Check for duplicate rdf:ID - and rdf:bagID values using raptor_record_ID. - Only allow parsetype "Literal", "Resource" and "Collection", not - case-equivalents. - Check for and forbid property attributes on a literal property - elemnent. - - * Makefile.am: Added raptor_utf8.c - - * raptor_internal.h: Export less from raptor_utf8.c - - * raptor_general.c (raptor_valid_xml_ID): - Use raptor_unicode_is_namestartchar - and raptor_unicode_is_namechar. - - * raptor_utf8.c: Raptor UTF-8 and Unicode support - - * tests/bad-03.rdf: Check rdf:ID and rdf:bagID values - - * tests/Makefile.am: Added bad-02 to bad-04 - - * raptor_uri.c (raptor_uri_construct): - Internal; constructs a uri-ref string from - the parts. - (raptor_new_uri_for_xmlbase): Ad - (raptor_uri_resolve_uri_reference): Copy reference path across when - reference URI has one. - Work for path components that are >1 letter long. - (raptor_new_uri_for_xmlbase): Added, makes a new uri from an existing - one, suitable for xml:base (no fragment, query; path must be - present). - (main): Make test cases use example.org. - Add checks for the above bugs. - - * raptor.h: Added prototype for raptor_new_uri_for_xmlbase - - * ntriples_parse.c: - raptor_ntriples_unicode_char_to_utf8 now raptor_unicode_char_to_utf8 - raptor_ntriples_utf8_to_unicode_char now - raptor_unicode_utf8_to_unicode_char - (raptor_print_ntriples_string): Allow no delimiter. - - * raptor_internal.h: Added prototypes for raptor_valid_xml_ID - Added prototypes for raptor_unicode_is_* methods. - The ntriples_* utf8/unicode methods are now raptor_unicode_* - - * raptor_general.c (raptor_print_statement_as_ntriples): - N-Triples escape URIs (for IRI - compatibility). - (raptor_validate_xml_ID): Added, checks that the syntax of attributes - matching xml:ID are correct matching - http://www.w3.org/TR/REC-xml-names/#NT-NCName - - * rdfdump.c: Exit 1 on error, 2 on warnings. - - * README.html: Words - -2002-12-13 Dave Beckett - - * tests/ex-41.rdf, tests/ex-41.out: Add rdf:datatype test with xml:lang - - * raptor_parse.c: Don't care state about numbers - - * raptor_parse.c (raptor_xml_end_element_handler): - Don't check for unbalanced XML; the - XML parsers do that - - * raptor_parse.c: - Update parser states to match http://www.w3.org/TR/rdf-syntax-grammar/ - names. Fix comments to also match. - rdf_syntax_terms_info - added to describe forbidden nodeEl, - propEl, propAttr - (raptor_forbidden_nodeElement_name, - raptor_forbidden_propertyElement_name): Added, using above - - * rdfdump.c: Exit with code 2 if there were warnings. - - * raptor_parse.c: Zap xml:lang attr - -2002-12-10 Dave Beckett - - * configure.in: Added raptor-config - - * Makefile.am: Added raptor-src-config - - * raptor-src-config.in: raptor-src-config source - -2002-12-04 Dave Beckett - - * raptor_parse.c (raptor_xml_start_element_handler): - Save away the element attributes - in an allocated array, restore the pointers later. This allows the - XML parser to free them correctly. - (raptor_xml_end_element_handler): Call raptor_free_qname again to - tidy up. - (raptor_init_parser_rdfxml): Initialise libxml2 explicitly - (raptor_terminate_parser_rdfxml): Added, cleaning up libxml2. - - * raptor_libxml.c (raptor_libxml_endDocument): - free the libxml2 Doc that is created but - never freed by the SAX methods. - - * raptor_internal.h, raptor_general.c: - Added raptor_terminate_parser_rdfxml() for closing rdfxml parser - factory. - -2002-12-03 Dave Beckett - - * raptor_libxml.c (raptor_libxml_internalSubset, - raptor_libxml_externalSubset): No return value. - - * raptor.h: Update prototype for unsigned char arg. - - * raptor_parse.c: Yet more casts, for expat XML_Char as char* - - * raptor_uri.c (raptor_free_uri): There is no return value - - * raptor_uri.c, raptor_qname.c, raptor_parse.c, - raptor_namespace.c, raptor_general.c, raptor.h, ntriples_parse.c: - More unsigned char to char fixes, other castings enough to make - g++ happy. - - * raptor_parse.c, raptor_qname.c, raptor_namespace.c, - raptor_general.c, raptor_internal.h: - Use unsigned char for UTF-8 strings rather than char - (That means all XML names, content, buffers) - - * raptor_parse.c: Delete HAVE_XML_SetNamespaceDeclHandler - never used - Don't merge expat XML_Char (char) and libxml2 xmlChar (unsigned char). - Work with unsigned char always. - - * raptor_internal.h: - Don't merge expat XML_Char (char) and libxml2 xmlChar (unsigned char). - Work with unsigned char always. - - * configure.in, acconfig.h: - Delete HAVE_XML_SetNamespaceDeclHandler - never used - - * raptor_parse.c (raptor_element_has_property_attributes): - Unused rdf_parser arg zapped. - - * raptor_parse.c (raptor_xml_parse_chunk_): - Don't assign a negative number to size_t len, it is probably unsigned. - - * raptor_parse.c (raptor_free_element): - Use raptor_free_uri on datatype URI - - * raptor_parse.c, raptor.h: Removed trailing ','s in enums - -2002-12-02 Dave Beckett - - * ntriples_parse.c (raptor_ntriples_string): sscanf format lx - -2002-11-28 Dave Beckett - - * TODO.html: - Note suggestion to trim spaces around urls in lax/default mode - -2002-11-27 Dave Beckett - - * INSTALL.html: Now works with old libxml 2.3.5 (released 2001-03-23) - - * raptor_libxml.c (raptor_libxml_init): - Use RAPTOR_LIBXML_XMLSAXHANDLER_INITIALIZED - to see if libxml xmlSAXHandler has an initialized field - - * configure.in: Check libxml xmlSAXHandler has initialized field - defining RAPTOR_LIBXML_XMLSAXHANDLER_INITIALIZED if so - - * acconfig.h: Added RAPTOR_LIBXML_XMLSAXHANDLER_INITIALIZED - - * INSTALL.html: Updated supported versions - -2002-11-26 Dave Beckett - - * win32_config.h, configure.in, rdfdump.c, raptor_uri.c, - raptor_parse.c, raptor_libxml.c, raptor_general.c, - ntriples_parse.c: stdarg.h is now a required header. - - * configure.in: - Added --with-xml2-config to set location of libxml xml2-config program. - -2002-11-24 Dave Beckett - - * raptor_parse.c (raptor_xml_start_element_handler): Don't free - raptor_free_qname(element_name) here, raptor_free_element does it. - -2002-11-21 Dave Beckett - - * configure.in: - Make it use expat sources if this is part of Redland, ../expat dir - exists - and there is no installed expat system library - - * raptor_parse.c (raptor_xml_parse_chunk_): - Only use the libxml2 bug workaround for small - buffers for libxml2 versions lower than 2.4.25 - - * tests/Makefile.am: - Report error status from standard rdf/xml tests, even if the answer - was correct. - - * tests/ex-03.rdf: Remove aboutEach* and bare bagID - -2002-11-19 Dave Beckett - - * TODO.html: XML parser choice - - * tests/test.out, tests/test.nt, tests/ex-11.out, tests/ex-07.out, - raptor_parse.c, raptor_general.c, ntriples_parse.c: - rdfs:XMLLiteral now rdf:XMLLiteral - Add rdf:nil to allowed rdf namespace terms - - * raptor_parse.c: More error/warnings rewordings - - * raptor_parse.c: - Remove M&S from some comments, messages. Use RDF namespace. - - * raptor_parse.c: - Improve warning about multiple object nodes for a property element. - -2002-11-07 Dave Beckett - - * tests/test.out: typo - - * tests/test.out, tests/ex-11.out, tests/ex-07.out: - Remove xml"" tests, replacing with "foo"<...> form. - - * raptor_general.c: Remove xml"" (stage 1). - (raptor_print_statement_detailed): Output this as a datatyped literal. - (raptor_print_statement_as_ntriples): Output the "foo"<..> datatype - N-Triples form. - - * ntriples_parse.c: - Remove xml"" (stage 1). Parsing it works but gives an error. - Never output. - (raptor_ntriples_generate_statement): Output "foo"<...> for xml - literal. Remove is_xml argument. - (raptor_ntriples_parse_line): For XML literal (old xml""), parse, - give an error and emit it in the datatype form. - -2002-11-02 Dave Beckett - - * README.html: Updated after 0.9.6 release - sigh! - - * NEWS.html: fix 0.9.6 release date - - * configure.in: Bumped version to 0.9.7 - - * Snapshotted raptor_0_9_6 for 0.9.6 release - - * NEWS.html, TODO.html: Updated for 0.9.6 - - * raptor_parse.c: - rdf_attr_info gains allowed_unprefixed_on_attribute to suppress - warning. - - * libraptor.3: Updated for 0.9.6 - - * tests/test.out: minor fix - - * rdfdump.1: Add -a/--assume option. - - * raptor.h: Tweak uri factory method typedefs, prefix with raptor_ - - * raptor.h: raptor_start_parse_file: Made an internal method - - * raptor_general.c (raptor_start_parse_file): Made an internal method - - * tests/test.nt: minor fix - - * tests/test.out, tests/test.nt: - Added tests for datatyped literals with/without language - - * ntriples_parse.c (raptor_ntriples_string): - Added N-Triples datatype (^^) parsing. - -2002-11-01 Dave Beckett - - * ntriples_parse.c (raptor_ntriples_generate_Statement): - Added datatypes argument, - will set the URI if the string is passed in. - -2002-10-31 Dave Beckett - - * raptor_parse.c: Check for rdf:datatype on property/member elements - - * tests/Makefile.am: Added ex-41 - - * tests/ex-41.out, tests/ex-41.rdf: Added rdf:datatype tests - - * raptor_parse.c (raptor_free_element): Free xml:lang values - - * raptor_parse.c: - alternatively, don't zap the pointer and let cleanup grab it. - - * raptor_parse.c: - free rdf:about attribute value before discarding pointer. - - * raptor_general.c (raptor_parse_file): Always free filename. - - * raptor_uri.c (raptor_uri_filename_to_uri_string): - Fix length of buffer - for unix when file name is recalculated from getcwd(). - - * raptor_namespace.c (raptor_namespaces_free): - Don't need non-NULL context to do freeing. - - * ntriples_parse.c: - Update to handle xml"string"@lang format (and warn about older one) - - * ntriples_parse.c: - Update to handle "string"@lang format (and warn about older one) - - * tests/test.out, tests/test.nt, tests/rdfs-namespace.out, - tests/rdf-schema.out, tests/ex-29.out: - Update to "string"@lang format. - - * raptor_general.c (raptor_print_statement_as_ntriples): - Update to "string"@lang format. - Add datatype URI. - - * rdfdump.c (main): Init uri_string variables - - * raptor_internal.h, ntriples_parse.c, raptor_namespace.c, - raptor_parse.c, raptor_qname.c, raptor_uri.c, raptor_general.c, - raptor_libxml.c: LIBRDF_ macros now RAPTOR_ - - * raptor_internal.h: Remove raptor_uri_init - - * raptor.h: Added raptor_uri_init - - * raptor_namespace.c: - (main) Updates for initialising URI class in/outside redland - - * rdfdump.c: When RAPTOR_IN_REDLAND, include - - * rdfdump.c: Use raptor URI calls. - Use raptor_init/raptor_finish - now required. - - * raptor_general.c (raptor_init): Now compulsory - - * raptor_parse.c, raptor_locator.c, raptor_namespace.c: - macro RAPTOR_URI_AS_STRING -> raptor_uri_as_string - - * raptor_internal.h: Removed macro RAPTOR_URI_AS_STRING - - * raptor_general.c: macro RAPTOR_URI_AS_STRING -> raptor_uri_as_string - - * raptor.h: Added raptor_uri_as_string and uri class method - - * raptor_uri.c (raptor_default_uri_as_string): Added - (raptor_uri_as_string): Added, using above for default class. - (raptor_uri_init_default_handler): Register the above - - * raptor_general.c: - Use RAPTOR_URI_AS_STRING for getting uri string to make a filename. - - * raptor_parse.c: - Remove uses of IS_RDF_MS_CONCEPT with raptor_uri_equals. - Define more concepts for rdf:RDF, rdf:Description and rdf:li - - * raptor_internal.h: remove IS_RDF_MS_CONCEPT - - * raptor_qname.c: macro RAPTOR_FREE_URI -> raptor_free_uri - - * raptor_internal.h: - delete macros RAPTOR_FREE_URI, RAPTOR_URI_TO_FILENAME - - * raptor_general.c: macro RAPTOR_FREE_URI -> raptor_free_uri - macro RAPTOR_URI_TO_FILENAME -> raptor_uri_uri_string_to_filename - (only use) - - * ntriples_parse.c: macro RAPTOR_FREE_URI => raptor_free_uri - - * raptor_uri.c: Add some casts now raptor_uri is a typedef for void* - - * raptor_internal.h, raptor.h: Remove more RAPTOR_IN_REDLAND prototypes - - * ntriples.h: Remove more RAPTOR_IN_REDLAND - - * rdfdump.c: Remove more RAPTOR_IN_REDLAND and old API - - * raptor_parse.c: - Re-add DAML Collection info to rdf_content_type_info table - just - plain luck that this was working without it. - Add concept URIs table to rdf_xml_parser structure. - Change concepts macros to point to the parts of that table. - Remove most of the RAPTOR_IN_REDLAND stuff, consequently. - - * raptor_namespace.c (raptor_namespaces_free): - Handle being called when handler/context - empty. - - * raptor_namespace.c: - Use raptor_namespace struct raptor_namespace_stack field - to get uri handler/context - - * raptor_internal.h: raptor_namespace: add raptor_namespace_stack field - - * raptor_general.c (raptor_start_parse): - Use changed raptor_namespaces_init call. - - * raptor_namespace.c: - Remove RAPTOR_REDLAND code and use uri_handlre/context args - (raptor_namespaces_init): Now takes uri handler, context args. - Initialises rdf/rdfs namespace URIs. - (raptor_namespaces_free): Free rdf/rdfs namespace URIs. - - * raptor_general.c: Remove RAPTOR_REDLAND code - Call raptor_namespaces_init with raptor URI handler, context - - * raptor_internal.h: - Remove RAPTOR_REDLAND definitions and double prototypes. - Added uri_handler, uri_context, rdf_ms_uri, rdf_schema_uri to - raptor_namespace_stack. - - * ntriples_parse.c: Remove RAPTOR_REDLAND code - - * raptor_uri.c (raptor_uri_get_handler): Added - - * raptor.h: Added raptor-uri_get_handler. - - * raptor_uri.c: rename raptor_current_uri_* -> raptor_uri_current_* - - * raptor_uri.c: - Use raptor_current_uri_handler, raptor_current_uri_context - throughout. - -2002-10-30 Dave Beckett - - * raptor_uri.c (raptor_uri_set_handler): Added, initialising the static - variables raptor_current_uri_handler, raptor_current_uri_context. - raptor_init_uri_class -> raptor_uri_init - - * raptor_general.c, raptor_internal.h: - raptor_init_uri_class -> raptor_uri_init - - * raptor.h: Added raptor_uri_set_handler - - * raptor_uri.c: raptor_copy_uri -> raptor_uri_copy - (raptor_default_uri_copy): Added - (raptor_init_uri_default_handler): Added to re-init the default uri - class. - (raptor_init_uri_class): To initialise the uri class with default - handler - - * raptor_internal.h: Declare uri class init prototypes. - - * raptor_parse.c, raptor_general.c: raptor_copy_uri -> raptor_uri_copy - - * raptor.h: raptor_copy_uri -> raptor_uri_copy - Added uri handler func definitions. - Added raptor_uri_handler, using above funcs - -2002-10-15 Dave Beckett - - * raptor_qname.c: Remove only RAPTOR_IN_REDLAND use - not required. - - * raptor_uri.c: Updated copyright - - * ntriples_parse.c: - Removed raptor_make_uri; use raptor_new_uri_relative_to_base directly. - - * raptor.h: Removed raptor_new_uri_from_base_name prototype - - * raptor.h: Removed all raptor_make_uri prototypes. - Added prototypes for raptor_new_uri_relative_to_base, - raptor_new_uri_from_id, raptor_new_uri_from_base_name, - raptor-new_uri_for_rdf_concept. - - * raptor_parse.c: RAPTOR_FREE_URI (macro) to raptor_free_uri (method) - Removed raptor_make_uri; use raptor_new_uri_relative_to_base directly. - Removed raptor_make_uri_from_id: use raptor_new_uri_from_id directly - Use raptor_new_uri_for_rdf_concept - - * raptor_uri.c: Typo. - Removed raptor_make_uri; use raptor_new_uri_relative_to_base directly. - (raptor_default_new_uri_for_rdf_concept, - raptor_new_uri_for_rdf_concept): Added to get URI of rdf:thing - -2002-10-13 Dave Beckett - - * raptor_uri.c (raptor_default_new_uri_relative_to_base, - raptor_new_uri_relative_to_base): - Added - (raptor_new_uri_from_id): Added, was make_uri_from_id - (raptor_new_uri_from_base_name): Added, was make_uri_from_base_name - - * raptor.h: Added new uri methods, soon-to-be old make_uri_* ones - - * raptor_internal.h: Move uri calls to raptor.h - - * raptor_parse.c: - Remove unused rdf_parser argument of raptor_make_uri_from_id calls. - - * raptor_uri.c (raptor_make_uri_from_id): - Remove unused rdf_parser argument - - * raptor_uri.c: - Start of skeleton code for URI class, along with default methods. - (raptor_default_new_uri, raptor_new_uri): Added - (raptor_default_new_uri_from_uri_local_name, - raptor_new_uri_from_uri_local_name): Added - (raptor_default_free_uri,raptor_free_uri): Added - (raptor_default_uri_equals, raptor_uri_equals): Added - (raptor_make_uri, raptor_make_uri_from_id, - raptor_make_uri_from_base_name):Moved from raptor_general.c - - * raptor_general.c: Move raptor_make_uri, raptor_make_uri_from_id, - raptor_make_uri_from_base_name to raptor_uri.c - -2002-10-12 Dave Beckett - - * raptor_parse.c (raptor_xml_parse_terminate): - Moved all of raptor_xml_parse_clean - here, deleted it. - - * rdfdump.c: Updated to newest calling API - no special ntriples calls. - - * raptor_general.c, raptor.h: Tweak raptor_new_parser prototype. - - * libraptor.3: Updated to describe features - - * libraptor.3: Updated for shared parser core api - - * raptor_parse.c: Add raptor_xml_parser here - private struct. - - * raptor_internal.h: Moved raptor_xml_parser to private file. - - * raptor_general.c: Tidy raptor_new old api note. - - * ntriples.h: Updated ntriples parser to new registering API. - - * ntriples_parse.c: Converted to the new factory-based API. - raptor_ntriples_parser_context (and struct version _s) now allocated - by main parser code. - Use raptor_parser for most methods and calls. - (raptor_ntriples_parse_init, raptor_ntriples_parse_terminate): Added - (raptor_ntriples_new): Replaced with wrapper around raptor_new_parser("ntriples"). - (raptor_ntriples_free): Replaced with wrapper around raptor_free_parser - (raptor_ntriples_set_error_handler, raptor_ntriples_set_fatal_error_handler, - raptor_ntriples_set_statement_handler, raptor_ntriples_parser_error, - raptor_ntriples_parser_fatal_error, raptor_ntriples_parse_file): - Replaced with wrappers around general methods. - (raptor_ntriples_parse_chunk): Renamed from raptor_ntriples_parse - (raptor_ntriples_parse_start): Added from parts of old - raptor_ntriples_parse_file. - (raptor_ntriples_parser_register_factory): Added to register this - with the main system. - (raptor_init_parser_ntriples): Added to register this module. - -2002-10-11 Dave Beckett - - * raptor_internal.h: - Moved raptor_parser_s here, for use across the library. - Lots of rearranging and reordering to move structs earlier. - Added raptor_parser_factory_s and typedef. - Added prototypes for factory registration calls. - - * raptor_parse.c: Now uses factory and parser-specific context. - (raptor_xml_new, raptor_xml_free, raptor_xml_parse_init): Moved most - code to raptor_new_parser, raptor_free_parser, raptor_start_parse - (raptor_xml_parse_init_file): Gone. - Renamed to match factory methods - raptor_xml_parse_terminate. - (raptor_parse_file): Moved to raptor_general.c - (raptor_xml_parser_register_factory): Added, for registering factory. - (raptor_init_parser_rdfxml): Register parser type "rdfxml". - - * raptor_general.c: - Added parser factory functions and use them via new API. - (raptor_init, raptor_finish): Added to start/end raptor. - (raptor_delete_parser_factories): Added, helper for cleanup. - (raptor_parser_register_factory): Added, for registering parsers - (raptor_get_parser_factory): Added, helper for finding a parser - (raptor_new_parser): New constructor, uses factory and initialises - only general parts of parser. - (raptor_start_parse): New method to (re)initialise a particular - parse. - (raptor_start_parse_file): New method to start parsing from a - filename. - (raptor_parse_chunk): New method to parse content from memory. - (raptor_free_parser): New destructor. - (raptor_parse_file): Moved from raptor_parse.c and made general. - (raptor_new): Old API constructor, now written over new constructor. - (raptor_free): Old API destructor, now just calls new destructor. - (raptor_set_world): Temporary redland support. - - * raptor_namespace.c (raptor_namespaces_free): - Zap top of stack when done, so - can work when called multiple times. - - * raptor.h: Added raptor_init(), raptor_finish() - Deprecate raptor_new(), raptor_free(). - Added raptor_new_praser(), raptor_free_parser(), - raptor_start_parser(), raptor_start_parse_file(), raptor_parse_chunk() - Temporarily use raptor_set_redland_world. - -2002-10-10 Dave Beckett - - * Makefile.am: Added raptor_general.c - - * raptor.h: raptor_print_statement_detailed: Now public. - - * raptor_internal.h, raptor_parse.c, raptor_general.c: - Split general parsing routines into raptor_general.c leaving - the rdf/xml parsing specific parts in raptor_parse.c. - The general raptor_parser structure moved to raptor_internal.h - leaving a new raptor_xml_parser for raptor_parse.c [rdf/xml]. - -2002-10-07 Dave Beckett - - * tests/test.html, tests/test.svg: Embedded rdf:RDF tests - - * raptor_general.c, raptor_parse.c: - Call dummy (length calculating) vsnprintf call with a 1-byte buffer - rather than NULL - OSX seems unhappy with that. - Try to get rdf:RDF scanning working by adding at_grammar_start check - rather than apply at all state unknown points. - -2002-09-29 Dave Beckett - - * tests/Makefile.am: - Split the checks into classes; ex-19.rdf is for when rdf is assumed - since it ommits rdf:RDF, and hence is not really rdf/xml. - - * rdfdump.c: Added -a,--assume to set feature assume_is_rdf - - * raptor_general.c, raptor_parse.c: Added rdf:datatype built in. - Literal datatype URI stored in containing property element. - Added feature_assume_is_rdf to make rdf:RDF optional. - (raptor_generate_statement): Add literal datatype URI argument. - (raptor_xml_parse_chunk_): Return parser errors in initial XML_Parse - correctly - check if it happens even if end of data. Similarly for - libxml's xmlParseChunk. - (raptor_set_feature): Added feature assume_is_rdf - (raptor_print_statement_detailed): Added literal datatype URI - printing. - (raptor_process_property_attributes): Warn about unqualified - (property) attributes, don't try to process them. - (raptor_start_element_grammar): Added feature assume_is_rdf - splitting scanning for rdf:RDF (feature scanning) and ignoring it - (feature assume) - - * raptor_qname.c (raptor_new_qname): - Don't die on non-namespaced XML; could be used in - skipping or other processing. - - * raptor.h: added assume_is_feature - datatypes built in - raptor_print_ntriples_string now returns an int - - * LICENSE.html: Tidy intro, update dates - - * ntriples_parse.c: change anon->bnodeid - Add ASCII rather than is* locale-tests and validate bnodeIDs with - the macros - (parse_ntriples_string): Check for invalid ASCII chars. - Tidy error reporting for end of line. - (raptor_ntriples_parse_line): Add validation of bnodeIDs - (raptor_ntriples_parse_file): Comments - (raptor_print_ntriples_string): Handle failure, add a return code - - * ntriples.h: change anon->bnodeid - - * configure.in: datatypes built in now - - * Makefile.am: Clean the test programs - -2002-09-19 Dave Beckett - - * Makefile.am: - Restore rule to make librdf.la for when embedded in Redland - - * TODO.html: remove duplicate bagID bug - - * TODO.html: CDATA works with libxml now - - * raptor_libxml.c (raptor_libxml_init): - Enable handling of cdata blocks - - by registering callback to raptor_xml_cdata_handler - - * tests/ex-40.out: Fix node - - * tests/Makefile.am: Added ex-40 - - * tests/ex-40.out, tests/ex-40.rdf: Check XML CDATA sections - - * Makefile.am: - dist-hook added to copy pre-built README and NEWS to release - -2002-09-18 Dave Beckett - - * raptor_namespace.c (raptor_namespace_new): - Fix debug message to report no URI for namespace. - - * raptor_namespace.c (raptor_namespace_new): - Make xmlns="" work when compiling inside Redland. - -2002-09-16 Dave Beckett - - * raptor_parse.c (raptor_xml_parse_chunk_): - For libxml, don't pass in filename to - xmlCreatePushParserCtxt, we may not always have one. - For lbixml, return correctly from initial parsing. - (raptor_xml_parse_chunk): Add docucomments. - (raptor_parse_file): Terminate loop on end of file as well as error. - - * Makefile.am: - Added REDLAND_LIBS to raptor_namespace_test to make it work inside redland - -2002-09-12 Dave Beckett - - * TODO.html: daml:collection fixed - - * raptor_parse.c (raptor_parse_file): Split into: - raptor_xml_parse_init, raptor_xml_parse_init_file, - raptor_xml_parse_clean and raptor_xml_parse_chunk to allow more - flexible APIs. - (raptor_xml_parse_chunk_): Added, doing the main work of - raptor_xml_parse_chunk but without error checking. - (raptor_xml_parse_handle_errors): Added to process errors from an XML - parser during parsing. - - * raptor_namespace.c: Make it work inside redland too. - Fix standalone tests inside redland. - -2002-09-11 Dave Beckett - - * raptor_internal.h: - Moved namespace and qname definitions and prototypes here from - raptor_parse.c - - * Makefile.am: Added raptor_namespace.c raptor_qname.c - - * raptor_parse.c: - Moved namespace code to raptor_namespace.c, qname code to - raptor_qname.c and renamed raptor_ns_map, raptor_ns_na,e - to match. - - * raptor_qname.c: Raptor XML qname - - * raptor_namespace.c: Raptor XML namespace classes - -2002-09-01 Dave Beckett - - * raptor_parse.c: Use updated LIBRDF_RS URI names - - * raptor_parse.c: - Added rdf:parseType="Collection" after daml:collection code - - * tests/Makefile.am: Added test ex-39 for parseType Collection - - * tests/ex-39.out, tests/ex-39.rdf: rdf:parseType="Collection" test - - * raptor_parse.c: - Change daml:Collection, daml:* comments to Collection, rdf:List etc. - -2002-08-31 Dave Beckett - - * raptor_parse.c (raptor_end_element_grammar): - Generate rdf:nodeID, store in id, not - URI field. - Rearrange three calls of raptor_process_property_attributes into one. - - * tests/Makefile.am: - Use ECHO_N and ECHO_C to do portable echo without newline - - * configure.in: - Pass on echo pre/postfix args needed for echoing without a newline - - * tests/Makefile.am: - Instead of ignoring warnings, make make ignore exit codes from rdfdump - - * tests/Makefile.am: Ignore warnings (for now) in tests - - * tests/Makefile.am: Remove RDF_TEST_ANSWER_FILES - not used - - * raptor_parse.c (raptor_start_element_grammar): - Don't copy URIs from daml:collection - to the contained nodes. - - * tests/ex-34.out: Now correct. - -2002-08-29 Dave Beckett - - * tests/Makefile.am: Added ex-38 - - * tests/ex-38.rdf, tests/ex-38.out: Test daml:Collection with rdf:ID - - * tests/ex-37.out: switch order again - - * raptor_parse.c (raptor_element_has_property_attributes): - Check for rdf: properties - too - - * tests/ex-37.out: Correct order, nodes in result - - * tests/ex-37.out, tests/ex-37.rdf: - rdf:type attribute on empty property - - * tests/Makefile.am: Added ex-37 - -2002-08-28 Dave Beckett - - * raptor_parse.c: Fixed empty daml:Collection handling - - * raptor_uri.c: Minor strcat/strcpy optimisation - - * tests/ex-34.rdf: Renamed nodes so prop2 goes with node2 etc. - - * tests/ex-34.out: renamed genids to more match output - - * tests/ex-35.out, tests/ex-35.rdf, tests/ex-36.out, tests/ex-36.rdf: - Added more daml:Collection checks - - * tests/ex-24.out: output order changed, same triples - - * tests/Makefile.am: Added ex-35, ex-36 for more daml:Collection checks - - * tests/ex-12.out: output order changed, same triples - -2002-08-22 Dave Beckett - - * raptor_parse.c: removed fn not used - - * raptor_parse.c: Update xml namespaces comment with NE05 errata - - * raptor_parse.c: - Removed use of obsolete object_is_literal statement field - Added rdf datatypes test code - - * ntriples_parse.c: - Removed use of obsolete object_is_literal statement field - - * raptor.h: Add statement object datatype uri - - * configure.in: Add rdf datatypes test flag --enable-rdf-datatypes - - * acconfig.h: Add rdf datatypes test flag - -2002-08-21 Dave Beckett - - * TODO.html: Updates: OSX compiling works (from packaged sources) - Still works with latest expat (1.95.2), libxml (2.4.23) - -2002-08-20 Dave Beckett - - * raptor_uri.c (raptor_uri_uri_string_to_filename): - Freeing wrong things - - * ntriples_parse.c, raptor_parse.c, raptor_internal.h: - Remove RAPTOR_URI_AS_FILENAME - - * raptor.h: Added raptor_uri_is_file_uri - - * configure.in: Added limits.h check - - * raptor_internal.h: Added raptor_strncasecmp - - * raptor_uri.c (raptor_uri_is_file_uri): Added. - - * Makefile.am: Added strcasecmp_test - - * strcasecmp.c (raptor_strncasecmp): Added - (assert_strcasecmp, assert_strncasecmp): Added for testing. - (main) Added to run tests - - * raptor_uri.c: - (raptor_uri_filename_to_uri_string); For unix filename "foo", get dir - and name it "/dir/foo". - (main): Check above works using /tmp dir - warn if can't chdir(/tmp) - - * raptor_internal.h: - Replaced raptor_file_uri_to_filename with aptor_file_uri_to_filename - - * raptor_parse.c, ntriples_parse.c: Removed raptor_file_uri_to_filename - - * raptor_uri.c (raptor_uri_filename_to_uri_string, raptor_uri_uri_string_to_filename): - fix unix relative file file:foo - and bad win32 authority check. - (main): Check unix foo/file:foo works - - * raptor.h: Added raptor_uri_filename_to_uri_string and - raptor_uri_uri_string_to_filename - - * raptor_uri.c (raptor_uri_filename_to_uri_string): - Added for filename to file: URI - for win32 and unix. - (raptor_uri_uri_string_to_filename): Added for file: URI to filename - for win32 and unix. - (assert_filename_to_uri,assert_uri_to_filename): Added for regression testing. - (main): Tests for win32 / unix filename / file:URIs - -2002-08-19 Dave Beckett - - * INSTALL.html: Added some more xml library versions - - * raptor_parse.c: Remove a lot of raptor_update_document_locator calls - and add them to the start of several functions. - Replace some expat-specific stuff with general calls. - - * raptor_parse.c: - Add raptor_update_document_locator calls before every parser error - or warning. - (raptor_expat_update_document_locator): Added. - - * raptor_internal.h: Export raptor_libxml_update_document_locator - Export raptor_expat_update_document_locator - Export raptor_update_document_locator - - * raptor_libxml.c (raptor_libxml_update_document_locator): - Now not static. - Remove column numbers - they seem to be total fiction. - - * raptor_locator.c (raptor_update_document_locator): Added. - - * raptor_parse.c (raptor_xml_cdata_handler): - Allow to be ignored when there is no - element (XML very damaged) - - * rdfdump.c: Tidy output formatting - - * raptor_libxml.c: - Delete extra '\n' at end of XML parsing messages; that's up to the - app to add. - - * raptor_parse.c: Removed some \n-s from warning/error messages - - * raptor_locator.c (raptor_format_locator): - Don't count \0 in buffer size. - - * Makefile.am: Added raptor_locator.c - - * raptor.h: Added raptor_format_locator - - * raptor_locator.c: Raptor parsing locator functions - - * raptor_parse.c: Moved raptor_print_locator to raptor_locator.c - - * rdfdump.c: - Updated for raptor error handlers passed on as strings, not va_list - - * ntriples_parse.c: raptor errors passed on as strings, not va_list - (raptor_ntriples_parser_error, - raptor_ntriples_parser_fatal_error): Turn va_list into a string. - - * raptor_parse.c: raptor errors passed on as strings, not va_list - (raptor_parser_fatal_error_varargs, - raptor_parser_error_varargs, - raptor_parser_warning_varargs): Turn va_list into a string. - - * raptor.h: raptor errors passed on as strings, not va_list - -2002-08-18 Dave Beckett - - * Makefile.am: Add LTLIBOBJS to raptor library, not rdfdump - - * configure.in: Set LIBOBJS and LTLIBOBJS - - * configure.in: - Check for strcasecmp, stricmp or use compatibility version - - * raptor_internal.h: - Define raptor_strcasecmp to library routine, or leave alone for - compatibility function. - - * Makefile.am: Added @LIBOBJS@ - and strcasecmp.c - - * strcasecmp.c: strcasecmp compatibility - - * raptor_parse.c: - strcasecmp now raptor_strcasecmp, will be defined to right function - - * win32_config.h: - Don't use macros for strcasecmp; now handled generally - - * Makefile.am: - Added raptor_internal.h, win32_config.h to noinst headers - Added raptor_win32.c - - * raptor_win32.c: Raptor WIN32 support functions - - * win32_config.h: Raptor WIN32 hard-coded config - - * rdfdump.c: Tidying up stdlib.h, dmalloc.h includes. - Include win32_config.h #ifdef WIN32 - - * raptor_parse.c, raptor_uri.c: - Tidying up stdlib.h, dmalloc.h includes. - Removed stuff duplicated in raptor.h/raptor_internal.h - Include win32_config.h #ifdef WIN32 - - * raptor_libxml.c: Tidying up stdlib.h, dmalloc.h includes. - Include win32_config.h #ifdef WIN32 - - * ntriples_parse.c: Tidying up stdlib.h, dmalloc.h includes. - Removed stuff duplicated in raptor.h/raptor_internal.h - Include win32_config.h #ifdef WIN32 - - * raptor_internal.h: Moved libxml includes, defines and structs here. - Declared extern function prototypes for libxml interface. - - * raptor_parse.c: Use errno.h, not extern int errno - Moved most libxml code to new raptor_libxml.c - Moved necessary includes, defines and structs to raptor_internal.h - Some renaming of functions; raptor_libxml* for those related to libxml - Some functions now not static. - Added some necessary methods for accessing raptor_parser structure - for libxml. - (raptor_get_locator): Added; new public method. - - * raptor.h: Added raptor_get_locator - - * ntriples_parse.c: Use errno.h, not extern int errno - - * Makefile.am: Added raptor_libxml.c - - * raptor_uri.c: Use errno.h if present - - * raptor_libxml.c: Raptor libxml functions - - * raptor_parse.c: - Added 12 wrapper functions for libxml handlers, passing on the right - context to them, to enable handling of entities and resolving them. - (raptor_xml_update_document_locator): Handle if in document subset - Changed internal raptor fatal_error, error, warning functions - to have varargs versions that libxml can use. - (raptor_new): Initialise new libxml handler wrappers - -2002-08-17 Dave Beckett - - * rdfdump.c: Set ntriples error handler - - * ntriples_parse.c: Added fatal/non-fatal error handlers/functions. - (raptor_ntriples_set_error_handler): Added. - (raptor_ntriples_string): Documented args; now returns failure status. - (raptor_ntriples_parser_error): Added for non-fatal errors (bad lines). - (raptor_ntriples_parser_fatal_error): Fix passing on va_list arguments. - - * ntriples.h: Added raptor_ntriples_set_error_handler - -2002-08-13 Dave Beckett - - * configure.in: Add check for errno.h - Only link dmalloc if dmalloc.h is present (maintainer mode) - - * ntriples_parse.c: Add use of errno.h if present - - * raptor_parse.c: Add use of errno.h if present - Minor comments fix - When rdf:Description seen, go straight to state DESCRIPTION rather - than via OBJ - -2002-08-07 Dave Beckett - - * raptor_parse.c: Added rdf:List, rdf:first, rdf:rest (not used yet) - Added rdf:nodeID for bnodes as subject/objects like - rdf:about/rdf:resource - - * raptor.h: Added RAPTOR_URI_SOURCE_BLANK_ID (for rdf:nodeID) - -2002-07-29 Dave Beckett - - * configure.in: default xml parser now libxml - - * INSTALL.html: Update --with-xml-parser docs - -2002-07-28 Dave Beckett - - * autogen.sh: Fix use of srcdir/find - - * Makefile.am: Add -I's for compiling test programs - -2002-07-22 Dave Beckett - - * TODO.html: moved Redland parser todos here - -2002-07-20 Dave Beckett - - * tests/Makefile.am: Added ex-34 - - * tests/ex-34.out, tests/ex-34.rdf: - Test daml:collection lists with blank nodes - - * configure.in: Modify cflags to use redland srcdir not builddir - - * Makefile.am: zap 'finish' stuff - -2002-07-17 Dave Beckett - - * raptor_parse.c (raptor_end_element_grammar): Get rdf:ID working - on empty propertyElt with rdf:parseType="Resource" - - * raptor_parse.c: Added reified raptor_identifier, changed code to - use it for rdf:ID value Store rdf:bagID in bag raptor_identifier - - * raptor_parse.c (raptor_element_has_property_attributes): - Created, returns true iff a - property element has property attributes - (raptor_start_element_grammar): For property elements, move - handing property attributes to close of element, only then can - the resource URI be known. - (raptor_end_element_grammar): Update after above change. - For property elements that are empty (empty literal), create - a new blank node and hang the property attributes off that. - - * raptor_parse.c: - Warn and continue when element content is seen inside a - - -2002-07-15 Dave Beckett - - * tests/Makefile.am: make check sh stuff not echo - - * tests/Makefile.am: Add ex-33 - - * tests/ex-33.out, tests/ex-33.rdf: - Check properties work off node generated by empty propertyElt - -2002-07-15 Dave Beckett - - * tests/Makefile.am: make check sh stuff not echo - - * tests/Makefile.am: Add ex-33 - - * tests/ex-33.out, tests/ex-33.rdf: - Check properties work off node generated by empty propertyElt - -2002-07-14 Dave Beckett - - * Makefile.am: Add REDLAND_LIBS to rdfdump dependencies - Add rule to build librdf.la if needed - -2002-07-13 Dave Beckett - - * Makefile.am: Zap -static arg for rdfdump, seems to annoy libtool - Pass on redland libs, cflags as necessary - - * ntriples.h: Change all LIBRDF_INTERNAL to RAPTOR_IN_REDLAND - - * rdfdump.c: Change all LIBRDF_INTERNAL to RAPTOR_IN_REDLAND - Update to newest librdf world open/close calls - - * raptor_parse.c: Tidy - 2 includes of stdlib.h - Change all LIBRDF_INTERNAL to RAPTOR_IN_REDLAND - - * raptor_internal.h: Lose all redland includes - for app code - - * raptor.h: Include librdf and uri headers when in Redland - Change all LIBRDF_INTERNAL to RAPTOR_IN_REDLAND - - * configure.in: - Define REDLAND_LIBS, REDLAND_CPPFLAGS for use when building in redland - - * raptor_parse.c: Moved debugging stuff to raptor_internal.h - Use updated raptor includes - - * rdfdump.c: Use updated raptor includes - - * raptor_uri.c: Don't include Redland rdf_config.h - Use updated raptor includes - - * ntriples_parse.c: Use updated raptor includes - - * raptor.h: Removed all standard includes - Moved URI stuff to raptor_internal.h except for typedef (needed - for prototypes) - - * raptor_internal.h: Internal raptor definitions - - * Makefile.am: Added raptor_internal.h - - * configure.in: Fix raptor in redland check. - - * ntriples_parse.c, raptor_parse.c: - don't include redland rdf_config.h - use ours - - * configure.in, acconfig.h: added RAPTOR_IN_REDLAND - -2002-07-12 Dave Beckett - - * raptor.h: include stdarg.h here - - * tests/Makefile.am: Added ex-32 - - * tests/ex-32.out, tests/ex-32.rdf: - Test property attributes with rdf:resource - - * raptor_parse.c (raptor_process_property_attributes): - Pass in an optional - identifier to use for the resource node. - - Use that to process property attributes along with rdf:resource, - at the close of the (empty) propertyElt. - -2002-07-11 Dave Beckett - - * raptor_uri.c (raptor_uri_resolve_uri_reference): - Handle base URI without a path - such as "http://example.org" - - * Makefile.am: - Tidy test program args +$(DEFS) to add crucial -DHAVE_CONFIG_H - - * rdfdump.c (rdfdump_error_handler): Use va_list form - (rdfdump_warning_handler): Use va_list form - - * raptor_parse.c (raptor_xml_start_element_handler): - Warn about unqualified rdf: attributes - - * ntriples_parse.c (raptor_ntriples_parser_fatal_error): - now passes on va_list - - * raptor.h: - API change: raptor_message_handler callback now takes a va_list as - final argument - - * rdfdump.c: Make warning/error messages neater - - * rdfdump.c: Added -w - ignore warnings - (rdfdump_warning_handler): Added - (rdfdump_error_handler): Added - Count warnings, errors and exit with #errors, or 128+#warnings - - * raptor_parse.c: - When a property has multiple objects, give an error and skip the rest - of that element - - * tests/Makefile.am: Added bad-01.rdf - - * tests/bad-01.rdf: A property must have only one node value - - * rdfdump.c: - (rdfdump_error_handler) Added. Exit 1 on an error, don't keep going - - * tests/Makefile.am: Fix bad test checking again - -2002-07-10 Dave Beckett - - * Makefile.am: Added LOCAL_LIB_DIR for finish - - * Makefile.am: Fix args for compiling tests - -2002-07-07 Dave Beckett - - * Makefile.am: Added finish target to install to lib - Tidy up test program building - - * raptor_parse.c: - Allow non-namespaced elements to be recognised and skipped - -2002-06-30 Dave Beckett - - * tests/Makefile.am: typo - - * Makefile.am: Added 'make deb' target - - * tests/rdf-schema.out, tests/rdfs-namespace.out: RDFS schema answers - - * tests/Makefile.am: Fix rdfs checks - - * tests/Makefile.am: Add two RDFS schema namespaces - - * tests/rdf-schema.rdf, tests/rdfs-namespace.rdf: RDFS schemas - - * raptor_parse.c: (raptor_parser_error) Make this default to exit(1) - (raptor_start_element_grammar): Die when a second object is tried - to be set for a statement - - * tests/Makefile.am: Check negative tests correctly - - * autogen.sh: Add libtoolize cleanup, check and run - - * configure.in: fix AC_OUTPUT - - * Makefile.am, configure.in: Added debian dir - -2002-06-26 Dave Beckett - - * win32/README: win32 README - - * autogen.sh: Added GNU config.* copy test - -2002-06-14 cmdjb - - * tests/Makefile.am: Added bad test checking - Added bad-00.rdf - - * tests/bad-00.rdf: Added bad test 00 - - * configure.in: Added raptor-config - - * libraptor.3, rdfdump.1: Raptor manual pages - - * Makefile.am: Added raptor-config - Added manual pages - Make rdfdump static only for maintainer - - * raptor-config.in: Raptor configuration script - -2002-06-08 Dave Beckett - - * raptor_parse.c (raptor_generate_id): - Hack - make genids be sequential through - lifetime of code, not start from 1 again at parsing. - - * raptor.h: Add some RAPTOR_API defs for newer functions - - * configure.in: Use NULL for XML_ParserCreate in first check too - - * configure.in: Bumped version to 0.9.6 - - * Snapshotted raptor_0_9_5 for 0.9.5 release - - * autogen.sh: - Delete libtool generated files before running automake (which invokes - libtoolize to do this) - - * configure.in: Remove duplicate check of stdlib.h - - * Makefile.am: Pass on -D defs when building tests - - * raptor_uri.c: Include stdlib.h for malloc - - * configure.in: - Call XML_ParserCreate with NULL to prevent crash (seen on alpha) - - * configure.in: - Check for required libxml function xmlCreatePushParserCtxt (libxml - 1.8.3+) - - * NEWS.html: Updated for 0.9.5 release - - * TODO.html: tidy - - * Makefile.am: - Don't compile raptor_cc.c into library, for this release (not used - yet). - -2002-06-06 Dave Beckett - - * tests/Makefile.am: Added ex-31 - - * tests/ex-31.out, tests/ex-31.rdf: - Tests for rdf:li with parseType Resource - - * raptor_parse.c: Make rdf:li work with parseType resource - -2002-06-05 Dave Beckett - - * raptor_parse.c: - made rdf:foo (unknown) attribute generate the statement and a warning - - * raptor_parse.c: - Add further allowed rdf: properties (subject, predicate, object) and - classes (Seq Bag Alt Statement Property) - -2002-06-04 Dave Beckett - - * raptor_parse.c (raptor_make_uri_from_id,raptor_make_uri): - Fold in relative URI resolution. - (raptor_make_uri_from_base_name): Added - (raptor_process_property_attributes): Use latter to create rdf: names - - * configure.in: Check for stdlib.h - - * raptor_uri.c: Remove prototype => raptor.h - - * raptor.h: A little tidying. - Export raptor_uri_resolve_uri_reference - - * raptor_uri.c: comment - - * raptor_uri.c (raptor_uri_parse): Update comments - (raptor_uri_resolve_uri_reference): Lots more comments. Rejigged - structure to tidy up in one place. Removed all static buffers. - - * tests/Makefile.am: Added ex-30 - - * tests/ex-30.out, tests/ex-30.rdf: - Tests that bare about attr works with a default ns - - * raptor_parse.c (raptor_make_namespaced_name): - Make bare 'about' attribute (etc) work - even when a default namespace is declared. - -2002-06-03 Dave Beckett - - * raptor_parse.c: - Don't pass parsetype_resource child element state to parent - element->child_element - i.e. proto state of next child element - -2002-06-02 Dave Beckett - - * raptor_parse.c: - attribute => attr to fix gcc warning about shadowing a global (?why) - - * raptor_parse.c: RBS -> RAPTOR_XML_READ_BUFFER_SIZE - (raptor_parse_file) Added work around for some libxml versions - failing to work when file is smaller than buffer size. - -2002-05-31 Dave Beckett - - * raptor_parse.c: - Various places: fix a bunch of casts to make g++ happy - Replace several unsigned int i with int i when used as array index. - - * ntriples_parse.c: - Various places: fix a bunch of casts to make g++ happy - Replace several unsigned int i with int i when used as array index. - (raptor_ntriples_string): Fix %c in format string - (raptor_ntriples_unicode_char_to_utf8): Use unsigned long - -2002-05-29 Dave Beckett - - * raptor_parse.c: fix xml_language qualifier - - * tests/Makefile.am: Add ex-29 - - * tests/ex-29.out, tests/ex-29.rdf: - Test xml:lang info gets passed to output - - * raptor_parse.c (raptor_xml_end_element_handler): - Don't pop element before doing end - grammar, so that rdf_parser->current_element is correct during end - grammar work. - - * raptor_parse.c, ntriples_parse.c: - Include stdlib.h for some prototypes. - -2002-05-28 Dave Beckett - - * raptor_parse.c (raptor_end_element_grammar): - When zapping content_cdata, always make - length 0 - -2002-05-26 Dave Beckett - - * tests/ex-28.out, tests/ex-28.rdf: - Test case for property after parseType resource property inherting - parseType resource-ness - - * tests/Makefile.am: Added test case 28 - - * raptor_parse.c (raptor_start_element_grammar): - Don't copy the parsetype-resource - generated node URI up to parent element - - * tests/Makefile.am: Added test case 27 - - * tests/ex-27.out, tests/ex-27.rdf: - Test case for wrong ID on 3rd parseType resource off a node - -2002-05-24 Dave Beckett - - * ntriples_parse.c: Wrap errno with #ifndef WIN32 - -2002-05-08 Dave Beckett - - * raptor_parse.c: - Lessen some librdf compile warnings about char* and xmlChar* strings - - * raptor_parse.c (raptor_free_xml_entity): Moved earlier in code - (raptor_xml_new_entity): Use LIBRDF_MALLOC - -2002-05-07 Dave Beckett - - * acconfig.h: Added libxml xmlEntity field defs - - * configure.in: Check less libxml headers. - If libxml main headers missing, disable library - Check for xmlEntity fields name_length and etype - - * raptor_parse.c: - Added new entity recording, expanding stuff for libxml - (raptor_xml_add_entity, raptor_xml_new_entity, - raptor_xml_entity_decl, raptor_xml_get_entity, - raptor_xml_free_entity, raptor_xml_free_entities): Added or - substantially updated - -2002-04-29 Dave Beckett - - * raptor_parse.c: tail_id is a char*, not a redland URI - -2002-04-28 Dave Beckett - - * raptor_parse.c: - (raptor_new) Initialise entities table count to 0 since - xmlCreateEntitiesTable sometimes doesn't do it. - -2002-04-27 Dave Beckett - - * acconfig.h, configure.in, raptor_parse.c: - renamed NEED_EXPAT/LIBXML to RAPTOR_XML_EXPAT/LIBXML so that raptor - can be linked to apps (such as Redland) that may have both - - * configure.in: - Added configure warning about failure of expat UTF8 BOM and how to fix. - - * configure.in: Perform expat BOM check only when a working expat found - - * raptor_parse.c, configure.in, acconfig.h: - Rename EXPAT_ERROR_CRASH to EXPAT_NO_UTF8_BOM - expat 1.95.1 - fails on an initial UTF-8 BOM sequence. expat 1.95.2 onwards fixes - this. - - * acconfig.h: Added EXPAT_ERROR_CRASH - - * raptor_parse.c: - If EXPAT_ERROR_CRASH then count XML tokens and only try to get line, - col, byte counts after 1 token has been seen. - - * configure.in: - Add test for expat failure in error reporting before - -2002-04-24 Dave Beckett - - * INSTALL.html: Added CVS instructions, tidied and expanded - - * tests/ex-22.rdf: ex-22 - -2002-04-22 Dave Beckett - - * configure.in: Look for gnome-xml/xmlmemory.h header - - * raptor_parse.c: - Add a bunch of stuff for libxml1 to handle adding/removing entity decls - (raptor_xml_free_entity): Now libxml2 only - (raptor_xml_libxml1_add_entry): Added, libxml1 only - (raptor_xml_add_entity): Call libxml2 code or - raptor_xml_libxml1_add_entry for libxml1 - (xmlHashLookup): Added, libxml1 only - - * tests/Makefile.am: Added ex-26 - - * tests/ex-26.out, tests/ex-26.rdf: - Test entities get expanded in attributes - - * configure.in: Look for libxml/parser.h libxml/hash.h - - * raptor_parse.c: - For libxml, Use libxml/parser.h (v2) or gnome-xml/parser.h (v1) - Include libxml/hash.h for v2 - Add xml entities support - (raptor_xml_free_entity): Pulled from xmlFreeEntity - (raptor_xml_add_entity): Pulled from xmlAddEntity (slight change to - API) - (raptor_xml_entity_decl): Added - (raptor_xml_get_entity): Added - (raptor_new): Use raptor_xml_entity_decl, raptor_xml_get_entity - and ask for them to be called. - (raptor_parse_file): Free entity stuff. - -2002-04-17 Dave Beckett - - * tests/Makefile.am: Added ex-25* - - * tests/ex-25.out, tests/ex-25.rdf: - Check mixing rdf:li and rdf:_n works - - * raptor_parse.c (raptor_print_statement_detailed): - Handle printing ordinal objects - - * raptor_parse.c (raptor_print_statement_as_ntriples): - Handle printing ordinal objects - - * raptor_parse.c (raptor_xml_end_element_handler): - Don't overwrite state PROPERTYELT - with MEMBER, it will be switched over when necessary. - - * raptor_parse.c: Make unknown/other parsetypes work like Literal - -2002-04-05 Dave Beckett - - * Makefile.am: - Re-add raptor_cc.c raptor_uri.c to sources, tests, distribution - -2002-03-27 Dave Beckett - - * configure.in: Bumped version to 0.9.5 - - * Snapshotted raptor_0_9_4 for 0.9.4 release - - * configure.in: Added check for GNU tar - - * Makefile.am: Added TAR - - * INSTALL.html, LICENSE.html: Updated HTML. - - * README.html: Updated for 0.9.4 release - Updated HTML. - - * TODO.html: Updated HTML. - - * NEWS.html: Added notes for 0.9.4 release - Updated HTML. - - * NEWS.html: Tidy footer - - * Makefile.am: - Remove raptor_cc, raptor_uri stuff from distribution for this release - - * raptor_parse.c: Or instead, add const to tail_id - - * raptor_parse.c: Remove const from idList - -2002-03-26 Dave Beckett - - * Makefile.am: Don't compile the as-yet unused raptor_cc - raptor_uri into the library, for now. - - * configure.in: Try to ensure -g is used in --maintainer-mode - - * raptor_parse.c: daml:collection changes Use a genid (char*) for - storing daml:list last anon node Replace all uses of the URI with - the id Make a typedNode inside a daml:collection generate the - rdf:type statement Move the daml:nil generation to the parent - property - - * TODO.html: Some more bugs in daml:collection (but others fixed) - Noted rdf:bagID isn't complete - - * tests/Makefile.am: Added ex-24.rdf ex-24.out - - * tests/ex-12.out: Correct test result. - - * tests/ex-24.rdf, tests/ex-24.out: Added to test daml:collection - with typed nodes inside - -2002-03-24 Dave Beckett - - * tests/ex-17.out: Fix answer; gives an empty literal - -2002-03-23 Dave Beckett - - * TODO.html: Note xml:base and xml:lang support added - - * raptor_parse.c (raptor_generate_statement): Only process - language for literal objects - -2002-03-17 cmdjb - - * raptor_parse.c: Added xml:lang and xml:base support - Use raptor_inscope_base_uri throughout, any time a URI is created - in a document. - Delete/ignore other xml* attributes when seen; XML spec governs their - use. - (raptor_generate_statement): Add language support. - (make_uri_from_id): Use raptor_inscope_base_uri - (raptor_start_element_grammar): Updated node state comments - (raptor_inscope_xml_language): Added - (raptor_inscope_base_uri): Added - - * Makefile.am: Added raptor_uri.c - - * raptor_uri.c: Raptor URI resolving implementation - -2002-03-12 cmdjb - - * configure.in: Added --enable-release to turn on -O2 - - * configure.in: Strip -O2 from maintainer mode cflags - - * raptor_parse.c: - Fix parseType resource (pTr) inside parseType resource. - Don't copy up the pTr element object to parent element, - since the pTr property is the 'parent' of the pTr object - - * tests/Makefile.am: Added ex-23 - - * tests/ex-23.out, tests/ex-23.rdf: - Added test for embedded parseType Resource - - * raptor_parse.c: Skip elements with aboutEach or aboutEachPrefix - - * tests/test.out, tests/test.nt: - Added xml literals and lang-string literals - - * ntriples_parse.c: - Replaced xml(...) with xml"..." throughout - Got "string"-lang working. - -2002-03-11 Dave Beckett - - * raptor_parse.c (raptor_print_statement_as_ntriples): - Updated for xml"foo" / - xml"foo"-en N-Triples format - - * tests/ex-11.out, tests/ex-07.out: - Updated for xml"foo" / xml"foo"-en N-Triples format - -2002-03-06 Dave Beckett - - * raptor_parse.c: - Added content type property_content set when content type isn't - unknown, but known to be value of a property - - * tests/ex-22.out: - Fixed for ordering actually generated - - * raptor_parse.c: - Handle bare rdf attributes correctly; only check when they have no - namespace. - Handle sequence of description/typed node blocks by handling - both as typed nodes and changing to description if necessary. - - * tests/ex-21.out: Correct typos - - * raptor.h: - Removed aboutEach* identifier types - - * raptor.h: - Added prototype for raptor_print_ntriples_string - - * ntriples_parse.c (raptor_print_ntriples_string): - Added docu-comment - - * tests/Makefile.am: Addex ex-22 - - * tests/ex-22.out: - Fix base URI of answers - - * tests/Makefile.am: - Made tests report pass/fail and return exit code to match this - - * tests/ex-21.out, tests/ex-22.out, tests/test.out, - tests/ex-09.out, tests/ex-10.out, tests/ex-11.out, - tests/ex-12.out, tests/ex-13.out, tests/ex-14.out, - tests/ex-15.out, tests/ex-16.out, tests/ex-17.out, - tests/ex-18.out, tests/ex-19.out, tests/ex-20.out, - tests/22-rdf-syntax-ns.out, tests/ex-00.out, tests/ex-01.out, - tests/ex-02.out, tests/ex-03.out, tests/ex-04.out, - tests/ex-05.out, tests/ex-06.out, tests/ex-07.out, - tests/ex-08.out: Test N-Triples answers - -2002-03-05 Dave Beckett - - * ntriples_parse.c: - Added some missing prototypes. - (raptor_ntriples_generate_statement): Added support for literal - language, is_XML throughout. - Generate string/XML literals. - (raptor_ntriples_utf8_to_unicode_char): Added - based on librdf_utf8_to_unicode_char - (raptor_ntriples_string): Move the start pointer once the string has - been parsed. - Added literal language (partial), XML support (done) - (raptor_print_ntriples_string): Added; writes a ntriples-escaped - string, handling all escapes. Uses - raptor_ntriples_utf8_to_unicode_char - - * raptor_cc.gperf: - A little strlen removal/optimising. - Added more test cases - - * raptor.h: - raptor_statement: Added object_literal language, is_XML flag - - * Makefile.am: - Added raptor_cc.c, raptor_cc.gperf and unit test - - * raptor_cc.gperf: - Added function documentation. - Use constant pointers to constant strings - Tidy testing messages - - * raptor_cc.gperf: - Raptor ISO 3166 country code handling - - * raptor_parse.c (raptor_print_statement_as_ntriples): - Start updating N-Triples output - for xml() support and quote the literals using - raptor_print_ntriples_string - - * raptor_parse.c: - Removed more aboutEach, aboutEachPrefix mentions - - * raptor_parse.c: - Generate statement for parseType resource between parent and content - - * tests/Makefile.am, tests/ex-21.rdf: - Test that rdf: namespace prefixes work - - * tests/ex-13.rdf: Fix comment - -2002-02-05 Dave Beckett - - * raptor_parse.c (raptor_start_element_grammar): - Change a series of if statements - about state, to be based on a switch on content_type - - * raptor_parse.c (raptor_start_element_grammar): - parseType Literal uses content_type - XML Literal - Add XML_LITERAL content type to be used when preserved is - - * raptor_parse.c (raptor_start_element_grammar): - Moved property rdf:resource checking - to end element - - * raptor_parse.c (raptor_start_element_grammar): - FOr rdf:li properties, don't loop around state - - * raptor_parse.c (raptor_start_element_grammar): - Use content_type not state for - finding daml collections. - - * raptor_parse.c (raptor_start_element_grammar): - Remove explicit checks for built-in - container types. - - * raptor_parse.c: - Removed old block_type comment - - * raptor_parse.c: - Remove IN_RDF reference - - * raptor_parse.c: - Change content_type / child_content_type when the state / - child_state is set - Change content_type when parseType changes. - - * raptor_parse.c (raptor_xml_cdata_handler): - Changed to handle a few state exceptions - and then work on a content_type basis. - When reading a property value, if non-whitespace content is found, - set the content type to be literal. - - * raptor_parse.c (raptor_xml_end_element_handler): - If there is a parent, pass the last - state of this element back up. - - * raptor_parse.c (raptor_xml_start_element_handler): - Update literal handling to use - element content_type. Initialise to unknown, then from - the value passed from the parent element if there is one. - Use the flags of the content type to do the checks. - Ensure that when an element is found as a property value, content - type switches to RESOURCE to expect a resource (node). - - * raptor_parse.c: - Added a bunch of LIBRDF_DEBUG* statements; tided output of others. - - * raptor_parse.c: - typed_node=>typedNode - - * raptor_parse.c: - Deleted states 6.29 (referencedItem) and 6.30 (inlineItem); now that - rdf:li is the same as any other property - - * raptor_parse.c: - More EMPTY=>RESOURCE; code at this stage won't work - - * raptor_parse.c: - Added some new content types - Uses of type EMPTY replaced with RESOURCE - - * raptor_parse.c: - (raptor_xml_start_element_handler): - Initialise user_data, locator inside code body; gcc3.x wasn't doing - it in the order of declarations. - - * raptor_parse.c: - Added RAPTOR_ELEMENT_CONTENT_TYPE_LAST to make it compile again - - * raptor_parse.c: comment tidy - - * raptor_parse.c: - Added child_content_type to parser state - - * raptor_parse.c: - Added rdf_content_type_info - (raptor_element_content_type_as_string): Added - - * raptor_parse.c: - Removed raptor_typed_node_block_type - - * raptor_parse.c: - Include dmalloc.h (optionally) after stdlib.h - keeps some gcc3 - versions happier - -2002-02-03 Dave Beckett - - * tests/Makefile.am: - Added 22-rdf-syntax-ns.rdf rdf namespace test - - * tests/22-rdf-syntax-ns.rdf: - Added RDF namespace schema to tests - - * tests/ex-11.rdf: - Use parseType 'Literal' (specific value) rather than 'literal' which - just gets turned into parseType literal by the default rules. - - * tests/Makefile.am: - Throw away stderr on make check; if it fails, I can find out by hand - diff --git a/ChangeLog.4 b/ChangeLog.4 deleted file mode 100644 index 145e9191..00000000 --- a/ChangeLog.4 +++ /dev/null @@ -1,2809 +0,0 @@ -2003-12-31 Dave Beckett - - * raptor_rss.c, raptor_parse.c, ntriples_parse.c, n3_parser.y: - Use expanded raptor_parser_register_factory with mime_type and - uri_string args where appropriate. - - * 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 - - * libraptor.3: nroff/man style tweaks - -2003-12-30 Dave Beckett - - * 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 - - * 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 - - * 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 - - * 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 - - * 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. - - * TODO.html: Record win32 file://c: somewhat handled. - - * 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. - - * TODO.html: Record win32 file://c: somewhat handled. - -2003-12-19 Dave Beckett - - * TODO.html: updates, note bug or feature - - * examples/Makefile.am: Removed REDLAND_LIBS - -2003-12-17 Dave Beckett - - * raptor_parse.c: - Update for changed raptor_generate_id handler calls - no const. - - * raptor_general.c, raptor.h, raptor_internal.h: - raptor_generate_id handler does not take const string - - * raptor_general.c, raptor.h, raptor_internal.h: - raptor_generate_id returns non const - - * ntriples_parse.c (raptor_ntriples_parse_line): - Casts, unsigned char* for blank node IDs. - - * ntriples_parse.c (raptor_ntriples_parse_line): - Enforce predicate must be URIref - -2003-12-16 Dave Beckett - - * ntriples_parse.c (raptor_ntriples_parse_line): - Pass blank node identifier generation - through raptor_generate_id. Rewrite returns into setting rc and jump - to cleanup to ensure allocated blank node IDs are freed. - - * raptor.pc.in: Restore LDFLAGS, LIBS - - * raptor-src-config.in: Removed --static-libs - -2003-12-15 Dave Beckett - - * raptor.pc.in: Just link -lraptor - - * configure.ac: - Remove use of have_redland for expat sources (no longer shipped with - redland anyway) - - * configure.ac: Remove redland source check. - - * Makefile.am: No need for librdf.la rule - - * rdfdump.c, raptor_stringbuffer.c, raptor_set.c, - raptor_namespace.c, Makefile.am: Remove all RAPTOR_IN_REDLAND code - use of REDLAND_LIBS, REDLAND_CFLAGS. Now the test and rdfdump - programs always just use raptor alone. - -2003-12-14 Dave Beckett - - * TODO.html: - CDATA sections do not count line numbers at all (seen with libxml) - - * raptor_general.c (raptor_print_statement_part_as_ntriples): - Update call of raptor_print_ntriples_string - - * raptor.h: Update raptor_print_ntriples_string prototype - - * raptor_general.c (raptor_print_ntriples_string): - Take unsigned const char* - -2003-12-08 Dave Beckett - - * TODO.html: libxml2.6.0 SAX API support done - -2003-12-06 Dave Beckett - - * Makefile.am: - Narrower yyerrlabl fix since bison 1.875a no longer requires it - - * examples/grapper.c: - Casts and updates to use URI strings from raptor as unsigned char* - and converting to/from gchar* - - * rdfdump.c, raptor_xml_writer.c, raptor_xml.c, - raptor_www_libxml.c, raptor_www.c, raptor_uri.c, raptor_sax2.c, - raptor_rss.c, raptor_parse.c, raptor_namespace.c, n3_parser.y, - n3_lexer.l: - 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 - - * TODO.html: ntriples parser should use raptor_generate_id for bnodes - -2003-12-01 Dave Beckett - - * raptor_set.c (raptor_set_stats_print): Debug printing tweak. - -2003-11-28 Dave Beckett - - * 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 - - * manifest.pl: Add withdrawn tests check - -2003-11-23 Dave Beckett - - * 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 - - * rdfdump.c: extra newline in version - - * rdfdump.c: extra newline in help - -2003-11-19 Dave Beckett - - * 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 - - * raptor.h: Added raptor_ntriples_string_as_utf8_string - - * ntriples_parse.c (raptor_ntriples_term): - Added allow_utf8 argument and new class - RAPTOR_TERM_CLASS_FULL which uses all the passed in string. - (raptor_ntriples_string_as_utf8_string): Added, using - raptor_ntriples_term as above. - (raptor_ntriples_parse_line): Use size_t len args. - - * rdfdump.c: Use f/puts instead of print/fprintf when there are no %s - - * raptor_uri.c (raptor_default_new_uri_for_rdf_concept): - Remove duplicate strlen(base_uri) - -2003-11-15 Dave Beckett - - * n3_lexer.l: Document more ntriples plus - Error out if @prefix's name doesn't match name - - * TODO.html: todos near xml1.1 names - - * raptor_utf8.c (raptor_unicode_is_namestartchar): - Two | changed to ||. Likely worked anyway - -2003-11-11 Dave Beckett - - * libraptor.3: Noted raptor_set_feature with non_nfc_fatal - - * raptor.h: Added RAPTOR_FEATURE_NON_NFC_FATAL to pick between NFC - errors or warnings. - - * raptor_general.c (raptor_set_feature): Added - RAPTOR_FEATURE_NON_NFC_FATAL to pick between NFC errors or warnings. - (raptor_set_parser_strict): Set feature_non_nfc_fatal default off. - - * raptor_internal.h: - Added feature_non_nfc_fatal to pick between NFC errors or warnings. - - * raptor_parse.c: - Put 'quotes' around element/attribute names in messages. - Use feature_non_nfc_fatal to pick between NFC errors or warnings. - - * tests/Makefile.am: check-bad-nfc-rdf - use strict mode - - * rdfdump.c: Document -m/--mode arg - - * TODO.html: gzip2/bzip2 api - -2003-11-10 Dave Beckett - - * TODO.html: Note libxml2 2.6.0 SAX2 issues - - * configure.ac: Added tests/ntriplesplus - - * tests/ntriplesplus/Makefile.am: N-Triples plus tests - - * tests/ntriplesplus/test-00.ntp, tests/ntriplesplus/test-00.out: - N-Triples Plus default namespace test - - * tests/Makefile.am: added ntriplesplus dir - - * raptor_qname.c (raptor_qname_string_to_uri): - Keep original name around for error reporting. - - * rdfdump.c, n3_parser.y: parser now called ntriples-plus - - * n3_parser.y: parser called ntriplesplus - - * n3_parser.y (production directive): - Fix declaring default namespace prefix - -2003-11-09 Dave Beckett - - * tests/Makefile.am: added bad-20.rdf - - * tests/bad-20.rdf: check non-namespaced element does not crash parser - - * raptor_qname.c (raptor_new_qname, - raptor_new_qname_from_namespace_local_name): Do not die if no URI - for qname is available. It might be which is at - least needed for some error reports or for embedded qnames. - Caused unnecessary crashes when parsing failed. - -2003-11-03 Dave Beckett - - * raptor_xml.c (main): Make tests less chatty on success - - * raptor_uri.c (main): Make it less chatty on success - - * raptor_uri.c (raptor_uri_uri_string_to_filename_fragment): - Allow file://a|/ and file://a:/ - (main): For WIN32, check the above works. - - * autogen.sh: remove ltmain.sh libtool before libtoolize - - * raptor_general.c (raptor_parse_uri_with_connection): - Fail before parsing if raptor_www_fetch failed. - - * raptor_internal.h: Added raptor_www_error_varargs internal prototype. - - * raptor_www_libxml.c (raptor_www_libxml_http_error): - This was just all wrong, printing to - stderr and then exit(1). Change to use the proper - raptor_www_error_varargs callback. - - * raptor_www.c (raptor_www_error_varargs): - Added, with va_list signature. - - * raptor_general.c (raptor_parse_file): - When uri is given and base_uri is NULL, copy - the uri and free it later - fix to match the function documentation. - -2003-10-31 Dave Beckett - - * raptor_general.c (raptor_parse_file): fclose only when fh is not NULL - -2003-10-21 Dave Beckett - - * TODO.html: Note Win32 URI code possible bug - - * raptor_parse.c (raptor_xml_end_element_handler): - For RAPTOR_DEBUG, declare element_name at start of function. - -2003-10-20 Dave Beckett - - * raptor.h: raptor_namespace(s)_(new|free) renamed to - raptor_(new|free)_namespace(s) - Added raptor_new_qname_from_namespace_local_name - - * raptor_qname.c (raptor_new_qname_from_namespace_local_name): Added. - - * raptor_namespace.c: - raptor_namespaces_(new|free) renamed to raptor_(new|free)_namespaces - - * raptor_namespace.c: - raptor_namespace_(new|free) renamed to raptor_(new|free)_namespace - - * raptor_xml_writer.c: - raptor_namespaces_free renamed to raptor_namespaces_clear - - * raptor_parse.c (raptor_xml_start_element_handler): - Use raptor_new_sax2_element. - raptor_namespaces_free renamed to raptor_namespaces_clear - - * raptor_internal.h: Added raptor_new_sax2_element - - * raptor_sax2.c (raptor_new_sax2_element): Added. - - * raptor.h: - Added prototypes for raptor_namespaces_new, raptor_namespaces_clear - - * raptor_namespace.c (raptor_namespaces_new,raptor_namespaces_free): - Added for constructor and destructor. - raptor_namespaces_free renamed to raptor_namespaces_clear for - emptying a statically allocated namespace stack. - - * n3_parser.y: - raptor_namespaces_free renamed to raptor_namespaces_clear - -2003-10-16 Dave Beckett - - * n3_parser.y: Moved n3 lexer/parser stuff to n3_common.h - Added uri field to union. - URI_LITERAL and QNAME_LITERAL now are uri. - PREFIX now expects an IDENTIFIER to follow. - Remove all make qname/uri and free(copied token) sequences since the - lexer does it. - Added fake yy_init_globals to stop dumb warning. - - * n3_lexer.l: Make raptor_uris here from lexer tokens (qnames or URIs) - For @prefix, recognise following token as an identifier specially - rather than try to make it a URI. - (n3_token_free): Free string or raptor_uri. - (main): Lots of fixups to fake enough n3 parser structure to - get it working fairly standalone. - - * Makefile.am: Added n3_common.h - Fixup free of null inside flex-generated lexer. - - * n3_common.h: N3 parser/lexer shared internals - - * raptor_internal.h: Moved n3 lexer/parser stuff to n3_common.h - - * n3_parser.y (n3_qname_to_uri): Replace with call to - raptor_qname_string_to_uri and added length parameter. - - * raptor_qname.c (raptor_new_qname): - Replace raptor_namespace_local_name_to_uri - with use of raptor_new_uri_from_uri_local_name. - (raptor_qname_string_to_uri): Added, making only the URI - equivalent to the qname and handling N3/RDQL-style special - cases such as "prefix:", ":" and NULL. - - * raptor_internal.h, raptor.h: - Moved raptor_qname, raptor_namespace, raptor_namespace_stack - classes into public API. - Added raptor_qname_string_to_uri - - * raptor_namespace.c (raptor_namespace_local_name_to_uri): - Removed - only used once internally and was never public. - -2003-10-09 Dave Beckett - - * n3_lexer.l (n3_token_free): Added, for cleanup in debugging. - (main): Init and clear token/lval. - - * tests/Makefile.am: Added ex-53 - - * tests/ex-53.out, tests/ex-53.rdf: Check allowing optional rdf:RDF - - * rdfdump.c: - --assume/-a feature_assume_is_rdf deleted; rdf:RDF is optional. - - * raptor_general.c, raptor_parse.c: - feature_assume_is_rdf deleted; rdf:RDF is optional. - - * raptor_internal.h: feature_assume_is_rdf deleted - -2003-10-06 Dave Beckett - - * tests/wine.out, tests/wine.rdf: - OWL Wine Ontology from http://www.w3.org/TR/owl-guide/wine.rdf - - * tests/Makefile.am: - Added OWL Wine ontology from http://www.w3.org/TR/owl-guide/wine.rdf - as wine.rdf wine.out - -2003-09-30 Dave Beckett - - * TODO.html: NTP lval - - * n3_parser.y: Remove n3_parser_lex; re-#define yylex to call direct - - * n3_lexer.l (copy_string_token): - Destroy malloced string on error return. - - * n3_parser.y (n3_parse): - Don't delete buffer, pop buffer state; a successful lex does that. - - * raptor_internal.h: Remove n3_token_print - - * n3_parser.y: Use reentrant yacc parser. - Store the lexer lval in the n3_parser context. - Lots of #define trickery to get flex/bison to talk nicely. - Make n3_parser_error take an rdf_parser arg (this isn't configurable - by bison itself, so is likely fragile). - Remove use of extern in lineno; get it from the lexer. - Remove N3_Parser global; use rdf_parser local. - (n3_parser_error): Update for having rdf_parser arg, update locator - lineno from scanner. - (n3_syntax_error, n3_qname_to_uri): Get lineno from scanner. - (n3_parse): Remove fixmes, no need for protecting globals. - (main): Update for reentrant parser; init locator from standalone - args. - - * n3_lexer.l: - Remove n3_lexer.c/.h prototypes no longer(?) needed with - re-entrant lexer. - Remove use of lineno; let lexer do it. - Change lexer call to pass in lval from reentrant parser. - (n3_token_print): Pass in lval. - (main): Update for api changes. - -2003-09-29 Dave Beckett - - * raptor_internal.h: Updates for reentrant lexer. - - * n3_parser.y: Use reentrant lexer API. - Define YYLEX_PARAM to be scanner arg, from current grammar. - (n3_parser_lex): Take scanner arg. - (n3_syntax_error): Add rdf_parser arg. - (n3_parse): Init and destroy reentrant lexer. - (raptor_n3_parse_terminate): Tidy up any lexer stuff. - (main): Check for file not found, report it. - - * n3_lexer.l: - Switch to reentrant lexer. Pass rdf_parser into code, yyextra - internally. - (yywrap): Add scanner arg. - (copy_string_token, n3_syntax_error): Add rdf_parser arg. - (main): Use reentrant calls for lexer to set yyin, get_text. Use - yylex_init/yylex_destroy. - - * Makefile.am: n3_lexer_test depends on raptor_utf8 - - * raptor_parse.c: - Add EXPAT_UTF8_BOM_CRASH fix updates for sax2 changes. - - * configure.ac: Tweak for old flex version output - - * configure.ac: Try to check flex is new enough. - -2003-09-21 Dave Beckett - - * n3_parser.y: Minor C reformatting - -2003-09-20 Dave Beckett - - * raptor.h: Added raptor_parsers_enumerate prototype - - * n3_lexer.l: minor reformatting - - * n3_lexer.l (copy_string_token): Make \r, \n and \t work - - * raptor_general.c (raptor_init): Ensure rdf/xml is default parser. - (raptor_parsers_enumerate): Added, to enumerate parsers, returning - their name & label. - - * examples/grapper.c: - Use raptor_parsers_enumerate to get parser names, labels. - - * n3_lexer.l: flex archaeology for options - - * examples/Makefile.am: Don't build examples by default - -2003-09-19 Dave Beckett - - * raptor_www.c, raptor_general.c: - Revert to old API for raptor_uri_uri_string_to_filename - - * raptor.h, raptor_uri.c (raptor_uri_uri_string_to_filename): - Restored to old API. - (raptor_uri_uri_string_to_filename_fragment): Added with fragment arg. - -2003-09-17 Dave Beckett - - * n3_parser.y (n3_qname_to_uri): - Handle NULL (":" in N3) returning the default - namespace. It's not quite clear if this is legal. - - * n3_parser.y (raptor_n3_generate_statement): - Do nothing if some part of the triple - is NULL. - - * raptor_internal.h: n3_syntax_error now takes varargs - - * n3_parser.y (n3_syntax_error): Now takes varargs - - * n3_lexer.l: n3_syntax_error now takes varargs - (copy_string_token): Added \u, \U. Fixed, \r, \n, \t - - * n3_parser.y: Wrap a debugging printf - - * n3_lexer.l: For blank literal "_:abc", don't include _: in the - id passed to the parser. - - * n3_parser.y: - Throughout replace raptor_new_uri with raptor_copy_uri when copying - existing base URI. - - * n3_parser.y: - Throughout: Handle NULL uri string meaning use the base URI - - * n3_lexer.l: Handle <> (returning NULL) as well as <> with content. - (n3_token_print): Update to match. - (n3_syntax_error): Simple standalone copy here. - - * n3_parser.y (n3_parser_error): - Set lineno and call raptor_parser_simple_error to - pass on the parsing error. - (n3_syntax_error): Added. Set lineno and call raptor_parser_error - to pass on a general syntax error. - (n3_qname_to_uri): Init locator line before calling raptor_new_qname - that may fail, calling raptor_parser_simple_error. - - * raptor_internal.h: Add n3_syntax_error - - * n3_lexer.l: Call n3_syntax_error on a syntax error - - * TODO.html: uris work for ntriples+ - - * examples/grapper.c: Add n3 syntax - - * n3_parser.y (propertyList): Handle NULL verb, two cases. - (raptor_n3_parse_start): No locator column, byte values just yet. - - * n3_parser.y (n3_qname_to_uri): - Call raptor_new_qname with rdf_parser for errors - - * TODO.html: +RFE to disable NFC linking/check to glib - -2003-09-15 Dave Beckett - - * n3_parser.y: Don't raptor_free_uri shared uris made from qnames - - * n3_parser.y (n3_parse): Tidy up flex buffers. - (raptor_n3_parse_terminate): Destroy any flex state on exit. - - * n3_parser.y (n3_parse): delete buffer after parse. - - * n3_parser.y: Free uri strings returned from URI_LITERAL. - - * raptor_identifier.c (raptor_new_identifier): - Note uri, literal_datatype are shared and not copied. - - * n3_parser.y: Free strings returned from QNAME_LITERAL. - - * raptor_sequence.c (raptor_new_sequence): Use RAPTOR_MALLOC. - (raptor_free_sequence): Free the raptor_sequence. - - * raptor_identifier.c (raptor_new_identifier): - Note id, literal, literal_language are shared and not copied. - - * n3_parser.y (statement): Free identifier used for subject - (propertyList): Free identifier used for verb - - * n3_parser.y: Track when an identifier is copied using is_malloced - (raptor_free_triple): Actually free the triple. - - * raptor_internal.h, n3_parser.y: raptor_triple now just has 3 items. - - * n3_parser.y (raptor_n3_parse_terminate): Free namespaces - - * n3_parser.y (n3_parse): Do not parser NULL or empty string. - (raptor_n3_parse_chunk): Do not parser empty buffer. - - * rdfdump.c: (main) Don't free NULL uri - - * TODO.html: More N-Triples+ todos - - * TODO.html, README.html, NEWS.html, INSTALL.html: - XHTML fixes, removing align="center" - - * TODO.html: Some N-Triples+ todos - - * n3_parser.y: More debugging messages. - Recover from errors, don't generate partial triples. - (n3_qname_to_uri): Return NULL if raptor_new_qname does not give a - URI (some error happened). - - * n3_lexer.l: Remove END token, should only use EOF - Count lines right for \r\n|\r|\n - Handle EOF in comments - - * n3_parser.y: Remove END token, should only use EOF - Add more debugging statements. - Throughtout, change raptor_new_uri to raptor_new_uri_relative_to_base. - (statement): Handle empty propertyList ("[]"). - (propertyList 1): Copy verb into objectList, then append - propertyList items (if not empty "[]" again). - (objectList): Add empty item for "[]", returning NULL. - (resource): For [], handle NULL and generate statements here - before returning the generated id. - (n3_parser_print_statement): Added for test code - (main): In test code, init URI module only, create fake - static rdf_parser and n3_parser and initialise enough (base URI, - and context) so that it works. - - * n3_parser.y: Add error recovery at '.' - -2003-09-14 Dave Beckett - - * n3_parser.y: raptor_print_triple renamed to raptor_triple_print - - * n3_parser.y: Only define raptor_print_triple if debugging. - - * raptor_identifier.c, n3_parser.y: - raptor_print_identifier renamed to raptor_identifier_print - - * n3_parser.y: Raptor N-Triples+/N3 parser - - * n3_lexer.l: Raptor N-Triples+/N3 lexer - - * raptor_identifier.c (raptor_identifier_print): Added for debugging - - * raptor_internal.h: When debugging, raptor_identifier_print - - * raptor_identifier.c (raptor_new_identifier): - Add literal, literal_datatype, - literal_language args and handle them. - (raptor_init_identifier): Deleted, not used (enough). - (raptor_copy_identifier, raptor_free_identifier): Updated for - literal, literal language and literal datatype. - - * rdfdump.c: - Use the syntax name (after validation) to intialise the parser rather - than an ever-growing set of flags. - - * raptor_uri.c (raptor_default_new_uri): - If the filename had a fragment, re-append - it to the file:URI after updating it to be correct. - (raptor_uri_uri_string_to_filename): Add fragment_p arg to return - the URI fragment after a discovered filename in a file:URI. - (assert_uri_to_filename): Update call to - raptor_uri_uri_string_to_filename. - - * raptor_parse.c (raptor_xml_parser): Add namespaces. - Elsewhere change rdf_parser->namespaces to - rdf_xml_parser->namespaces. - (raptor_xml_parse_start): Initialise the namespaces for rdf/xml. - - * raptor_sequence.c: Raptor sequence ADT - - * raptor_namespace.c (raptor_namespace_init): - Add defaults arg to control which - namespaces are added by default. 0=none, 1=xml, 2=... others - (main): Update test code to give new arg. - - * raptor_general.c (raptor_init): Call raptor_init_parser_n3. - (raptor_start_parser, raptor_free_parser): Remove namespace code from - here; moves into specific parser context code. - (raptor_parse_file): Update for raptor_uri_uri_string_to_filename - extra arg. - - * raptor_xml_writer.c: - (raptor_new_xml_writer) Update for raptor_namespaces_init defaults - arg. - - * raptor_rss.c (raptor_rss_emit): Use raptor_new_identifier rather than - raptor_init_identifier and make items dynamically allocated. - - * raptor_www.c: - (raptor_www_file_fetch) Update for raptor_uri_uri_string_to_filename - extra argument. - - * raptor.h: - Add literal, literal_datatype, literal_language to raptor_identifier - structure. - Add above arguments to raptor_new_identifier. - Remove raptor_init_identifier - not used. - Add fragment_p argument to raptor_uri_uri_string_to_filename. - - * raptor_internal.h: - Remove namespaces from raptor_parser; now in per-syntax contexts. - Updated raptor_namespaces_init to take defaults arg. - Added N3 class prototypes, for n3_token_print, raptor_init_parser_n3, - n3_parser_lex. - Added raptor_triple structure. - Added sequence class prototypes. - - * Makefile.am: - Add n3_lexer.c n3_lexer.h both generated from n3_lexer.l by flex; - add maintainer-only rules to do that. - Add n3_parser.tab.c n3_parser.tab.h generated from n3_parser.y by - yacc; add maintainer-only rules to do that. - Add raptor_sequence.c and test. - - * configure.ac: Add lex (flex required) and yacc - -2003-09-08 Dave Beckett - - * configure.ac: Bumped version to 1.1.0 - - * ntriples.h: deprecated - - * Snapshotted raptor_1_0_0 for 1.0.0 release - - * libraptor.3: new date - - * NEWS.html: Note functions were removed, soname was increased - - * ntriples.h, Makefile.am: Removed old header ntriples.h - - * raptor_general.c, raptor.h, ntriples_parse.c: - Removed deprecated functions as promised. Changes are described in - the libraptor.3 man page. - - * configure.ac: Updated for Raptor 1.0.0 - Shared library soname major now 1 - - * NEWS.html, libraptor.3: Updated for Raptor 1.0.0 - - * win32_config.h: Added R_OK define for access() - - * tests/Makefile.am: test wording for failures - -2003-09-05 Dave Beckett - - * tests/Makefile.am: Added bad-05.nt - - * tests/bad-05.nt: Bad Unicode character #x110000 - - * tests/test.out, tests/test.nt: fixes - - * tests/test.nt: - Removed resource18-20 - illegal Unicode chars. Added \U0010FFFF - - * ntriples_parse.c (raptor_ntriples_term): - Forbid Unicode characters outside #x0-#x10FFFF - -2003-09-04 Dave Beckett - - * libraptor.3: Updated for 0.9.13 - Added raptor_parse_file_stream. - Added new feature normalize_language. - Added list of all static variables exported. - - * configure.ac: - Define RAPTOR_VERSION_DECIMAL here and make it an AC_SUBST. - - * raptor_general.c: Use RAPTOR_VERSION_DECIMAL define. - - * raptor-config.1: Document --version-decimal and --libtool-libs - - * raptor-config.in: Added --version-decimal. - - * rdfdump.c: Allow filename "-" to be used as standard input. - When a filename is given, use raptor_parse_file. - Adjust the error messages to mention file names when using - raptor_parse_file. - - * raptor.h: Added raptor_parse_file_stream - - * raptor_general.c (raptor_parse_file_stream): - Added, allowing passing in of an existing - FILE* stream (with optional filename) and parsing rather than - raptor doing the fopen/fclose. - (raptor_parse_file): A NULL uri argument now means stdin. - - * raptor_internal.h, raptor_parse.c: Remove rdf_parser->fh - - * rdfdump.c: Use raptor_short_copyright_string in usage/help messages - - * raptor_general.c, raptor.h: Added raptor_short_copyright_string - -2003-09-03 Dave Beckett - - * raptor_general.c (raptor_set_feature): - Add new feature normalize_language - (raptor_set_parser_strict): Set default for feature - normalize_language to true. - - * raptor.h, raptor_internal.h: Add new feature normalize_language - - * raptor_parse.c (raptor_xml_start_element_handler): - Normalize language to lowercase. - After http://www.w3.org/TR/rdf-concepts/#dfn-language-identifier - Controlled by a new parser feature 'normalize_language'. - - * ntriples_parse.c (raptor_ntriples_parse_line): - Normalize language to lowercase. - After http://www.w3.org/TR/rdf-concepts/#dfn-language-identifier - -2003-09-01 Dave Beckett - - * raptor-config.in: Oops, -lraptor with --libs - - * configure.ac: - Added RAPTOR_LIBTOOL_LIBS for compiling with raptor using libtool. - - * raptor-config.in: - Added exec_prefix to make --libs generate the right -L - Added --libtool-libs for compiling with raptor using libtool. - -2003-08-31 Dave Beckett - - * configure.ac: dmalloc enabled only if dmalloc.h is present - - * tests/Makefile.am: Removed warn-01 re-added accidently. - - * tests/warn-00.out, tests/warn-00.rdf: Added rdf:bagID warning check - - * tests/Makefile.am: - Added scanning tests and ex-52.svg/out for inside SVG - - * tests/ex-52.out, tests/ex-52.svg: Check scanning for rdf/xml in SVG - - * raptor_general.c (raptor_set_parser_strict): - Scanning and assuming are never default - on, must be enabled - - * TODO.html: The scanning for rdf:RDF works (--scan argument to rapper) - - * raptor_parse.c (raptor_xml_start_element_handler): - Fix scanning for rdf:RDF. Do - parent->child processing if the grammar has a state set up, - in this case it is expecting a list of node elements. - - * rdfdump.c: Set strict before setting other features - - * rdfdump.c: Use strict_mode - - * tests/warn-00.out, tests/warn-00.rdf, tests/warn-01.out, - tests/warn-01.rdf, tests/warn-03.rdf: These are now errors not - warnings - - * raptor_parse.c (raptor_xml_start_element_handler): - Non-namespaced elements are now - an error. - (raptor_process_property_attributes): Tidy non-namespaced element name. - (raptor_start_element_grammar): Give errors if an attempt is made - to proceed dealing with elements with no namespace for property or - node elements - attributes are caught above. - - * 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 - - * configure.ac: - Added --with-dmalloc option default auto for maintainer, no otherwise. - -2003-08-25 Dave Beckett - - * 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 - - * 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 - - * raptor_general.c (raptor_check_ordinal): parentheses just for gcc - -2003-08-17 Dave Beckett - - * 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 - - * 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 - - * 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. - - * ntriples_parse.c (raptor_ntriples_generate_statement): Make - RAPTOR_IDENTIFIER_TYPE_ORDINAL predicates for property URI strings - that match the rdf:_ pattern with n a decimal integer>0. - - * raptor_parse.c: Use raptor_check_ordinal for checking in rdf:_ - - * raptor_general.c (raptor_check_ordinal): Check the in rdf:_ - - * raptor_general.c (raptor_vsnprintf): - Non-portable use of va_list fixed by copying the - arguments with va_copy before passing to vsnprintf calls. The - symptom was crashes on some architectures where this mattered, such - as powerpc. - -2003-08-07 Dave Beckett - - * raptor_general.c (raptor_parse_uri_with_connection): - Return failure status. - -2003-08-03 Dave Beckett - - * tests/Makefile.am: Added bad N-Triples tests bad-0[0-3].nt and checks - - * tests/bad-00.nt, tests/bad-01.nt, tests/bad-02.nt, tests/bad-03.nt: - Bad N-Triples - - * ntriples_parse.c: raptor_ntriples_term_class Added for: - (raptor_ntriples_term_valid): Checking validity of a ntriples term - - this could be inlined. - (raptor_ntriples_string) Renamed to: - (raptor_ntriples_term) Use raptor_ntriples_term_valid. - (raptor_ntriples_parse_line): Add more checks that whitespec exists - between ntriples terms. - Error to have typed literals with languages. - - * tests/test.out, tests/test.nt: - Updated to remove language from typed literals - - * raptor_general.c (raptor_print_statement_detailed): - Fix datatype uri output not - - * TODO.html: - 'make check' shouldn't fail on NFC checks that will never work. - - * raptor_general.c (raptor_parser_simple_error): - Call raptor_parser_error_varargs, don't - lose the arguments. - -2003-07-29 Dave Beckett - - * 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 - - * 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 - - * 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 - - * 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 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 - feature_allow_rdf_type_rdf_List (internal) to generate the rdf:type - rdf:List triple from rdf:parseType="Collection". The default is no - after latest RDF/XML revisions. Not relevant for daml:Collection - which get the daml:List always. - - * raptor.h: - Added a new feature RAPTOR_FEATURE_ALLOW_RDF_TYPE_RDF_LIST - to control rdf:type rdf:List triple generation from - rdf:parseType="Collection" (default no) - - * raptor_internal.h: - Added a new feature feature_allow_rdf_type_rdf_List - to control rdf:type rdf:List triple generation from - rdf:parseType="Collection" (default no) - - * raptor_parse.c (raptor_start_element_grammar): - Remove rdf:type rdf:List triple - generation from rdf:parseType="Collection" by default. Not - for daml:Collection. Add a new feature - feature_allow_rdf_type_rdf_List to control this. - -2003-07-22 Dave Beckett - - * raptor_xml.c (raptor_valid_xml_ID, raptor_xml_escape_string): - unsigned long for all unichars. - - * raptor_internal.h: - Update raptor_utf8_to_unicode_char to use unsigned long output. - - * raptor_utf8.c (raptor_utf8_to_unicode_char): - Take and use unsigned long for unichars. - - * raptor_rss.c: - namespace->nspace since might be a C/C++ keyword sometime - - * raptor_www_curl.c (raptor_www_curl_header_callback): - Turn void* into char* - - * raptor_set.c: Casts - - * rdfdump.c (rdfdump_error_handler): Cast data into raptor_parser* - - * raptor_www_curl.c: - (raptor_www_curl_write_callback,raptor_www_curl_header_callback): - Return unsigned int 0 on failure, cannot return -1 :) - - * raptor_www.c: Some casts near mallocs - - * tests/owl-schema.out: Updated to match 2003-03-18 version. - - * tests/owl-schema.rdf: - Updated to 2003-03-18 version (just changed DOS line endings) - - * ntriples_parse.c (raptor_ntriples_parse_chunk): - Handle just the end marker being given - i.e. len=0 (and possibly s=NULL) - - * raptor_parse.c (raptor_xml_end_element_handler): - When parsing has been aborted (rdf_parser->failed), clean up used - memory rather than just return. - element_name is not used except when debugging, so #ifdef it. - -2003-07-21 Dave Beckett - - * raptor.h: - Export global statics raptor_copyright_string, raptor_version_string, - raptor_version_major, raptor_version_minor, raptor_version_release - and raptor_version_decimal - - * raptor_general.c: - Added statics raptor_copyright_string, raptor_version_string, - raptor_version_major, raptor_version_minor, raptor_version_release - and raptor_version_decimal - - * Makefile.am: - Removed raptor_cc code since ISO may charge a commercial use fee for - this list. - - * raptor_cc.gperf: - ISO 3166-1 'The use of ISO 3166-1 in commercial products may be - subject to a licence fee.' says the maintenance agency. Goodbye - code. See - http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/index.html - - * raptor_parse.c: - Free former rdf:about, rdf:resource attribute string values before - they are zapped. - - * raptor_parse.c (raptor_xml_parse_terminate): - Delete the sax2 object when cleaning - up. - - * rdfdump.c: Free new uri_string when it's allocated for a filename - - * rdfdump.c: Tidied usage and help information. - - * rapper.1: Updated to match current rapper arguments. - - * Makefile.am: Added raptor_identifier.c - - * raptor_general.c, raptor_identifier.c: - Moved raptor_identifer classes to raptor_identifier.c - -2003-07-20 Dave Beckett - - * rdfdump.c: - If first argument is a filename, make it into a file:/// uri. - - * raptor_uri.c (raptor_default_new_uri): - Turn probably-bad file:filename 'URIs' into - proper file:///... etc. ones. - - * raptor_parse.c: - Make use of forbidden rdf-namespaced property attributes into errors, - as they should be. - (raptor_forbidden_propertyAttribute_name): Now used. - Reword some error messages. - - * tests/Makefile.am (check-bad-rdf): - Note when bad test succeeds instead of failing - - * tests/Makefile.am: Added bad-13, bad-14 - - * tests/bad-14.rdf: rdf:Description is not a legal property attribute - - * tests/bad-13.rdf: A property element cannot take rdf:about - - * raptor_uri.c (raptor_new_uri_for_xmlbase): Docs - -2003-07-15 Dave Beckett - - * libraptor.3: formatting - - * libraptor.3: - Added raptor_set_default_generate_id_parameters, - raptor_set_generate_id_handler - - * raptor_general.c (raptor_set_default_generate_id_parameters): - Fix it right this time. - - * raptor_general.c (raptor_set_default_generate_id_parameters): - Fix base so the next - generated ID uses the integer given, not integer+1 - - * raptor_general.c (raptor_free_parser): - Free any user-set genid prefix. - -2003-07-13 Dave Beckett - - * raptor.h: - raptor_genid_type enum added - for RAPTOR_GENID_TYPE_BNODEID, BAGID - Added prototypes for raptor_set_generate_id_handler, - raptor_set_default_generate_id_parameters. - - * raptor_general.c (raptor_set_generate_id_handler): - Added, to sent the generate ID - handler implementation. - (raptor_set_default_generate_id_parameters): Added, to sent the - generate ID handler parameters for the default implementation - ("gen"+integer). - (raptor_default_generate_id_handler): Added, moved default code from - raptor_generate_id - (raptor_generate_id): Use handler if it exists, otherwise the default - implementation. - - * raptor_internal.h: - Added generate_id_handler data parts to raptor_parser internals. - -2003-06-24 Dave Beckett - - * tests/Makefile.am: use top_builddir not .. - - * Makefile.am: add libraptor.la to rapper dependencies - -2003-06-23 Dave Beckett - - * rdfdump.c: - Added -e/--ignore-errors otherwise rapper stops parsing after 1st - error using raptor_parse_abort. - -2003-06-14 Dave Beckett - - * raptor_rss.c (raptor_rss_insert_identifiers): - Back to being legal C99. - - * libraptor.3: Fix changes for 0.9.11 - - * libraptor.3: Updated for stuff since 0.9.10 - - * raptor_rss.c (raptor_rss_insert_identifiers): - Init identifier after item - - * rdfdump.c, configure.ac: Tweak RSS Tag Soup parser words - -2003-06-10 Dave Beckett - - * raptor_parse.c (raptor_xml_start_element_handler): - Emit an error for namespace - declarations that are RDF namespace URI plus some chars. Emit - a warning if a namespace is declared same as RDF one but 1 char - short. - - * tests/Makefile.am: Added bad-12, warn-02 - - * tests/bad-12.rdf, tests/warn-02.out, tests/warn-02.rdf: - Check for bad rdf namespace URI declarations and warn if last char - of RDF namespace URI omitted - -2003-06-08 Dave Beckett - - * configure.ac: - Fix the check for RSS parser requirements and report it more - verbosely. - - * configure.ac: RSS parser only if libxml/reader.h present (for now). - - * configure.ac: libcurl reporting - - * raptor_parse.c (raptor_xml_parse_chunk_): Use sax2->first_read - - * raptor_parse.c (raptor_xml_parse_start,raptor_xml_parse_chunk_): - Don't use - first_read on newer libxml2. - -2003-06-06 Dave Beckett - - * raptor_internal.h: - raptor_sax2_s: Add first_read #if LIBXML_VERSION < 20425 - - * raptor_rss.c (raptor_rss_insert_identifiers): - Fix GCC-ism, declare variable at - start of block. - - * raptor_parse.c (raptor_xml_parse_init): - Move declaration of expat xp to start of - function. - - * examples/raptor_abort.c, examples/grapper.c, strcasecmp.c, - rdfdump.c, raptor_xml.c, raptor_www_test.c, raptor_www_libxml.c, - raptor_www_libwww.c, raptor_www_curl.c, raptor_www.c, - raptor_win32.c, raptor_utf8.c, raptor_uri.c, raptor_set.c, - raptor_sax2.c, raptor_rss.c, raptor_qname.c, raptor_parse.c, - raptor_namespace.c, raptor_locator.c, raptor_libxml.c, - raptor_general.c, ntriples_parse.c, configure.ac: - Merged patch from Jose Kahan to switch to use raptor_config.h - (helps people compiling from source with multiple config.h) - -2003-06-05 Dave Beckett - - * examples/grapper.c (fs_ok_button_callback): - Use raptor_uri_filename_to_uri_string - to make the file URI. - (main): If the argument is a filename, make a URI string out of it - via raptor_uri_filename_to_uri_string and use it instead of - assuming it is a URI. - -2003-05-12 Dave Beckett - - * raptor_xml.c (raptor_xml_escape_string): - Changed API - does not require a parser arg. - - * raptor_internal.h: Moved SAX2 parts and prototypes here. - - * raptor_general.c: Use RAPTOR_PARSER_RSS to wrap init of RSS parser - - * raptor.h: - Changed prototype of raptor_xml_escape_string - does not require a - parser arg. - - * raptor_parse.c: - Split raptor_element/raptor_rdf_xml_parser into SAX2/RDF bits. - Lots of function and structure renaming. - - * configure.ac: Define RAPTOR_PARSER_RSS only when libxml is around - - * raptor_sax2.c: SAX2 API - - * Makefile.am: Added raptor_sax2.c - -2003-04-28 Dave Beckett - - * raptor_rss.c (raptor_rss_emit): Use raptor_free_identifier - - * raptor_rss.c (raptor_rss_emit): - Properly init the raptor_identifier items - -2003-04-27 Dave Beckett - - * raptor_rss.c, raptor_parse.c, ntriples_parse.c: - Use raptor_parser_register_factory with label param. - - * raptor.h: Added raptor_get_name, raptor_get_label - - * raptor_general.c: Added parser label to factory - (raptor_parser_register_factory): Add label param, copy it. - (raptor_get_name): Added, return name of parser. - (raptor_get_label): Added, return label of parser. - - * raptor_internal.h: Added parser label to factory - - * examples/grapper.c: Remove some g_printfs - Remove use of display qnames - not impl. - - * raptor_general.c (raptor_statement_part_as_counted_string): - Init len for literals with - the literal len included - - * examples/grapper.c: Don't use triples_list for now. - (grapper_model_set_syntax): Fix output. - (grapper_model_statements_handler): Remove newlines from literals. - - * raptor_general.c (raptor_statement_part_as_counted_string): - Init len for literals. - -2003-04-25 Dave Beckett - - * raptor_set.c: fix doccumment - -2003-04-23 Dave Beckett - - * examples/grapper.c: - Replace N-Triples / RDF/XML with dropdown menu and add RSS tag soup. - -2003-04-19 Dave Beckett - - * rdfdump.c: Added -i/--input for rdfxml, ntriples, rss - - * raptor_internal.h: More RAPTOR_DEBUG macros - - * raptor_general.c: - (raptor_init) Added rss parser via raptor_init_parser_rss when - HAVE_LIBXML_XMLREADER_H - - * Makefile.am: Added raptor_rss.c - - * raptor_rss.c: Raptor RSS parser - -2003-04-17 Dave Beckett - - * INSTALL.html: Added some links - - * configure.ac: Bumped version to 0.9.11 - - * Snapshotted raptor_0_9_10 for 0.9.10 release - - * TODO.html, NEWS.html: Updated for 0.9.10 release - - * INSTALL.html: Updated to reflect recent tests. - Added examples section, link to libraptor.html - Added more configure options docs. - - * libraptor.3: Added raptor_set_parser_strict - Added raptor_www_no_www_library_init_finish - - * raptor.spec.in: Require curl - Added raptor-config, raptor.pc - -2003-04-17 Dave Beckett - - * raptor.spec.in: Require curl - Added raptor-config, raptor.pc - - * tests/Makefile.am: - Move rdf:bagID tests to list of tests with warnings for now (while - testing in lax mode) - -2003-04-15 Dave Beckett - - * rdfdump.c (print_statements): - Print the program name not "rdfdump" hardcoded. - -2003-04-14 Dave Beckett - - * configure.ac: Check for libxml/xmlreader.h - -2003-04-13 Dave Beckett - - * examples/grapper.c: Added about box, triples count. - Free some allocated memory. Rest seems lost in gtk. - - * examples/Makefile.am: Add AM_CFLAGS, LIBS for debugging - - * raptor_parse.c (raptor_xml_start_element_handler): - Don't copy an empty attributes array. - - * configure.ac: Added raptor.pc - - * Makefile.am: - Added raptor.pc pkgconfig file installing to $(libdir)/pkgconfig - - * raptor.pc.in: pkgconfig for raptor - -2003-04-07 Dave Beckett - - * TODO.html: words - -2003-04-05 Dave Beckett - - * raptor.h: void arg - - * examples/raptor_abort.c: Zap curl cleanup. - - * rdfdump.c: Added -c flag to getopts - oops, missed in last release. - Added -m/--mode flag to set strict/lax. Check the values and die - with usage. - Check the legal values of -o/--output and die with usage. - Zap curl cleanup. - - * raptor_www.c (raptor_www_no_www_library_init_finish): - To control global WWW - library init/finish - - * raptor_parse.c: - Make bagID optional - removed from language and gives errors - (strict), allowed with warnings (lax). - lax/strict controlled by feature_allow_bagID - - * raptor_internal.h: Added feature_allow_bagID - - * raptor_general.c: Several more docucomments for functions. - (raptor_new_parser): Use raptor_set_parser_strict - (raptor_set_feature): Added RAPTOR_FEATURE_ALLOW_BAGID - (raptor_set_parser_strict): Added to set strict/lax mode flags. - - * raptor.h: Added RAPTOR_FEATURE_ALLOW_BAGID - Added raptor_set_parser_strict - Added raptor_www_no_www_library_init_finish - -2003-04-03 Dave Beckett - - * tests/Makefile.am: Added warn-01 - - * tests/warn-01.out, tests/warn-01.rdf: - Check warning on non-prefixed property elements - -2003-04-03 Dave Beckett - - * raptor_parse.c, tests/Makefile.am (raptor_xml_start_element_handler): - Error recovery - try to hide that a bad element was found from a - parent element, it thinks the element is empty. See - tests/warn-00.rdf - - * tests/warn-00.out, tests/warn-00.rdf: Check warnings - -2003-04-02 Dave Beckett - - * configure.ac, Makefile.am: debian dir elsewhere - -2003-04-01 Dave Beckett - - * TODO.html: docs updated - - * TODO.html: www tidy by default on raptor_finish - - * 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 - - * 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 - - * 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 - - * 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 - - * 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. - - * raptor.h: Added raptor_parse_uri_with_connection. - Added raptor_parse_abort. - - * examples/raptor_abort.c, examples/Makefile.am: examples - - * rdfdump.c: - Call curl_global_cleanup if using curl to free it's resources. - - * raptor_www.c (raptor_www_init,raptor_www_finish): - Don't init/cleanup curl, we - can't guarantee doing this at most once if a handle is passed in. - - * 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 - - * TODO.html: fixed crashing when rdf/xml parser has no base URI - -2003-03-26 Dave Beckett - - * 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 - - * 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 - - * 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 - - * tests/Makefile.am: Added OWL namespace document / rdf schema - owl-schema.rdf, owl-schema.out - - * raptor_www.c: init w3c libwww - - * tests/owl-schema.out, tests/owl-schema.rdf: OWL namespace schema - - * TODO.html: Bug: encoding & < and > in XML literals. - - * raptor_www_libwww.c: add fatal does-not-work error - -2003-03-18 Dave Beckett - - * raptor_www_libwww.c: Raptor WWW with W3C libwww - - * rdfdump.c: - Added -c/--count option to just count triples, don't print anything. - - * raptor_www_test.c: Use raptor_www_init/finish - - * raptor_www_libxml.c: Handle www->failed and aborting transfer. - - * raptor_www_curl.c: Handle www->failed and aborting transfer. - (raptor_www_curl_init): Use passed-in connection if available. - - * raptor_www.c (raptor_www_init): Added, for once-only init. - (raptor_www_finish): Added, for once-only tidy. - (raptor_www_new): Now uses new constructor - (raptor_www_new_with_connection): Added, allows re-use of existing - www library connection - just curl at present. - (raptor_www_get_connection): Added, returns current libwww library - connection. - (raptor_www_abort): Added to stop a www transaction. - (raptor_www_file_fetch): Tidying of errors; handle abort. - (raptor_www_fetch): Uses raptor_www_file_fetch for all files. - - * raptor_internal.h: Added W3C libwww prototypes. - - * raptor_parse.c: - Throughout all SAX event handlers - if rdf_parser->failed set, return - immediately, doing no work. - - * raptor_general.c (raptor_parse_uri_write_bytes): - Use raptor_www_abort if parsing - fails. - (raptor_parse_uri): Return error status. Pass on is_end empty chunk. - (raptor_parser_abort): Added, setting failed flag. - (raptor_print_statement_detailed): Typo - - * raptor.h: Added raptor_www_abort - - * raptor.h: Add raptor_www_init, raptor_www_finish. - Add raptor_www_new_with_connection - Add raptor_www_get_connection - - * configure.ac: Added w3c libwww configuring - -2003-03-16 Dave Beckett - - * rdfdump.c: Use raptor_parse_uri - - * raptor_general.c (raptor_parse_uri_write_bytes): Added, to support: - (raptor_parse_uri): Added, using raptor_www to get and deal with all - the data in one go. - - * raptor.h: raptor_parse_uri takes optional base_uri - - * raptor_www_test.c: Use URI from context. - Take www arg on handlers - Use raptor_uri - - * raptor_www_libxml.c, raptor_www_curl.c: - Use URI from context. - Take www arg on handlers - - * raptor_www.c (raptor_www_set_userdata): Gone - (raptor_www_free): Free request uri - (raptor_www_set_write_bytes_handler, - raptor_www_set_content_type_handler): Added - (raptor_www_file_fetch): pass www to write_bytes - (raptor_www_fetch): Don't pass URI on. - - * raptor_internal.h: Store raptor_uri of request - Use new declared write_bytes, content_type handlers - *fetch methods don't take URI string - - * raptor.h: Declare handlers for raptor www write bytes, content type - raptor_www_fetch now takes a raptor_uri - - * raptor_parse.c: Fix broken-fix for broken-expat UTF8 BOM crash. - tokens_count is on the rdf_xml_parser not rdf_parser - - * configure.ac: tweak - - * configure.ac: tidy libcurl version - - * raptor_internal.h, configure.ac: No more gnome-xml/libxml.h - - * configure.ac: Min libxml2 now 2.4.0 - - * configure.ac: Don't look for xml-config - - * raptor_general.c (raptor_parse_file): - Tidy up if raptor_start_parse fails - - * raptor_general.c: - Removed raptor_start_parse_file - merged into raptor_parse_file - - * raptor_www.c (raptor_www_file_fetch): Used for RAPTOR_WWW_NONE - Report file open errors, correct file read eof handling. - (raptor_www_fetch) Use only raptor_www_file_fetch for RAPTOR_WWW_NONE - - * raptor_general.c (raptor_start_parse_file): - Improve file open error message - - * configure.ac: - Added --with-www=none option and RAPTOR_WWW_NONE to indicate it - -2003-03-15 Dave Beckett - - * raptor_www.c (raptor_www_error): Use RAPTOR_FREE - - * raptor_www_test.c: Call raptor_uri_init - - * raptor_www_curl.c (raptor_www_curl_fetch): call raptor_www_error - - * raptor_internal.h: Use raptor_message_handler again - - * raptor.h: - Use raptor_message_handler again in raptor_www_set_error_handler, - raptor_www_error - - * raptor_www.c (raptor_www_free): Tidy locator URI - (raptor_www_set_error_handler, raptor_www_error): Use - raptor_message_handler again. - (raptor_www_error): Use raptor_locator in output, error handler. - (raptor_www_fetch): Store the URI string of request in the locator - - * raptor.h: Declare raptor_www_message_handler (no locator) - - * raptor_general.c: raptor_vsnprintf now internally visible. - - * raptor_internal.h: Use different error handler, no parser context. - raptor_vsnprintf now internally visible. - Added raptor_www_error prototype - - * raptor_www.c: Only enable raptor_www_file_fetch with libxml, - (raptor_www_set_error_handler): Use different error handler, no - parser context. - - * configure.ac, Makefile.am: Added raptor WWW enabling, configuring - - * raptor_internal.h: - Added raptor WWW retrieval internal includes, structs, prototypes - - * raptor.h: Added raptor WWW retrieval prototypes - - * raptor_www.c, raptor_www_curl.c, raptor_www_libxml.c, - raptor_www_test.c: Raptor WWW retrieval - -2003-03-04 Dave Beckett - - * raptor.h: Export raptor_free_parser with RAPTOR_API - - * win32_config.h: add trailing #endif - - * win32_config.h: s/WIN32_LEAD_AND_MEAN/WIN32_LEAN_AND_MEAN/ - - * raptor_parse.c (raptor_xml_comment_handler): Added - nop at present. - (raptor_xml_parse_init): For expat, use raptor_xml_comment_handler - - * raptor_libxml.c: (raptor_libxml_init) Use raptor_xml_comment_handler - - * raptor_internal.h: Add raptor_xml_comment_handler prototype - - * configure.ac: - Try to make maintainer mode flags match redland's defaults. - -2003-03-03 Dave Beckett - - * configure.ac, Makefile.am: Fix cflags/cppflags when in redland - -2003-03-02 Dave Beckett - - * tests/ex-46.out, tests/ex-46.rdf: - make rdf:li and rdf_2 property elements generate different triples - -2003-02-27 Dave Beckett - - * tests/ex-46.out: fix - - * tests/Makefile.am: Added ex-47 - - * tests/ex-47.out, tests/ex-47.rdf: Exercise all rdfs vocab - - * tests/Makefile.am: Added ex-46 - - * tests/ex-46.out, tests/ex-46.rdf: Exercise all rdf vocab - -2003-02-24 Dave Beckett - - * win32/raptor.plg, win32/Makefile.am: deleted raptor.plg - - * win32/raptor.dsp, win32/README: - Updated win32 config - from contributed patches - -2003-02-23 Dave Beckett - - * raptor_uri.c: Correct :'s turning into |'s in win32 file URIs - -2003-02-20 Dave Beckett - - * autogen.sh: run libtoolize in each configure.ac dir - - * win32_config.h: win32 has C99 compatible vsnprintf called _vsnprintf - - * configure.ac: - Check for vsnprintf and check for C99 compatible return value. - - * raptor_general.c (raptor_vsnprintf): - Added for handling compatibilty with vsnprintf - that doesn't match C99. - -2003-02-19 Dave Beckett - - * tests/Makefile.am: Use $(ECHO) which may be different from sh's echo - - * Makefile.am: - Changing, moved raptor_getopt.h to rapper_SOURCES after automake - manual recommendation. - - * Makefile.am: Put raptor_getopt.h in noinst_HEADERS - - * Makefile.am: No need for EXTRA_libraptor_la_SOURCES - - * Makefile.am: Use LTLIBOBJS for extra libraptor objs - - * raptor.h: again - - * raptor.h: don't do deprecated on broken OSX gcc - - * raptor_getopt.h, getopt.c: No need for prefix - - * getopt.c: Duh - use raptor getopt header - - * Makefile.am: - Use RAPPER_EXTRA_OBJS to optionally add getopt to rapper only - - * configure.ac: Add getopt object to RAPPER_EXTRA_OBJS - - * rdfdump.c: Add raptor_getopt.h for local version - - * raptor_getopt.h: Define rest of getopt externs - - * getopt.c: More prefixes - - * raptor_getopt.h, getopt.c: Public domain getopt - - * configure.ac: Check for getopt and add getopt.o if it missing. - - * autogen.sh: - try asking the progs for their version - slower, but right - - * autogen.sh: tidying - - * acconfig.h: acconfig.h obsoleted - - * Makefile.am: Use AM_CPPFLAGS - - * autogen.sh: - Min versions are bumpled - 2.52 for autoconf, 1.6 for automake - Now hunts for newest, shinyest autoconf and automake/aclocal and uses - them whatever is available. - -2003-02-18 Dave Beckett - - * configure.ac: autoconf 2.5x configure.ac - - * configure.in: Replaced with autoconf 2.5x configure.ac - -2003-02-15 Dave Beckett - - * raptor.h: Move stuff around, consolidate deprecated bits - - * ntriples_parse.c, rdfdump.c: No need for ntriples.h - - * raptor.h: Moved all ntriples.h defines here. - Defined RAPTOR_DEPRECATED (with gcc 3.1+) and used on old api calls. - - * ntriples.h: - Moved all definitions to raptor.h - this file is now deprecated. - -2003-02-14 Dave Beckett - - * raptor-config.in: No exec-prefix - - * raptor-config.1: Manual page for raptor-config - - * Makefile.am: Added raptor-config.1 - - * rapper.1: EXAMPLE - -2003-02-13 Dave Beckett - - * tests/Makefile.am: $name=>$$name - - * configure.in: Bumped version to 0.9.9 - - * Snapshotted raptor_0_9_8 for 0.9.8 release - - * raptor.spec.in: release is 1 - - * NEWS.html: Updated for 0.9.8 release - -2003-02-12 Dave Beckett - - * Makefile.am: Restore LICENSE.txt - - * Makefile.am: No LICENSE.txt in dist - - * README.html: Updated for 0.9.8 release. - - * TODO.html: Note some missing conformance bits. - - * raptor_uri.c (main): - Use lstat, reading a selection of dirs to try harder to test - relative file URIs. - - * configure.in: check for sys/stat.h (for raptor_uri_test main) - - * TODO.html: Note PNG parser - - * tests/Makefile.am: There is no portable test == operator - - * TODO.html: Fixed xmlns:foo="" being erroneously allowed. - - * raptor_parse.c (raptor_xml_start_element_handler): Updated call to - raptor_namespaces_start_namespace to use error_handler, error_data - parameters - - * raptor_general.c (raptor_start_parse): - Updated call to raptor_namespaces_init to use - error_handler, error_data parameters - - * raptor_internal.h: - Updated raptor_namespaces_init, raptor_namespaces_start_namespace, - raptor_namespace_new with error_handler, error_data parameters - - * raptor_namespace.c: (raptor_namespaces_init, - raptor_namespaces_start_namespace, raptor_namespace_new): - Add error handler and data parameters and use to explain how - xmlns:foo="" isn't allowed - -2003-02-11 Dave Beckett - - * raptor_parse.c: - multiple objects of a property element (statement) is an error - - * tests/Makefile.am: - Report warnings when they occur. Print the warning text - - * tests/bad-11.rdf: now xml - - * tests/Makefile.am: typo - restult - - * tests/bad-11.rdf: Check xmlns with no namespace name (URI) fails - - * tests/Makefile.am: Added bad-11 - - * TODO.html: diagnosed crash on empty xml namespace name (URI) - - * TODO.html: Fixed empty docs now give error, not crash. - - * raptor_libxml.c (raptor_libxml_update_document_locator): - Handle empty parser context. - - * tests/Makefile.am: ex-46 now bad-10 - - * tests/bad-10.rdf, tests/ex-46.rdf, tests/ex-46.out: Now bad-10 - - * raptor_parse.c (raptor_xml_parse_chunk_): - Make an empty rdf/xml bytestream an - illegal doc (like expat) and return an error. - - * TODO.html: Clarified empty files bug - - * raptor_libxml.c (raptor_libxml_update_document_locator): - Don't use loc if it is NULL - such as errors before start of XML document. - - * raptor_libxml.c: - Check for xmlSAXHandler externalSubset field, not present in old - libxml v1. Whether raptor works after this is unlikely and untested. - - * configure.in: Add old libxml V1 warning and suggestion - - * acconfig.h: Added RAPTOR_LIBXML_XMLSAXHANDLER_EXTERNALSUBSET - - * configure.in: Check for xmlSAXHandler externalSubset field - - * INSTALL.html: Added libxml1 warning - - * TODO.html: note some bugs - -2003-02-10 Dave Beckett - - * raptor_locator.c (raptor_print_locator): - Only print non-negative line numbers - - * raptor_parse.c (raptor_xml_parse_chunk_): - For libxml, handle first chunk being - empty, when the XML parser context, xc, is attempted to be initialiased - - * tests/Makefile.am: Added ex-46 (Empty file should give 0 triples) - - * tests/ex-46.out, tests/ex-46.rdf: Empty file should give 0 triples - -2003-01-27 Dave Beckett - - * Makefile.am: Remove $? and replace with $< or full dependencies - -2003-01-21 Dave Beckett - - * ntriples_parse.c: - Fix macro IS_ASCII_DIGIT which refused to allow '0'. - -2003-01-13 Dave Beckett - - * rdfdump.1: rdfdump.1 renamed to rapper.1 - - * raptor.spec.in, tests/Makefile.am, TODO.html, - README.html, NEWS.html, Makefile.am, INSTALL.html: - rdfdump now rapper - - * rapper.1: rdfdump.1 renamed to rapper.1 - diff --git a/ChangeLog.5 b/ChangeLog.5 deleted file mode 100644 index e57ab9e3..00000000 --- a/ChangeLog.5 +++ /dev/null @@ -1,2424 +0,0 @@ -2004-12-31 Dave Beckett - - * raptor_rss.c (raptor_rss10_serialize_terminate): - Free all namespaces, now they are - not stacked explicitly. Free namespace stack. - (raptor_rss10_build_xml_names): Use raptor_new_namespace and don't - start the rdf namespace. - (raptor_rss10_build_xml_names): Use raptor_new_namespace and don't - start the namespaces - ((raptor_rss10_serialize_end): Make a namespace stack here, with - only xml: defined. - - * raptor_xml_writer.c (raptor_xml_writer_start_namespace_full): - Deleted. - (main): Declare the foo namespace but don't start it, so that the xml - writer will do that. - - * raptor_xml_writer.c: Optionally declare a namespace stack internally. - (raptor_new_xml_writer): Add optional raptor_namespace_stack - parameter, if NULL declare one internally. - - * turtle_lexer.l, turtle_parser.y: Delete unused WS token - - * raptor_xml_writer.c, raptor_sax2.c, raptor_rss.c, - raptor_rdfxml.c, raptor_internal.h, raptor.h, libraptor.3: - Rename raptor_sax2_element to raptor_xml_element throughout. - - * raptor_internal.h: Added feature_start_uri to raptor_serializer - - * raptor_serialize.c (raptor_free_serializer): - Tidy up any feature_start_uri set. - (raptor_serializer_set_feature_string): Added, handling - feature_start_uri created from a passed in string. - (raptor_serializer_get_feature_string): Added, handling - feature_start_uri as a returned shared string. - - * raptor_parse.c (raptor_parser_set_feature_string): - Added, always failing. - (raptor_parser_get_feature_string): Added, always failing. - - * raptor.h: Added feature RAPTOR_FEATURE_START_URI - Added prototypes for raptor_parser_set_feature_string, - raptor_parser_get_feature_string, - raptor_serializer_set_feature_string, - raptor_serializer_get_feature_string and - raptor_feature_value_type - - * raptor_feature.c: Added flag bits for string valued features. - Added startUri (RAPTOR_FEATURE_START_URI) with a string value. - (raptor_feature_value_type): Added, to return value of a feature. - -2004-12-30 Dave Beckett - - * libraptor.3: Added SAX2 XML Element and XML Writer classes. - - * raptor_internal.h, raptor.h: - Moved raptor_sax2_element and raptor_xml_writer to public API. - - * libraptor.3: Added rss-1.0 to raptor_new_serializer description. - - * libraptor.3: More updates for 1.4.3 - -2004-12-25 Dave Beckett - - * raptor_rss.c (raptor_rss_parser_processNode): - Turn val - into - (raptor_rss10_emit_item): Always serialize rss:items at the end of - an rss channel. - - * raptor_xml_writer.c, raptor_xml.c, raptor_utf8.c, raptor_sax2.c, - raptor_rss.c, raptor_general.c: Casts for c++. Rename variables - namespace to nspace. - -2004-12-24 Dave Beckett - - * raptor_www_test.c (main): Cast for size_t - -2004-12-23 Dave Beckett - - * raptor_rss.c (raptor_rss10_serialize_statement): Fix item URI - check to use correct URI. In debugging unknown typed node, print - type URI. - - * raptor_rss.c (raptor_rss10_serialize_statement): Do not look in - items with no URI. - (raptor_rss10_build_xml_names): Do not make qnames for types with - no namespace. - - * raptor_rss.c (raptor_rss10_build_items): Do nothing if there is - no seq_uri - - * raptor_rss.c (raptor_init_serializer_rss10): Give rss 1.0 a URI - - * raptor_serialize.c (raptor_iostream_write_string_ntriples): - Renamed from raptor_serialize_ntriples_print_string and made public. - Handle delimiters that aren't ' or " such as >, and if found - \uHHHH escape it. - (raptor_iostream_write_statement_part_ntriples): Renamed from - raptor_serialize_ntriples_print_statement_part and made public. - (raptor_iostream_write_statement_ntriples): Added and made public. - (raptor_ntriples_serialize_statement): Moved most code to - raptor_iostream_write_statement_ntriples - - * raptor.h: Add and export raptor_iostream_write_ntriples_string - and raptor_iostream_write_statement_ntriples - - * tests/turtle/test-13.ttl, tests/turtle/test-13.out: Use a - namespace URI that gives a predicate which could be serialized to - rdf/xml. - - * raptor_rss.c (raptor_rss_insert_identifiers): For channel type, - check both the link field and the atom:id field. - - * raptor_rss.c (raptor_rss10_emit_item): Emit the - .... here. - (raptor_rss10_serialize_end): Moved items code above. - - * raptor_parse.c (raptor_guess_parser_name): Don't emit debug - messages about scores unless very debuggy. - - * n3_lexer.l, turtle_lexer.l: In state, accept remaining - characters so -s is true. - - * raptor.h: Export raptor_xml_name_check - - * raptor_xml.c (raptor_valid_xml_ID): Use raptor_xml_name_check - with appropriate XML version. - (raptor_xml_name_check): Added to check for a legal XML name. - - * raptor_utf8.c (raptor_utf8_check): Added, to just check a string - is good UTF-8 and all the Unicode characters are 0 <= char <= - 0x10ffff - - * raptor.h: Export raptor_utf8_check - - * raptor_nfc_test.c (main): Use raptor_utf8_check - - * raptor_xml_writer.c (main): Update tests for changed xml_writer api - - * raptor.h: Export raptor_unicode_is_xml11_namestartchar, - raptor_unicode_is_xml10_namestartchar - raptor_unicode_is_xml11_namechar and - raptor_unicode_is_xml10_namechar - - * raptor_utf8.c: (raptor_unicode_is_xml10_namestartchar, - raptor_unicode_is_xml11_namestartchar, - raptor_unicode_is_xml11_namechar, raptor_unicode_is_xml10_namechar): - Added, as public functions called by raptor_unicode_is_namestartchar - and raptor_unicode_is_namechar respectively. - - * raptor_rss.c (raptor_clear_rss_items): Renamed from - raptor_free_rss_items. Use raptor_free_rss_item. - (raptor_rss_context_terminate): Rename call to raptor_clear_rss_items - - * raptor_rss.c (raptor_clear_rss_item): Renamed from - raptor_free_rss_item to empty a static raptor_rss_item. - (raptor_free_rss_item): Same as above but deallocates the item too. - (raptor_free_rss_items, raptor_rss_context_terminate): Use - raptor_clear_rss_item. - - * raptor_rss.c (raptor_rss10_move_statements): Add item arg. - Remove auto-fail with type RAPTOR_RSS_ITEM, and now look in the - sequence of items for instances of this type. - Count and report moved statements counts when debugging. - (raptor_rss10_store_statement): Only print out individal statement - moves when debugging. - (raptor_rss10_serialize_statement): When typed node is an item, get - the URI from the entry in the sequence if it exists, maybe move the - statements then. - (raptor_rss10_build_items): Move any item statements once the item - URIs have been made. - (raptor_rss10_serialize_end): Report triples remaining when - debugging. - Remove last raw use of raptor_iostream* - -2004-12-22 Dave Beckett - - * raptor_rss.c: Fix 'enc' prefix. - Add rdf_RDF_element and xml_writer to raptor_rss10_serializer_context. - (raptor_rss10_serialize_init): No need for nstack here. - (raptor_rss10_serialize_terminate): Delete nstack tidy. - Tidy up xml_writer and type qnames. - (raptor_rss10_move_statements): Note don't do rss items. - (raptor_rss10_build_items): Build list of raptor_rss_item* in - rss_serializer->items. - (raptor_rss10_build_xml_names): Added to make namespaces and qnames - for fields and types; pulled out of raptor_rss10_build_items. - (raptor_rss10_emit_item): Delete xml-writer, iostr args. - Replace more raptor_iostream* functions with raptor_xml_writer* - equivalents. - (raptor_rss10_serialize_end): Extra nl at end - - * raptor_rss.c: Fix 'enc' prefix. - Add rdf_RDF_element and xml_writer to raptor_rss10_serializer_context. - (raptor_rss10_serialize_init): No need for nstack here. - (raptor_rss10_serialize_terminate): Delete nstack tidy. - Tidy up xml_writer and type qnames. - (raptor_rss10_move_statements): Note don't do rss items. - (raptor_rss10_build_items): Build list of raptor_rss_item* in - rss_serializer->items. - (raptor_rss10_build_xml_names): Added to make namespaces and qnames - for fields and types; pulled out of raptor_rss10_build_items. - (raptor_rss10_emit_item): Delete xml-writer, iostr args. - Replace more raptor_iostream* functions with raptor_xml_writer* - equivalents. - (raptor_rss10_serialize_end): Move rdf_RDF qname stuff to new - raptor_rss10_build_xml_names - Move bits around so that rdf:RDF is declared with all namespaces - known and using raptor_xml_writer_start_element. - Emit rdf:Seq and rdf:li elements using_xml_writer_start_element with - attributes as needed. - Attempt to emit channel items. - - * raptor_internal.h: Remove - raptor_xml_writer_element_declare_namespace_full - - * raptor_xml_writer.c: Renamed content_cdata_namespaces to nstack, - content_cdata_namespaces_depth to nstack_depth. - (raptor_xml_writer_start_namespace_full): Added, to start a new - namespace in the xml_writer at the current element. - (raptor_xml_writer_cdata_counted, raptor_xml_writer_raw_counted, - raptor_xml_writer_comment_counted): Added.counted string versions. - - * raptor_sax2.c (raptor_new_sax2_element, raptor_free_sax2_element): - Init/tidy declared_namespaces. - (raptor_sax2_declare_namespace): Added to declare the given namespace - on the element. - (raptor_iostream_write_sax2_element): Handle declared_namespaces; - boost the nspace_declarations by size of the sequence. - Declare all the namespaces in the declared_nspaces sequence. - - * raptor_rdfxml.c (raptor_xml_comment_handler): - Use raptor_xml_writer_comment (uncounted). - (raptor_cdata_grammar): Use raptor_xml_writer_cdata_counted - - * raptor_internal.h: raptor_sax2_element added declared_nspaces field - Added prototype for raptor_sax2_declare_namespace. - Added prototypes for raptor_xml_writer_start_namespace_full and - raptor_xml_writer_element_declare_namespace_full - Split raptor_xml_writer_cdata / raptor_xml_writer_raw / - raptor_xml_writer_comment into uncounted and - raptor_xml_writer_cdata_counted / raw_counted / comment_counted - -2004-12-21 Dave Beckett - - * raptor_rss.c: Made rss1.0 the default namespace for writing; - added prefixes for others. - (raptor_rss10_serialize_end): Removed unused commented code. - - * raptor_qname.c (raptor_qname_copy): Added. - - * raptor.h: Added raptor_qname_copy. - - * raptor_rss.c: raptor_rss_item field node_type is now a pointer to the - raptor_rss_info* for that node type. - (raptor_rss_insert_identifiers, raptor_rss_emit_item): Update for new - node_type definition. - raptor_rss10_serializer_context now has rdf_nspace - (raptor_rss10_build_items): Declare rdf namespace and store in - rss_serializer->rdf_nspace - freed when namespace stack is destroyed. - Declare all raptor_namespace* for the - raptor_rss_namespaces_info[].nspace - Declare all raptor_qname* for the raptor_rss_fields_info[].qname - Declare all raptor_qname* raptor_rss_types_info[].qname - Insert node_type pointers for all items. - (raptor_rss10_emit_item): Add xml_writer argument. - Use more of xml_writer to emit main type element and predicate names. - Incomplete. - (raptor_rss10_serialize_end): Declare and use mxl_writer and qname, - element for rdf:RDF. - Incomplete. - - * raptor_rss.c: Do not init all NULL fields for - raptor_rss_namespaces_info - - * raptor_rss.c: Added raptor_rss_namespace_info typedef and - raptor_rss_namespaces_info merging uri_strings and prefixes for - namespaces. Made all rss info static. - (raptor_rss_common_init, raptor_rss_parser_processNode, - raptor_rss10_serialize_end): Update for namespace URIs struct - change. - - * raptor_rss.c: Added rss_namespace_prefix_strings to list - namespaces to declare. raptor_rss10_serializer_context gains - raptor_namespace_stack nstack field. - (raptor_rss10_serialize_init): Init the namespace stack. - (raptor_rss10_serialize_terminate): Clean namespace stack and any - defined qnames. - (raptor_rss10_emit_item): Padding. - (raptor_rss10_serialize_end): Write namespace decls using stack. - - * raptor_rss.c: Rename some destructors more normally: - (raptor_free_rss_item): Renamed from raptor_item_free. - (raptor_free_rss_items): Renamed from raptor_rss_items_free. - (raptor_rss10_move_statements, raptor_rss10_store_statement): Record - field counts per item. - (raptor_rss10_build_items): Find the rdf:_ items and put them - into a raptor sequence. - (raptor_rss10_emit_item): Skeleton rss item writer. - (raptor_rss10_serialize_end): Make the final structures and do the - serializing in skeleton form. - -2004-12-20 Dave Beckett - - * raptor_rss.c: Added seq_uri to raptor_rss10_serializer_context - (raptor_rss10_serialize_terminate): Tidy seq_uri - (raptor_rss10_move_statements, raptor_rss10_store_statement): Ignore - checking fields with no URI. - (raptor_rss10_serialize_statement): For rdf:Seq node, store the URI - or blank node - as fake URI. - Make fake object node correctly for general statements. - - * raptor_rss.c (raptor_rss_common_init): Prevent 2x initialising. - (raptor_item_free): Free type URI - (raptor_rss10_serialize_terminate): Call raptor_rss_common_terminate. - (raptor_rss10_move_statements): Use RAPTOR_IDENTIFIER_TYPE_PREDICATE - set raptor_sequence_set_at destroy overwritten object. - (raptor_rss10_store_statement): Use RAPTOR_IDENTIFIER_TYPE_PREDICATE - Make fake URIs from blank node strings and free them. - - * raptor_general.c (raptor_free_statement): - Handle more statement part types. - - * raptor_rss.c: - RAPTOR_RSS_FIELDS_SIZE now stops before UNKNOWN for real field names. - (raptor_rss10_move_statements): Added, to move statements from - the sequence of triples to below a typed node once a new typed node - of the given type appears. - (raptor_rss10_store_statement): Added, to store a given statement - either below an existing typed node or in a sequence of triples if - it can't be found one. - - * raptor_rss.c (raptor_rss10_serialize_statement): - iostream write turned into debug. - -2004-12-19 Dave Beckett - - * raptor_uri.c (raptor_uri_print): Cast for gcc - - * raptor_rss.c: Use raptor_uri in raptor_rss_item. - (raptor_rss_context_init, raptor_rss_context_terminate): Added and - used in parser and serializer init and terminate. - (raptor_rss10_serialize_init): Initialise list of triples, items. - (raptor_rss10_serialize_terminate): Tidy up triples, items. - (raptor_rss10_serialize_statement): Look for known typed nodes, - identify ones matching rss 1.0 model and also look for the - rdf:Seq. Store other triples for later. - (raptor_rss10_serialize_end): Added skeleton. - -2004-12-18 Dave Beckett - - * raptor_uri.c (raptor_uri_print): Added. - - * raptor.h: Added raptor_uri_print - - * raptor_general.c (raptor_statement_copy): - Added statement copy constructor - (raptor_free_statement): Added statement destructor. - - * raptor_internal.h: - Added raptor_statement_copy and raptor_free_statement - - * raptor_rss.c: - Moved parser namespace URIs to common code rss_namespace_uris. - (raptor_rss_common_init, raptor_rss_common_terminate): Added to - initialise and free up common rss items - namespace URIs, URIs for - types and uris for properties. - Added skeleton RSS 1.0 serializer - (raptor_rss10_serialize_init, raptor_rss10_serialize_terminate, - raptor_rss10_serialize_statement, - raptor_rss10_serialize_finish_factory, - raptor_rss10_serializer_register_factory, - raptor_init_serializer_rss10): Added skeleton RSS 1.0 serializer - factory and methods. - - * raptor_general.c (raptor_init): - Added call to raptor_init_serializer_rss10 - - * raptor_internal.h: Added raptor_init_serializer_rss10 - - * raptor_rss.c (raptor_rss_parse_recognise_syntax): Add atom checks. - -2004-12-17 Dave Beckett - - * tests/Makefile.am: Added - RDF_MAYFAIL_XML_TEST_FILES,RDF_MAYFAIL_XML_OUT_FILES and rule - check-mayfail-xml-rdf to run checks that may fail due to XML - parser bugs. - - * raptor_sax2.c, raptor_serialize.c, raptor_iostream.c, - raptor_nfc.c, raptor_rdfxml.c: Initialise possibly used but - uninitialised vars to remove gcc warning with -O. - - * raptor_namespace.c, raptor_rdfxml.c, raptor_serialize.c, - raptor_xml_writer.c, rdfdump.c, raptor.h, raptor_internal.h, - raptor_iostream.c: Casts for c++ - - * raptor_rdfxml.c: Fix using wrong element name in warnings. - - * raptor_rdfxml.c (raptor_xml_start_element_handler): - Use raptor_sax2_element_set_attributes. - - * raptor_xml_writer.c (raptor_xml_writer_empty_element): Added. - (raptor_xml_writer_start_element, raptor_xml_writer_end_element): - Updated raptor_iostream_write_sax2_element calls - (main): Add attributes and test writing empty element. - - * raptor_internal.h: Added raptor_sax2_element_set_attributes - Added is_empty arg to raptor_iostream_write_sax2_element - Added raptor_xml_writer_empty_element - - * raptor_sax2.c (raptor_sax2_element_set_attributes): Added. - (raptor_print_sax2_element): tidy - (raptor_iostream_write_sax2_element): Added is_empty arg - and use it for form. - -2004-12-14 Dave Beckett - - * libraptor.3: Actaully updated for 1.4.3 so far - - * libraptor.3: Updated for 1.4.2 so far. - - * tests/turtle/README.txt, tests/turtle/rdfq-results.out, - tests/turtle/test-00.out, tests/turtle/Makefile.am: Switch to base - URI http://www.w3.org/2001/sw/DataAccess/df1/tests/ - - * tests/turtle/test-13.out, tests/turtle/test-13.ttl, - tests/turtle/manifest.ttl, tests/turtle/bad-12.ttl, - tests/turtle/bad-13.ttl, tests/turtle/manifest-bad.ttl, - tests/turtle/bad-10.ttl, tests/turtle/bad-11.ttl, - tests/turtle/bad-08.ttl, tests/turtle/bad-09.ttl, - tests/turtle/bad-04.ttl, tests/turtle/bad-05.ttl, - tests/turtle/bad-06.ttl, tests/turtle/bad-07.ttl, - tests/turtle/Makefile.am: Import more bad turtle tests, initial - manifest files - - * raptor_namespace.c (raptor_iostream_write_namespace): Handle - ns->uri is NULL and no prefix, i.e. emitting xmlns="" - - * raptor_namespace.c (raptor_namespaces_format): - Handle ns->uri is NULL and no prefix, i.e. emitting xmlns="" - -2004-12-08 Dave Beckett - - * raptor_uri.c (raptor_default_new_uri_relative_to_base): Ask for - 1 more char for new URI to allow inserting of a missing "/" path. - - * raptor_rfc2396.c (raptor_uri_resolve_uri_reference): Add debug - message. When adding a missing path "/", set the path_len and the - uri_len to match. - (main): Added test when a missing abs / path is added. - - * raptor_sequence.c (raptor_sequence_set_at, - raptor_sequence_get_at): Check for non-negative idx - - * raptor_sequence.c (raptor_sequence_get_at): Fix index offset check - -2004-12-02 Dave Beckett - - * rdfdump.c: Make a raptor_sequence of namespace declarations - declared by '-f xmlns:foo="bar"' and then add them to the - serializer when initialised. - (rdfdump_free_namespace_decl): Added, to provide a helper to - cleanup. - - * raptor_serialize.c (raptor_serialize_set_namespace): Call - factory method declare_namespace. - (raptor_rdfxml_serialize_declare_namespace): Copy the passed in - namespace prefix, URI before storing the namespace. - (raptor_rdfxml_serialize_start): Delete the namespace sequence - contents as the namespaces are declared on the namespace stack, - which is the new owner of the namespaces. - - * raptor_namespace.c (raptor_new_namespace_parts_from_string): - Added, to decode things like "xmlns:foo='bar'" into prefix, uri - strings. - - * raptor.h: Added prototype for raptor_new_namespace_parts_from_string. - raptor_sequence_free_handler prototype changed to return void - -2004-11-30 Dave Beckett - - * raptor_serialize.c (raptor_rdfxml_serialize_init): - Add a sequence of user-declared namespaces. - (raptor_rdfxml_serialize_terminate): Tidy sequence. - (raptor_rdfxml_serialize_declare_namespace): Use sequence to store - declared namespaces. - (raptor_rdfxml_serialize_start): Declare used-defined namespaces - and start them in the namespace stack. - - * raptor_namespace.c (raptor_new_namespace_from_uri): - Added with raptor_new_namespace code. - (raptor_new_namespace): Now a wrapper around - raptor_new_namespace_from_uri. - (raptor_namespace_copy): Use raptor_new_namespace_from_uri. - - * raptor_qname.c (raptor_iostream_write_qname): - Added to write a qname to an iostream. - - * raptor.h: Add prototypes for raptor_iostream_write_qname, - raptor_new_namespace_from_uri - - * raptor_rdfxml.c (raptor_xml_start_element_handler, - raptor_xml_end_element_handler, raptor_xml_comment_handler, - raptor_start_element_grammar, raptor_end_element_grammar, - raptor_cdata_grammar): Update the use of xml_writer for building - parseType="Literal" content to use an iostream. Use more sax2 - methods rather than direct access to internals - still some left. - (raptor_xml_parse_init, raptor_xml_parse_start, - raptor_xml_parse_terminate, raptor_inscope_xml_language, - raptor_inscope_base_uri): Move expat/libxml details to - raptor_new_sax2, raptor_sax2_parse_start, raptor_free_sax2, - raptor_sax2_inscope_xml_language, raptor_sax2_inscope_base_uri - respectively. - (raptor_xml_parse_chunk_): Deleted, moved to raptor_sax2_parse_chunk - - * raptor_xml_writer.c: Change to output to an iostream not build - up a stringbuffer. - (raptor_new_xml_writer): Add iostream arg, delete never-used - canonicalize. - (raptor_free_xml_writer): Remove stringbuffer. - (raptor_xml_writer_start_element, raptor_xml_writer_end_element): - Delete stringbuffer and use raptor_iostream_write_sax2_element. - (raptor_xml_writer_cdata): Delete stringbuffer and use - raptor_iostream_write_xml_escaped_string. - (raptor_xml_writer_raw): Added to write just the bytes. - (raptor_xml_writer_comment): Fixed to emit - (raptor_xml_writer_as_string): Deleted. - (main): Added with test case. - - * raptor_sax2.c (raptor_new_sax2, raptor_free_sax2, - raptor_sax2_inscope_xml_language, raptor_sax2_inscope_base_uri, - raptor_sax2_get_depth, raptor_sax2_inc_depth, - raptor_sax2_dec_depth, raptor_sax2_parse_start, - raptor_sax2_parse_chunk, raptor_sax2_element_get_element): Added. - (raptor_iostream_write_sax2_element): Renamed from - raptor_format_sax2_element and now writing to a raptor_iostream - with no allocing/freeing buffers. - - * raptor_xml.c (raptor_iostream_write_xml_escaped_string): Added, - to write an XML-escaped version of a string to an iostream - -2004-11-29 Dave Beckett - - * raptor_namespace.c (raptor_iostream_write_namespace): Added to - write a namespace to a raptor_iostream - - * raptor.h: Added raptor_iostream_write_namespace - - * Makefile.am: Added raptor_xml_writer_test - - * raptor_expat.c (raptor_expat_init): Take void* user data - - * raptor_internal.h: raptor_exp_init takes void* - Add user_data to raptor_sax2 - Added prototypes or raptor_new_sax2, raptor_free_sax2, - raptor_sax2_parse_start, raptor_sax2_parse_chunk, - raptor_sax2_parse_handle_errors, raptor_sax2_get_depth, - raptor_sax2_inc_depth, raptor_sax2_dec_depth, - raptor_sax2_inscope_xml_language, raptor_sax2_inscope_base_uri, - raptor_sax2_element_get_element, raptor_iostream_write_sax2_element - Deleted raptor_format_sax2_element, raptor_xml_writer_as_string and - raptor_xml_writer_write_to_iostream - Changed raptor_new_xml_writer to write to a raptor_iostream - - * raptor.h: Added raptor_iostream_write_xml_escaped_string and - raptor_namespace_write - -2004-11-26 Dave Beckett - - * raptor_internal.h: Added prototype for - raptor_xml_writer_write_to_iostream - - * raptor_xml_writer.c (raptor_xml_writer_write_to_iostream): Added - - * raptor.h: Added prototype for raptor_iostream_write_stringbuffer - - * raptor_iostream.c: (raptor_iostream_write_stringbuffer) Added - - * configure.ac: --with-dmalloc default is now no - -2004-11-25 Dave Beckett - - * configure.ac: - If expat_source is empty, set it to auto so no path-to-source is - added to libs, includes - -2004-11-23 Dave Beckett - - * tests/ex-55.out, tests/ex-55.rdf: ex-55 - - * tests/Makefile.am: Added ex-55 - -2004-11-17 Dave Beckett - - * examples/grapper.c: - Extensively updated to use GTK 2.4, 2.5 features when available. - Triples/Errors windows have a scalable pane between them - Triple columns can be sorted by clicking, width resized. - All known parser features are available on the preferences menu. - Added parser guessing button. - Moved syntax menu to top of display. - Updated about box fields to include more info when possible to - display. - -2004-11-12 Dave Beckett - - * rapper.1: Updated -f for serializer features - -2004-11-10 Dave Beckett - - * raptor_sequence.c (raptor_sequence_join): Copy pointers correctly - - * raptor_sequence.c (raptor_sequence_join): Added, to move all - items between two sequences leaving one empty. - - * raptor.h: Added raptor_sequence_join - - * raptor.h: Added raptor_serialize_set_namespace - - * raptor_serialize.c (raptor_serialize_set_namespace): - Added, not implemented. - - * raptor_rss.c (raptor_rss_parse_recognise_syntax): - Boost in recognising xml rss - -2004-11-08 Dave Beckett - - * rdfdump.c: allow -f to set serializer features - - * raptor_feature.c (raptor_features_enumerate_common): return -1 - -2004-11-07 Dave Beckett - - * raptor_uri.c: C style, indenting. const unsigned char. - (raptor_uri_path_make_relative_path): Remove a small memcpy. - (raptor_uri_to_relative_counted_uri_string) Docs edit. - Remove a large if {} block. Rename 'reference' var since libxml2 - defines it (SEP). Use buildresult to make empty string result. - - * raptor_serialize.c (raptor_rdfxml_serialize_statement): Use - feature feature_relative_uris to decide when to emit an absolute - or relative URI, the latter using raptor_uri_to_relative_uri_string. - - * raptor_uri.c: Added raptor relative URI generating code patch - from René Puls - (raptor_uri_path_common_base_length): Added. Helper to return the - common base length of two paths - (raptor_uri_path_make_relative_path): Added. Helper to build the - result relative URI string from already analysed parts. - (raptor_uri_to_relative_counted_uri_string): Added. Get the - relative URI string between a base and reference URI. - (raptor_uri_to_relative_uri_string): Added. Wrapper about the above. - (assert_uri_to_relative): Added. Helper for tests for above. - (main): Added relative URI string generation tests. - - * raptor.h: Added prototypes for - raptor_uri_to_relative_counted_uri_string and - raptor_uri_to_relative_uri_string - - * raptor_rss.c (raptor_rss_parser_processNode): Add cast for name - when returned from xmlTextReaderConstLocalName. - - * raptor_rss.c (raptor_rss_parser_processNode): Always declare - name as xmlChar* - -2004-11-06 Dave Beckett - - * rdfdump.c: Tidy help messages about features, other words. - - * raptor_parse.c (raptor_feature_from_uri): Moved to raptor_feature.c - - * raptor.h: Moved raptor_feature_from_uri to separate section, not - just parsers - - * raptor_internal.h: Deleted raptor_feature_from_uri_common - - * raptor_feature.c (raptor_feature_from_uri): Defined here, no need for - raptor_feature_from_uri_common - - * rdfdump.c: In feature help code, list parser and serializer features - separately, using new raptor_features_enumerate. - - * raptor_serialize.c (raptor_serializer_features_enumerate): - Added, a wrapper around raptor_features_enumerate_common. - (raptor_serializer_set_feature): Added. - (raptor_serializer_get_feature): Added. - - * raptor_parse.c: Moved raptor_features_list to raptor_feature.c - (raptor_features_enumerate): Changed to be a wrapper around - raptor_features_enumerate_common now containing the body of the code. - (raptor_feature_from_uri): Changed to be a wraper around - raptor_feature_from_uri_common now containing the body of the code. - - * raptor_internal.h: Added feature_relative_uris for raptor_serializer. - Added prototypes for raptor_features_enumerate_common and - raptor_feature_from_uri_common - - * raptor.h: Added RAPTOR_FEATURE_RELATIVE_URIS for serializing. - Added prototypes for raptor_serializer_features_enumerate, - raptor_serializer_set_feature and raptor_serializer_get_feature - - * Makefile.am: Added raptor_feature.c - - * raptor_feature.c: - Moved common raptor_feature code from raptor_parse.c - - * raptor_rss.c: - Added entry to raptor_rss_fields_info so that when indexed - with RAPTOR_RSS_FIELDS_NONE, does not access invalid data. - Fixes for xmlReader API for older libxml2s: - Added node type defines for <2.5.9 - Use xmlTextReaderLocalName, xmlTextReaderNamespaceUri instead of the - Const versions with additional corresponding xmlFree()s for <2.6.0 - -2004-11-01 Dave Beckett - - * Snapshotted raptor_1_4_2 for 1.4.2 release - - * win32_raptor_config.h, configure.ac: - Bumped version to 1.4.2 - - * raptor_xml_writer.c (raptor_xml_writer_cdata): - Return when raptor_xml_escape_string fails. - - * raptor_xml.c (raptor_xml_escape_string): - Return -1 on UTF-8 encoding failure - - * raptor_xml.c: docs - -2004-10-28 Dave Beckett - - * Snapshotted raptor_1_4_1 for 1.4.1 release - - * raptor_xml.c (raptor_xml_escape_string): Ensure an empty string - is copied out; write a NUL. - -2004-10-28 Dave Beckett - - * libraptor.3: 1.4.1 raptor_xml_escape_string return value now - int, <0 on failure. - - * raptor_xml_writer.c (raptor_xml_writer_cdata): Use int for - raptor_xml_escape_string return variables and use error return <0 - - * raptor_serialize.c: (raptor_rdfxml_serialize_write_xml_attribute, - raptor_rdfxml_serialize_statement) Use int for - raptor_xml_escape_string return variables. Handle empty string - attribute when len=0. - - * raptor_sax2.c (raptor_format_sax2_element): - Use int for raptor_xml_escape_string return. - - * raptor.h: raptor_xml_escape_string changed return value to int - - * raptor_xml.c (raptor_xml_escape_string): Return value now int, - <0 on failure to allow escaping an empty string to return 0 bytes - required. - (main): Add empty string escaping test. Check for failure of - first raptor_xml_escape_string call. - - * raptor_rss.c (raptor_rss_parser_processNode): Fix url attribute - failing for non-enclosure. - -2004-10-27 Dave Beckett - - * raptor_rfc2396.c (raptor_new_uri_detail): Do not add schema_len - twice to dest pointer; stop buffer overrun - -2004-10-26 Dave Beckett - - * raptor_locator.c (raptor_format_locator): Only print line if > 0 - - * raptor-config.1: Fix --libtool-libs desc - -2004-10-24 Dave Beckett - - * win32_raptor_config.h, configure.ac, NEWS.html: - Bumped version to 1.4.1 - - * Snapshotted raptor_1_4_0 for 1.4.0 release - - * raptor_rss.c: Added generation of triples for RSS enclosures - based on a patch from Suzan Foster. Changes made include - correcting the enclosures namespace, tidying some memory leaks and - printing some debug information. - - * raptor_serialize.c (raptor_rdfxml_serialize_statement): - Make rdf:_ 'ordinal' properties serialize correctly. - - * raptor_www_test.c (main): Use raptor_www_fetch_to_string for testing. - - * raptor_iostream.c (raptor_string_iostream_finish): Code tidy. - - * libraptor.3, raptor.h: Added raptor_www_fetch_to_string - - * raptor_www.c (raptor_www_fetch_to_string_write_bytes): - Added handler for the following function. - (raptor_www_fetch_to_string): Added, to get content back as a string. - -2004-10-23 Dave Beckett - - * libraptor.3: Updates for 1.4.0 - - * raptor.h, raptor_iostream.c: s/fh/handle/ for clarity. - - * raptor.rdf.in: Add Raptor to the desc - - * raptor.rdf.in, raptor.spec.in: - Update descriptions to include serializers - -2004-10-21 Dave Beckett - - * raptor_namespace.c: less namespace debugs - - * raptor_xml_writer.c: less cdata debugs - - * raptor_namespace.c: Make most namespace debug messages appear - only if #ifdef RAPTOR_DEBUG_VERBOSE - - * raptor_rdfxml.c: Make most rdf/xml parsing debug messages appear - only if #ifdef RAPTOR_DEBUG_VERBOSE - - * raptor_serialize.c: - (raptor_serialize_start, raptor_serialize_start_to_filename, - raptor_serialize_start_to_string, - raptor_serialize_start_to_file_handle, - raptor_serialize_statement, raptor_serialize_end): - Fail if no iostream is made or available. - - * raptor_iostream.c (raptor_new_iostream_to_string): - Docs, zap string and length before starting. - - * raptor_serialize.c (raptor_rdfxml_serialize_statement): - Print datatype URIs correctly. - -2004-10-20 Dave Beckett - - * configure.ac, win32_raptor_config.h: 1.4.0 - - * raptor_internal.h: - Added warning_user_data, warning_handler to serializer - Added prototypes for raptor_serializer_warning and - raptor_serializer_warning_varargs - - * raptor_serialize.c (raptor_serializer_warning, - raptor_serializer_warning_varargs): Added - (raptor_serializer_set_warning_handler): Added - - * raptor.h: Added raptor_serializer_set_warning_handler - - * configure.ac: autoconf mode - - * rdfdump.c: default serializer simple - - * raptor_serialize.c (raptor_rdfxml_serialize_statement): Handle - URI subject, object right. - - * raptor_serialize.c (raptor_serialize_start_to_filename, - raptor_serialize_start_to_string, - raptor_serialize_start_to_file_handle): Don't enforce base URI is - required. - -2004-10-19 Dave Beckett - - * raptor.h: - Updated raptor_new_iostream_to_string with malloc_handler argument - - * raptor_serialize.c (raptor_serialize_start_to_string): Update - raptor_new_iostream_to_string for malloc_handler argument - - * raptor_iostream.c (raptor_string_iostream_finish): - Use passed-in malloc_handler to - make string, raptor_stringbuffer_copy_to_string to copy directly in. - (raptor_new_iostream_to_string): Add optional malloc_handler argument - so caller can control allocation. - (main): Update tests for above. - - * raptor.h: Added raptor_stringbuffer_copy_to_string - - * raptor_stringbuffer.c (raptor_stringbuffer_copy_to_string): - Added to allow exporting to - externally alloced buffers - handy for cross-library/heap work. - (main): Added test for above. - - * raptor_general.c (raptor_init): Don't register 'simple' type. - - * raptor_iostream.c, raptor_namespace.c, raptor_serialize.c, - raptor_iostream.c: Casts for C++ - - * tests/Makefile.am, tests/turtle/Makefile.am: - Replace direct dependency on $(top_builddir)/rapper with build-rapper - so re-compile check is forced before testing. - - * raptor.h, raptor_namespace.c, raptor_serialize.c: - Fix a bunch of constitency typos in namespace URIs - - * raptor_internal.h: - Add locator, error_user_data and error_handler to raptor_serializer. - Add raptor_init_serializer_rdfxml, raptor_serializer_error, - raptor_serializer_simple_error and raptor_serializer_error_varargs. - - * raptor_namespace.c: - Export raptor_xml_namespace_uri, raptor_rdf_namespace_ms_uri, - raptor_rdf_namespace_schema_uri, - raptor_xmlschema_datatypes_namespace_uri, raptor_owl_namespace_uri, - raptor_rdf_namespace_ms_uri_len - - * raptor_general.c (raptor_init): Call raptor_init_serializer_rdfxml - - * raptor.h: - Export raptor_xml_namespace_uri, raptor_rdf_namespace_ms_uri, - raptor_rdf_namespace_schema_uri, - raptor_xmlschema_datatypes_namespace_uri, raptor_owl_namespace_uri, - raptor_rdf_namespace_ms_uri_len - Add raptor_serializer_set_error_handler, - raptor_serializer_get_locator - - * raptor_serialize.c: Added RDF/XML serializer. - Added locator to serializer. - (raptor_serializer_error, raptor_serializer_simple_error, - raptor_serializer_error_varargs): Added internal support for errors. - (raptor_serializer_set_error_handler, raptor_serializer_get_locator): - Added public methods - -2004-10-18 Dave Beckett - - * raptor_iostream.c: (main) casts for fprintf - - * rdfdump.c: Remove ad-hoc serializing code and use raptor_serializer. - Update help and usage messages to use raptor_serializers_enumerate - - * raptor_internal.h: - Added raptor_serializer_factory and declarations for factories - raptor_init_serializer_ntriples, raptor_init_serializer_simple and - raptor_delete_serializer_factories - - * raptor_general.c (raptor_init): - Call raptor_init_serializer_ntriples and - raptor_init_serializer_simple - - * raptor.h: Added raptor_serializer class and methods: - raptor_serializers_enumerate, raptor_serializer_syntax_name_check, - raptor_new_serializer, raptor_free_serializer, - raptor_serialize_start, raptor_serialize_start_to_filename, - raptor_serialize_start_to_string, - raptor_serialize_start_to_file_handle, raptor_serialize_statement, - raptor_serialize_end, raptor_serializer_get_iostream. Added new - raptor_iostream class constructor raptor_new_iostream_to_sink and - methods: raptor_iostream_write_end, raptor_iostream_write_string, - raptor_iostream_write_counted_string, - raptor_iostream_get_bytes_written_count, - raptor_iostream_write_decimal, raptor_iostream_format_hexadecimal - - * Makefile.am: Added raptor_serialize.c - Added $(LIBS) to rfc2396 tests for -ldmalloc when present - - * raptor_serialize.c: Serializers - - * raptor_iostream.c (raptor_iostream_write_counted_string): - Added as a wrapper. - - * raptor_iostream.c (raptor_iostream_format_hexadecimal): - Added for writing field-formatted hex. - - * raptor_iostream.c (raptor_iostream_get_bytes_written_count): - Renamed from raptor_get_bytes_written_count - (raptor_iostream_write_decimal): Added to print a decimal to the - iostream. - - * raptor_iostream.c (raptor_new_iostream_to_file_handle): - Do not fclose at end. - (raptor_string_iostream_finish): Free malloced context. - (raptor_iostream_write_string): Helper to write C string. - - * raptor_iostream.c: Added sink iostream - (raptor_sink_iostream_write_byte, raptor_sink_iostream_write_bytes): - Added. - (raptor_new_iostream_to_sink): Added to create a throwaway data - iostream. - (raptor_free_iostream): Ensure write_end is always called once only. - (main): Test sink. - - * raptor_iostream.c: - Added ended flag, once write_end is done, all further calls fail. - (raptor_filename_iostream_finish): Removed; write_end does this. - (raptor_filename_iostream_write_end): Added to fclose() on end - (raptor_string_iostream_finish): More checks when stringbuffer is - empty. - (raptor_new_iostream_to_string): Handle error tidy up better. - (raptor_iostream_write_end): Added. - (main): Code tidy. - - * raptor_iostream.c: casts for c++ - - * raptor.h: Added raptor_iostream class and methods. - - * Makefile.am: Added raptor_iostream.c and raptor_iostream_test - - * raptor_iostream.c: Raptor I/O stream class - - * turtle_parser.y, turtle_lexer.l, n3_parser.y, n3_lexer.l: - Rename rather generic define ERROR to ERROR_TOKEN to help win32. - -2004-10-16 Dave Beckett - - * rapper.1: die .UE - -2004-10-15 Dave Beckett - - * raptor_xml.c (raptor_xml_escape_string): - Call error_handler correctly. - -2004-09-24 Dave Beckett - - * raptor-config.1: Restore deleted content - -2004-09-20 Dave Beckett - - * win32_raptor_config.h, configure.ac, NEWS.html: - Bumped version to 1.3.4 - - * Snapshotted raptor_1_3_3 for 1.3.3 release - - * Switched to LGPL / Apache 2.0 license in the sources - CVS tags before: raptor_license_lgpl_mpl, - and after: raptor_license_lgpl_apache2 - -2004-09-20 Dave Beckett - - * configure.ac: Check for libxml 2.5.10+ for RSS tag soup parser - requirements, not features. - -2004-09-10 Dave Beckett - - * raptor_namespace.c (raptor_new_namespace): - Debug message only when level >1 - -2004-09-09 Dave Beckett - - * Makefile.am: - Just link raptor_uri_test, raptor_uri_win32_test with raptor_rfc2396.lo - - * raptor_uri.c: (main) Don't use raptor_basename - - * raptor_uri.c: - Revert wrapping so that -DWIN32 raptor_uri_win32_test can be - compiled. OSX 'make check' will have to live with the moans. - - * raptor_uri.c: Wrap functions with #ifndef STANDALONE ... #endif to - prevent multiple link warnings on OSX with tests. - - * raptor_uri.c (main): Use program and raptor_basename in messages - - * raptor_xml.c, raptor_stringbuffer.c, raptor_sequence.c, - raptor_rfc2396.c, raptor_uri.c: Wrap functions with - #ifndef STANDALONE ... #endif - to prevent multiple link warnings on OSX with tests. - - * raptor.spec.in, Makefile.am, NOTICE: Added NOTICE for Apache - License 2.0 - - * raptor.spec.in: Mention atom 0.3 - - * raptor.spec.in: Update for LGPL/Apache 2.0 - - * raptor_rfc2396.c: Header - -2004-09-08 Dave Beckett - - * raptor_rfc2396.c (raptor_new_uri_detail): - Handle NULL string - failure. - Increase alloced size to compensate for possibly 5 extra \0s - for each URI component. - (main): Check "" URI parses and NULL doesn't crash it. - - * raptor_internal.h: Added raptor_uri_detail. - Added internal raptor_basename. - - * raptor.h: docs - - * Makefile.am: Added raptor_rfc2396.c and raptor_rfc2396_test - Link all tests with librdf.la $(LIBS) - - * raptor_rfc2396.c: RFC2396 URI detail - - * raptor_uri.c: Remove old URI resolving code. - - * raptor_xml.c, raptor_parse.c, raptor_sequence.c, raptor_set.c, - raptor_stringbuffer.c, raptor_nfc_test.c: Use raptor_basename in - test code main() - - * raptor_general.c (raptor_basename): Added - - * raptor_rdfxml.c: correct comment - - * Makefile.am: Run tests raptor_set_test and raptor_xml_test - only if rdf/xml is enabled. - - * raptor_parse.c (raptor_stats_print): - Print rdfxml stats only if rdf/xml is enabled. - - * Makefile.am: Change test to be raptor_parse_test - Use raptor_rdfxml.c only if rdf/xml enabled. - - * raptor.h: Export raptor_xml_literal_datatype_uri_string_len - - * raptor_internal.h: Declare raptor_delete_parser_factories. - - * raptor_parse.c, raptor_general.c: - Moved the following parser related functions and methods to - raptor_parse.c: - raptor_default_generate_id_handler, - raptor_delete_parser_factories, raptor_feature_from_uri, - raptor_features_enumerate, raptor_free_parser, raptor_generate_id, - raptor_get_feature, raptor_get_label, raptor_get_locator, - raptor_get_mime_type, raptor_get_name, raptor_get_parser_factory , - raptor_guess_parser_name, raptor_new_parser, - raptor_new_parser_for_content, raptor_parse_abort, - raptor_parse_chunk, raptor_parse_file, raptor_parse_file_stream, - raptor_parse_uri, raptor_parse_uri_with_connection, - raptor_parse_uri_write_bytes, raptor_parser_error, - raptor_parser_error_varargs, raptor_parser_fatal_error, - raptor_parser_fatal_error_varargs, raptor_parser_register_factory, - raptor_parser_simple_error, raptor_parser_warning, - raptor_parser_warning_varargs, raptor_parsers_enumerate, - raptor_set_default_generate_id_parameters, raptor_set_error_handler, - raptor_set_fatal_error_handler, raptor_set_feature, - raptor_set_generate_id_handler, raptor_set_parser_strict, - raptor_set_statement_handler, raptor_set_warning_handler, - raptor_start_parse, raptor_stats_print, raptor_syntax_name_check, - raptor_syntaxes_enumerate - - * raptor_rdfxml.c: Added as copy of raptor_parse.c - - * Makefile.am: -MPL.html (MPL 1.1), +LICENSE-2.0.txt (Apache 2.0) - - * README.html, LICENSE.html: -MPL1.1, +Apache2.0 - - * LICENSE-2.0.txt: Added. - - * MPL.html: Deleted. - -2004-09-07 Dave Beckett - - * tests/turtle/test-16.ttl, tests/turtle/test-16.out: - 10000 triples exactly now - - * raptor_sequence.c: docs - - * turtle_parser.y (blank): Revert mis-edited triple sequence change. - - * turtle_parser.y (propertyList): - Switch to left-recursion to prevent stack problems with bison. - (raptor_turtle_parse_terminate): Call turtle_lexer_lex_destroy - properly. - - * tests/turtle/test-14.ttl, tests/turtle/test-14.out: - Use exactly 10000 all different triples. - - * tests/turtle/test-15.ttl, tests/turtle/test-15.out: - Use different objects and no collections so there are exactly 10000 - triples, all different. - - * tests/turtle/test-16.ttl, tests/turtle/test-16.out: - Use different objects so all 10000 triples are different - - * turtle_lexer.l (turtle_token_print): - Add INTEGER_LITERAL for debugging. - - * Makefile.am: Make turtle_parser.c appear as C source name - - * turtle_parser.y (statementList, objectList): Switch to using - left recursion to prevent stack overflow in bison with 10000 - statements (possible) or objects (rarer). - - * tests/turtle/Makefile.am, tests/turtle/test-16.ttl, - tests/turtle/test-15.out, tests/turtle/test-15.ttl, - tests/turtle/test-16.out, tests/turtle/test-14.out, - tests/turtle/test-14.ttl: Added large turtle tests test-14,15,16 - - * turtle_parser.y (raptor_turtle_parse_chunk): - Use RAPTOR_REALLOC for massive speed - improvements on some systems. - - * raptor_internal.h: Added RAPTOR_REALLOC - -2004-09-06 Dave Beckett - - * raptor_set.c (raptor_free_id_set): - Free the set after freeing the list. - -2004-09-02 Dave Beckett - - * tests/turtle/test-13.out, tests/turtle/test-13.ttl: - Make serializable as rdf/xml - -2004-09-01 Dave Beckett - - * tests/turtle/Makefile.am, tests/turtle/README.txt: - Turtle tests readme - -2004-08-27 Dave Beckett - - * raptor_rss.c: compare namespace URIs the cheaper way - - * raptor_rss.c: Added atom:copyright - Rewrite atom fields earlier. - Compare namespaces too, if they have them. - - * raptor_rss.c: Handle atom 0.3 somewhat. - - Add atom author type. - - Add atom 0.3 NS and atom 0.3 properties - - Add DC Ns and all DC element properties. - - Always rewrites atom:content into rss:description which is not - correct for all situations. - - Cannot handle multiple with different attributes; just uses - rel=alternate ones. - General changes: - Use XML_READER type enums. - Fix copying properties to use RAPTOR_RSS_FIELDS_SIZE. - Allow item field x to have a URI value in item->uri_fields[x] as well - as literal in item->fields[x]. - -2004-08-27 Dave Beckett - - * raptor_rss.c: compare namespace URIs the cheaper way - - * raptor_rss.c: Added atom:copyright - Rewrite atom fields earlier. - Compare namespaces too, if they have them. - - * raptor_rss.c: Handle atom 0.3 somewhat. - - Add atom author type. - - Add atom 0.3 NS and atom 0.3 properties - - Add DC Ns and all DC element properties. - - Always rewrites atom:content into rss:description which is not - correct for all situations. - - Cannot handle multiple with different attributes; just uses - rel=alternate ones. - General changes: - Use XML_READER type enums. - Fix copying properties to use RAPTOR_RSS_FIELDS_SIZE. - Allow item field x to have a URI value in item->uri_fields[x] as well - as literal in item->fields[x]. - -2004-08-23 Dave Beckett - - * turtle_parser.y (blank rule): Do not free a generated id here - -2004-08-22 Dave Beckett - - * configure.ac: Remove old reference to g_utf8_normalize - -2004-08-19 Dave Beckett - - * Makefile.am: Add libraptor_la_SOURCES += for NFC. - -2004-08-18 Dave Beckett - - * raptor_set.c: Wrap main code with #ifndef STANDALONE - - * raptor_general.c (raptor_init, raptor_finish): - Use new static raptor_initialised to - protect these from being run twice. - -2004-08-17 Dave Beckett - - * configure.ac: nfc_needed default - - * configure.ac, Makefile.am: - Added conditional makefile support for XML parsers (expat, libxml), - selecting RDF parsers (RDF/XML, Turtle, N-Triples, RSS tag soup), - NFC checking. - Added new configure argument --enable-parsers to control this. - - * raptor_utf8.c (raptor_utf8_is_nfc): - Protect NFC check with define RAPTOR_NFC_CHECK - - * raptor_locator.c (raptor_update_document_locator): - Protect RDF/XML bits with define - RAPTOR_PARSER_RDFXML - - * raptor_general.c (raptor_stats_print): - Protect RDF/XML bits with define RAPTOR_PARSER_RDFXML - - * raptor.h: Added prototype for raptor_calloc_memory - - * raptor_set.c, raptor_nfc.c: Casts for C++ - - * LICENSE.html: More LGPL v2.1 fixes - - * win32_raptor_config.h: 1.3.3 - -2004-08-13 Dave Beckett - - * turtle_lexer.l, n3_lexer.l: grammar - - * turtle_lexer.l, n3_lexer.l, fix-flex: - fix-flex now inserts the raptor and win32 config includes block - at the top of the lexer C. - - * n3_parser.y, n3_lexer.l: win32 - - * Several fixes for building on win32 from Chris Pointon - - * win32/raptor.dsw, win32/raptor.dsp: win32 updates from Chris Pointon - - * win32_raptor_config.h: - No need for #define YY_NO_UNISTD_H here, it's done in the turtle - lexer and parser C source. - - * turtle_parser.y, turtle_lexer.l: Use turtle_parser.h - - * raptor_xml_writer.c, raptor_sax2.c, raptor_qname.c, - raptor_parse.c, raptor_namespace.c, raptor_libxml.c: calloc() fixes. - - * Makefile.am: - Do not generate *.tab.[ch] for turtle parser but process and rename - to make .c, .h. - Apply fix-flex to the generated flex header file, to catch another - unprotected include of unistd.h. - - * libraptor.3: Document raptor_calloc_memory. - - * raptor_general.c: Added raptor_calloc_memory - - * raptor_www_libwww.c: - Add #ifdef RAPTOR_WWW_LIBWWW ... #endif block around content - - * raptor_www_libfetch.c: - Add #ifdef RAPTOR_WWW_LIBFETCH ... #endif block around content - Use #ifdef HAVE_SYS_PARAM_H for sys/param.h - - * raptor_www_curl.c: - Add #ifdef RAPTOR_WWW_LIBCURL ... #endif block around content - - * win32_raptor_config.h: win32 updates from Chris Pointon - - * raptor_www.c: Calloc fix. - (raptor_www_get_connection): Return NULL if no WWW library available. - - * raptor_internal.h: Correct RAPTOR_CALLOC macro param names. - - * raptor.h: Export raptor_xml_literal_datatype_uri_string - - * win32/Makefile.am, win32/README.txt, win32/README: - README renamed to README.txt - -2004-08-12 Dave Beckett - - * raptor_nfc.c: Tidy debug messages. - Reset prev_class explicitly. - -2004-08-11 Dave Beckett - - * raptor_parse.c (raptor_record_ID): c99 - - * raptor_nfc.c: Return 0 from raptor_nfc_check on failure - - * raptor_nfc_test.c: Raptor NFC test - - * Makefile.am: Added raptor_nfc_test.c, raptor_nfc_data.c, - raptor_nfc.c and raptor_nfc.h - Added raptor_nfc_test - - * raptor_utf8.c (raptor_utf8_is_nfc): Use raptor_nfc_check. - - * raptor_nfc.c, raptor_nfc.h: Unicode NFC - - * raptor_internal.h: Added prototype for raptor_nfc_check - - * configure.ac: - Check for lengths of u8, u16, u32, char, short, int, long - - * raptor_nfc_data.c: Unicode NFC data tables - - * raptor_parse.c: Updated for raptor_set to raptor_id_set renaming. - (raptor_record_ID): Pass in the base_uri to the raptor_id_set_add, do - not malloc / free a larger string. - - * raptor_internal.h: - Rename the raptor_set* typedef and functions to be raptor_id_set - - * raptor_set.c: - Change the implementation to a list of (set of IDs)-per base URI. - Each time a base URI is checked it is swapped with the first in - the list. The set of IDs (raptor_base_id_set) takes a lot less - memory since it isn't storing the string concat(base URI,ID) but just - ID. The capacity and size parts are part of the raptor_base_id_set. - Rename the structures and functions to be raptor_id_set not raptor_set. - - * raptor_parse.c (raptor_end_element_grammar): - Add check for a non-empty property - element with both a node element child and - property attributes. For bad test bad-23.rdf - - * tests/bad-23.rdf: - bad-23.rdf - property attributes and node element content check - - * tests/Makefile.am: Added bad-23.rdf - -2004-08-10 Dave Beckett - - * libraptor.3: Document check_rdf_id feature - -2004-08-02 Dave Beckett - - * raptor_general.c (raptor_set_parser_strict): - Set feature_check_rdf_id default true. - - * raptor_parse.c (raptor_record_ID): - Use feature_check_rdf_id to always return - no rdf:ID check failure when feature is disabled. - - * raptor_general.c (raptor_set_feature, raptor_get_feature): - Added RAPTOR_FEATURE_CHECK_RDF_ID - (raptor_set_parser_strict): Set feature_check_rdf_id default true. - - * raptor.h: Added RAPTOR_FEATURE_CHECK_RDF_ID - - * raptor_internal.h: Added feature_check_rdf_id - - * ntriples_parse.c (raptor_ntriples_parse_chunk): - Move "junk at end of input" test - to the end of the function, giving the error only if the current - offset isn't at the end of the current line. - -2004-07-30 Dave Beckett - - * raptor_internal.h: - Switch to WWW read buffer size of 4096 (from 256 bytes!) - - * raptor_general.c: Switch to read buffer size of 4096 - -2004-07-28 Dave Beckett - - * autogen.sh: move 'rm's inside configure.ac loop - - * autogen.sh: Ensure subdirs get config.guess, config.sub - - * win32/raptortest.cpp: Added raptor_init, raptor_finish (untested). - -2004-07-27 Dave Beckett - - * raptor_locator.c: cast for c++ - -2004-07-26 Dave Beckett - - * raptor_general.c: Add #ifndef STANDALONE ... #endif around body. - -2004-07-21 Dave Beckett - - * configure.ac: Bumped version to 1.3.3 - - * Snapshotted raptor_1_3_2 for 1.3.2 release - - * configure.ac: - Removed configuration for gnome glib, pkgconfig and glib-config - to get g_utf8_normalize for Unicode NFC checking. - - * raptor_utf8.c (raptor_utf8_is_nfc): - Removed use of g_utf8_normalize for Unicode NFC - checking, it seems to give false negatives, is also rather slow since - it does normalization rather than just checking for NFC. - - * libraptor.3: Updates for 1.3.2 - -2004-07-16 Dave Beckett - - * tests/Makefile.am, tests/ex-54.out, tests/ex-54.rdf, - tests/warn-03.out, tests/warn-03.rdf: Renamed warn-03 to ex-54 - - it is not an error or a warning, the data is good - -2004-07-14 Dave Beckett - - * tests/Makefile.am, tests/bad-22.rdf: - bad-22.rdf testing rdf:li forbidden as a - property attribute (Graham Klyne) - -2004-07-09 Edd Dumbill - - * raptor_locator.c: add accessors for parts of the raptor_locator - struct. - * raptor.h: add prototypes for the accessors - -2004-07-09 Dave Beckett - - * ChangeLog: ChangeLog in CVS now - -2004-07-08 Dave Beckett - - * raptor_general.c (raptor_parse_uri_with_connection): - Pass up WWW errors to the parser error handler. - -2004-06-30 Dave Beckett - - * configure.ac: Added RAPTOR_PARSER_TURTLE, RAPTOR_PARSER_NTRIPLES - and RAPTOR_PARSER_RDFXML all set to 1 - - * raptor_general.c (raptor_init): - Added RAPTOR_PARSER_TURTLE, RAPTOR_PARSER_NTRIPLES and - RAPTOR_PARSER_RDFXML - - * win32_raptor_config.h: 1.3.2 - - * turtle_parser.y, turtle_lexer.l, strcasecmp.c, rdfdump.c, - raptor_xml_writer.c, raptor_xml.c, raptor_www_test.c, - raptor_www_libxml.c, raptor_www_libwww.c, raptor_www_libfetch.c, - raptor_www_curl.c, raptor_www.c, raptor_win32.c, raptor_utf8.c, - raptor_uri.c, raptor_stringbuffer.c, raptor_set.c, - raptor_sequence.c, raptor_sax2.c, raptor_rss.c, raptor_qname.c, - raptor_parse.c, raptor_namespace.c, raptor_locator.c, - raptor_libxml.c, raptor_identifier.c, raptor_general.c, - raptor_expat.c, ntriples_parse.c, Makefile.am, - win32_raptor_config.h, win32_config.h: Renamed win32_config.h to - win32_raptor_config.h - -2004-06-25 Dave Beckett - - * ntriples_parse.c (raptor_ntriples_parse_line): - Make language on a datatyped literal a warning. - -2004-06-24 Dave Beckett - - * libraptor.3: Added raptor_alloc_memory. Note where and why it and - raptor_free_memory may need to be used in the descriptiona - and next to the methods that it applies to. - - * raptor_general.c, raptor.h: Added raptor_alloc_memory. Docs. - -2004-06-22 Dave Beckett - - * configure.ac: - Added --with-expat-source option to build against an external - expat source. - Handle old and new style expat source areas. - Report expat source dir in summary. - Tidy up default messages. - Only use expat subdir if it exists. - - * tests/Makefile.am: - AM_LDFLAGS does not need LIBS, libraptor.la includes it all. - -2004-06-17 Dave Beckett - - * Makefile.am: Zap extra $@ on rule line - -2004-06-13 Dave Beckett - - * configure.ac: pkg-config is too noisy on errors - - * configure.ac: - Only muck about with removing -O2 from flags in maintainer mode. - -2004-06-12 Dave Beckett - - * Makefile.am: - Added local distclean-compile rule to override the insane - one automake uses by default: rm -f *.tab.c - - * configure.ac: Bumped version to 1.3.2 - - * Snapshotted raptor_1_3_1 for 1.3.1 release - - * tests/Makefile.am: add CLEANFILES - - * tests/Makefile.am: - Added TESTS with raptor_empty_test the only one right now. - Added C include, linking lines - - * tests/empty.c: Test of empty C file, just using raptor.h work - - * raptor_uri.c (raptor_uri_filename_to_uri_string, - raptor_uri_uri_string_to_filename_fragment): Casts and - char/unsigned char fixes for C++ - -2004-06-08 Dave Beckett - - * raptor_uri.c (raptor_default_new_uri): Avoid free(NULL) for filename. - - * raptor_general.c (raptor_parse_file): Check before fopen that it - is not a directory attempting to be fopen()ed - unix only, with - lstat. - - * raptor_www.c (raptor_www_file_fetch): Check before fopen that it - is not a directory attempting to be fopen()ed - unix only, with - lstat. - - * rdfdump.c: Add error for failure of raptor_uri_filename_to_uri_string - - * raptor_uri.c (raptor_uri_filename_to_uri_string): - Unix malloc too large by 2. - - * raptor_uri.c (raptor_default_new_uri): Zero fragment pointer. - - * raptor_uri.c (raptor_default_new_uri): Do not use a NULL filename. - - * raptor_uri.c (raptor_uri_uri_string_to_filename_fragment): - Fail if the URI has no path or was going to return an empty string. - (assert_filename_to_uri): Test code allow checks for NULL. - (main): Test code for silly URIs that should work or fail. - -2004-06-06 Dave Beckett - - * raptor_internal.h: Added RAPTOR_FATAL3 - - * raptor_uri.c: Fix win32 file/URI encoding to use file:///name - and escape things better. - (raptor_uri_filename_to_uri_string): Calculate new length correctly, - with %-escaping. - (raptor_uri_uri_string_to_filename_fragment): Calculate new format. - Also do less strlen, strcpy. - (main): Change tests to match new win32 file URI, test %-escaping - and %-unescaping correctly. - -2004-06-04 Dave Beckett - - * raptor_uri.c: - NOTE: Not all below is fully working - 3 tests fail at this point. - (raptor_uri_filename_to_uri_string): %-escape ' ' and '%' at least - as a minimum. Document this. On Windows, generate file:///c:/ ... - not c| - (raptor_uri_uri_string_to_filename_fragment): Add %-unescaping. - (main): Added test cases for %-escaping, %-expanding - - * Makefile.am: Added raptor_uri_win32_test - -2004-06-03 Dave Beckett - - * tests/turtle/rdfq-results.ttl: - Updated to - http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html - CVS $Id: recording-query-results.html,v 1.9 2004/06/03 12:41:37 aseaborne Exp $ - -2004-05-31 Dave Beckett - - * raptor_general.c (raptor_parser_error_varargs, - raptor_parser_warning_varargs): Chop off trailing \n from messages. - - * raptor_libxml.c (raptor_libxml_error): - Chop off trailing \n correctly. - -2004-05-30 Dave Beckett - - * turtle_lexer.l: Set the uri union field for ':' qname. - - * turtle_parser.y (raptor_turtle_parse_start): - Delete any existing buffer content before - starting. - - * raptor_general.c: - Added feature warn_other_parseTypes, default true in lax mode. - - * raptor_parse.c: - Added feature warn_other_parseTypes and used to warn when a parseType - Literal is assumed. - - * raptor_internal.h: Added feature warn_other_parsetypes - - * raptor.h: Aded feature warn_other_parsetypes - - * tests/warn-07.out, tests/warn-07.rdf: Replaced by warn-07 - - * tests/Makefile.am: Remove ex-50, warn-07 covers it - - * tests/ex-50.out, tests/ex-50.rdf: Replaced by warn-07 - - * tests/Makefile.am: Add warn-07 - Check for right values for warning tests, not just presence of a - warning. - -2004-05-29 Dave Beckett - - * autogen.sh: Add --enable-maintainer-mode - - * configure.ac: - Add check for glib-2.0 presence rather than an error barf. - -2004-05-28 Dave Beckett - - * tests/Makefile.am: - Add set +e, set -e around multiple tests so they only fail at the end. - - * configure.ac: Only check flex version in maintainer mode - - * Makefile.am: Re-order directives and tidy up. - Make lex and yacc rules be maintainer only. - - * Makefile.am: Use automakefile conditionals STRCASECMP and GETOPT - for conditional sources. - - * configure.ac: Use automakefile conditionals STRCASECMP and GETOPT - -2004-05-27 Dave Beckett - - * configure.ac: check for perl - - * Makefile.am: Add fix-flex and use it - - * fix-flex: Fix flex output - - * raptor_internal.h: Added raptor_libxml_free - - * raptor_parse.c (raptor_xml_parse_start, raptor_xml_parse_terminate): - Use - raptor_libxml_free to tidy up. - - * raptor_libxml.c (raptor_libxml_free): - Added to tidy up after a parsing. - - * raptor_parse.c (raptor_xml_parse_terminate): - Clean up sax2_element stack after - errors. - -2004-05-26 Dave Beckett - - * turtle_lexer.l: Allow _ after : in qnames. - Make bare ':' work. - - * tests/turtle/rdf-schema.out, tests/turtle/rdf-schema.ttl: - RDF namespace document - - * tests/turtle/rdfs-namespace.out, tests/turtle/rdfs-namespace.ttl: - RDFS namespace - - * tests/turtle/Makefile.am: Added test-13, rdf-schema, rdfs-namespace - - * tests/turtle/test-13.out, tests/turtle/test-13.ttl: test bare : - - * turtle_parser.y: Fix RAPTOR_DEBUG args in old format. - - * tests/turtle/Makefile.am: Added test-12 - - * tests/turtle/test-12.out, tests/turtle/test-12.ttl: - test for _ after : in qnames - - * libraptor.3: - Describe use of UTF-8 for literals and strings - - * libraptor.3: 1.3.1 changes - -2004-05-25 Dave Beckett - - * raptor.h: Added RAPTOR_STATIC for WIN32 when statically linking - Fix raptor_print_statement arg s/const// - -2004-05-24 Dave Beckett - - * raptor_general.c (raptor_free_memory, raptor_system_free): - Do not return, no return value. - -2004-05-21 Dave Beckett - - * tests/turtle/rdfq-results.ttl, tests/turtle/rdfq-results.out: - Replace XML Schema namespace with 2001 versi - -2004-05-19 Dave Beckett - - * rdfdump.c: Includes re-order, doc - - * rdfdump.c: don't do stdarg.h here - it should be in raptor.h - - * raptor.h: - Add include for stdarg.h to get va_list for raptor_vsnprintf - - * raptor_xml.c (raptor_xml_escape_string): - q should be an unsigned char* - - * raptor_utf8.c (raptor_unicode_char_to_utf8): - Cast for unsigned long to unsigned char - - * raptor_parse.c (raptor_xml_start_element_handler): Cast for memcpy. - - * win32_config.h: patch from Jose for VC6 - -2004-05-18 Dave Beckett - - * ntriples_parse.c (raptor_ntriples_generate_statement): - Remove use of ntriples_parser, - not used. - -2004-05-15 Dave Beckett - - * raptor.spec.in: SNAP - -2004-05-12 Dave Beckett - - * turtle_parser.y, turtle_common.h, ntriples_parse.c: - Do not allow any language with datatype literals. - - * tests/turtle/Makefile.am: add zip, tests.zip targets - -2004-05-11 Dave Beckett - - * configure.ac: Bumped version to 1.3.1 - - * Snapshotted raptor_1_3_0 for 1.3.0 release - - * turtle_lexer.l: Allow - in qnames, prefix qnames. - - * tests/turtle/Makefile.am: Added test-11 - - * tests/turtle/test-11.out, tests/turtle/test-11.ttl: - - and _ in qnames, prefixes - -2004-05-07 Dave Beckett - - * raptor_sequence.c, raptor_internal.h: Add assert macros - -2004-05-04 Dave Beckett - - * raptor_general.c, raptor.h: - Export raptor_xml_literal_datatype_uri_string - - * raptor_internal.h: - raptor_xml_literal_datatype_uri_string now exported. - - * libraptor.3: Added 1.3.0 items - - * raptor_general.c (raptor_parse_uri_with_connection): Document - the Accept: header malarky. Only send it if connection is NULL. - Use Accept: MIME-TYPE,*/*;q=0.1 - - * raptor_www_curl.c (raptor_www_curl_fetch): append to slist right - - * raptor_general.c (raptor_parse_uri_with_connection): Send - "Accept: MIME-TYPE ;*/*" to prefer the specified one rather than - accept only that. - - * raptor.h: Added raptor_get_mime_type - - * raptor_general.c (raptor_parse_uri_with_connection): - Set Accept header with mime type of this syntax if there is one - - * raptor_www.c (raptor_www_set_http_accept): - Make accept value overwrite \0 from Accept: - - * configure.ac: make raptor.rdf - - * turtle_parser.y, raptor_www_libxml.c, raptor_parse.c, - ntriples_parse.c: Fixes for c++ - - * Makefile.am: added raptor.rdf.in - - * raptor.rdf.in: DOAP - -2004-05-02 Dave Beckett - - * turtle_parser.y: Add xml_literal_datatype_uri to parser context. - (raptor_turtle_parse_init,raptor_turtle_parse_terminate): use above - (raptor_turtle_generate_statement): Use above to remove language - from all literals except xml literals. - - * turtle_common.h: Add xml_literal_datatype_uri to parser context. - - * ntriples_parse.c: Add xml_literal_datatype_uri to parser context. - (raptor_ntriples_parse_init,raptor_ntriples_parse_terminate): use - above - (raptor_ntriples_generate_statement): Use above to remove language - from all literals except xml literals. - - * raptor_identifier.c (raptor_identifier_print): - Use raptor_xml_literal_datatype_uri_string - and save a string. - -2004-04-29 Dave Beckett - - * rdfdump.c (main): - Use raptor_free_memory to free memory allocated in libraptor. - - * raptor_www_libxml.c (raptor_www_libxml_fetch): - Free content type using libxml's xmlFree - since it was allocated there. - - * raptor_www_libxml.c, raptor_www_curl.c (raptor_www_libxml_fetch): - Make headers for User-Agent: and/or - Accept: if they were set in the raptor_www. - - * raptor_www.c (raptor_www_set_http_accept): Added. - - * raptor_internal.h: Added http_accept to raptor_www - - * raptor.h: Added raptor_www_set_http_accept - -2004-04-15 Dave Beckett - - * raptor_general.c (raptor_guess_parser_name): - use strrchr to find *last* . - -2004-04-14 Dave Beckett - - * raptor_sequence.c (raptor_new_sequence): Zap sequence field. - - * raptor_xml_writer.c (raptor_xml_writer_cdata): - Do not copy more bytes than allowed. - - * Makefile.am: Added raptor_expat.c - - * raptor_parse.c: Export some expat-only handlers: - raptor_xml_unparsed_entity_decl_handler, - raptor_xml_external_entity_ref_handler. - (raptor_xml_parse_init): Do not call expat init code here. - (raptor_xml_parse_start): Call new raptor_expat_init to initialise - parser state. - - * raptor_internal.h: Added RAPTOR_XML_EXPAT only exports including - raptor_expat_init prototype. - - * raptor_expat.c: raptor expat parser - -2004-04-13 Dave Beckett - - * raptor.h: Added xsd and owl namespace URIs - - * raptor_namespace.c (raptor_namespaces_init): - Define xsd, owl when defaults is 2+ - -2004-04-11 Dave Beckett - - * raptor_parse.c: - (raptor_xml_parse_start) Free expat/libxml contexts from an earlier parsing to ensure resetting of state - - * raptor_stringbuffer.c (raptor_stringbuffer_prepend_string_common): - Added - (raptor_stringbuffer_prepend_counted_string, - raptor_stringbuffer_prepend_string): Added, implemented by above - internal function. - (main): Added tests for prepending. - - * raptor.h: Add RAPTOR_API for newly exported functions. Add - raptor_stringbuffer_prepend_counted_string, - raptor_stringbuffer_prepend_string - - * raptor_stringbuffer.c: (main) printf arg - - * raptor_internal.h, raptor.h: Moved raptor_stringbuffer to public API - - * raptor_stringbuffer.c (raptor_stringbuffer_append_stringbuffer): - Added. - (main): Updated test code for raptor_stringbuffer_append_stringbuffer - -2004-04-10 Dave Beckett - - * raptor_general.c, raptor.h (raptor_guess_parser_name): - Added new public class method. - (raptor_new_parser_for_content): Now uses above. - - * raptor_internal.h, raptor.h: - Move raptor_unicode_char_to_utf8, raptor_utf8_to_unicode_char to - public API. - - * INSTALL.html: consistency with librdf instructions. - update libxml versions. - update automake, autoconf minimums. - - * tests/Makefile.am: fix result codes for split off NFC warnings - - * tests/Makefile.am: - Split off NFC warnings so they can fail noisily when glib isn't - present to do the check. - - * rapper.1: - Document -g/--guess flag to guess the parser to use from the - identifier (URI or file name). - - * rdfdump.c: - Added -g/--guess flag to use raptor_new_parser_for_content guessing - the parser to use from the identifier (URI or file name). - - * turtle_parser.y, raptor_rss.c, raptor_parse.c, ntriples_parse.c: - Added scoring factory method recognise_syntax for rdfxml, ntriples, - rss, turtle parsers. - - * raptor_internal.h: - Added parser scoring factory method recognise_syntax. - - * raptor_general.c (raptor_new_parser_for_content): - Added, guessing which parser to - instance using scoring factory method recognise_syntax. - - * raptor.h: Added raptor_new_parser_for_content - -2004-04-10 Dave Beckett - - * raptor_sequence.c: cast for c++ - -2004-04-09 Dave Beckett - - * raptor_parse.c: Removed use of raptor_print_statement_detailed - - * raptor_internal.h: - Removed raptor_print_statement_part_as_ntriples, made static - - * raptor.h: Deprecate raptor_print_statement_detailed - - * raptor_general.c (raptor_print_statement_detailed): - Restored, was in raptor.h but useless. - - * raptor_general.c: dates, docucomments - (raptor_print_statement_detailed): Deleted - never publically - documented or used. - -2004-04-08 Dave Beckett - - * Makefile.am: raptor_sequence_test needs to link with libraptor.la - - * turtle_parser.y: - rename raptor_free_handler,raptor_print_handler -> as raptor_sequence... - - * raptor.h, raptor_internal.h: Move sequence class to public api. - - * raptor_sequence.c: - rename raptor_free_handler,raptor_print_handler -> as raptor_sequence... - (raptor_sequence_print_uri): Added. - (raptor_sequence_set_print_handler): Added. - - * raptor_internal.h, raptor.h: Export raptor_vsnprintf public. - -2004-04-06 Dave Beckett - - * turtle_parser.y (turtle_parse): Remove un-necessary cast. - - * turtle_parser.y (turtle_parse): Free lexer - -2004-04-05 Dave Beckett - - * rdfdump.c: - Added HELP_PAD to format long help description over multiple lines. - -2004-03-30 Dave Beckett - - * tests/turtle/test-00.out: Updated base uri - - * tests/turtle/Makefile.am: Added rdfq-results - - * tests/turtle/rdfq-results.out, tests/turtle/rdfq-results.ttl: - RDF Query result set example from - http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html - -2004-03-27 Dave Beckett - - * raptor_general.c, turtle_parser.y, rdfdump.c: casts for C++ - - * NEWS.html: skeleton 1.3.0 news - - * configure.ac, autogen.sh: Use some AM_INIT_AUTOMAKE options. - Require automake1.7, which requires autoconf 2.54 - - * examples/Makefile.am: - Drop $(shell .. ) which is not portable between makes - - * raptor-src-config.in, raptor-config.in: emit --help usage to - stdout, Support --help and exit 0. - -2004-03-26 Dave Beckett - - * libraptor.3: words - - * rapper.1: Document -f - - * TODO.html: bug was libxml2 not me - - * tests/Makefile.am: Add bad-21 - - * tests/bad-21.rdf: - Check non-namespaced attributes on a property are reported - - * raptor_parse.c (raptor_xml_start_element_handler): - Check element, attributes for - non-namespaces once we know we are in rdf processing. - Check all named attributes for lack of namespace, error and zap - if found. - (raptor_process_property_attributes): Skip any deleted attributes. - -2004-03-25 Dave Beckett - - * tests/Makefile.am: Added warn-05, warn-06 - - * tests/warn-05.out, tests/warn-06.out, tests/warn-05.rdf, - tests/warn-06.rdf: Check for warning for unknown rdf namespaced - property element, attributes - - * raptor_parse.c (raptor_process_property_attributes): - Generate an error for forbidden - rdf names, warning for unknown rdf names. - - * raptor_parse.c: Merged rdf_attr_info into rdf_syntax_terms_info. - Now we can check for unknown rdf: names - (raptor_forbidden_nodeElement_name, - raptor_forbidden_propertyElement_name, - raptor_forbidden_propertyAttribute_name): Return -1 on unknown name. - (raptor_start_element_grammar): Generate an error for forbidden - rdf names, warning for unknown rdf names. - - * tests/Makefile.am: Added warn-04 - - * tests/warn-04.out, tests/warn-04.rdf: - Check for warning for unknown rdf namespaced node element - - * tests/turtle/Makefile.am, tests/Makefile.am: - fix grep for Warning output - - * raptor_general.c, raptor.h: - Added raptor_free_memory to dealloc memory returned by raptor - functions - some systems need this due to having multiple heaps. - - * raptor_general.c (raptor_default_generate_id_handler): doh - - * raptor_general.c (raptor_default_generate_id_handler): - Rework not to use tmpid before - initialising it. - - * raptor_general.c (main): Free returned uri - - * raptor.h: Added raptor_feature_from_uri - - * Makefile.am: Added raptor_general_test - - * raptor_general.c (raptor_feature_from_uri): - Turn a feature URI into a feature number. - (main): Added, testing feature enumerations. - - * rdfdump.c: note feature values in -f help - - * rdfdump.c: More help message tidying. - - * rdfdump.c: Alter HELP_TEXT macro so short arg isn't auto-quoted. - Use this to add short option options arg to help. - -2004-03-24 Dave Beckett - - * raptor_general.c (raptor_default_generate_id_handler): - Don't bump default genid - counter when a user_bnodeid is present. - - * rdfdump.c: - Allow setting feature optional values -f NAME=VALUE (integer). - - * raptor_general.c, raptor.h: - Use raptor_feature type for enumeration calls. - - * raptor_general.c: Tidy feature labels - - * rdfdump.c: Tidy -f help message. - - * rdfdump.c: Re-ordered long_options to be alphabetical by option char. - Added -f/--feature FEATURE to set a parser feature. - With the value 'help', lists them all using raptor_features_enumerate. - - * raptor.h: Added raptor_get_feature, raptor_features_enumerate. - raptor_set_feature gets a return value. - - * raptor_general.c (raptor_set_feature): - Delete docs, now has an API. Return a failure value. - raptor_features_list - static added. - (raptor_features_enumerate): Added, to allow returning - of parser feature name, URI and/or label. - (raptor_get_feature): Added. - -2004-03-23 Dave Beckett - - * TODO.html: Add turtle use of raptor_generate_id - - * turtle_parser.y (blank): - Use raptor_generate_id when a blank identifier name is - given, to allow application to change it. - -2004-03-21 Dave Beckett - - * tests/turtle/test-10.out, tests/turtle/test-09.out, turtle_parser.y: - Make Turtle integers emit xsd:integer - -2004-03-19 Dave Beckett - - * raptor_parse.c: Twice. - - * raptor_parse.c: Remove FIXME for other rdf:parseType values - - just fall through to Literal - - * raptor_parse.c: FIXME not relevant. - - * ntriples_parse.c (raptor_ntriples_generate_statement): - Kill a FIXME, fail with an - error on bad rdf:_n property. - - * tests/Makefile.am: Added bad-06.nt - - * tests/bad-06.nt: bad rdf:_n in ntriples - -2004-03-18 Dave Beckett - - * turtle_parser.y: Added INTEGER_LITERAL. - Turn it into a xsd:nonNegativeInteger - - * turtle_lexer.l: Added INTEGER_LITERAL. - - * tests/turtle/Makefile.am: Added test-09 test-10 - - * tests/turtle/test-09.out, tests/turtle/test-09.ttl, - tests/turtle/test-10.out, tests/turtle/test-10.ttl: Integer - literal tests - - * tests/Makefile.am, Makefile.am: - Ensure rapper is up-to-date and built before tests are run. - -2004-03-15 Dave Beckett - - * tests/warn-03.out, tests/warn-03.rdf: - Added warn-03 warning not dieing on NFC in XML literals - - * tests/Makefile.am: Added warn-03 - - * raptor_parse.c (raptor_end_element_grammar): - For NFC problems in an XML literal, - take notice of feature_non_nfc_fatal which defaults to warning, - rather than given an error. - -2004-02-26 Dave Beckett - - * tests/turtle/Makefile.am: Added bad-04.ttl - - * tests/turtle/bad-04.ttl: Check , in collection items fails - - * tests/turtle/test-07.ttl: Remove , between items - forbidden. - - * turtle_parser.y (objectList): - Remove optional commas for triple objects. - (itemList): Added with no commas. - (collection): Use itemList not objectList. - - * tests/turtle/Makefile.am: remove test-09.ttl - - * tests/turtle/test-09.out, tests/turtle/test-09.ttl: - Comma is required or not in collections, not optional - -2004-02-24 Dave Beckett - - * raptor.spec.in: Export library la files - - * turtle_parser.y (objectList): - Allow optional commas in lists of objects - such as in - all triple objects and collections. - - * tests/turtle/test-09.out, tests/turtle/test-09.ttl: - Added test for optional comms in a collection - - * tests/turtle/Makefile.am: Added test-09.ttl - -2004-02-23 Dave Beckett - - * raptor.h: Add stdio.h - -2004-02-19 Dave Beckett - - * n3_lexer.l, turtle_lexer.l (main): - Don't re-reset the scanner to its address. - - * n3_lexer.l, turtle_lexer.l: Remove RAPTOR_IN_REDLAND - - * turtle_parser.y (main): Use lineno. - - * turtle_parser.y: comment - -2004-01-30 Dave Beckett - - * Makefile.am: deps - - * rapper.1: fix changelog - - * Makefile.am: Make rapper.html - - * rapper.1: urls - -2004-01-25 Dave Beckett - - * raptor_general.c (raptor_delete_parser_factories): - Free alias if it was set. - -2004-01-24 Dave Beckett - - * rdfdump.c: Don't print (default) when listing valid args for -i - - * rdfdump.c: Use raptor_syntax_name_check to check name; don't - make/destroy a parser. - - * raptor_general.c (raptor_syntax_name_check): Added, to check names. - - * raptor.h: Added raptor_syntax_name_check - - * rdfdump.c: Make -i try to make a parser, don't hardcode names. - - * rdfdump.c: Use raptor_syntaxes_enumerate in -i error - - * rdfdump.c: Use raptor_syntaxes_enumerate in usage -i help - - * rapper.1: Updated to mention Turtle. - - * configure.ac: Bumped version to 1.3.0 - - * README.html: turtle - - * Snapshotted raptor_1_2_0 for 1.2.0 release - - * libraptor.3, README.html, NEWS.html: Updated for 1.2.0 - - * TODO.html: N-Triples Plus to Turtle - -2004-01-22 Dave Beckett - - * configure.ac: Use AC_PROG_LEX and handle when there is no lex or - flex gracefully. AM_PROG_LEX set LEX to a value that caused odd - configure output. - -2004-01-20 Dave Beckett - - * configure.ac: Updated output files check from n3/ntriples plus - to turtle - - * turtle_parser.y, raptor_rss.c, raptor_parse.c, ntriples_parse.c: - Update to use raptor_parser_register_factory alias argument - to register any old or alternate names. - - * raptor_internal.h: Add alias field to raptor_parser_factory_s. - Add alias argument to raptor_parser_register_factory prototype. - - * raptor_general.c (raptor_parser_register_factory, - raptor_get_parser_factory): Added an alias argument, used to - register a alternate name which is never used or returned in - parser enumerations. - - * examples/grapper.c: - Added a tooltip for the errors/warnings output box. - - * examples/grapper.c: Use G_TYPE_INT for column 1 of errors - - * examples/grapper.c: - Added errors/warnings box, updated with results of parsing. - - * Makefile.am: Added ChangeLog.1 - -2004-01-19 Dave Beckett - - * raptor_general.c: Define raptor_system_malloc, raptor_system_free - - * raptor_internal.h: RAPTOR_... not LIBRDF_ - - * raptor_utf8.c (raptor_utf8_is_nfc): Use SYSTEM_FREE - - * raptor_internal.h: Define SYSTEM_MALLOC, SYSTEM_FREE - -2004-01-18 Dave Beckett - - * turtle_parser.y: fix double free of first_identifier - - * turtle_parser.y: Collections generating triples. - - * turtle_common.h: Add nil/first/rest_uri fields - - * tests/turtle/test-07.out: Updated as a collection test result. - - * tests/turtle/Makefile.am: Added test-08 - - * tests/turtle/test-08.out, tests/turtle/test-08.ttl, - tests/turtle/test-07.ttl: collection test - - * turtle_lexer.l: Added '(' and ')' for collections. - - * turtle_parser.y: - Added collection grammar parts, triples not right yet. - - * raptor_identifier.c (raptor_copy_identifier): - Copy literal languages correctly. - - * tests/turtle/test-00.out, tests/turtle/Makefile.am, - tests/Makefile.am, turtle_parser.y, turtle_lexer.l, - turtle_common.h, raptor_internal.h, raptor_general.c, - configure.ac, Makefile.am: - N-Triples Plus to Turtle - n3_ in filenames to turtle_ - .ntp to .ttl - - * rdfdump.c: indenting - - * rdfdump.c: Allow turtle, don't document ntriples-plus - - * n3_parser.y, turtle_parser.y: Register under the name turtle - -2004-01-14 Dave Beckett - - * raptor_xml_writer.c, raptor_uri.c, raptor_rss.c, raptor_qname.c, - raptor_parse.c, raptor_namespace.c, raptor_internal.h, - raptor_general.c, ntriples_parse.c: RAPTOR_ERROR* and - RAPTOR_FATAL* lose their function arg, using __func__ - - * raptor_general.c (raptor_finish): - Remove direct call of raptor_terminate_parser_rdfxml - - * raptor_parse.c (raptor_xml_parse_finish_factory): Renamed from - raptor_terminate_parser_rdfxml and now static. - - * raptor_internal.h: finish_factory returns void - - * raptor_internal.h: Added finish_factory factory cleanup method. - Removed raptor_terminate_parser_rdfxml. - - * raptor_general.c (raptor_delete_parser_factories): - Free mime type, URI string. Call - new finish_factory factory method. - -2004-01-07 Dave Beckett - - * raptor_general.c: year - -2004-01-01 Dave Beckett - - * raptor_general.c: casts for string ops - - * raptor_www.c, raptor_internal.h, configure.ac: - Added WWW access with BSD libfetch. - - * raptor_www_libfetch.c: WWW access with BSD libfetch - diff --git a/ChangeLog.6 b/ChangeLog.6 deleted file mode 100644 index fdc5fcb0..00000000 --- a/ChangeLog.6 +++ /dev/null @@ -1,1812 +0,0 @@ -2005-12-21 Dave Beckett - - * configure.ac, raptor.spec.in, Makefile.am: - Write rpm release as 1 (with --enable-release) or SNAP otherwise. - - * src/turtle_parser.y, src/raptor_general.c, utils/rapper.1: - updated urls - - * docs/tmpl/section-feature.sgml: - Added @RAPTOR_FEATURE_WRITER_XML_DECLARATION - -2005-12-20 Dave Beckett - - * utils/Makefile.am: Added rapper.html to dist - - * raptor-src-config.in, LICENSE.html, Makefile.am, manifest.pl, - configure.ac: ILRT/UB link updates - -2005-11-30 Dave Beckett - - * src/raptor_xml_writer.c (raptor_xml_writer_indent): - Fix writing an extra newline at doc start. - -2005-11-26 Dave Beckett - - * src/raptor_xml_writer.c: Add automatic writing of the XML - declaration (dependent on the XML version). - (raptor_xml_writer_write_xml_declaration): Added, to support this. - New feature RAPTOR_FEATURE_WRITER_XML_DECLARATION can disable - this. - (main): Update the test code to expect an XML declaration in the - string. - - * src/raptor_parse.c: Add do-nothing switch cases for - RAPTOR_FEATURE_WRITER_XML_DECLARATION. - - * src/raptor_serialize_rdfxmla.c: Add Adobe XMP compatible output - as new serializer rdfxml-xmp based on patch from Sid Steward. - Duplicate predicates are ignored for a single subject. - - * src/raptor_serialize_rdfxml.c: Defer writing xml declaration to - the xml writer. - - * src/raptor_serialize.c: Add XML declaration writing feature - support - (RAPTOR_FEATURE_WRITER_XML_DECLARATION) for serializer. - -2005-11-25 Dave Beckett - - * configure.ac: Add test X = 1 for expat and libxml tests. Fixes - Issue#0000060 - -2005-11-22 Dave Beckett - - * src/raptor_feature.c: Added - RAPTOR_FEATURE_WRITER_XML_DECLARATION feature. - - * src/raptor.h: Added RAPTOR_FEATURE_WRITER_XML_DECLARATION to - control generating the XML declaration on serializers and XML - writer. - -2005-11-10 Dave Beckett - - * raptor.spec.in: Add gtk-doc docs to rpm - -2005-11-04 Dave Beckett - - * docs/tmpl/section-xml.sgml: new functions - - * docs/tmpl/section-feature.sgml: New feature - - * docs/libraptor.3: Updated for 1.4.8 - -2005-11-02 Dave Beckett - - * docs/raptor-sections.txt: - Added raptor_iostream_write_xml_any_escaped_string - raptor_xml_any_escape_string - - * src/turtle_parser.y, src/raptor_internal.h, src/n3_parser.y: - Added RAPTOR_ASSERT with no return value and use it for turtle and - n3 parsers. Some compilers complain at an empty 3rd macro arg - with RAPTOR_ASSERT_RETURN. - - * src/raptor_serialize_rss.c: remove ;; - - * src/raptor_rdfxml.c (raptor_generate_statement): Make predicate - type fix in reifying. - - * src/raptor_rdfxml.c (raptor_generate_statement): Make predicate - revert fix actually work. - - * RELEASE.html: Updates for 1.4.8 - - * src/raptor_rdfxml.c, src/turtle_parser.y, src/raptor_rss.c, - src/raptor.h, src/ntriples_parse.c, src/n3_parser.y: Revert - RAPTOR_IDENTIFIER_TYPE_PREDICATE to - RAPTOR_IDENTIFIER_TYPE_RESOURCE change for predicates until the - next release. - -2005-09-21 Dave Beckett - - * src/raptor_uri.c: - (raptor_new_uri_for_xmlbase, raptor_new_uri_for_retrieval): - Set ud->path_len to 1 when adding a default path of / - Fixes bug 0000045 http://bugs.librdf.org/mantis/view.php?id=45 - -2005-09-20 Dave Beckett - - * src/raptor_serialize_rdfxmla.c (raptor_rdfxmla_serialize_start): - Pass down xml_version to the raptor_xml_writer and write the - versioned header. - - * src/raptor_serialize_rdfxml.c (raptor_rdfxml_serialize_start): - Pass down xml_version to the raptor_xml_writer and write the - versioned header. - - * src/raptor_xml_writer.c: Add xml_version to raptor_xml_writer - structure. - (raptor_iostream_write_xml_element_start): Add xml_version field - and pass it down to the XML escape function. - (raptor_new_xml_writer): Init xml_version to 10. - (raptor_xml_writer_empty_element, raptor_xml_writer_start_element, - raptor_xml_writer_cdata, raptor_xml_writer_cdata_counted): Pass - down xml_version. - (raptor_xml_writer_set_feature, raptor_xml_writer_get_feature): - Handle RAPTOR_FEATURE_WRITER_XML_VERSION. - - * src/raptor_xml.c (raptor_xml_any_escape_string, - raptor_iostream_write_xml_any_escaped_string): Added, handling XML - 1.0 or XML 1.1 Error if writing #x1-#x1f (excluding #x9, #xA, #xD) - or #x7F for XML 1.0 - - * src/raptor_serialize.c (raptor_serializer_set_feature, - raptor_serializer_get_feature): Add - RAPTOR_FEATURE_WRITER_XML_VERSION - - * src/raptor_parse.c: switch on enum updates for feature - RAPTOR_FEATURE_WRITER_XML_VERSION for serializer and xml writer - - * src/raptor_feature.c: Added RAPTOR_FEATURE_WRITER_XML_VERSION - for serializer and xml writer with short name xmlVersion - - * src/raptor.h: Added RAPTOR_FEATURE_WRITER_XML_VERSION for - serializer, xml writer. Added prototypes for - raptor_xml_any_escape_string and - raptor_iostream_write_xml_any_escaped_string - - * src/raptor_internal.h: raptor_serializer_s gains an xml_version - field - - * src/raptor_sax2.c (raptor_sax2_parse_chunk): Once more with - static buffer, no vsnprintf - - * src/raptor_sax2.c (raptor_sax2_parse_chunk): Fix error message - with 2 args for expat using raptor_vsnprintf. - - * src/raptor_namespace.c (raptor_namespaces_format): XML escape - the written namespace name URI - - * tests/ex-59.rdf: correct result - - * tests/ex-59.nt, tests/ex-59.rdf: Test rdfxml serializer escapes - dquote in uri attrs - - * tests/Makefile.am: Added RDF_SERIALIZE_TEST_FILES, - RDF_SERIALIZE_OUT_FILES and ex-59 for testing the rdfxml - serializer - - * examples/Makefile.am: fix libraptor.la dir - -2005-09-18 Dave Beckett - - * src/raptor_rdfxml.c (raptor_generate_statement): When reifiying, - just copy predicate_type. - - * src/raptor_uri.c (raptor_uri_equals): Alter to accept NULL - pointers, which do not compare equal to a non-NULL URI. NULL does - equal NULL. - - * src/raptor.h: Document that RAPTOR_IDENTIFIER_TYPE_PREDICATE is - never generated by a parser from now, replaced by - RAPTOR_IDENTIFIER_TYPE_RESOURCE and - RAPTOR_IDENTIFIER_TYPE_XML_LITERAL replaced by - RAPTOR_IDENTIFIER_TYPE_LITERAL with the rdf:XMLLiteral datatype. - - * src/n3_parser.y, src/ntriples_parse.c, src/turtle_parser.y, - src/raptor_rss.c, src/raptor_rdfxml.c: Replace all - RAPTOR_IDENTIFIER_TYPE_PREDICATE with - RAPTOR_IDENTIFIER_TYPE_RESOURCE - - * src/raptor_rdfxml.c: Added a new concept for rdf:XMLLiteral - Rename RAPTOR_N_CONCEPTS to RAPTOR_RDFXML_N_CONCEPTS - (raptor_rdfxml_parse_init): Init it. - (raptor_end_element_grammar): Never generate - RAPTOR_IDENTIFIER_TYPE_XML_LITERAL, instead generate a - RAPTOR_IDENTIFIER_TYPE_LITERAL with the rdf:XMLLiteral datatype. - -2005-09-16 Dave Beckett - - * docs/libraptor.3: Update for 1.4.8 - added - raptor_set_namespace_handler - - * src/raptor_www.c, src/raptor.h: - Revert: remove raptor_www_set_source_uri, - raptor_www_set_source_file_handle, raptor_www_retrieve and - raptor_www_retrieve_to_string - -2005-09-15 Dave Beckett - - * src/raptor.h: delete unused raptor_www_fetch_to_string prototype - - * src/raptor_www.c: autodocs - (raptor_www_set_source_uri): Added to set URI for content source - (raptor_www_set_source_file_handle): Added to set URI for content - source. - (raptor_www_file_handle_fetch): Added, with guts of - raptor_www_file_fetch. - (raptor_www_file_fetch): Modified to call - raptor_www_file_handle_fetch. - (raptor_www_retrieve): Added to retrieve from whatever source (URI - or handle). - (raptor_www_retrieve_to_string): Added to retrieve from whatever - source (URI or handle) into a string. - (raptor_www_fetch): Now a wrapper over raptor_www_retrieve. - (raptor_www_fetch_to_string): Now a wrapper over - raptor_www_retrieve_to_string. - - * src/raptor.h: Added prototypes for raptor_www_set_source_uri, - raptor_www_set_source_file_handle, raptor_www_retrieve, - raptor_www_retrieve_to_string and - raptor_www_fetch_from_file_handle - - * src/raptor_internal.h: (struct raptor_www_s) gains a handle - field - - * src/raptor_parse.c: autodocs - - * src/ntriples_parse.c: autodocs and some code style fixes - -2005-09-14 Dave Beckett - - * docs/tmpl/section-parser.sgml: new functions - -2005-09-10 Dave Beckett - - * src/raptor_expat.c: Updates to use new raptor_sax2 handler - style. The user data now points at the raptor_sax2* object, not - the parser. - (raptor_expat_init): send SAX2 events to core raptor_sax2_EVENT - routines. - (raptor_expat_update_document_locator): Moved from raptor_parser.c - - * src/raptor_libxml.c: Updates to use new raptor_sax2 handler - style. The user data now points at the raptor_sax2* object, not - the parser. All raptor_parser* references are gone and - error/fatal error/warnings are returned via handler/data pairs. - (raptor_libxml_call_handler): Added to aid returning messages. - Deleted old and unused internal entity resolution code. - (raptor_libxml_init): send SAX2 events to core raptor_sax2_EVENT - routines. - - * src/raptor_internal.h: Removed old and hardly tested internal - handling of libxml entities - - * src/raptor_rdfxml.c: Rename raptor_xml_* to raptor_rdfxml_* in - structs and functions. - (raptor_rdfxml_start_element_handler, - raptor_rdfxml_end_element_handler, raptor_cdata_grammar): Move - expat BOM fixes to raptor_sax2.c - (raptor_rdfxml_parse_init): Use new raptor_sax2_set_EVENT_handler - methods. Use raptor_sax2_set_locator. - (raptor_get_libxml_context, raptor_set_libxml_document_locator, - raptor_get_libxml_document_locator, raptor_get_libxml_entities, - raptor_set_libxml_entities, raptor_expat_update_document_locator): - Deleted or merged into raptor_sax2.c - - * src/raptor_parse.c (raptor_parser_fatal_error_message_handler, - raptor_parser_error_message_handler, - raptor_parser_warning_message_handler): Added handlers that take - location in same style as user message handler callbacks. - (raptor_stats_print): Update for raptor_rdfxml_parser - - * src/raptor_locator.c (raptor_update_document_locator): Moved to - raptor_sax2.c - - * src/raptor_general.c (raptor_init, raptor_finish): Call - raptor_init_sax2 and raptor_finish_sax2 respectively. - - * src/raptor_internal.h: Removed several libxml/expat/rdxml - functions used to be too friendly with internals of other classes. - Renamed raptor_xml_parser to raptor_rdfxml_parser. Updated - prototype of raptor_libxml_update_document_locator. Added new - parser handler prototypes raptor_parser_error_message_handler, - raptor_parser_fatal_error_message_handler and - raptor_parser_warning_message_handler Added handlers for SAX2 - events - start element, end element, characters, cdata, comment, - unparsed_entity_decl, external_entity_ref named as - raptor_sax2_EVENT_handler. raptor_sax2 gains a magic field as - this is used as the user data for libxml. raptor_sax2 uses the - handler typedefs for the event handlers. raptor_sax2 gains erorr, - fatal and warning handler and data fields. Added prototypes for - raptor_init_sax2 and raptor_finish_sax2. Updated prototype for - raptor_new_sax2. Added prototypes for - raptor_sax2_set_start_element_handler, - raptor_sax2_set_end_element_handler, - raptor_sax2_set_characters_handler, raptor_sax2_set_cdata_handler, - raptor_sax2_set_comment_handler, - raptor_sax2_set_unparsed_entity_decl_handler and - raptor_sax2_set_external_entity_ref_handler Added prototype for - raptor_sax2_set_locator. Added prototypes for: - raptor_sax2_start_element raptor_sax2_end_element, - raptor_sax2_characters, raptor_sax2_cdata, raptor_sax2_comment, - raptor_sax2_unparsed_entity_decl and - raptor_sax2_external_entity_ref. - - * src/raptor_sax2.c: Now a more complete class - (raptor_init_sax2, raptor_finish_sax2): Added, calling any static - initialising/finishing. - (raptor_new_sax2): Added error, fatal_error and warning data and - handler registers. Register magic for libxml2 user_data fixups - (raptor_sax2_set_start_element_handler, - raptor_sax2_set_end_element_handler, - raptor_sax2_set_characters_handler, raptor_sax2_set_cdata_handler, - raptor_sax2_set_comment_handler, - raptor_sax2_set_unparsed_entity_decl_handler, - raptor_sax2_set_external_entity_ref_handler): Added for setting - SAX2 callback handlers. - (raptor_sax2_set_locator): Added, to set SAX2 file locator. - (raptor_sax2_parse_chunk): Update for new handlers, remove all - mention of raptor_parser. Use this object (raptor_sax2*) as the - user data now, not an external raptor_parser*. - (raptor_sax2_update_document_locator): Added, updating the current - location for the internal parser. - (raptor_sax2_start_element): Added, internal function calling the - start element handler, adding various workarounds needed. - (raptor_sax2_end_element): Added, internal function calling the - end element handler, adding various workarounds needed. - (raptor_sax2_characters, raptor_sax2_cdata, raptor_sax2_comment, - raptor_sax2_unparsed_entity_decl, - raptor_sax2_external_entity_ref): Added, internal functions - calling the same-named handler. - -2005-09-09 Dave Beckett - - * src/raptor_qname.c: autodocs - - * docs/raptor-sections.txt: Added new functions. - - * src/raptor_internal.h (raptor_parser_s): Add new fields to the - end of the struct; add unused1 to try to make old offsets work - - * src/raptor_namespace.c (raptor_namespaces_init): Remove - un-necessary casts for constant namespace names. - - * src/raptor_uri.c (raptor_uri_uri_string_to_filename_fragment): - For win32, only remove leading / if there is one present. (patch - from John C. Barstow) - (main): Correct test case result to match above. - - * src/raptor_xslt.c (raptor_xslt_parse_chunk): If the content is - in one chunk and is_end is true, call xmlParseChunk with the - is_end flag. (patch from René Puls) - -2005-09-07 Dave Beckett - - * src/n3_parser.y, src/turtle_parser.y (statement): - Handle error recovery when subject is NULL - -2005-09-06 Dave Beckett - - * src/turtle_common.c (raptor_stringbuffer_append_turtle_string): - Do not check unsigned for <0 - - * src/raptor_xml.c (raptor_xml_name_check): - Do not check unsigned for <0 - - * src/raptor_utf8.c (raptor_utf8_check): Do not check unsigned for <0 - - * src/raptor_serialize.c (raptor_serializers_enumerate): - counter can never be <0 - - * src/raptor_rdfxml.c (raptor_element_content_type_as_string): - Do not check unsigned for <0 - - * src/raptor_feature.c (raptor_feature_value_type): - Do not check unsigned for <0 - - * src/ntriples_parse.c (raptor_ntriples_term): - Do not check unsigned for <0 - - * src/raptor_parse.c (raptor_syntaxes_enumerate): - counter can never be <0 - -2005-08-24 Dave Beckett - - * src/Makefile.am: Add more conditional compiles for serializers - - * src/Makefile.am: Added raptor_serialize_rdfxml.c - raptor_serialize_ntriples.c raptor_serialize_simple.c - - * src/raptor_serialize.c: Moved specific serializers into separate - files - rdfxml, ntriples, simple - - * src/raptor_serialize_rdfxml.c: RDF/XML serializer - - * src/raptor_serialize_ntriples.c: N-Triples serializer - - * src/raptor_serialize_simple.c: Simple serializer - - * src/raptor-config.in, src/raptor-config.1: - s/features/options/ so not to confuse with raptor_feature - - * utils/rapper.c: - Add HELP_TEXT_LONG to deal with help that has no short option. - - * utils/rapper.c: fix --show-namespaces help - - * utils/rapper.1: Added --show-namespaces - - * utils/rapper.c: (print_namespaces) Added - Added --show-namespaces option - long options only. - - * src/turtle_parser.y, src/raptor_rdfxml.c, src/n3_parser.y: - Handle raptor_new_namespace failing. - - * src/turtle_parser.y, src/raptor_rdfxml.c, src/n3_parser.y: - Remove calls to raptor_namespaces_start_namespace_full and use the - three functions raptor_new_namespace, - raptor_namespaces_start_namespace and - raptor_parser_start_namespace instead. - - * src/raptor_parse.c (raptor_set_namespace_handler): Added. New - user method. - (raptor_parser_start_namespace): Added. Internal function to - operate when namespaces are declared. - - * src/raptor.h: Added raptor_namespace_handler typedef. Added - raptor_set_namespace_handler prototype. - - * src/raptor_internal.h: raptor_parser_s gains namespace_handler - and namespace_handler_user_data fields. Added - raptor_parser_start_namespace prototype. - -2005-08-24 Dave Beckett - - * tests/Makefile.am: link to libxml2 bug report - - * src/raptor_rss.c (raptor_rss_emit_type_triple, - raptor_rss_emit_enclosure, raptor_rss_emit_connection): Zap - literal language and datatype before setting up statement objects. - - * src/ntriples_parse.c (raptor_ntriples_generate_statement): Zap - literal language and datatype before setting up statement objects. - - * src/n3_parser.y (raptor_n3_generate_statement): Zap literal - language and datatype for !literals. Add assertion. - - * src/raptor_internal.h (RAPTOR_ASSERT_RETURN): Remove ()s around - return to allow no-value. - - * src/turtle_parser.y (raptor_turtle_generate_statement): Zap - literal language and datatype for !literals. Add assertion. - -2005-08-22 Dave Beckett - - * src/raptor.h: autodocs fixes - - * src/raptor.h: autodocs - - * docs/raptor-sections.txt: raptor_uri_init now internal - - * src/raptor_parse.c: autodocs - - * docs/tmpl/section-unused.sgml: raptor_uri_init now internal - - * docs/tmpl/section-general.sgml, src/raptor_internal.h: Remove - unused container_test_handler function. - - * src/raptor.h, src/raptor_xml.c, src/raptor_sequence.c, - src/raptor_iostream.c, src/raptor_stringbuffer.c: autodocs - - * docs/raptor-sections.txt: No raptor_container_test_handler - - * src/raptor.h: raptor_uri_init was internal - - * src/raptor_uri.c: autodocs - - * src/raptor_internal.h: raptor_uri_init was internal - - * src/raptor_uri.c: autodocs - -2005-08-19 Dave Beckett - - * Makefile.am: Enable gtk doc with make distcheck - - * docs/tmpl/section-xml-namespace.sgml: args - - * src/raptor_namespace.c, src/raptor.h, src/raptor_xml.c, - src/raptor_serialize.c, src/raptor_qname.c, src/raptor_parse.c, - src/raptor_iostream.c, src/raptor_sequence.c, - src/raptor_general.c, src/raptor_feature.c: autodocs - - * docs/version.xml.in: version.xml.in - - * docs/tmpl/section-serializer.sgml: whitespace - - * src/raptor_sequence.c: autodocs - - * src/raptor_xml.c (raptor_xml_escape_string): autodocs escapes - - * src/ntriples_parse.c, src/raptor.h, src/raptor_feature.c, - src/raptor_general.c, src/raptor_identifier.c, - src/raptor_iostream.c, src/raptor_locator.c, - src/raptor_namespace.c, src/raptor_nfc.c, src/raptor_nfc_test.c, - src/raptor_parse.c, src/raptor_qname.c, src/raptor_rdfxml.c, - src/raptor_rfc2396.c, src/raptor_sequence.c, - src/raptor_serialize.c, src/raptor_serialize_rdfxmla.c, - src/raptor_set.c, src/raptor_stringbuffer.c, src/raptor_uri.c, - src/raptor_utf8.c, src/raptor_www.c, src/raptor_www_libwww.c, - src/raptor_xml.c, src/raptor_xml_writer.c, src/turtle_common.c: - autodocs reformatted for gtk-doc - - * docs/tmpl/section-constants.sgml, - docs/tmpl/section-feature.sgml, docs/tmpl/section-general.sgml, - docs/tmpl/section-iostream.sgml, docs/tmpl/section-locator.sgml, - docs/tmpl/section-memory.sgml, docs/tmpl/section-parser.sgml, - docs/tmpl/section-sequence.sgml, - docs/tmpl/section-serializer.sgml, - docs/tmpl/section-stringbuffer.sgml, - docs/tmpl/section-triples.sgml, docs/tmpl/section-unicode.sgml, - docs/tmpl/section-unused.sgml, docs/tmpl/section-uri-factory.sgml, - docs/tmpl/section-uri.sgml, docs/tmpl/section-www.sgml, - docs/tmpl/section-xml-namespace.sgml, - docs/tmpl/section-xml-qname.sgml, docs/tmpl/section-xml.sgml: - initial templates - - * docs/raptor-docs.xml: fix - - * docs/raptor-docs.xml, docs/raptor-overrides.txt, - docs/raptor-sections.txt: gtk-doc files - - * docs/Makefile.am, configure.ac: Enable gtk-doc - - * configure.ac: check for gtk-doc - -2005-08-19 Dave Beckett - - * src/raptor-config.1: Document --features and --help. Order - flags alphabetically in summary and body. - - * src/raptor-config.in: Add --features argument to list configured - or discovered features of the raptor library - - * configure.ac: Add AC_SUBSTs for recording discovered features: - RAPTOR_WWW_LIBRARY (or none), RAPTOR_XML_PARSER (or none), - RAPTOR_PARSERS (list) and RAPTOR_SERIALIZERS (list). - -2005-08-18 Dave Beckett - - * src/raptor_sax2.c (raptor_sax2_parse_start): Fix for expat - - * src/raptor_rdfxml.c (raptor_xml_unparsed_entity_decl_handler, - raptor_xml_external_entity_ref_handler): Casts for gcc4 - - * src/raptor_expat.c (raptor_expat_init): Casts for expat to use - sax2 handlers. - - * src/raptor_internal.h: Move raptor_sax2 declaration outside - libxml-only block Fixup general arguments for - raptor_xml_unparsed_entity_decl_handler and - raptor_xml_external_entity_ref_handler. - - * src/raptor_rdfxml.c (raptor_xml_unparsed_entity_decl_handler, - raptor_xml_external_entity_ref_handler): Generalise args from - expat-specific. - (raptor_xml_parse_init): Init sax2 handler fields - - * src/raptor_libxml.c (raptor_libxml_init): Use sax2 structure - handlers - - * src/raptor_expat.c (raptor_expat_init): Use sax2 structure - handlers - - * src/raptor_internal.h: raptor_sax2 gains handlers for start/end - element, characters, cdata, comment, unparsed entity declaration, - extenal entity reference. - - * src/raptor_sax2.c (raptor_sax2_parse_start): Init expat and - libxml the same - - * src/raptor_libxml.c (raptor_libxml_init): Take raptor_sax2* and - raptor_uri* args - - * src/raptor_expat.c (raptor_expat_init): Take raptor_sax2* and - raptor_uri* args - - * src/raptor_internal.h: raptor_libxml_init and raptor_expat_init - take same args - - * src/turtle_parser.y, src/raptor_xslt.c, src/raptor_rss.c, - src/raptor_rdfxml.c, src/raptor_guess.c, src/ntriples_parse.c, - src/n3_parser.y: Update uses of raptor_parser_register_factory to - remove alias argument and add calls to - raptor_parser_factory_add_alias for raptor - (rdfxml) and ntriplesplus (turtle) - - * src/raptor_internal.h: Update raptor_parser_register_factory - prototype to return the registered factory and remove the alias - arg. Added prototype for raptor_parser_factory_add_alias - - * src/raptor_parse.c (raptor_parser_register_factory): Now returns - the registered factory. Removed alias arg into new function: - (raptor_parser_factory_add_alias): Added. - -2005-08-17 Dave Beckett - - * src/Makefile.am: maintainer clean n3 files - - * src/Makefile.am: clean n3 tests - - * src/n3_lexer.l (n3_lexer_syntax_error): Added, from turtle. - - * src/n3_lexer.l: Added n3_lexer_syntax_error - (\"\"\"): Copy just the len and always terminate the - string. - (n3_copy_string_token): Handle empty strings without stringbuffer - and use raptor_stringbuffer_append_turtle_string for escapes. - Ensure string is always termianted. - - * src/n3_common.h: added stringbuffer field - - * src/turtle_parser.y: Expect 9 conflicts. Added FLOATING_LITERAL - (FLOATING_LITERAL): Use raptor_new_identifier_from_double common - with n3. - - * src/n3_parser.y (FLOATING_LITERAL): Use - raptor_new_identifier_from_double common with turtle. - - * src/turtle_lexer.l (\"\"\"): Copy just the len and - always terminate the string. Added doubles to Turtle. - (turtle_copy_string_token): Handle empty strings without - stringbuffer. Ensure string is always termianted. - (turtle_token_print): Print FLOATING_LITERAL - - * tests/turtle/test-20.ttl, tests/turtle/test-20.out, - tests/turtle/Makefile.am: Add test-20 for empty literals - - * tests/turtle/Makefile.am: re-add test-19 - -2005-08-16 Dave Beckett - - * src/raptor_internal.h: Added raptor_new_identifier_from_double - pointer - - * src/raptor_xsd.c: raptor_xsd.c - - * src/Makefile.am: Added raptor_xsd.c - - * src/n3_parser.y, src/n3_lexer.l: Add double constants to N3 - parser - - * src/n3_lexer.l (main): Make uri_string an unsigned char* - - * tests/turtle/Makefile.am: remove test-19 for now, no double - constants - - * tests/turtle/Makefile.am, tests/turtle/test-19.out, - tests/turtle/test-19.ttl: added test-19 for 1.0 as a double - - * src/Makefile.am: Add turtle_common.c - - * tests/turtle/test-18.out: Remove header/footer - - * src/turtle_parser.y: 2005 - - * src/turtle_lexer.l: Added turtle_lexer_syntax_error Build up - long strings inside a stringbuffer with - raptor_stringbuffer_append_turtle_string and avoid greedy match of - """s - (turtle_copy_string_token): Use - raptor_stringbuffer_append_turtle_string - (turtle_lexer_syntax_error): Added. - - * src/raptor_internal.h: Added - raptor_stringbuffer_append_turtle_string prototype - - * src/turtle_common.h: Added raptor_stringbuffer* field sb - - * src/turtle_common.c: Raptor Turtle common code with - raptor_stringbuffer_append_turtle_string from raptor_turtle.l - - * tests/turtle/Makefile.am, tests/turtle/test-18.out, - tests/turtle/test-18.ttl: Added test-18 for multiple long literals - with escapes - - * src/raptor_serialize_rss.c (raptor_rss10_emit_item): Die in - debug mode with NULL item - all calls to this are currently - wrapped with a check. - (raptor_rss10_emit_item): Do not emit atom author when no such - item exists. - - * manifest.pl: typo - -2005-08-11 Dave Beckett - - * autogen.sh: Rewrite with functions, generalize to any redland - package. Add docs. - - * raptor.spec.in: - Update Source: - - Use %makeinstall - -2005-08-10 Dave Beckett - - * raptor.spec.in: Use %configure and %{_make} - -2005-08-08 Dave Beckett - - * src/raptor_rss_common.c, src/raptor_rss.c, - src/raptor_internal.h: Move time.h and sys/time.h #ifdef and - includes to raptor_internal.h since time_t is mentioned there and - visible to all files. - - * tests/Makefile.am: adjust -I to point to srcdir for - raptor_empty_test - -2005-07-31 Dave Beckett - - * src/raptor_xml_writer.c (main): syntax - - * src/raptor_uri.c: Add (void) casts for fwrite debug messages - - * src/raptor_xml_writer.c, src/raptor_rdfxml.c, src/raptor_nfc_test.c: - Add (void) casts for fwrite debug messages - - * Source re-organisation - libraptor code moved to new src/ dir. - rapper and rdfdif moved to new utils/ dir. Other manual pages to - docs/. - -2005-07-27 Dave Beckett - - * Makefile.am: Add n3_lexer_test, n3_parser_test for maintainer - - * n3_parser.y, turtle_parser.y (main): Make it compile - - * n3_parser.y: Updates from turtle_parser.y: - gcc4 ignored return warning fixes: - (main): Check fread() return value and throw a user error. - (main): Fix for gcc4 - (main) Move filename here - - * examples/grapper.c: Add author url - - * raptor_rss.c (raptor_rss_uplift_fields): Add possibility of - normalizing fields, but no code to do it yet. - - * raptor_rss_common.c (raptor_rss_date_uplift): fail and do - nothing if function returns <0 - - * raptor_rss.c (raptor_rss_uplift_fields): Moved date code into - raptor_rss_date_uplift and call it. - - * raptor_rss.h: Added raptor_rss_date_uplift prototype - - * raptor_rss_common.c (raptor_rss_date_uplift): Added, pulled out - of raptor_rss.c - - * turtle_parser.y: gcc4 ignored return warning fixes: - (main): Check fread() return value and throw a user error. - -2005-07-25 Dave Beckett - - * examples/grapper.c (fs_ok_button_callback): Protect from - defining when when not used as a callback. - (open_button_callback): cast for gcc4 - -2005-07-24 Dave Beckett - - * raptor_rss.c (raptor_rss_parser_processNode): for rss:link and - atom:link with href, allow multiple link for atom, and continue to - ignore all but for rss. - - * raptor_rss_common.c: Tidying. - Added atom:feed and atom:entry to raptor_rss_types_info. - Declare atom namespace URI string raptor_atom_namespace_uri - - * raptor_rss.h: Added RAPTOR_ATOM_FEED, RAPTOR_ATOM_ENTRY. - - * raptor_serialize_rss.c: Add atom 1.0 serializing by generalising - rss 1.0 serializing. Change field names to reflect this - rdf_nspace -> default_nspace, rdf_RDF_element -> root_element. - Add is_atom flag. - (raptor_rss10_serialize_init): Init is_atom flag. - (raptor_rss10_move_statements, raptor_rss10_store_statement): - Rename back fields translated to rss: namespace. - (raptor_rss10_build_xml_names): Init namespace qname for rss/atom. - Declare the default namespace to rss/atom. Ignore all item types - but rss:item for atom; all but atom:author for rss. For item node - type use atom:entry / rss:item. - (raptor_rss10_emit_item): Add emit_container flag to prevent - generating the containing elements. For atom:author, generate it - inline for atom, ignore it for rss. When generating URI-valued - fields for atom, make them element content. For atom, do not - generate rdf:Seq block. - (raptor_rss10_serialize_end): Only emit node type rss:item (aka - atom:entry) for atom. - (raptor_init_serializer_atom): Added. - - * configure.ac: Added atom serializer, enabled for maintainer - only. - - * raptor_general.c (raptor_init): Add call to - raptor_init_serializer_atom if enabled - - * raptor_internal.h: Added prototype for - raptor_init_serializer_atom Added raptor_atom_namespace_uri - - * raptor_serialize_rss.c (raptor_rss10_serialize_end): End with an - error if no rss channel was found. - - * Makefile.am: Use RAPTOR_SERIALIZER_RSS_1_0 for new separate rss - serializer. Use RAPTOR_RSS_COMMON when either rss parser or - serializer is needed. - - * configure.ac: RSS 1.0 serializer is always available and does - not need the libxml requirements of the RSS tag soup parser. - Added RAPTOR_SERIALIZER_RSS_1_0 define and makefile conditional. - Added RAPTOR_RSS_COMMON when any rss code is needed. - - * raptor_rss.c, raptor_rss_common.c, raptor_serialize_rss.c: Moved - common code between parser and serializer from raptor_rss.c into - new raptor_rss_common.c as new class raptor_rss_model. Moved - rss-1.0 serializer into new raptor_serialize_rss.c. Both can be - compiled independent of the other. - - * raptor_rss.h: Redland Parser Toolkit Internal RSS Model and API - - * raptor_internal.h: Add RAPTOR_PARSEDATE_FUNCTION macro for - parsedate.c - - * raptor_general.c (raptor_init): Use define - RAPTOR_SERIALIZER_RSS_1_0 to call raptor_init_serializer_rss10 - - * raptor_xml.c, raptor_sax2.c: Moved raptor_new_xml_element, - raptor_free_xml_element, raptor_xml_element_set_attributes, - raptor_xml_element_declare_namespace, raptor_print_xml_element, - raptor_iostream_write_xml_element from raptor_sax2.c to - raptor_xml.c - -2005-07-23 Dave Beckett - - * raptor_rss.c: More base URIs on base URIs fixes. - (raptor_rss_parser_processNode): Ensure base URI is always copied - at start element, always freed at end element. Make sure xml:base - processing is done for all elements including document and - typed-node ones. - (raptor_rss_parse_chunk): Remove duplicate document base URI - setting. - -2005-07-22 Dave Beckett - - * raptor_rss.c: raptor_rss_info gains flags field to store - RAPTOR_RSS_INFO_FLAG_URI_VALUE where the value of the element - value is always a URI. Apply that to atom:id, - atom:icon and atom:logo. struct raptor_rss_parser_context_s gains - a sequence of base URIs per-element. - (raptor_rss_context_init, raptor_rss_context_terminate): Init and - free sequence of base URIs. - (raptor_rss_parse_start): Start base URI sequence with parser base - URI. - (raptor_rss_parser_processNode): Init base_uri from top of stack - of base URIs. Update base_uri from an xml:base arg, relative to - the current base URI. Use the base URI for all URi constructions. - Push the new base URI after an element has been found. Pop the - base URI at the end of an element. At the end of an element, if - the field always has a URI value, convert it. - (raptor_rss_parse_chunk): Init the URI sequence with the parser - base URI. - - * raptor_rss.c: map raptor_atom_to_rss: turn more atom cloned rss - fields into rss fields. - (raptor_rss_uplift_fields): Change default action to copy - (duplicate) fields. - (raptor_rss10_emit_item): Do not emit link to atom:author types in - rss1.0 - (raptor_rss10_serialize_end): Do not emit atom:author type in - rss1.0 - - * raptor_rss.c: Added atom 1.0 namespace (ATOM1_0_NAMESPACE_URI, - ASTOM1_0_NS) and terms. Turn old atom 0.3 terms into 1.0 versions - where known using raptor_atom_to_rss. - (raptor_rss_parser_processNode): Handle atom feed element - properly, make a new channel item. Convert atom 0.3 namespaced - elements to atom 1.0 Use atom:id to get a URI for the feed/entry - Copy atom:published to dc:date and atom:rights to dc:rights via - raptor_rss_uplift_map. - (raptor_rss_uplift_fields): Copy dc:date and atom:rights - - * raptor_rss.c: Added content: namespace CONTENT_NAMESPACE_URI, - prefix "content:" - Added content:encoded field RAPTOR_RSS_FIELD_CONTENT_ENCODED - (raptor_rss_uplift_fields): Added an uplift from description to - content:encoded - (raptor_rss10_emit_item): Write content:encoded using - - -2005-07-19 Dave Beckett - - * raptor_guess.c (raptor_guess_parse_chunk): unused var parser - - * ntriples_parse.c (raptor_init_parser_ntriples): Do not register - interest in text/plain -- too general. - -2005-07-18 Dave Beckett - - * raptor_guess.c: Slim down, to use raptor_parser_exec. - (raptor_guess_parse_start): Deleted again. - (raptor_guess_parse_chunk): Use guessing and raptor_parser_exec to - switch to the right parser. - - * raptor_internal.h: Added prototype to raptor_parser_exec - - * raptor_parse.c (raptor_parser_exec): Added to turn one parser - type into another in-situ. - - * rdfdump.c: make -g invoke the guess parser and report the - resulting parser at the first triple returned - - * raptor_guess.c (raptor_guess_parse_start): Added. - (raptor_guess_parse_chunk): Pass in buffer to - raptor_guess_parser_name since we have it. Work with no - content_type such as when using a filename alone. - - * ntriples_parse.c (raptor_ntriples_parse_chunk): Handle ending on - \r\n by updating 'start' by 1 position. - - * ntriples_parse.c (raptor_ntriples_term): Check sscanf return to - catch bad \u or \U hex escape. - - * turtle_lexer.l (turtle_copy_string_token): Check sscanf return - to catch bad \u or \U hex escape. - - * raptor_general.c (raptor_init): Added guessing parser - - * configure.ac, Makefile.am: Added raptor_guess.c - - * raptor_guess.c: guessing parser using content type and an - internal parser - - * raptor_xslt.c (raptor_xslt_parse_start): No need to init column, - byte locator. - - * raptor_rdfxml.c (raptor_xml_parse_recognise_syntax): Guess that - application/xml is likely RDF/XML - - * raptor_internal.h: raptor_parser_factory_s gains a - content_type_handler field. - - * raptor_parse.c (raptor_start_parse): Init locator line, column, - byte to -1 (unknown) - (raptor_parse_uri_content_type_handler): Added to handle - raptor_www content type field return. Pass on to factory method - content_type_handler if present. - (raptor_parse_uri_with_connection): Init - raptor_parse_uri_content_type_handler to receive raptor_www - callbacks using raptor_www_set_content_type_handler. - (raptor_guess_parser_name): Check static buffer size for overflow. - Add some comments. - - * raptor_xslt.c (raptor_xslt_parse_start): Use - raptor_parser_copy_user_state - - * raptor_parse.c (raptor_parser_copy_user_state): Added. - - * raptor_internal.h: Added prototype for raptor_parser_copy_user_state - - * tests/ex-58.rdf, tests/ex-58.out, tests/Makefile.am: Added ex-58. - See http://lists.w3.org/Archives/Public/www-archive/2005Jul/0017.html - for discussion. - - * raptor_rdfxml.c (raptor_end_element_grammar): When emitting - literals, handle a datatyped empty literal. Merge the property - element/member property element code. - - * tests/ex-57.rdf, tests/ex-57.out, tests/Makefile.am: Added ex-57. - See http://lists.w3.org/Archives/Public/www-rdf-comments/2005AprJun/0000.html - for discussion. - -2005-07-13 Dave Beckett - - * turtle_lexer.l: Switch qname, blank node and prefix definitions - to SPARQL ones. - (main): Fixes for gcc4 - - * turtle_parser.y (main): Fix for gcc4 - - * raptor_utf8.c (raptor_unicode_is_xml11_namechar): - Call raptor_unicode_is_xml11_namestartchar. - -2005-07-01 Dave Beckett - - * configure.ac: Check for isascii, for parsedate.y - - * parsedate.y: Update source links - -2005-06-29 Dave Beckett - - * raptor_rss.c (raptor_rss_uplift_fields): Fix valid condition. - - * raptor_rss.c: raptor_rss_uplift_map - added, rss091:pubDate -> - dc:date in ISO format - (raptor_rss_uplift_fields): Added, to search for fields to uplift. - (raptor_rss_uplift_items): Added, to scan items to uplift. - (raptor_rss_parse_chunk): Call raptor_rss_uplift_items. - -2005-06-17 Dave Beckett - - * raptor.spec.in: License not Copyright header - -2005-06-12 Dave Beckett - - * raptor_rss.c: update for INN parsedate - - * configure.ac: Look for parsedate in libINN - -2005-06-11 Dave Beckett - - * Makefile.am: Add parsedate.y to EXTRA_DIST - - * configure.ac: Better check for parsedate function - - * raptor_rss.c: Add the time includes for AC_HEADER_TIME - - * configure.ac: Add the standard AC_HEADER_TIME checks. - - * raptor_rss.c: Turn rss091:date into dc:date using a date parsing - function PARSEDATE_FUNCTION to decode it and strftiem to make the - new ISO format. - - * configure.ac: Get date parsing code from parsedate, curl - curl_getdate or raptor parsedate if neither is available. - - * Makefile.am: Add parsedate.c if PARSEDATE defined Build - parsedate.c from parsedate.y - - * parsedate.y: Fixes to build in raptor - - * parsedate.y: Imported public domain date parsing code from - http://cvs.php.net/php-src/ext/standard/parsedate.y - -2005-06-10 Dave Beckett - - * raptor_rss.c: Added Suzan Foster to copyright - -2005-06-08 Dave Beckett - - * rdfdiff.c: Casts for c++ - - * win32_raptor_config.h, configure.ac: Bumped version to 1.4.8 - - * Snapshotted raptor_1_4_7 for 1.4.7 release - - * libraptor.3: Note no changes in 1.4.6 and 1.4.7 - -2005-06-07 Dave Beckett - - * raptor_serialize_rdfxmla.c (raptor_new_qname_from_resource): - Fail to split predicate if entire uri is an XML name - it's - probably not an absolute URI. - - * raptor_serialize.c (raptor_rdfxml_serialize_statement): Fail to - split predicate if entire uri is an XML name - it's probably not - an absolute URI. - - * raptor_namespace.c (raptor_namespaces_find_namespace_by_uri): - Return NULL if ns_uri is NULL. - -2005-06-06 Dave Beckett - - * raptor_rss.c (raptor_rss_emit): - Fix crash when no RSS channel is present (Suzan Foster) - -2005-06-01 Dave Beckett - - * Makefile.am: Added ChangeLog.[2-5] - - * ChangeLog: 2004 to ChangeLog.5 - - * raptor_rss.c (raptor_rss_parser_processNode): Copy attribute - value before storing in the item field. - -2005-05-25 Dave Beckett - - * raptor_xslt.c: docs - -2005-05-22 Dave Beckett - - * configure.ac: Test for libxslt/xslt.h as well as library, and - disable if missing. - -2005-05-19 Dave Beckett - - * configure.ac, win32_raptor_config.h: Bumped version to 1.4.7 - - * Snapshotted raptor_1_4_6 for 1.4.6 release - - * win32/Makefile.am, win32/rapper.vcproj, win32/raptor.sln, - win32/raptor.vcproj, win32/raptortest.vcproj: Import configuration - from John Barstow - - * win32/README.txt: updates - - * win32_raptor_config.h: Switch to libxml - - * win32_raptor_config.h: Spelling: RAPTOR_INLINE - - * raptor_general.c (raptor_init): Added conditionals around - serializers: RAPTOR_SERIALIZER_RDFXML/NTRIPLES/RDFXML_ABBREV - - * Makefile.am: Added conditionally included - RAPTOR_SERIALIZER_RDFXML_ABBREV - - * configure.ac: Added --enable-serializers=LIST and serializers to - summary. Reformat other help messages to match. - -2005-05-18 Dave Beckett - - * turtle_parser.y: (main) Move filename here - - * configure.ac: Add proper check for libxslt - - * configure.ac: default memory-signing no - - * configure.ac, rdfdump.c: Bugs to http://bugs.librdf.org/ - -2005-05-17 Dave Beckett - - * raptor_identifier.c, raptor_parse.c, raptor_serialize.c, - raptor_serialize_rdfxmla.c, raptor_sax2.c, raptor_rdfxml.c: Casts - for RAPTOR_FREE - - * configure.ac: usage message formatting - - * raptor_general.c (raptor_free_statement): Casts for RAPTOR_FREE - - * configure.ac: Added --with-memory-signing raptor signing memory - debugging Reformatted some other --with help messages. - - * raptor_general.c (raptor_sign_malloc, raptor_sign_calloc, - raptor_sign_realloc, raptor_sign_free): Added raptor signing - memory debugging trigged by RAPTOR_MEMORY_SIGN. - - * raptor_internal.h: Added raptor signing memory debugging trigged - by RAPTOR_MEMORY_SIGN - - * n3_lexer.l: Use RAPTOR_MALLOC, RAPTOR_FREE - - * n3_parser.y, turtle_parser.y (directive, resource): Use - RAPTOR_MALLOC, RAPTOR_FREE - - * turtle_lexer.l: Use RAPTOR_MALLOC, RAPTOR_FREE - - * rdfdiff.c: - (rdfdiff_new_file, rdfdiff_new_blank) Use RAPTOR_MALLOC rather - than strdup. - - * raptor_www_curl.c (raptor_www_curl_header_callback): Use - RAPTOR_MALLOC on type field data. - - * rdfdump.c: Add raptor_finish() before usage exit - -2005-05-13 Dave Beckett - - * raptor_rss.c: Casts for C++ - - * raptor_serialize_rdfxmla.c (raptor_rdfxmla_serialize_init, - raptor_rdfxmla_serialize_terminate): Init/free rdf_xml_literal_uri - for the rdf:XMLLiteral URI. - (raptor_rdfxmla_serialize_statement): Turn datatyped literals that - are rdf:XMLLiteral into inline XML, not escaped. - -2005-05-12 Dave Beckett - - * raptor_serialize.c (raptor_rdfxml_serialize_init, - raptor_rdfxml_serialize_terminate): Init/free rdf_xml_literal_uri - for the rdf:XMLLiteral URI. - (raptor_rdfxml_serialize_statement): Turn datatyped literals that - are rdf:XMLLiteral into inline XML, not escaped. - -2005-05-10 Dave Beckett - - * configure.ac: Change quotes around bison test - - * configure.ac: Try to work for older bison version styles - -2005-05-08 Dave Beckett - - * raptor_rss.c: - Update from Suzan Foster to reflect the latest status of the - enclosure vocabulary and allow multiple common items and fields. - Fields in items are now a linked list of raptor_rss_field items. - (raptor_rss_context_init): Empty common area. - (raptor_enclosure_free): Use raptor_enclosure_free to empty enclosure - list. - (raptor_rss_field_free): Added to free a list of rss fields. - (raptor_clear_rss_item): Use raptor_rss_field_free for freeing - duplicate fields. - (raptor_clear_rss_common_items): added to empty common item field - lists. - (raptor_rss_context_terminate): Empty common item fields with - raptor_clear_rss_common_items. - (raptor_rss_new_field): Added. - (raptor_rss_enclosure_add): Added. - (raptor_rss_field_add): Added to add a new field value to the list of - values for one field item. - (raptor_rss_common_add): Added to add a new common item to the list - of common items for the current type. - (raptor_rss_common_get): Added to get the last common item for the - current type. - (raptor_rss_parser_processNode): Updates for new fields structure. - (raptor_rss_insert_enclosure_identifiers): Update for handling uris - and bnodes. - (raptor_rss_insert_identifiers): Update for lists for common items - and lists of ields. - (raptor_rss_emit_enclosure): Update for handling uris and bnodes. - (raptor_rss_emit_item, raptor_rss_emit, raptor_rss10_move_statements, - raptor_rss10_store_statement, raptor_rss10_serialize_statement, - raptor_rss10_build_xml_names): Updates for lists of common items and - lists of fields. - (raptor_rss10_emit_item): Added fix for moving fields to the item - when they got stuck on the enclosure when the enclosure uri = the guid. - Updates for lists of common items and lists of fields. - (raptor_rss10_serialize_end): Updates for lists of common items and - lists of fields. - -2005-05-04 Dave Beckett - - * win32_raptor_config.h: Added SIZEOF_UNSIGNED_SHORT - -2005-04-17 Dave Beckett - - * autogen.sh: allow envariables to override the programs - -2005-04-16 Dave Beckett - - * raptor_iostream.c (raptor_string_iostream_finish): - Fixes bug 0000021: the output of to_string for an empty model should - always be parsable and result in an empty model - http://bugs.librdf.org/mantis/view.php?id=21 - - * raptor_iostream.c (raptor_string_iostream_finish): - Return an empty string "" (aka 1 - byte, \0) when the stringbuffer is NULL, do not return the NULL. - -2005-04-14 Dave Beckett - - * raptor_parse.c: docs typo - -2005-04-11 Dave Beckett - - * tests/Makefile.am, tests/ex-56.out, tests/ex-56.rdf: - Added ex-56 test that relative URIs in datatypes work (Graham Klyne) - -2005-04-08 Dave Beckett - - * raptor_xml_writer.c, raptor_serialize_rdfxmla.c, - raptor_serialize.c, raptor_rdfxml.c, raptor_parse.c, - raptor_general.c: Add missing switch cases to make -Wswitch-enum - happy. - - * configure.ac: More gcc -W flags in maintainer mode. - - * raptor_xslt.c: Casts for C++ - -2005-04-07 Dave Beckett - - * raptor_xslt.c (raptor_init_parser_grddl): Expand grddl parser - description. - - * libraptor.3: - Added missing 1.4.5 API changes, adding XML writer features and - support functions as used by the rdf/xml-abbrev serializer. - - * tests/Makefile.am: - test should use = not == for string compare portability - -2005-04-06 Dave Beckett - - * raptor_xslt.c: - Added a list of XPaths to try, fixed searching for a profile. - Now handles 2 XHTML forms and XML. - (raptor_xslt_parse_chunk): Walk through the list of XPaths. - Do not give an error if no GRDDL is found, 0 triples are ok. - - * raptor_libxml.c (raptor_libxml_error_common): - Added, passing in prefix and is_fatal - flag. Handle NULL ctx and hence NULL parser. - (raptor_libxml_error, raptor_libxml_generic_error, - raptor_libxml_fatal_error, raptor_libxml_validation_error): Use the - new function, share very common code. - - * raptor_parse.c (raptor_parser_error_varargs): Survive a NULL parser. - - * raptor_rdfxml.c (raptor_get_libxml_context, - raptor_set_libxml_document_locator, - raptor_get_libxml_document_locator): Survive NULL rdf_parser - calls. - - * raptor_internal.h: Added - raptor_libxml_init_generic_error_handlers prototype - - * raptor_xslt.c (raptor_xslt_parse_start): Init column, byte to -1 - (raptor_xslt_xmlStructuredErrorFunc): Added, not tested. - (raptor_xslt_parse_chunk): Ensure last chunk with is_end is always - run. Report error if no XML DOM made. Set xslt context - structured error handler to raptor_xslt_xmlStructuredErrorFunc. - -2005-04-04 Dave Beckett - - * raptor_xslt.c (raptor_xslt_parse_chunk): - Declare 'nodes' at top of block. - Init doc_txt/doc_txt_len earlier so do not free junk. - Get the base URI string from the XML doc if it exists. - -2005-03-25 Dave Beckett - - * configure.ac: Added --with-xslt-config - Added grddl parser and checking. - Added simple search for libxslt needed by grddl. - - * Makefile.am: Added grddl if RAPTOR_PARSER_GRDDL - - * raptor_general.c (raptor_init): Added grddl - - * raptor_libxml.c (raptor_libxml_init_sax_error_handlers): - Added to just init the - static error handlers for libxml for grddl. - - * raptor_internal.h: - Export raptor_libxml_init_sax_error_handlers for grddl. - Added raptor_init_parser_grddl - - * raptor_xslt.c: Generates triples via in internal rdf/xml parser. - (raptor_xslt_parse_start): Copy any user-set handlers to the - internal rdf/xml parser. - (main): Deleted, experimental code merged. - - * raptor_xslt.c: Reformed test code into parser named 'grddl' - (raptor_xslt_parse_init, raptor_xslt_parse_terminate, - raptor_xslt_parse_start, raptor_xslt_parse_chunk, - raptor_xslt_parse_recognise_syntax, - raptor_xslt_parser_register_factory, raptor_init_parser_xslt): Added - -2005-03-24 Dave Beckett - - * raptor_xslt.c: Fix some memory leaks. - - * raptor_xslt.c: Remove commented out standalone xslt - - * Makefile.am: Added bodge raptor_xslt_test - - * raptor_xslt.c: Raptor GRDDL XSLT - - * raptor_parse.c (raptor_parse_chunk): docs - -2005-03-10 Dave Beckett - - * n3_lexer.l, turtle_lexer.l: Tidy to use .|\n to match any char - - * n3_lexer.l, turtle_lexer.l: Added """long literals""" - Use yyterminate() to end on errors - - * tests/turtle/bad-14.ttl, tests/turtle/test-17.ttl, - tests/turtle/test-17.out: long literals - - * tests/turtle/Makefile.am: - Added test-17.ttl bad-14.ttl for long literals - -2005-03-06 Dave Beckett - - * raptor_serialize_rdfxmla.c (raptor_new_qname_from_resource): - Use maximal xml name length for splitting predicate. - - * raptor_serialize.c (raptor_rdfxml_serialize_statement): - Use maximal xml name length for splitting predicate. - -2005-02-21 Dave Beckett - - * examples/Makefile.am: Add gconf-2.0 to grapper args - -2005-02-16 Dave Beckett - - * examples/grapper.c: Added gconf storing of window width/height - at namespace /apps/grapper - -2005-02-14 Dave Beckett - - * win32_raptor_config.h: Define RASQAL_INLINE to __inline - - * raptor_nfc.c: Change inline to RAPTOR_INLINE - - * raptor_internal.h: Define RAPTOR_INLINE to inline if not alerady - defined to something else - -2005-02-12 Dave Beckett - - * raptor_serialize_rdfxmla.c - (raptor_rdfxmla_emit_subject_list_items, - raptor_rdfxmla_emit_subject_properties, - raptor_rdfxmla_emit_subject, raptor_rdfxmla_serialize_start): - Copy base URIs only when they are not NULL. - (raptor_rdfxmla_serialize_statement): Handle predicate type - RAPTOR_IDENTIFIER_TYPE_RESOURCE as an alternative. - -2005-02-10 Dave Beckett - - * raptor_xml.c (raptor_valid_xml_ID): Just return an error status, - don't error out here. - -2005-02-08 Dave Beckett - - * Makefile.am: Add n3_lexer.l n3_parser.y to EXTRA_DIST otherwise - building with --enable-maintainer-mode from tarball will fail. - - * raptor_rss.c: Add RSS enclosures serializing into RSS 1.0 - raptor_rss10_serializer_context gains enclosures sequence - (raptor_rss10_serialize_init, raptor_rss10_serialize_terminate): - Init, free enclosures sequence. - (raptor_rss10_store_statement): If subject isn't an RSS item, see if - it is an enclosure and if so, set the type. - (raptor_rss10_serialize_statement): If type is enclosure, walk the - list of enclosures and add a new one if not seen already. - (raptor_rss10_emit_item): Add indent arg as this is called recursively. - Use it to print spaces from the raptor_rss10_spaces constant. - Only serialize an rdf:about if the item has a URI. - If field is enc:enclosure, find the enclosure item and write it - indented further recursively calling raptor_rss10_emit_item. - - * raptor_rss.c: re-comment back item enclosure thing - -2005-02-07 Dave Beckett - - * raptor_rss.c (raptor_rss_parser_processNode): Do not assign - 'alternate' attribute values when there's no field to use. - -2005-02-06 Dave Beckett - - * configure.ac, win32_raptor_config.h: Bumped version to 1.4.6 - - * Snapshotted raptor_1_4_5 for 1.4.5 release - -2005-02-04 Dave Beckett - - * autogen.sh: Add autoheader and libtoolize to the path search. - - * configure.ac: AM_PROG_LIBTOOL to AC_PROG_LIBTOOL seems to make - things happier - -2005-02-03 Dave Beckett - - * configure.ac: In maintainer mode, stop if there is no flex. - - * configure.ac: - In maintainer mode, stop if flex is too old or YACC is not GNU bison. - - * raptor_libxml.c: - Use RAPTOR_LIBXML_XMLSAX2INTERNALSUBSET test for a function rather - than HAVE_LIBXML_SAX2_H test for a header to work on OSX 10.3.x which - has inconsistent system libxml shared library/headers. - - * configure.ac: - Test for xmlSAX2InternalSubset so that it checks for the broken OSX - 10.3.x libxml features in the shared library rather than the ones - declared in the inconsistent header. - -2005-02-02 Dave Beckett - - * raptor.rdf.in: Updates for schema - - * tests/Makefile.am (check-rdfxmla): rdfdiff should read - $name-rdfxmla.rdf from builddir - -2005-02-01 Dave Beckett - - * rdfdiff.c: C style Move more declarations to start of blocks. - - * rdfdiff.c (rdfdiff_free_file): Restore what I broke. - - * rdfdiff.c: C style Move more declarations to start of blocks. - - * raptor_xml_writer.c (raptor_xml_writer_end_element): Move int - decl to start of block. - - * raptor_serialize_rdfxmla.c (raptor_unique_id): Terminate string - right again after I broke it. - - * rdfdiff.c, raptor_serialize_rdfxmla.c: Casts for C++ - - * raptor_serialize_rdfxmla.c: C style - (raptor_rdfxmla_emit_subject_list_items, - raptor_rdfxmla_emit_subject_properties): Declare i at start of - block. - - * rapper.1: rdfxml-abbrev - - * rdfdump.c: Widen help formatting for longer serializer name - - * raptor_xml_writer.c: Various C style fixes. - Make an enum for raptor_xml_writer_flags. - Added XML_WRITER_ prefixes to macro and defines. - Moved spaces_buffer to module static. - Noted struct nsd and namespaces sorting are duplicated code. - Docucomments for several methods (not yet used by doc system) noting - use of the flags. - - * Makefile.am: clean rdfdiff - - * Makefile.am: rdfdiff to EXTRA_PROGRAMS for now - - * Imported rdf/xml with abbreviations serializer 'rdfxml-abbrev' - written by Steve Shepard . Steve's changes - are as follows: - - * Makefile.am: Added dependencies for rdfdiff.c and - raptor_serializer_rdfxmla.c - - * raptor.h: Added RAPTOR_FEATURE enums and api for new xml_writer - features that support auto-indentation and auto-empty element - detection. - - * raptor_feature.c: Added support for new xml_writer - auto-indentation and auto-empty features. - - * raptor_general.c: Initialization of rdfxml-abbrev serializer. - - * raptor_internal.h: Prototype for void - raptor_init_serializer_rdfxmla(void); - - * raptor_serialize_rdfxmla.c: New rdfxml raptor_serializer that - handles some of the abbreviations specified by "RDF/XML Syntax - Specification (Revised)." - - * rdfdiff.c: New tool to diff rdf files. - - * tests/Makefile.am: Added tests for rdfdiff and the - rdfxml-abbrev serialization format. - -2005-01-26 Dave Beckett - * rapper.1: mention what RSS tag soup can do - - * turtle_parser.y, n3_parser.y: Rename - raptor_new_triple/raptor_free_triple to have n3/turtle in the - name. - - * raptor_internal.h, raptor_general.c, n3_parser.y, n3_lexer.l, - n3_common.h, configure.ac, Makefile.am: Update Notation3 code with - later Turtle improvements. Built it with maintainer mode only. - - * turtle_lexer.l (turtle_copy_token): Renamed from copy_token - (turtle_copy_string_token): Renamed from copy_string_token. - (main): filename moved here from global! - -2005-01-24 Dave Beckett - - * raptor_rss.c (raptor_rss_emit_item): Do not emit an items - property, that's only done by raptor_rss_emit_connection. - -2005-01-22 Dave Beckett - - * raptor_rss.c: Added RSS1.1 namespace http://inamidst.com/rss1.1/ - (raptor_rss_parser_processNode): Turn Channel into RSS type channel. - (raptor_rss_emit_type_triple, raptor_rss_emit_enclosure, - raptor_rss_emit_item, raptor_rss_emit_connection, raptor_rss_emit): - Add error return value and stop if there is no identifier. - (raptor_rss_emit): Stop if channel or any item has no identifier. - (raptor_rss_parse_chunk): Pass on failures from above to user. - (raptor_rss10_build_xml_names): Replace RSS1.1 namespace with RSS1.0 - (raptor_rss10_emit_item): Add item_type arg and use it to only emit - items for the channel. - -2005-01-21 Dave Beckett - - * raptor.h: Added const to src arg of - raptor_ntriples_string_as_utf8_string. - - * libraptor.3: Deprecate raptor_ntriples_string_as_utf8_string - - * raptor.h: Deprecate raptor_ntriples_string_as_utf8_string - - rather too internal to be useful, since it only works with a - parser. - - * ntriples_parse.c (raptor_ntriples_term_valid): Remove rdf_parser - arg; only for a fatal error - just die. - (raptor_ntriples_term): Make start a const arg. When copying UTF8 - bytes, move on the correct number of bytes in src and dest. - Update use of raptor_ntriples_term_valid. - (raptor_ntriples_string_as_utf8_string, - raptor_ntriples_parse_line): Update uses of - raptor_ntriples_term_valid. - -2005-01-17 Dave Beckett - - * raptor_general.c (raptor_statement_part_as_counted_string): - Declare language_len to NULL, uri_string as unsigned char*. - -2005-01-16 Dave Beckett - - * raptor_rss.c (raptor_rss10_emit_item): Copy original base_uri - each time, a raptor_new_xml_element is made and don't lose the - original reference. - - * raptor_xml_writer.c (main): Copy original base_uri each time, - don't lose the original reference. - -2005-01-15 Dave Beckett - - * raptor_general.c (raptor_statement_part_as_counted_string): - Initialise language_len, uri_string used in some cases to prevent - gcc warnings. - - * configure.ac, win32_raptor_config.h: Bumped version to 1.4.5 - - * Snapshotted raptor_1_4_4 for 1.4.4 release - - * raptor_rss.c (raptor_rss10_emit_item): Portability - declare - rdf_Seq* variables at start of block. - -2005-01-13 Dave Beckett - - * win32_raptor_config.h, win32/Makefile.am, win32/rapper.dsp, - win32/raptor.dsp, win32/raptor.dsw, win32/raptortest.dsp: win32 - build update (patch from Dave Viner) - - * win32_raptor_config.h: - RAPTOR_INTERNAL should be defined in the build configuration - -2005-01-12 Dave Beckett - - * raptor_rss.c: Recognise old RSS 0.9 namespace and handle it as - rss 1.0. - -2005-01-04 Dave Beckett - - * raptor_serialize.c: - (raptor_rdfxml_serialize_start, - raptor_rdfxml_serialize_statement): Only copy non-NULL base URIs - - * raptor_rss.c: - (raptor_rss10_move_statements, raptor_rss10_store_statement, - raptor_rss10_build_xml_names, raptor_rss10_emit_item):Handle - predicates of type RAPTOR_IDENTIFIER_TYPE_RESOURCE as well as type - RAPTOR_IDENTIFIER_TYPE_PREDICATE - - * raptor_general.c (raptor_free_statement): Free predicate URIs - that were RAPTOR_IDENTIFIER_TYPE_RESOURCE - - * raptor_uri.c (raptor_uri_to_relative_counted_uri_string): - Handle no path in base URI - (main): Add test for that and test for no path in both. - - * raptor_uri.c (raptor_uri_to_relative_counted_uri_string): Handle - no path in reference URI - (main): Add test for that - -2005-01-03 Dave Beckett - - * configure.ac, win32_raptor_config.h: Bumped version to 1.4.4 - - * Snapshotted raptor_1_4_3 for 1.4.3 release - - * raptor_rdfxml.c (raptor_xml_start_element_handler): Updates for - unsigned char* string namespace URI strings. - - * raptor_namespace.c: - Turn namespace URI string constants into unsigned char* strings. - - * raptor_identifier.c (raptor_identifier_print): Casts for - printing rdf:XMLLiteral URI string constant. - - * raptor_general.c: Turn rdf:XMLLiteral URI string constant into a - unsigned char* string. - (raptor_print_statement, raptor_print_statement_part_as_ntriples): - Casts for printing above constants. - - * raptor_uri.c (raptor_default_new_uri_for_rdf_concept): Use RDF - namespace URI string constants. - - * Makefile.am: Link libraptor.la for URI tests, to get the - namespace URI string constants. - - * raptor.h: Turn namespace URI string constants into unsigned - char* strings. Change namespace URI defines into uses of the - constants. - - * rdfdump.c (main): Init parser_feature and serializer_feature to - -1 to avoid compiler warnings. - - * raptor_rss.c (raptor_rss10_serialize_statement): Init item to - NULL to avoid a compiler warning. - - * rdfdump.c, raptor_uri.c, raptor_serialize.c, raptor_rss.c, - raptor_parse.c: Casts for c++ - - * raptor.h: remove old comment re xml writer - -2005-01-02 Dave Beckett - - * rdfdump.c: set serializer features before starting to serialize - - * rdfdump.c: Actually set parser feature values again. Set - strings for parser or serializer string feature values. - - * raptor_general.c: 2005 copyrights - - * rapper.1: No simple output format anymore - - * rapper.1: Added RSS 1.0 ref - -2005-01-01 Dave Beckett - - * rapper.1: Update for new parser, serializers, xmlns syntax - - * raptor_serialize.c (raptor_serializer_set_feature_string): Docs, - and return values for integer value features - (raptor_serializer_get_feature_string): Return a new string for - the start uri if set. - - * raptor_parse.c (raptor_parser_set_feature_string): Docs, and - return values for integer value features - - * libraptor.3, raptor.h: - Added raptor_uri_to_counted_string and raptor_uri_to_string - - * raptor_uri.c (raptor_uri_to_counted_string,raptor_uri_to_string): - Added. - - * libraptor.3: changelog edit - cluster 1.4.3 entries by class - - * libraptor.3: Added raptor_parser_get_feature_string, - raptor_parser_set_feature_string, - raptor_serializer_set_feature_string, - raptor_serializer_get_feature_string, raptor_feature_value_type, - raptor_namespaces_find_namespace_by_uri - - * raptor_serialize.c, raptor_general.c: - Use raptor_rdf_namespace_uri and raptor_rdf_namespace_uri_len to - replace some constants. - - * raptor_serialize.c (raptor_rdfxml_serialize_statement): - Handle ordinal subject and objects. - - * raptor_serialize.c: - Add XML Writer to raptor_rdfxml_serializer_context, delete depth. - (raptor_rdfxml_serialize_init): Delete depth stuff. - (raptor_rdfxml_serialize_terminate): Tidy up xml writer, namespaces - and rdf:RDF element. - (raptor_rdfxml_serialize_declare_namespace): Don't copy uri, prefixes - since raptor_new_namesapce_from_uri copies them anyway. - (raptor_rdfxml_serialize_start): Convert to use xml writer. - (raptor_rdfxml_serialize_write_xml_attribute): Deleted. - (raptor_rdfxml_serialize_statement, raptor_rdfxml_serialize_end): - Convert to use xml writer. - - * raptor_xml_writer.c (raptor_xml_writer_empty_element): Ensure - namespace declarations are removed at end of element. - - * raptor.h: Added raptor_namespaces_find_namespace_by_uri - - * raptor_namespace.c (raptor_namespaces_find_namespace_by_uri): Added. - - * libraptor.3, raptor_sax2.c, raptor_rss.c, raptor.h: - raptor_xml_declare_namespace renamed to - raptor_xml_element_declare_namespace - - * raptor_rss.c (raptor_rss10_build_xml_names): Use - raptor_xml_declare_namespace - - * raptor_rss.c: - (raptor_rss10_build_xml_names): Use raptor_xml_declare_namespace - - * raptor_sax2.c, raptor.h: - raptor_sax2_declare_namespace renamed to raptor_xml_declare_namespace - - * raptor_serialize.c (raptor_new_serializer): - Default to emitting relative URIs - - * raptor_serialize.c (raptor_rdfxml_serialize_ok_xml_name): Deleted. - (raptor_rdfxml_serialize_statement): Replace use of - raptor_rdfxml_serialize_ok_xml_name with raptor_xml_name_check for - XML 1.0 names. - - * raptor_sax2.c, raptor_rdfxml.c, raptor.h, libraptor.3: - Rename raptor_xml_element_get_element to raptor_xml_element_get_name - - * raptor_rss.c: Added rss:image and rss:textinput properties - - * raptor_rss.c (raptor_rss10_store_statement): - Don't lose statements that are about - a known type node, but of unknown predicate. - (raptor_rss10_serialize_end): Add more debug info on remaining - statements. - - * raptor_rdfxml.c (raptor_start_element_grammar): - Update raptor_new_xml_writer call. - - * raptor.h: raptor_new_xml_writer gets nstack parameter. - raptor_xml_writer_start_namespace_full deleted - - * libraptor.3: raptor_new_xml_writer gets nstack param. - raptor_xml_writer_start_namespace_full gone - - * raptor_general.c (raptor_free_statement): Don't free null pointers. diff --git a/ChangeLog.7 b/ChangeLog.7 deleted file mode 100644 index 5413d337..00000000 --- a/ChangeLog.7 +++ /dev/null @@ -1,1764 +0,0 @@ -2006-12-29 Dave Beckett - - * src/raptor_grddl.c: Add profile_transformation_uri and - profile_uris list to grddl parser structure. - (raptor_xslt_parse_init, raptor_xslt_parse_terminate): init/free - the above fields. Add MATH_IS_VALUE_LIST and MATCH_IS_PROFILE - flags to match_table. Comment out hard-coded embedded RDF, - hCalendar xpaths. Added head profile xpath for profile URI - resoltuion. - (raptor_grddl_relay_triples): Look for matches in the list of - profile_uris for getting XSLT uris. - (typedef raptor_grddl_xml_parse_bytes_context): Renamed from - raptor_grddl_parse_bytes_context. - (raptor_grddl_uri_xml_parse_bytes): Renamed from - raptor_grddl_uri_parse_bytes. - (raptor_grddl_fetch_uri): Added to provide a single place to - retrieve URIs in the GRDDL operation. Set a user agent, send - accept header and handle no-net. - (raptor_grddl_run_grddl_transform_uri): Use raptor_grddl_fetch_uri - to retrieve the XSLT doc. - (raptor_grddl_seen_uri): Do a check only, mark done in new - function: - (raptor_grddl_done_uri): Added. - (raptor_grddl_parse_uri_write_bytes): Added for use by - raptor_grddl_parse_chunk. - (raptor_grddl_parse_chunk): Mark done when received is_end. Use - profile_uris list to record root namespace as first item in list - at index 0. Accept an XPath result of element and use its - namespace name if seen, to allow an XPath matching the root - element - not yet used. Update to use the match_table flags - field. Handle MATCH_IS_PROFILE by storing in the profile_uris - list, skipping the http://www.w3.org/2003/g/data-view profile URI. - Do all recursive GRDDL in one place over all the profile_uris - using raptor_grddl_fetch_uri. - - * src/raptor_www_curl.c: (raptor_www_curl_fetch): set proxy if - www->proxy set - -2006-12-28 Dave Beckett - - * utils/rapper.c: adjust whitespace so longer grddl description fits - - * src/raptor_grddl.c: grddl docs, description updates - - * src/Makefile.am, src/raptor_grddl.c (from - /raptor/trunk/src/raptor_xslt.c:11760), src/raptor_xslt.c: - Renameed raptor_xslt.c to raptor_grddl.c - - * src/raptor_xslt.c: Rename all functions / structures to be - raptor_grddl / grddl not xslt. - - * src/raptor_xslt.c: update spec reference - -2006-12-27 Dave Beckett - - * src/raptor_xslt.c: Track list of visited URIs across recursive - GRDDL parsers - (raptor_xslt_parse_init, raptor_xslt_parse_terminate): Share the - list of visited uris, allocated/freed at depth 0 parser. - (raptor_xslt_add_parent): Added to associate a parent with a child - GRDDL parser and to all share the depth 0 parser's list of visited - URIs. - (raptor_xslt_relay_triples, raptor_xslt_ensure_internal_parser): - Return failure code and prepare for alternative when this may not - pass on all triples for namespace/profile GRDDL operations. - (raptor_xslt_run_grddl_transform_doc): Handle error code from - above. - (raptor_xslt_seen_uri): Added to track URIs seen. - (raptor_xslt_parse_chunk): Use seen URI tracking for initial - document and recursive GRDDLs. - - * src/raptor_general.c: docs - -2006-12-26 Dave Beckett - - * src/raptor_xslt.c: Add GRDDL looking up of root namespace URIs. - (raptor_xslt_parse_init, raptor_xslt_parse_terminate): Init/free - doc_transform_uris and namespace_transformation_uri. - grddl_namespace_uris_ignore_list added with list of namespace URIs - to never attempt to retrieve. - (raptor_xslt_relay_triples): Added, to relay triples to user but - look for data-view:namespaceTransformation triples - (raptor_xslt_ensure_internal_parser): Added to init an internal - parser if needed, reusing otherwise. Relay triples via - raptor_xslt_relay_triples before sending to user handler. - (raptor_xslt_run_grddl_transform_doc): Moved internal parser code - to raptor_xslt_ensure_internal_parser. - (raptor_xslt_parse_chunk): Get and store document root namespace - URI and then use it if not ignored. Do not do transforms - immediately but store in a sequence. Do a parse on the root - namespace URI if present to look for transformation triples. - Finally apply all transformation URIs seen in one go. - - * src/raptor_rdfxml.c: (raptor_rdfxml_parse_recognise_syntax): - Recognize RDF/XML in sample content by looking for the XML marking - the RDF namespace declaration, the root element and likely - attributes. - - * src/raptor_parse.c: (raptor_guess_parser_name): Mime type - matches that are q<10 no longer return a match but use the q as - score. Guessing then continues with the recognise_syntax factory - method, if present. - -2006-12-14 Dave Beckett - - * src/raptor_xslt.c: (raptor_xslt_parse_init, - raptor_xslt_parse_start): Move xslt_parser->sax2 init from - raptor_xslt_parse_start - running on every parse to - raptor_xslt_parse_init - running once. - - * src/raptor_xslt.c: (raptor_xslt_parse_chunk): Free any - previously used xpathObj before making a new one - -2006-12-10 Dave Beckett - - * src/raptor_xslt.c: Previous changes did this: - Fixes Issue#0000143 http://bugs.librdf.org/mantis/view.php?id=143 - - * src/raptor_xslt.c: struct raptor_xslt_parser_context_s gains - raptor_sax2* sax2 field. - (raptor_xslt_parse_terminate): Free sax2. - (raptor_xslt_parse_start): Create a new sax2 structure and - initialise it's locator and error handler params. - (raptor_xslt_parse_chunk): Move error handler inits to - raptor_xslt_parse_start and do it once. - - * src/raptor_parse.c: (raptor_parser_fatal_error_message_handler, - raptor_parser_error_message_handler, - raptor_parser_warning_message_handler): No need to protectb - raptor_print_locator from NULL locator, it does that. - - * src/raptor_libxml.c: (raptor_libxml_update_document_locator, - raptor_libxml_error_common): Protect from NULL locator. - (raptor_libxml_init_generic_error_handlers): Altered to take an - raptor_sax2* argument. - - * src/raptor_internal.h: raptor_libxml_init_generic_error_handlers - altered to take an raptor_sax2* argument. - -2006-12-07 Dave Beckett - - * src/raptor_parse.c: (raptor_parser_copy_user_state): Make a new - copy of the shared generate id prefix string. - Fixes Issue#0000141 http://bugs.librdf.org/mantis/view.php?id=141 - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_statement): Do not store an rdf:type - predicate triple as the typed-node type unless the triple object - is a URI. - Fixes Issue#0000157 http://bugs.librdf.org/mantis/view.php?id=157 - -2006-12-06 Dave Beckett - - * src/raptor_turtle_writer.c: (raptor_turtle_writer_reference): - Generate <> for the empty relative URI - -2006-12-03 Dave Beckett - - * src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: - Rename raptor_node to raptor_abbrev_node and raptor_subject to - raptor_abbrev_subject and rename functions to match the pattern - - * src/raptor_turtle_writer.c: Use limits.h to get LONG_MAX - - * src/raptor_www_libxml.c: raptor_www_libxml_http_error prototype. - - * src/raptor_xslt.c: Store a single parser that could be of any - name, not just 'rdfxml'. - (raptor_xslt_parse_init): Do not init rdfxml parser here. - 9raptor_xslt_parse_terminate): Free internal parser if present. - (raptor_xslt_parse_start): Do not copy user state to internal - parser here. - (raptor_xslt_run_grddl_transform_doc): Delve into the XSL - transformation results and try to interpret a mime type out of the - output type (if present). Assume any XML mime type is actually - RDF/XML and refuse to do recursive grddl guesses this way. Tidy - up code to clean up error paths - - * src/raptor_www.c: (raptor_www_file_fetch): Return 200, 403 or - 404 status codes and set failed flag. - (raptor_www_fetch): Set failed flag if a status code was returned - and the result was not 200. - - * src/raptor_xslt.c: (raptor_xslt_parse_chunk): Skip empty XSLT - URIs in the list found. - -2006-12-02 Dave Beckett - - * src/raptor_sax2.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: Add new features to switch()s - - * src/raptor_abbrev.c: (raptor_new_node): init node always - - * src/raptor_serialize_rdfxmla.c: (raptor_rdfxmla_emit_blank): Do - not double-encode blank node ids. Do not free a shared blank node - string value. - (raptor_rdfxmla_emit_subject): Do not double-encode blank node - ids. Free only allocated attr_value. - (raptor_rdfxmla_serialize_init): Ensure rdf_type is initialized. - - * src/raptor_turtle_writer.c: Remove // comments - - * src/raptor_serialize_turtle.c: deleting commented-out code - - * src/raptor_serialize_turtle.c: Code style, whitespace. - - * src/raptor.h, src/raptor_internal.h: Move turtle write functions - into internal API for now - - * src/raptor_serialize_turtle.c: - (raptor_turtle_serialize_declare_namespace_from_namespace): Allow - a default namespace to be handled when prefix is NULL. - - * src/raptor_turtle_writer.c: (raptor_turtle_writer_qname): Write - a QName using Turtle's rules either prefix:local or :local which - is not how raptor_iostream_write_qname() writes them for XML. - - * src/raptor_turtle_writer.c: (raptor_turtle_writer_namespace_prefix): - Only emit a prefix if there is one. - - * src/raptor_serialize_turtle.c, docs/raptor-serializers.xml, - docs/tmpl/section-general.sgml, configure.ac, src/Makefile.am, - src/raptor.h, src/raptor_serialize.c, src/raptor_turtle_writer.c, - tests/Makefile.am, tests/turtle/Makefile.am: Turtle serializer by - Dave Robillard - - * src/raptor_xml_writer.c: docs - - * src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_serialize_rdfxmla.c: (raptor_rdfxmla_find_subject): - Renamed from raptor_find_subject. - (raptor_new_qname_from_resource): Remove link to rdfxml-abbrev - serializer context and pass in namespaces stack parameters. - (raptor_lookup_node): Renamed from raptor_rdfxmla_lookup_node - (raptor_lookup_subject): Renamed from - raptor_rdfxmla_lookup_subject. - (raptor_find_subject): Renamed from raptor_rdfxmla_find_subject. - - * src/raptor_abbrev.c: Re order functions - - * src/Makefile.am, src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_serialize_rdfxmla.c: (raptor_new_qname_from_resource, - raptor_new_node, raptor_free_node, raptor_node_equals, - raptor_node_matches, raptor_new_subject, raptor_free_subject, - raptor_subject_add_property, raptor_subject_add_list_element, - raptor_rdfxmla_lookup_node, raptor_rdfxmla_find_subject, - raptor_rdfxmla_lookup_subject): Move common abbreviated serializer - code from raptor_serialize_rdfxmla.c to raptor_abbrev.c - - * src/raptor_serialize_dot.c: gratuitous whitespace schanges - - * docs/tmpl/section-feature.sgml: New DOT features - - * src/raptor_turtle_writer.c copied from - /raptor/trunk/src/raptor_xml_writer.c:11666: copy for turtle - writing - -2006-11-26 Dave Beckett - - * src/raptor_uri.c: (raptor_uri_filename_to_uri_string): - Dynamically allocate the path buffer and realloc it if it's too - small. This helps Hurd which does not handle PATH_MAX like - linux/unix. - - * docs/raptor-serializers.xml, src/raptor.h, src/raptor_feature.c, - src/raptor_internal.h, src/raptor_parse.c, src/raptor_serialize.c, - src/raptor_serialize_dot.c: Import updated DOT serializer. - Renamed features to remove _color/_COLOR from end of name. Added - feature descriptions - - * src/raptor_serialize_dot.c: alter label - - * src/Makefile.am, src/raptor_internal.h, src/raptor_serialize.c, - src/raptor_serialize_dot.c: Add DOT serializer - - * configure.ac: libxml minimum version is now 2.6.8 since 2.6.7 - crashes on PPC64 Linux. 2.6.8 was released March 2004 so this - should be no burden. - -2006-11-20 Dave Beckett - - * raptor.rdf.in: Update description and for SVN repository. - -2006-11-19 Dave Beckett - - * NEWS.html, RELEASE.html, configure.ac, - src/win32_raptor_config.h: Bumped version to 1.5.0 - -2006-10-22 Dave Beckett - - * Snapshotted raptor_1_4_13 for 1.4.13 release (SVN r11540) - - * src/raptor_rss.c: (raptor_rss_end_element_handler): Only declare - name when debugging. - - * src/win32_raptor_config.h: Update defines: - HAVE_XMLSAX2INTERNALSUBSET replaces RAPTOR_LIBXML_XMLSAX2INTERNALSUBSET - Added HAVE_XMLCTXTUSEOPTIONS - Deleted RAPTOR_LIBXML_XMLUSENEWPARSER - - * src/raptor_xslt.c: (raptor_xslt_uri_parse_bytes): Use #ifdef - HAVE_XMLCTXTUSEOPTIONS to protect call to xmlCtxtUseOptions - - * src/raptor_sax2.c: (raptor_sax2_parse_chunk): Use #ifdef - HAVE_XMLCTXTUSEOPTIONS to protect call to xmlCtxtUseOptions - - * src/raptor_libxml.c: #ifdef HAVE_XMLSAX2INTERNALSUBSET replaces - RAPTOR_LIBXML_XMLSAX2INTERNALSUBSET - - * configure.ac: Remove unused check for xmlUseNewParser (defining - RAPTOR_LIBXML_XMLUSENEWPARSER) Use AC_CHECK_FUNCS to check for new - xmlCtxtUseOptions and existing xmlSAX2InternalSubset - -2006-10-21 Dave Beckett - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_emit_subject_properties): Throw an error and skip - triple if cannot make URI from a predicate. - -2006-10-13 Dave Beckett - - * src/raptor_uri.c: (raptor_uri_to_relative_counted_uri_string): - Check for equal scheme and authority correctly. - Fixes Issue #0000134 http://bugs.librdf.org/mantis/view.php?id=134 - - * src/raptor_uri.c: (main): Test for bug 134 - -2006-10-09 Dave Beckett - - * src/raptor_parse.c: (raptor_set_default_generate_id_parameters) - autodocs - -2006-10-08 Dave Beckett - - * src/raptor_serialize_rdfxmla.c: (raptor_rdfxmla_serialize_start) - Free any existing xml_writer before making a new one. - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_start) - Free any existing xml_writer before making a new one. - - * src/raptor_serialize_rss.c: (raptor_rss10_serialize_end): Free - any existing xml_writer before making a new one. - -2006-10-05 Dave Beckett - - * configure.ac: Found more -W flags. - - * utils/rdfdiff.c: cast - - * src/raptor_set.c: const - - * configure.ac: In maintainer mode, add all the supported -W - options to the MAINTAINER_CFLAGS - - * utils/rapper.c: Cast for signed/unsigned comparison - - * src/raptor_libxml.c: redundant decl - - * utils/rapper.c: Cast for unsigned vs signed int use of - raptor_get_feature_count() - - * src/n3_common.h, src/n3_lexer.l, src/n3_parser.y, - src/raptor_libxml.c, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_sax2.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/turtle_common.h, - src/turtle_lexer.l, src/turtle_parser.y: Make internal - error/warning/vargs functions use RAPTOR_PRINTF_FORMAT and fix a - few bad uses of args - - * src/raptor_parse.c: (raptor_syntaxes_enumerate): Discard test - for unsigned int < 0. - (raptor_parse_uri_no_net_filter); Fix raptor_parser_error format - arg. - - * src/raptor_serialize.c: (raptor_serializers_init): Declare new - style void. - (raptor_serializers_enumerate): Discard test for unsigned int < 0. - - * src/ntriples_parse.c: (raptor_ntriples_term): Cast for - raptor_parser_error arg. - - * src/raptor_internal.h: Declare many error/warning/*varargs - prototypes with RAPTOR_PRINTF_FORMAT that they take a printf-style - format argument. - - * src/raptor.h: Added RAPTOR_PRINTF_FORMAT to allow declaring of - functions with a printf-style format argument. - Declare raptor_vsnprintf using it. - - * src/raptor_internal.h, src/raptor_rdfxml.c, src/raptor_xml.c: - Turn content_cdata into using raptor_stringbuffer so that it does - a lot less copying (strncpy) when joining literals - -2006-10-03 Dave Beckett - - * examples/Makefile.am: Fix AM_* flags - -2006-10-02 Dave Beckett - - * docs/raptor-tutorial-serializing.xml: typo - raptor_serializer_set_namespace => raptor_serialize_set_namespace - - * docs/raptor-tutorial-serializing.xml: Add single triple - serializing example rdfserialize.c - - * docs/Makefile.am: Add rdfserialize.c - - * examples/rdfserialize.c: tidy - - * examples/Makefile.am: Added rdfserialize example. - - * examples/rdfserialize.c: rdfserialize.c: serialize 1 triple to - RDF/XML-Abbrev - -2006-09-24 Dave Beckett - - * src/raptor_xslt.c: (raptor_xslt_uri_parse_bytes): Only use - XML_PARSE_NONET if defined. - - * src/raptor_sax2.c: (raptor_sax2_parse_chunk): Use - XML_PARSE_NONET only if defined. - -2006-09-17 Dave Beckett - - * utils/Makefile.am: (AM_CFLAGS, AM_CPPFLAGS): Remove duplication - of @CFLAGS@, @CPPFLAGS@ - - * src/Makefile.am: (AM_CFLAGS): Remove duplication of @CFLAGS@ - -2006-09-08 Dave Beckett - - * configure.ac: Allow LEX to be set to things that aren't exactly - 'flex' - -2006-08-27 Dave Beckett - - * NEWS.html, configure.ac, src/win32_raptor_config.h: Bumped - version to 1.4.13 - - * Snapshotted raptor_1_4_12 for 1.4.12 release (SVN r11256) - - * docs/libraptor.3: 1.4.12 no API changes - - * src/raptor_serialize.c: (raptor_serializers_init): Restore order - from 1.4.10 - - * src/raptor_serialize_rdfxmla.c: (raptor_init_serializer_rdfxmla): - Restore order from 1.4.10 - -2006-08-26 Dave Beckett - - * src/win32_raptor_config.h, configure.ac, NEWS.html: Bumped - version to 1.4.12 - - * Snapshotted raptor_1_4_11 for 1.4.11 release (SVN r11244) - - * src/raptor_parse.c: (raptor_start_parse): Throw an error if no - base URI is given and it is needed. - - * src/raptor_sax2.c: (raptor_sax2_parse_start): Free any existing - base URI before assigning a new one. - - * src/ntriples_parse.c: (raptor_ntriples_generate_statement): Use - raptor_new_uri since base_uri is never used, and all the URIs are - absolute. - - * docs/tmpl/section-feature.sgml, docs/tmpl/section-parser.sgml, - docs/tmpl/section-unicode.sgml: Updated templates for 1.4.11 - - * src/raptor_parse.c: (raptor_start_parse): Return failure if need - a base URI and none was given. - -2006-08-23 Dave Beckett - - * src/raptor.h: Add RAPTOR_API before - raptor_namespaces_qname_from_uri to export it properly for windows. - Fixes Issue #0000112 http://bugs.librdf.org/mantis/view.php?id=112 - - * src/raptor_rss.c: Use raptor_strcasecmp. - Fixes Issue #0000110 http://bugs.librdf.org/mantis/view.php?id=110 - -2006-08-22 Dave Beckett - - * docs/libraptor.3: Updates for 1.4.11 - -2006-08-21 Dave Beckett - - * docs/raptor-sections.txt: Added raptor_get_feature_count and - raptor_get_need_base_uri - - * src/n3_parser.y, src/ntriples_parse.c, src/raptor.h, - src/raptor_guess.c, src/raptor_internal.h, src/raptor_parse.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_xslt.c, - src/turtle_parser.y: Added raptor_get_need_base_uri to return new - field need_base_uri_flag in raptor_parser_factory that is set by - all parsers now - -2006-08-20 Dave Beckett - - * utils/rapper.c: Use raptor_get_feature_count and add - raptor_finish() before all exits. - - * src/raptor.h: Added raptor_get_feature_count prototype - - * src/raptor_feature.c: (raptor_get_feature_count): Added - - * src/raptor_serialize.c: Turn serializers into a raptor_sequence - (raptor_free_serializer_factory): Added. - (raptor_serializers_init): Init sequence, reverse order so - N-Triples remains first. - (raptor_serializers_finish): Free with raptor_free_sequence - (raptor_serializer_register_factory, - raptor_get_serializer_factory, raptor_serializers_enumerate): - Update to use sequence. - - * src/raptor_parse.c: Turn parsers into a raptor_sequence - (raptor_free_parser_factory): Added. - (raptor_parsers_init): Init sequence, reverse order so RDF/XML - remains first. - (raptor_parsers_finish): Free with raptor_free_sequence - (raptor_parser_register_factory, raptor_parser_factory_add_alias, - raptor_get_parser_factory, raptor_syntaxes_enumerate, - raptor_guess_parser_name): Update to use sequence. - (main): Added test for raptor_parser_get_accept_header_all - - * src/raptor_internal.h: Added prototypes for raptor_parsers_init, - raptor_serializers_init, raptor_parsers_finish and - raptor_serializers_finish. Rename raptor_init/finish_sax2 to - raptor_sax2_init/finish - - * src/raptor_sax2.c: (raptor_sax2_init): Renamed from - raptor_init_sax2 - (raptor_sax2_finish): Renamed from raptor_finish_sax2 - - * src/raptor_general.c: (raptor_init): Call raptor_parsers_init - and raptor_serializers_init. - (raptor_finish): Call raptor_parsers_finish and - raptor_serializers_finish. - - * src/raptor_serialize.c: (raptor_serializers_init): Added. - (raptor_serializers_finish): Renamed from - raptor_delete_serializer_factories - - * src/raptor_parse.c: (raptor_parsers_init): Added. - (raptor_parsers_finish): Renamed from - raptor_delete_parser_factories - (raptor_parser_register_factory): Delete mime_type and uri_string - args. - (raptor_parser_factory_add_uri): Added for registering a URI - - * src/n3_parser.y, src/ntriples_parse.c, src/raptor_guess.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_xslt.c, - src/turtle_parser.y: Remove mime_type and uri args from - raptor_parser_register_factory - - * src/n3_parser.y, src/ntriples_parse.c, src/raptor_guess.c, - src/raptor_internal.h, src/raptor_parse.c, src/raptor_rdfxml.c, - src/raptor_rss.c, src/raptor_xslt.c, - src/turtle_parser.y: (raptor_parser_register_factory): Remove mime - type arg, nothing uses it now - - * src/ntriples_parse.c: (raptor_ntriples_parse_chunk): Make junk - at end of input errro return from the function as a failure. - - * src/turtle_parser.y: Remove %destructor tidy for PREFIX - - * src/n3_parser.y: Remove %destructor tidy for PREFIX - - * src/n3_parser.y: Add %destructor to tidy up tokens when doing - error recovery. - (directive): Hack to stop Bison moaning about not using $1 - - * src/turtle_parser.y: Add %destructor to tidy up tokens when - doing error recovery. - (directive): Hack to stop Bison moaning about not using $1 - - * src/n3_parser.y: Added labels for tokens to enable better error - messages. - - * src/turtle_parser.y: Added labels for tokens to enable better - error messages. - - * autogen.sh: Track where programs are discovered. - - * src/raptor_parse.c: (raptor_parse_uri_with_connection, - raptor_set_feature, raptor_get_feature, raptor_set_parser_strict): - Update to use array of features throughout. - (raptor_parser_copy_user_state): Copy all features when copying - state. - - * src/raptor_xslt.c: (raptor_xslt_uri_parse_bytes, - raptor_xslt_run_grddl_transform_uri): Update to use array of - features. - - * src/raptor_rdfxml.c: (raptor_rdfxml_start_element_handler, - raptor_rdfxml_parse_start, raptor_rdfxml_generate_statement, - raptor_rdfxml_process_property_attributes, - raptor_rdfxml_start_element_grammar, - raptor_rdfxml_end_element_grammar, raptor_rdfxml_cdata_grammar, - raptor_rdfxml_record_ID): Update to use array of features - throughout. - - * src/raptor_rss.c: (raptor_rss_parse_start): Update to use array - of features. - - * src/raptor_guess.c: (raptor_guess_parse_chunk): Use - raptor_parser_copy_user_state to copy over pointers and feature - flags to the inner parser. - - * src/raptor_internal.h: struct raptor_parser_s - replace - individual feature fields with an array. - - * src/raptor_parse.c: Removed static raptor_get_parser_factory - prototype - - * src/raptor_internal.h: Added raptor_get_parser_factory - - * src/raptor_parse.c: (raptor_get_parser_factory): Now internal - not static - - * configure.ac: flex check - warn before failing - - * src/raptor_xslt.c: comma chameleon - - * configure.ac: recommend flex 2.5.33 - - * configure.ac: Update to point at main flex site whichq finally - gets 2.5.33 after 9 years - - * src/raptor_guess.c: Rework to call an internal use of a parser - rather than "exec"ing into the guessed parser. - Fixes Issue#0000091 http://bugs.librdf.org/mantis/view.php?id=91 - - * src/raptor_parse.c: (raptor_parser_exec): Deleted - - * src/raptor_internal.h: Delete raptor_parser_exec - - * src/raptor_xslt.c: Disable dc-extract.xsl - -2006-08-19 Dave Beckett - - * RELEASE.html: Updated for 1.4.11 - - * docs/raptor-docs.xml: Added raptor-parsers.xml and - raptor-serializers.xml - - * docs/Makefile.am: Added raptor-parsers.xml and - raptor-serializers.xml - - * docs/raptor-parsers.xml, docs/raptor-serializers.xml: Added list - of parsers and serializers - - * docs/tmpl/section-parser.sgml: Updated - - * docs/tmpl/section-www.sgml: Updated - - * docs/tmpl/section-feature.sgml: Updated - - * docs/libraptor.3: Rename raptor_uri_filter_func - - * docs/raptor-docs.xml: tweak title - - * docs/raptor-tutorial-parsing.xml: params - - * docs/raptor-sections.txt: Rename raptor_uri_filter_func - - * utils/rapper.c: Allow --show-namespaces to print to stderr while - relaying them to the serializer. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_declare_namespace_from_namespace): Don't - declared multiple prefixes for the same namespace URI. - - * src/raptor_serialize_rdfxml.c: - (raptor_rdfxml_serialize_declare_namespace_from_namespace): Don't - declared multiple prefixes for the same namespace URI. - - * docs/raptor-tutorial-parsing.xml: Update for uri filter arg change - - * src/raptor_parse.c: Renamed raptor_www_uri_filter_func uri_filter to - raptor_uri_filter_func uri_filter and removed raptor_www* arg to - the filter function. - - * src/raptor.h: Renamed raptor_www_uri_filter_func uri_filter to - raptor_uri_filter_func uri_filter and removed raptor_www* arg to - the filter function. - - * src/raptor_www.c: Renamed raptor_www_uri_filter_func uri_filter - to raptor_uri_filter_func uri_filter and removed raptor_www* arg - to the filter function. - - * src/raptor_internal.h: Renamed raptor_www_uri_filter_func - uri_filter to raptor_uri_filter_func uri_filter and removed - raptor_www* arg to the filter function. - - * src/raptor_xslt.c: (raptor_xslt_uri_parse_bytes): Take in a - small structure to get the raptor_parser* pointer as well as the - libxml parser context. Use it to pass on the nonet option to - libxml if it is set. - (raptor_xslt_run_grddl_transform_uri): Use new struct. - - * src/raptor_rss.c: (raptor_rss_parse_start): Pass on - raptor_parser feature no_net to raptor_sax2. - - * src/raptor_rdfxml.c: (raptor_rdfxml_parse_init): Do feature - related initialising at the start of every parse, not once for all - rdf/xml parser instances. - (raptor_rdfxml_parse_start): Init feature_normalize_language and - feature_no_net here. - - * src/raptor_sax2.c: (raptor_sax2_parse_chunk): Set libxml option - XML_PARSE_NONET if sax2 feature RAPTOR_FEATURE_NO_NET is set. - (raptor_sax2_set_feature): Handle RAPTOR_FEATURE_NO_NET. - - * src/raptor_internal.h: raptor_sax2 gains feature_no_net - - * docs/raptor-tutorial-parsing.xml: Add parser URI filtering - examples to tutorial - - * docs/libraptor.3: Updated for 1.4.11 - - * utils/rapper.c: Reorder help message. Use triples in messages - and fix that plurals thing. - -2006-08-18 Dave Beckett - - * docs/raptor-tutorial-serializing.xml: Add IDs to examples - - * docs/raptor-tutorial-parsing.xml: Add IDs to examples - - * docs/raptor-tutorial-querying-functionality.xml: Make it xml - - * src/raptor_sax2.c: Added autodocs for raptor_xml_element_is_empty - - * docs/raptor-sections.txt: Add raptor_parser_set_uri_filter, - raptor_www_set_uri_filter and raptor_www_uri_filter_func - - * docs/raptor-tutorial-querying-functionality.xml: Fix example, add ID - - * src/raptor.h: Document RAPTOR_FEATURE_NO_NET - - * src/raptor_parse.c: (main): Print all features for a parser, - don't stop at first non parser feature. - - * src/raptor_xslt.c: (raptor_xslt_run_grddl_transform_uri): Set - URI filter or if feature NO_NET is set, - raptor_parse_uri_no_net_filter - - * src/raptor_xml_writer.c: Add RAPTOR_FEATURE_NO_NET to switches - - * src/raptor_sax2.c: Add RAPTOR_FEATURE_NO_NET to switches - - * src/raptor_serialize.c: Add RAPTOR_FEATURE_NO_NET to switches - - * src/raptor_parse.c: (raptor_parse_uri_no_net_filter): Added to - use in parsers to deny network fetches when feature NO_NET is in - action. - (raptor_parse_uri_with_connection): Set URI filter or if feature - NO_NET is set, raptor_parse_uri_no_net_filter - (raptor_parser_set_uri_filter): Added. - (raptor_set_feature, raptor_get_feature): Handle - RAPTOR_FEATURE_NO_NET. - (raptor_parser_copy_user_state): Copy uri filter fields. - - * src/raptor_www.c: (raptor_www_set_uri_filter): Added to add a - filter function to check a URI before it is resolved. - (raptor_www_fetch): call URI filter function before resolving. - - * src/raptor_feature.c: Added RAPTOR_FEATURE_NO_NET to deny - network requests, primarily in parsing. - - * src/raptor_internal.h: Add feature_no_net Added - raptor_parse_uri_no_net_filter prototype raptor_parser and - raptor_www gain fields uri_filter_user_data and - raptor_www_uri_filter_func uri_filter - - * src/raptor.h: Added RAPTOR_FEATURE_NO_NET - Added raptor_www_uri_filter_func filter. - Added raptor_parser_set_uri_filter prototype. - Added raptor_www_set_uri_filter - - * src/raptor_rdfxml.c: (raptor_rdfxml_generate_statement): Make - sure the allocated URI is always freed. - - * configure.ac: Strip more -O flags from incoming CFLAGS, CXXFLAGS - and CPPFLAGS. - - * configure.ac: Patch configure.ac to remove un-necessary tests - for C++ or F77++ compilers that libtool stupidly insists on - -2006-08-14 Dave Beckett - - * src/raptor_serialize_rdfxmla.c: Replace reference counting with - counting blank/resource nodes used as subjects and objects to - prevent dual-triple generation. - Fixes Issue#0000014 http://bugs.librdf.org/mantis/view.php?id=14 - Add function documentation and tidy code style. - - * src/n3_parser.y: (raptor_n3_parse_start): Enforce that a base - URI is required. - - * src/turtle_parser.y: (raptor_turtle_parse_start): Enforce that a - base URI is required. - -2006-07-30 Dave Beckett - - * src/raptor_xslt.c: Allow GRDDL value to be a space-separated - list of URIs, so now can support dataview:transformation in XML - taking a list of transformations as defined in - http://www.w3.org/2004/01/rdxh/spec#grddl-xhtml - (raptor_xslt_parse_chunk): Split the value into a list of XSLT - URIs and use each of them on the document. - Fixes Issue #0000041 http://bugs.librdf.org/mantis/view.php?id=41 - - * src/raptor_xslt.c: Added a table of xpaths and optional XSLT - URIs to use, which allows non-GRDDL to be given as long as - XML/XHTML is recognised and the XSLT sheet does the transformation - work. Added transform pointers for DC , Embedded RDF and - HCalendar - (raptor_xslt_run_grddl_transform_doc, - raptor_xslt_run_grddl_transform_uri): Added, pulled out of - raptor_xslt_parse_chunk which was too long. - (raptor_xslt_parse_chunk): Much smaller and tidied error messages. - Use the given XSLT URI to do a transform if it exists rather than - the node value(s) as URIs for multiple transforms. - - * configure.ac: Remove libwww support - - * src/raptor_internal.h, src/raptor_www.c, - src/raptor_www_libwww.c: Remove libwww support - -2006-07-16 Dave Beckett - - * src/raptor_serialize_rss.c: (raptor_rss10_build_items): - Recognize ordinals also by their URI, not just from the deprecated - ORDINAL special type - this makes RSS 1.0 serializing work again. - Based on patch from Shin-ichi Hirata. - -2006-07-15 Dave Beckett - - * NEWS.html, configure.ac, src/win32_raptor_config.h: Bumped - versions to 1.4.11 - -2006-07-14 Dave Beckett - - * Snapshotted raptor_1_4_10 for 1.4.10 release (SVN r11070) - -2006-07-04 Dave Beckett - - * raptor.pc.in, src/raptor-config.in: Remove @LDFLAGS from - raptor.pc.in and src/raptor-config.in. - Fixes Issue#0000097 http://bugs.librdf.org/mantis/view.php?id=97 - -2006-06-26 Dave Beckett - - * src/raptor.h: (raptor_identifier_type): no more - RAPTOR_IDENTIFIER_TYPE_ORDINAL generated. - - * src/n3_parser.y: Remove duplicate symbol PREFIX. - (raptor_n3_generate_statement): Do not turn a rdf:_n into an - ordinal but just check it for validity. - - * src/turtle_parser.y: Remove duplicate symbol PREFIX. - (raptor_turtle_generate_statement): Do not turn a rdf:_n predicate - into an ordinal but just check it for validity. - - * src/ntriples_parse.c: (raptor_ntriples_generate_statement): Do - not turn a rdf:_n predicate into an ordinal but just check it for - validity. - - * src/raptor_rdfxml.c: (raptor_rdfxml_generate_statement): Turn a - predicate ordinal into a resource using - raptor_new_uri_from_rdf_ordinal Handle reifying this afterwards. - - * src/raptor_general.c: (raptor_statement_copy): Turn a subject, - predicate or object ordinal into a resource using - raptor_new_uri_from_rdf_ordinal - - * src/raptor_internal.h: Added raptor_new_uri_from_rdf_ordinal - prototype. - - * src/raptor_uri.c: (raptor_new_uri_from_rdf_ordinal): Added - internal. - -2006-06-25 Dave Beckett - - * src/raptor_rdfxml.c: (raptor_rdfxml_generate_statement): Add - predicate_ordinal field, for now. Fix up calls to this to use it. - -2006-06-07 Dave Beckett - - * src/raptor_rss.c: (raptor_rss_parse_chunk): Return 0 on success - -2006-05-07 Dave Beckett - - * src/raptor_rdfxml.c: (raptor_rdfxml_comment_handler): Do nothing - when a comment is given outside an xml_element context. - - * src/raptor_rss.c: (raptor_rss_parse_chunk, - raptor_rss_parse_terminate): Make triples appear at end of - parsing, not on parser destruction which was terribly wrong. - (raptor_rss_comment_handler): Do nothing when a comment is given - outside an xml_element context. - -2006-05-02 Dave Beckett - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_start): - Reset "written header" flag. Without this, reusing a serializer - dies. - -2006-04-30 Dave Beckett - - * docs/libraptor.3: Updated for some final 1.4.9 changes - -2006-04-22 Dave Beckett - - * src/raptor_guess.c: (raptor_guess_parse_chunk): Tired of seeing - guess parser name, move to verbose debugging. - - * src/raptor_www.c: (raptor_www_set_http_accept): Tired of seeing - accept headers, move to verbose debugging. - - * src/raptor_xml_writer.c: (main): Rewrite to remove warning - punning - - * src/raptor_www_test.c: (main): Rewrite to remove warning punning - - * src/raptor_uri.c: (raptor_uri_uri_string_to_filename_fragment): - Rewrite to remove warning punning - - * src/raptor_serialize_rss.c: (raptor_rss10_emit_item): Init - element to NULL - - * src/raptor_rss.c: (raptor_rss_end_element_handler): Init - cdata_len to 0 - - * configure.ac, src/win32_raptor_config.h: Bumped version to - 1.4.10 - - * Snapshotted raptor_1_4_9 for 1.4.9 release (SVN r10822) - - * src/raptor_rdfxml.c: (raptor_rdfxml_sax2_new_namespace_handler): - Move var def to start of block. - - * src/raptor_parse.c: (raptor_parse_uri_with_connection): Move var - def to start of block. - -2006-04-20 Dave Beckett - - * examples/Makefile.am, examples/rdfcat.c, examples/rdfprint.c: - Add tutorial examples rdfcat.c and rdfprint.c here. - - * docs: DocBook updates: new Tutorial chapter on serializing plus - completing of parsing chapter. - - * src/raptor_uri.c: Change all calloc/mallocs for URI strings to - add enough room for a full pointer at the end of a URI string to - stop valgrind moans on 64bit systems when they are looking for the - end of string NUL. - -2006-04-15 Dave Beckett - - * src/raptor_www_curl.c: Delete alternate path using - CURLINFO_CONTENT_TYPE instead of grepping headers. - - * src/raptor_www_curl.c: Add alternate path to use - CURLINFO_CONTENT_TYPE instead of grepping headers. Downside is - that the content type appears long after content. Add more debug - messages when RAPTOR_DEBUG > 2 - (raptor_www_curl_init): Tidy alternate defines - - * src/raptor_internal.h: Deleted raptor_uri_init_default_handler - prototype. - - * src/raptor_uri.c: (raptor_uri_set_handler, - raptor_new_iostream_from_handler): Ajusted to take const handler - args. - (raptor_uri_init_default_handler): Deleted. - (raptor_uri_init): No need to init static struct. - - * src/raptor.h: Adjust raptor_uri_set_handler and - raptor_new_iostream_from_handler prototypes to take const handler - args. - - * src/raptor_rss.c: make raptor_rss_uplift_map const - - * src/raptor_iostream.c: make handler field a const - (raptor_new_iostream_from_handler): Take a const handler. - -2006-04-14 Dave Beckett - - * tests/all-escape.nt, tests/all-escape.rdf: All 0-7F ascii - escapes and the XML 1.1 output - -2006-04-11 Dave Beckett - - * docs: DocBook updates - -2006-04-10 Dave Beckett - - * docs: DocBook updates: Tutorial introduction, parsing. - -2006-04-09 Dave Beckett - - * docs: DocBook updates - - * src/raptor_xml.c: (raptor_xml_element_declare_namespace): Add - int return value for when a namespace is failed to be declared, - when it is already there. - - * src/raptor.h: raptor_xml_element_declare_namespace now has an - int return value - -2006-04-07 Dave Beckett - - * src/raptor_xslt.c: (raptor_xslt_parse_chunk): Added debug statement. - -2006-04-03 Dave Beckett - - * tests/turtle/manifest.ttl: Added test-25 - - * tests/turtle/Makefile.am, tests/turtle/test-25.out, - tests/turtle/test-25.ttl: Added comment test - -2006-04-01 Dave Beckett - - * src/raptor_rss.c: (raptor_rss_start_element_handler): Tidying of - logic near type attribute - - * src/raptor_rss.c: (raptor_rss_start_element_handler): More - atom/old atom/rss guessing. Look for type=xml and an XML mime - type to trigger xml writer Look for attribute version on feed to - ensure old atom is found - - * src/raptor_rss.c: (raptor_init_parser_rss): Add another mime - type possibility. - - * src/raptor_rss.c: Add is_atom field to rss_parser structure. - (raptor_rss_start_element_handler): Use elements seen to pick - is_atom flag. Use is_atom flag to switch between rss author and - atom author handling. - - * src/raptor_rss.c: (raptor_init_parser_rss): Add more - unregistered rss mime type possibilities. - - * src/raptor_guess.c: (raptor_guess_parse_content_type_handler): - Strip ';' onwards from content type for guessing. - - * src/raptor_rss.c: (raptor_rss_parse_recognise_syntax): Use xml - in mime type guess - - * src/raptor_parse.c: (raptor_parser_get_accept_header, - raptor_parser_get_accept_header_all): Do not format with ;q=1.0 - - * src/turtle_parser.y: (raptor_init_parser_turtle): Register - application/x-turtle once only. - - * src/raptor_parse.c: (raptor_guess_parser_name, - raptor_parser_get_accept_header, - raptor_parser_get_accept_header_all): Fix type_q list walking to - detect end of loops vs early exit properly. - - * src/turtle_parser.y: (raptor_init_parser_turtle): Register N3 - mime types here with lower Q, if no N3 parser is present. - - * src/n3_parser.y: (raptor_init_parser_n3): Add another N3 mime - type possibility. - - * src/raptor_parse.c: (raptor_guess_parser_name): Fix i/j problem. - - * src/raptor_serialize_rss.c: (raptor_rss10_emit_item): Handle - atom:summary XML content - - * configure.ac: No longer require libxml for rss-tag-soup parser. - - * src/raptor_serialize_rss.c: casts - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c, - src/raptor_serialize_rss.c: Switch to using raptor_sax2 API from - xmlReader, and now can do atom type 'xhtml' content using - raptor_xml_writer. - - * src/raptor.h: Add prototype for raptor_xml_element_is_empty - - * src/raptor_rdfxml.c: (raptor_rdfxml_characters_handler, - raptor_rdfxml_cdata_handler, raptor_rdfxml_comment_handler): Add - xml_element parameter. - - * src/raptor_sax2.c: (raptor_xml_element_is_empty): Added. - (raptor_sax2_characters_handler, raptor_sax2_cdata_handler, - raptor_sax2_comment_handler): Add xml_element parameter. - - * src/raptor_internal.h: Add xml_element field to - raptor_sax2_characters_handler, raptor_sax2_cdata_handler and - raptor_sax2_comment_handler - -2006-03-30 Dave Beckett - - * src/raptor_rdfxml.c: update function names in fatal/debug messages - - * src/raptor_rdfxml.c: (raptor_rdfxml_start_element_handler): Tidy - tests for looking for an empty element. - - * src/raptor_internal.h: raptor_xml_element gains a user_data - field - -2006-03-29 Dave Beckett - - * src/raptor_rss.c: Replace raptor_rss_parser_context* with - raptor_rss_parser* - -2006-03-27 Dave Beckett - - * src/win32_raptor_config.h: raptor win32 build files update from - John Barstow - - * win32/rapper.vcproj, win32/raptor.sln, win32/raptor.vcproj: - raptor win32 build files update from John Barstow - - * docs/tmpl/section-parser.sgml: docs update - - * docs/raptor-overrides.txt: Do not override raptor_statement - - * docs/tmpl/section-unused.sgml: RAPTOR_DEPRECATED - -2006-03-26 Dave Beckett - - * docs/raptor-sections.txt: Added raptor_parser_get_accept_header - - * src/raptor_parse.c: (raptor_parser_get_accept_header): fix q format - - * src/n3_parser.y: (raptor_init_parser_n3): Register n3 mime type - - * src/turtle_parser.y: (raptor_init_parser_turtle): Register - turtle experimental mime types - - * src/raptor_xslt.c: (raptor_init_parser_grddl): Register HTML and - XHTML mime types at low q. - - * src/raptor_rdfxml.c: (raptor_init_parser_rdfxml): Register - rdf/xml and older mozilla-era mime type. - - * src/raptor_www.c: (raptor_www_set_http_accept): debug message - - * src/raptor_rss.c: (raptor_rss_parse_recognise_syntax): look in - mime type for rss or atom. - (raptor_init_parser_rss): Register two rss mime types. - - * src/raptor_guess.c: (raptor_guess_accept_header): Added - (raptor_guess_parser_register_factory): Use - raptor_guess_accept_header to accept all known types. - - * src/raptor.h: Added prototype for raptor_parser_get_accept_header - - * src/raptor_parse.c: (raptor_delete_parser_factories): Delete new - mime_types list. - (raptor_parser_register_factory): Use - raptor_parser_factory_add_mime_type. - (raptor_free_type_q): Added. - (raptor_parser_factory_add_mime_type): Added. - (raptor_syntaxes_enumerate): Use mime types from sequence to - return first as primary. - (raptor_parse_uri_with_connection): Use - raptor_parser_get_accept_header to do the work. - (raptor_get_mime_type): Use mime_type sequence in factory to - return first mime type if registered. - (raptor_guess_parser_name): Use mime types from sequence to find - them. - (raptor_parser_get_accept_header): Added - (raptor_parser_get_accept_header_all): Added to return an accept - header for all types - - * src/raptor_internal.h: Added raptor_type_q for storing mime - type+Q values. raptor_parser_factory gains raptor_sequence* - mime_types replacing a single mime_type const char* and an - accept_header method to return the Accept: header rather than use - it from the mime_types list. Added prototypes, for - raptor_parser_factory_add_mime_type, raptor_free_type_q and - raptor_parse_get_all_accept_headers - - * src/raptor_www_curl.c: (raptor_www_curl_fetch): Get the curl - status into a long, not an int which causes failure on 64 bit - archs. Fixes issue#0000075 - http://bugs.librdf.org/mantis/view.php?id=75 - - * src/raptor_internal.h: (struct raptor_www_s): Removed CURLcode - status - -2006-03-20 Dave Beckett - - * docs/raptor-chapter-intro.xml: docs - -2006-03-19 Dave Beckett - - * docs/raptor-chapter-intro.xml: docs - - * docs/raptor-docs.xml: Added raptor-chapter-intro.xml - - * docs/Makefile.am: Added raptor-chapter-intro.xml - - * docs/raptor-chapter-intro.xml: intro - - * Makefile.am: deleted obsolete deb rule - - * src/raptor_rdfxml.c: (raptor_rdfxml_parse_recognise_syntax): Add - foaf and doap to suffixes that are likely RDF/XML - - * gtkdoc-mkdb reports "100% symbol docs coverage" - - * docs/raptor-overrides.txt: Override internal struct names. - - * src/raptor.h, src/raptor_general.c, src/raptor_sequence.c, - src/raptor_serialize.c, src/raptor_xml.c, src/raptor_xml_writer.c: - autodocs - -2006-03-18 Dave Beckett - - * src/raptor_utf8.c, docs/tmpl/section-uri.sgml, - docs/tmpl/section-xml-namespace.sgml, - docs/tmpl/section-xml-qname.sgml, docs/tmpl/section-unicode.sgml: - autodocs - - * src/raptor_utf8.c: (raptor_unicode_char_to_utf8): Add docs. - (raptor_utf8_to_unicode_char): Add docs. Now also checks for - overlong UTF-8 sequences, illegal code positions or out of range - codes. - - * docs/raptor-sections.txt: Added new functions - - * src/turtle_parser.y: Remove generating - RAPTOR_IDENTIFIER_TYPE_RESOURCE for statement predicates as - deprecated in 1.4.8 - - * src/raptor_rss.c: Remove generating - RAPTOR_IDENTIFIER_TYPE_RESOURCE for statement predicates as - deprecated in 1.4.8 - - * src/raptor_rdfxml.c: Remove generating - RAPTOR_IDENTIFIER_TYPE_RESOURCE for statement predicates as - deprecated in 1.4.8 - - * src/ntriples_parse.c: Remove generating - RAPTOR_IDENTIFIER_TYPE_RESOURCE for statement predicates as - deprecated in 1.4.8 - - * src/n3_parser.y: Remove generating - RAPTOR_IDENTIFIER_TYPE_RESOURCE for statement predicates as - deprecated in 1.4.8 - - * src/raptor_uri.c: (raptor_new_uri): Fail on NULL or empty uri_string. - (raptor_new_uri_from_uri_local_name): Fail on NULL uri or local_name - (raptor_new_uri_relative_to_base): Fail on NULL base_uri or uri_string - (raptor_new_uri_from_id): Fail on NULL base_uri or id. - (raptor_new_uri_for_rdf_concept): Fail on NULL name. - (raptor_uri_copy): Fail on NULL uri. - (raptor_uri_as_string): Fail on NULL uri. - (raptor_uri_as_counted_string): Fail on NULL uri. - (raptor_uri_filename_to_uri_string): : Fail on NULL filename. - (raptor_uri_uri_string_to_filename_fragment): Fail on NULL or empty - uri_string. - (raptor_uri_uri_string_is_file_uri): Fail on NULL or empty uri_string. - (raptor_new_uri_for_xmlbase): Fail on NULL uri. - (raptor_new_uri_for_retrieval): Fail on NULL uri. - (raptor_uri_to_relative_counted_uri_string): Fail on NULL - reference_uri. Document allowing NULL base_uri. - (raptor_uri_print): Print "(NULL URI)" for NULL URI. - (raptor_uri_to_counted_string): Fail on NULL uri. - - * src/raptor_rdfxml.c: More raptor_* to raptor_rdfxml_* renames - - * src/raptor_internal.h: Delete prototypes for functions only used - in rdfxml - - * src/raptor_qname.c: Return const namespace from - raptor_qname_get_namespace - - * src/raptor.h: Return const namespace from - raptor_qname_get_namespace - - * src/raptor_rdfxml.c: (raptor_rdfxml_record_ID): Renamed from - raptor_record_ID - (raptor_rdfxml_inscope_base_uri): Renamed from - raptor_inscope_base_uri and now static - (raptor_inscope_xml_language): Deleted, replaced with 1 call to - raptor_sax2_inscope_xml_language - - * src/raptor_rdfxml.c: raptor_element to raptor_rdfxml_element renames - -2006-03-15 Dave Beckett - - * src/raptor_xml.c: (raptor_iostream_write_xml_any_escaped_string): - Write XML-escaped ASCII 9 and A as XML with trailing ';' - - * tests/Makefile.am, tests/ex-60.nt, tests/ex-60.rdf: Added ex-60 - rdf/xml serializing test - - * src/raptor.h: Added raptor_qname_get_namespace - - * src/raptor_qname.c: (raptor_qname_get_namespace): Added. - - * src/raptor_www.c: (raptor_uri_uri_string_is_file_uri): Renamed - from raptor_uri_string_is_file_uri. - - * src/raptor_uri.c: (raptor_uri_uri_string_is_file_uri): Renamed - from raptor_uri_string_is_file_uri. - - * src/raptor.h: (raptor_uri_uri_string_is_file_uri): Renamed from - raptor_uri_string_is_file_uri. - -2006-03-04 Dave Beckett - - * src/turtle_parser.y: (directive): Use - raptor_new_namespace_from_uri and save string conversions. - - * src/n3_parser.y: (directive): Use raptor_new_namespace_from_uri - and save string conversions. - - * src/raptor_www.c: (raptor_www_fetch): Use - raptor_uri_string_is_file_uri instead of deprecated - raptor_uri_is_file_uri - - * src/raptor_serialize_simple.c: - (raptor_simple_serialize_statement): Use new raptor_iostream_write_uri. - - * src/raptor_uri.c: (raptor_uri_is_file_uri): Deprecated for - raptor_uri_string_is_file_uri. - (raptor_uri_string_is_file_uri): Added. - - * src/raptor.h: Deprecated raptor_uri_is_file_uri for - raptor_uri_string_is_file_uri. - Added raptor_iostream_write_uri. - - * src/raptor_iostream.c: (raptor_iostream_write_uri): Added. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_statement): Do not free shared string - returned from raptor_uri_as_string. Fixes issue#0000065 - http://bugs.librdf.org/mantis/view.php?id=65 - - * src/raptor_serialize_rdfxml.c: - (raptor_rdfxml_serialize_statement): Use raptor_uri_to_string so - that new strings are allocated then freed. Fixes issue#0000065 - http://bugs.librdf.org/mantis/view.php?id=65 - - * src/raptor_stringbuffer.c: - (raptor_stringbuffer_append_string_common, - raptor_stringbuffer_append_counted_string, - raptor_stringbuffer_append_string): Do nothing on appending a NULL - string or a string of length 0. - (main): Add tests for this. Fixes issue#0000073 - http://bugs.librdf.org/mantis/view.php?id=73 - -2006-02-21 Dave Beckett - - * src/raptor_serialize_rdfxmla.c: - (raptor_new_qname_from_resource): Use - raptor_namespaces_qname_from_uri to prefer using an existing XML - namespace for creating a qname, otherwise make a new one just for - this element. - - * src/raptor_namespace.c: (raptor_namespaces_qname_from_uri): - Added, to make a qname from the in-scope namespaces in a stack. - - * src/raptor.h: Added prototype for raptor_namespaces_qname_from_uri - -2006-02-20 Dave Beckett - - * src/raptor_rss.c: raptor_rss_parser_context_s gains is_empty and - nstack fields. - (raptor_rss_context_init): Initialise new namespace stack and the - nspace field of raptor_rss_namespace_info. - (raptor_rss_context_terminate): Delete new namespace stack. - (raptor_rss_parse_start): Synthesise the namespace events. - (raptor_rss_start_element): Push is_empty flag into rss parser - context and reorganize empty case. - (raptor_rss_parser_processNode): set element_is_empty flag and use - it. - - * src/raptor_rss_common.c: Add RDF namespace for RSS use - - * src/raptor_rss.h: Add RDF namespace for RSS use - -2006-02-19 Dave Beckett - - * AUTHORS: update me - -2006-02-18 Dave Beckett - - * docs/raptor-sections.txt: Add raptor_xml_element_get_attributes - raptor_xml_element_get_attributes_count - - * src/raptor_serialize_rdfxmla.c: Remove // comments - - * src/raptor_guess.c: Cast for C++ - - * src/n3_parser.y: Cast for C++ - - * src/turtle_parser.y: Cast for C++ - - * src/raptor_sax2.c: (raptor_sax2_parse_start, - raptor_sax2_end_element): Code tidying, move decls to top of - functions and don't end early if there is no handler. - - * src/raptor_rdfxml.c: Remove several unused uses of raptor_sax2* - - * src/raptor_rdfxml.c: Change to use field name xml_element for a - raptor_xml_element inside raptor_element. - - * src/raptor_sax2.c: (raptor_free_sax2): Delete obsolete - raptor_libxml_libxml_free_entities. Free base URI. - (raptor_sax2_inscope_base_uri): Return SAX2 base URI if nothing is - in scope. - (raptor_sax2_parse_start): Save Base URI. - (raptor_sax2_start_element): Add all code from old - raptor_rdfxml_start_element_handler. - (raptor_sax2_end_element): Add all code from old - raptor_rdfxml_end_element_handler. - - * src/raptor_rdfxml.c: (raptor_rdfxml_sax2_new_namespace_handler): - Add raptor_parser_start_namespace call. - (raptor_rdfxml_start_element_handler): Deleted and merged into - raptor_sax2_start_element. - (raptor_rdfxml_end_element_handler): Use raptor_xml_element* - argument. - (raptor_inscope_base_uri): Tidy code. - - * src/raptor_internal.h: raptor_sax2_start_element_handler and - raptor_sax2_end_element_handler now take raptor_xml_element* - raptor_sax2 gaisn base_uri field. - - * src/raptor_rdfxml.c: (raptor_rdfxml_end_element_handler): Split - into XML and RDF/XML parts now calling - raptor_rdfxml_end_xml_element_handler. - (raptor_rdfxml_end_xml_element_handler): Added, splitting RDF/XML - part out of raptor_rdfxml_end_element_handler - - * src/raptor_sax2.c: (raptor_free_sax2): Run - raptor_namespaces_clear. - (raptor_sax2_simple_error): Added, to report errors from - namespaces upwards. - (raptor_sax2_parse_start): Init namespaces stack. - - * src/raptor_rdfxml.c: Deleted raptor_namespace_stack, now in - raptor_sax2 - (raptor_rdfxml_start_xml_element_handler): Added, splitting - RDF/XML part out of raptor_rdfxml_start_element_handler - (raptor_rdfxml_end_element_handler): Prepare for splitting XML and - RDF/XML parts. - (raptor_rdfxml_parse_start): Moved namespaces stack init into - raptor_sax2_parse_start. - - * src/raptor_internal.h: raptor_sax2 gains raptor_namespace_stack - from rdf/xml parser - - * src/raptor_rdfxml.c: (raptor_rdfxml_sax2_new_namespace_handler): - Added, as callback raptor_sax2_set_namespace_handler. - (raptor_rdfxml_start_element_handler): Split XML and RDF/XML - namespace processing parts in preparation for moving them - elsewhere. - (raptor_rdfxml_parse_init): Use raptor_sax2_set_feature to set the - XML namespace handler. - - * src/raptor.h: Added prototypes for - raptor_xml_element_get_attributes and - raptor_xml_element_get_attributes_count. - - * src/raptor_xml.c: (raptor_xml_element_get_attributes, - raptor_xml_element_get_attributes_count): Added. - - * src/raptor_internal.h: raptor_sax2 gaisn namespace_handler and - feature_normalize_language fields. Added prototypes for - raptor_sax2_set_namespace_handler and raptor_sax2_set_feature. - - * src/raptor_sax2.c: (raptor_sax2_set_namespace_handler): Added, - to allow callbacks when an XML namespace is defined. - (raptor_sax2_set_feature): Added, with one feature - RAPTOR_FEATURE_NORMALIZE_LANGUAGE for normalizing xml:lang values. - -2006-02-04 Dave Beckett - - * src/raptor_parse.c: (raptor_parser_warning): Restored. - - * src/raptor_parse.c: (raptor_parser_error_varargs): Restored. - - * src/Makefile.am: Added fix-bison - - * src/fix-bison: Format output generated by bison - - * src/raptor_internal.h: revert experiment not intended to be - commited - - * src/raptor_internal.h: Add prototypes for - raptor_invoke_message_varargs and - raptor_invoke_simple_message_varargs - - * src/raptor_parse.c: (raptor_parser_simple_error, - raptor_parser_warning): Use raptor_invoke_message_varargs - (raptor_parser_error_varargs, raptor_parser_warning_varargs): - Deleted. - - * src/raptor_general.c: (raptor_invoke_simple_message_varargs, - raptor_invoke_message): Helper functions for invoking - error/warning/fatal error handlers with varargs, just given a - handler that takes a single message string. - -2006-02-03 Dave Beckett - - * configure.ac: allow --enable-parsers/serializers=none - -2006-02-02 Dave Beckett - - * src/raptor_rss.c: (raptor_rss_start_element, - raptor_rss_end_element, raptor_rss_cdata): - Added, pulling big chunks of code out of the switch in - raptor_rss_parser_processNode. - -2006-01-27 Dave Beckett - - * src/raptor_serialize_rss.c: Do not write XML header here, XML - writer does it. - -2006-01-22 Dave Beckett - - * src/raptor_guess.c: (raptor_guess_parse_chunk): Tired of seeing - debug message. Goodbye. - -2006-01-16 Dave Beckett - - * src/raptor_namespace.c: (raptor_namespaces_format): - NULL-terminate the namespace string. - Fixes bug 0000062 http://bugs.librdf.org/mantis/view.php?id=62 - - * tests/test.nt: Remove svn:eol-style native property so that - multiple line endings in one file work - - * win32/rapper.dsp, win32/rapper.vcproj, win32/raptor.dsp, - win32/raptor.dsw, win32/raptor.sln, win32/raptor.vcproj, - win32/raptortest.cpp, win32/raptortest.dsp, - win32/raptortest.vcproj: Restore CRLF end of lines, set - svn:eol-style CRLF - -2006-01-14 Dave Beckett - - * docs/tmpl/section-serializer.sgml, - docs/tmpl/section-xml-namespace.sgml: update docs for new - functions - - * docs/raptor-sections.txt: Added - raptor_serialize_set_namespace_from_namespace - - * utils/rapper.c: (relay_namespaces): Added, calling - raptor_serialize_set_namespace_from_namespace when namespaces are - not just printed out. Makes serializers use namespace prefix/URIs - found in parsed RDF. - - * src/raptor_serialize_rdfxmla.c: Delay the writing of the - namespaces on the rdf:RDF root element till as late as possible, - allowing user declaration of namespaces to effect the output. - (raptor_rdfxmla_serialize_init): Add rdf:RDF's namespace to the - list of namespaces to declare. - (raptor_rdfxmla_serialize_terminate): Do not free namespace #0 - because of above. - (raptor_rdfxmla_serialize_declare_namespace_from_namespace): - Added, to set a namespace declared once only, preventing the same - prefix appearing twice. - (raptor_rdfxmla_serialize_declare_namespace): Use the above. - (raptor_rdfxmla_serialize_start): Do not write root element here. - (raptor_rdfxmla_ensure_writen_header): Added to write root element - and namespace declarations. - (raptor_rdfxmla_serialize_statement, - raptor_rdfxmla_serialize_end): Call - raptor_rdfxmla_ensure_writen_header before emitting syntax. - (raptor_rdfxmla_serializer_register_factory): Register - raptor_rdfxmla_serialize_declare_namespace_from_namespace. - - * src/raptor_serialize_rdfxml.c: Delay the writing of the - namespaces on the rdf:RDF root element till as late as possible, - allowing user declaration of namespaces to effect the output. - (raptor_rdfxml_serialize_init): Add rdf:RDF's namespace to the - list of namespaces to declare. - (raptor_rdfxml_serialize_terminate): Do not free namespace #0 - because of above. - (raptor_rdfxml_serialize_declare_namespace_from_namespace): Added, - to set a namespace declared once only, preventing the same prefix - appearing twice. - (raptor_rdfxml_serialize_declare_namespace): Use the above. - (raptor_rdfxml_serialize_start): Do not write root element here. - (raptor_rdfxml_ensure_writen_header): Added to write root element - and namespace declarations. - (raptor_rdfxml_serialize_statement, raptor_rdfxml_serialize_end): - Call raptor_rdfxml_ensure_writen_header before emitting syntax. - (raptor_rdfxml_serializer_register_factory): Register - raptor_rdfxml_serialize_declare_namespace_from_namespace. - - * src/raptor.h: Added prototype for - raptor_serialize_set_namespace_from_namespace - - * src/raptor_serialize.c: (raptor_serialize_set_namespace): Now a - wrapper around: - (raptor_serialize_set_namespace_from_namespace:): Added, to set a - namespace for serialzing from an existing raptor_namespace - - * src/raptor_internal.h: raptor_serializer_factory gains a factory - method declare_namespace_from_namespace - - * tests/Makefile.am: Report error output on rdfxml-abbrev failure - - * tests/Makefile.am: (check-rdfxmla): Don't die on first error, - report all then die. - - * docs/raptor-sections.txt: Added - raptor_namespace_get_counted_prefix - - * src/raptor.h: Added prototype for raptor_namespace_get_counted_prefix - - * src/raptor_namespace.c: (raptor_namespace_get_counted_prefix): - Added to return prefix and it's length. - - * src/turtle_parser.y: (statementList): Rewrite to remove all - shift/reduce conflicts. - - * src/n3_parser.y: (statementList): Rewrite to remove all - shift/reduce conflicts. - -2006-01-10 Dave Beckett - - * src/n3_parser.y: Make literal be just literals, resource only - URI or QNAME. - - * src/turtle_parser.y: Use TRUE and FALSE boolean literals to make - xsd:boolean values. Make literal be just literals, resource only - URI or QNAME. - - * src/turtle_lexer.l: Added true & false boolean literals - - * tests/turtle/Makefile.am, tests/turtle/manifest.ttl, - tests/turtle/test-24.out, tests/turtle/test-24.ttl: Added boolean - literals tests - - * src/turtle_parser.y: Compatibility fixes for older bisons (1.7x) - and whitespace edits. - - * src/n3_parser.y: Compatibility fixes for older bisons (1.7x) and - whitespace edits. - -2006-01-09 Dave Beckett - - * src/turtle_parser.y, src/n3_parser.y: Compatibility fixes for - older bisons (1.7x) and whitespace edits. - - * examples/Makefile.am: Fix raptor_abort link dependencies - -2006-01-08 Dave Beckett - - * fix-groff-xhtml: footer - -2006-01-07 Dave Beckett - - * Makefile.am, autogen.sh, configure.ac, docs/Makefile.am, - examples/Makefile.am, examples/grapper.c, - examples/raptor_abort.c, fix-groff-xhtml, manifest.pl, - raptor-src-config.in, src/Makefile.am, src/fix-flex, - src/n3_common.h, src/n3_lexer.l, src/n3_parser.y, - src/ntriples_parse.c, src/parsedate.y, src/raptor-config.1, - src/raptor-config.1, src/raptor-config.in, src/raptor.h, - src/raptor_expat.c, src/raptor_feature.c, - src/raptor_general.c, src/raptor_guess.c, - src/raptor_identifier.c, src/raptor_internal.h, - src/raptor_iostream.c, src/raptor_libxml.c, - src/raptor_locator.c, src/raptor_namespace.c, - src/raptor_nfc.c, src/raptor_nfc.h, src/raptor_nfc_test.c, - src/raptor_parse.c, src/raptor_qname.c, src/raptor_rdfxml.c, - src/raptor_rfc2396.c, src/raptor_rss.c, src/raptor_rss.h, - src/raptor_rss_common.c, src/raptor_sax2.c, - src/raptor_sequence.c, src/raptor_serialize.c, - src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c, - src/raptor_serialize_simple.c, src/raptor_set.c, - src/raptor_stringbuffer.c, src/raptor_uri.c, - src/raptor_utf8.c, src/raptor_win32.c, src/raptor_www.c, - src/raptor_www_curl.c, src/raptor_www_libfetch.c, - src/raptor_www_libwww.c, src/raptor_www_libxml.c, - src/raptor_www_test.c, src/raptor_xml.c, - src/raptor_xml_writer.c, src/raptor_xsd.c, - src/raptor_xslt.c, src/strcasecmp.c, src/turtle_common.c, - src/turtle_common.h, src/turtle_lexer.l, - src/turtle_parser.y, src/win32_raptor_config.h, - tests/Makefile.am, tests/empty.c, tests/ex-52.svg, - tests/test.html, tests/test.nt, tests/test.svg, - utils/Makefile.am, utils/getopt.c, utils/rapper.1, - utils/rapper.c, utils/raptor_getopt.h, utils/rdfdiff.c: - Remove RCS ID. Copyright 2006 - - * .cvsignore, data/.cvsignore, docs/.cvsignore, - examples/.cvsignore, src/.cvsignore, tests/.cvsignore, - tests/turtle/.cvsignore, utils/.cvsignore, win32/.cvsignore, - delete .cvsignore files - -2006-01-07 Dave Beckett - - * configure.ac, src/win32_raptor_config.h: Bumped version to 1.4.9 - - * docs/tmpl/section-feature.sgml: Added - RAPTOR_FEATURE_WRITER_XML_VERSION - - * Switched to Subversion version control. - CVS tag for raptor 1.4.8: raptor_1_4_8 - Subversion revision ID for raptor 1.4.8: r3091 - -2006-01-03 Dave Beckett - - * Snapshotted raptor_1_4_8 for 1.4.8 release (SVN r3091) - -2006-01-02 Dave Beckett - - * src/raptor_namespace.c (main): Cast for string - - * src/n3_lexer.l: Apply more turtle to n3 changes for names. - - * src/n3_parser.y: Update N3 parser to turtle. - - * src/n3_lexer.l: Update N3 lexer to turtle. - - * src/raptor_general.c, src/raptor_namespace.c, - src/turtle_parser.y, src/turtle_lexer.l: 2006 and urls - - * tests/turtle/Makefile.am: Added test-23 - - * tests/turtle/test-23.out, tests/turtle/test-23.ttl: Test long - literal ending in a double quote - - * tests/turtle/manifest.ttl: Added test-23 testing long literal - ending in a double quote - - * src/turtle_common.c (raptor_stringbuffer_append_turtle_string): - Fix comment to match code and report hex char of bad escapes. - - * src/turtle_lexer.l: Try to handle \-escapes inside """ properly. - - * tests/turtle/README.txt: url - - * tests/turtle/Makefile.am: Add TEST_MANIFEST_FILES to tests.zip - - * tests/turtle/manifest-bad.ttl, tests/turtle/manifest.ttl: - Updated manifests from Arjohn Kampman - - * src/turtle_parser.y (DECIMAL_LITERAL): Added turtle decimal and - double after SPARQL 2005-11-23 - - * src/turtle_lexer.l: Added turtle decimal and double after SPARQL - 2005-11-23 - - * tests/turtle/Makefile.am, tests/turtle/test-19.out, - tests/turtle/test-21.out, tests/turtle/test-21.ttl, - tests/turtle/test-22.out, tests/turtle/test-22.ttl: Added - decimal/double/integer + and - checks from - http://lists.w3.org/Archives/Public/public-cwm-talk/2005OctDec/0017.html - -2006-01-01 Dave Beckett - - * src/raptor_namespace.c (raptor_namespaces_find_namespace): - Handle searching for default namespace with prefix=NULL. - (main): Add test code for above. diff --git a/ChangeLog.8 b/ChangeLog.8 deleted file mode 100644 index 6179c069..00000000 --- a/ChangeLog.8 +++ /dev/null @@ -1,2234 +0,0 @@ -2007-12-31 Dave Beckett - - * src/raptor_iostream.c: (raptor_iostream_init_common): Added to - init iostream fields - - * src/raptor_iostream.c: Replaced raptor_iostream_handler - structure with raptor_iostream_handler2 - (raptor_new_iostream_from_handler2): Added. - (raptor_new_iostream_from_handler): Rewritten to use - raptor_new_iostream_from_handler2 and create an internal - raptor_iostream_handler2. - (raptor_new_iostream_from_sink, raptor_new_iostream_from_filename - raptor_new_iostream_from_file_handle, - raptor_new_iostream_from_string): Added for constructing read - iostreams. - (method raptor_iostream_read_bytes): Added for reading from read - iostreams. - - - * src/raptor.h: Added raptor_iostream_read_bytes_func Added - raptor_iostream_handler2 with version, private field and - read_bytes field. Deprecated raptor_iostream_handler structure - for raptor_iostream_handler2 structure. Added - raptor_new_iostream_from_handler2 and deprecated - raptor_new_iostream_from_handler Added - raptor_new_iostream_from_sink, raptor_new_iostream_from_filename - raptor_new_iostream_from_file_handle and - raptor_new_iostream_from_string for constructing read iostreams. - Added method raptor_iostream_read_bytes for read iostreams. - -2007-12-28 Dave Beckett - - * src/raptor.h, src/raptor_internal.h: Move SAX2 to public - API. Added new raptor_sax2 typedef. Added XML type handlers - raptor_sax2_start_element_handler, - raptor_sax2_end_element_handler, raptor_sax2_characters_handler, - raptor_sax2_cdata_handler, raptor_sax2_comment_handler, - raptor_sax2_unparsed_entity_decl_handler, - raptor_sax2_external_entity_ref_handler. Added functions - raptor_new_sax2, raptor_free_sax2, - raptor_sax2_set_start_element_handler, - raptor_sax2_set_end_element_handler, - raptor_sax2_set_characters_handler, raptor_sax2_set_cdata_handler, - raptor_sax2_set_comment_handler, - raptor_sax2_set_unparsed_entity_decl_handler, - raptor_sax2_set_external_entity_ref_handler, - raptor_sax2_set_namespace_handler, raptor_sax2_parse_start, - raptor_sax2_parse_chunk, raptor_sax2_parse_handle_errors, - raptor_sax2_inscope_xml_language, raptor_sax2_inscope_base_uri - Moved log API to public API. Added raptor_log_level and - raptor_error_handlers typedefs. Added - raptor_error_handlers_init. - - * src/raptor.h, src/raptor_xml.c: Added - raptor_xml_element_get_language - - * src/raptor.h, src/raptor_qname.c: Added - raptor_qname_get_local_name and raptor_qname_get_value - - * src/raptor_turtle_writer.c: cast - - * src/raptor_xml_writer.c: cast - - * src/raptor_turtle_writer.c: (raptor_turtle_writer_newline): Cast - for signed/unsigned int compare. - - * src/raptor_xml_writer.c: (raptor_xml_writer_indent): Cast for - signed/unsigned int compare. - - * tests/turtle/Makefile.am: Add bad-19.ttl - - * tests/turtle/bad-19.ttl: bad-19 () in predicate position - -2007-12-24 Dave Beckett - - * docs/raptor.types: Add gtkdoc file raptor.types - -2007-12-19 Lauri Aalto - - * src/raptor_stringbuffer.c: (raptor_new_stringbuffer) Fixed - docs. Removed unnecessary local var and conditional. - -2007-12-18 Lauri Aalto - - * src/turtle_parser.y: (raptor_trig_parse_recognise_syntax): Wrap - function in #ifdef RAPTOR_PARSER_TRIG. Used only if - RAPTOR_PARSER_TRIG is defined, avoids gcc warning on unused static - function. - -2007-12-13 Lauri Aalto - - * src/raptor_uri.c: Portability: Use Windows-like path handling on - Symbian. - -2007-12-09 Dave Beckett - - * docs/raptor-tutorial-parsing.xml: fix raptor_set_feature() call - to have 3 args - -2007-11-28 Dave Beckett - - * tests/turtle/Makefile.am, tests/turtle/bad-17.ttl, - tests/turtle/bad-18.ttl, tests/turtle/manifest-bad.ttl: bad tests - 17 and 18 to Forbid ' and '''-quoted strings - - * src/turtle_lexer.l: Remove '-quoted strings - -2007-11-26 Dave Beckett - - * autogen.sh: Update to handle OSX glibtoolize and optional ltdl - -2007-11-15 Lauri Aalto - - * src/raptor_sax2.c: (raptor_sax2_parse_chunk) Fix compiler - warnings: unused variable, unused label. - -2007-11-15 Dave Robillard - - * src/raptor_serialize_turtle.c: - (raptor_turtle_emit_subject_properties): Write ; statement - terminators with a leading space for consistency with . terminator - -2007-11-12 Lauri Aalto - - * src/raptor_www.c: (raptor_www_init) Pull static initialized flag - from function scope to unit scope. - - * src/raptor_nfc.h, src/raptor_nfc_data.c: Make raptor nfc data - const - eliminate ~53768 bytes of writable static. - - * src/raptor_serialize_rss.c: Make raptor_rss10_spaces pointer const. - - * src/n3_parser.y, src/raptor.h, src/raptor_internal.h, - src/raptor_namespace.c, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_sax2.c, src/raptor_serialize_dot.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c, - src/raptor_turtle_writer.c, src/raptor_uri.c, - src/raptor_xml_writer.c, src/turtle_parser.y: Make - raptor_uri_handlers const. SOURCE COMPATIBILITY BREAK: Five raptor - API function signatures changed: - raptor_uri_set_handler() - raptor_uri_get_handler() - raptor_new_namespaces() - raptor_namespaces_init() - raptor_new_xml_writer() - - * src/raptor_uri.c: (raptor_uri_set_handler) Assert inputs - -2007-11-06 Lauri Aalto - - * src/raptor_serialize_turtle.c: fix eol style - - * src/raptor_uri.c: (raptor_uri_set_handler) Treat uri handler as - const although the API does not say it is const. - - * src/raptor.h: Allow RAPTOR_API to be externally defined e.g. in - a static config.h. Remove __SYMBIAN32__ case. - - * src/turtle_lexer.l, src/turtle_parser.y: Rename - turtle {TRUE,FALSE} tokens to {TRUE,FALSE}_TOKEN to prevent - potential clashes with system headers. - - * src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Remove - writable static data. Refactor turtle/xml writers to use a const - spaces_buffer. - - * src/raptor_uri.c: Remove writable static data. Make - raptor_uri_handler const - - * src/ntriples_parse.c, src/raptor_feature.c, - src/raptor_general.c: Remove writable static data. Make const - arrays const. - -2007-11-05 Lauri Aalto - - * src/raptor_serialize_turtle.c: (raptor_turtle_serialize_init) - Fix lowmem issues: Do not use a NULL namespaces sequence or - nstack. NULL rdf_type is allowed. Check for uri creation - failures. Check for sequence push failures. - (raptor_turtle_serialize_terminate) Do not leave dangling pointers - behind. - -2007-11-04 Dave Beckett - - * src/raptor_turtle_writer.c: (main): Write a proper double - - * tests/turtle/test-28-out.ttl: Remove canonicalisation - - * src/raptor_serialize_turtle.c: (raptor_turtle_emit_blank, - raptor_turtle_emit_subject, raptor_turtle_emit): Add more failure - pass ons. - - * src/raptor_serialize_turtle.c: (raptor_turtle_emit_subject): - Fail when out of memory. - - * src/raptor_serialize_turtle.c: (raptor_turtle_emit_subject): - Remove un-necessary use of snprintf to concat 2 strings. - - * src/raptor_turtle_writer.c: (raptor_turtle_writer_double): - Removed, no longer used. - - * src/raptor_turtle_writer.c: (raptor_turtle_writer_literal): Do - not canonicalise integer, double or decimal literals. - -2007-10-31 Dave Beckett - - * tests/turtle/test-10.out, tests/turtle/test-21.out, - tests/turtle/test-22.out: Remove canonicalisation of integer and - double (Turtle spec change coming soon) - -2007-10-30 Lauri Aalto - - * src/turtle_parser.y: Add {INTEGER,FLOATING}_LITERAL %destructors. - -2007-10-30 Dave Beckett - - * src/turtle_lexer.l, src/turtle_parser.y: Turtle INTEGER_LITERAL - and FLOATING_LITERAL now are stored as strings, with no - canonicalisation. This is required for SPARQL compatibility. - -2007-10-25 Lauri Aalto - - * src/n3_parser.y: (blank) Fix [ propertylist ] lowmem leaks. - - * src/turtle_parser.y: (blank) Fix [ propertylist ] lowmem leaks. - -2007-10-25 Dave Beckett - - * src/snprintf.c: Define round() and trunc() as macros if they - were not found by configure as functions/macros. They were - standardised with C99. - - * configure.ac: Check for trunc and round in libm - - * utils/rapper.c: Quote args to HELP_ARG_BOTH() - -2007-10-24 Lauri Aalto - - * src/turtle_parser.y: Add destructors for turtle_parser - identifiers and sequences. - (triples) Free subject and propertylist on alloc failure. - - * src/turtle_lexer.l: turtle_lexer: Check for alloc failures - - fail faster and do not pass NULLs to parser. - -2007-10-23 Lauri Aalto - - * src/turtle_lexer.l: (QUOTEDURI) Always free stringbuffer - - * src/turtle_lexer.l: turtle_lexer: Check for alloc failures - - * src/n3_lexer.l: (n3_copy_string_token) Always free stringbuffer - if it is allocated. - - * src/raptor_stringbuffer.c: (raptor_stringbuffer_append_string_common) - Free passed in string on alloc error if ownership was transferred. - - * src/turtle_common.c: (raptor_stringbuffer_append_turtle_string) - Check for alloc failure. - - * src/fix-flex, src/n3_lexer.l, src/raptor_internal.h, - src/turtle_lexer.l: Lowmem leak fixes. Ported experimental lexer - leak prevention code from sparql_lexer r12922 to - raptor {n3,turtle}_lexer. Flagged with LEXER_ALLOC_TRACKING, - disabled by default. - (raptor_parser_s) Added lexer_user_data. - - * src/raptor_internal.h, - src/raptor_parse.c: (raptor_parse_uri_with_connection) Lowmem leak - fixes. Store raptor_www pointer to raptor parser object to allow - resource cleanup from client code in case raptor_parse_chunk() - fails in a lexer. - - * src/n3_parser.y, - src/raptor_parse.c: (raptor_parse_uri_with_connection) Set parser - to failed state if raptor_parse_chunk() returned an error. - (raptor_n3_parse_chunk) Return error code from n3_parse(). - -2007-10-19 Lauri Aalto - - * src/n3_lexer.l, src/turtle_lexer.l: (n3_lexer, turtle_lexer) - Replace out-of-memory yyterminate()s with more informative error - reporting. - - * src/fix-flex, src/n3_lexer.l, src/turtle_lexer.l: (fix-flex) - Import patches from rasqal fix-flex: remove generated - yy_fatal_error(), OOM checks to ensure_buffer_stack(). - (n3_lexer_fatal_error,turtle_lexer_fatal_error) Added replacement - for generated fatal error handler. - - * src/n3_lexer.l: (QNAME) OOM: Terminate instead of returning NULL - QNAME literal. - - * src/n3_parser.y: (n3_parser) PREFIX should not be in %destructor list - -2007-10-18 Lauri Aalto - - * src/fix-bison, src/fix-flex: (fix-bison, fix-flex) Fix #line - numbers in generated raptor lexers and parsers. - -2007-10-15 Lauri Aalto - - * src/raptor_serialize_rdfxmla.c: (raptor_rdfxmla_serialize_statement) - indent tabs -> spaces - - * src/raptor_serialize_rdfxmla.c: Fix low memory crashes. - (raptor_rdfxmla_serialize_init) Check for nstack alloc failure - before using it. Alloc independent objects in a batch and check - them with one if. Check the return value of raptor_sequence_push() - - moved to end since it depends on successful sequence allocation. - (raptor_rdfxmla_serialize_terminate) Set pointers to NULL to - prevent dangling pointers. - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_init) - Check sequence push ret val. - -2007-10-12 Lauri Aalto - - * src/raptor_sequence.c: (raptor_sequence_set_at) Free passed in - data item also when returning due to invalid index. - -2007-10-08 Dave Beckett - - * src/raptor_internal.h, src/raptor_serialize_turtle.c, - src/raptor_turtle_writer.c: (raptor_turtle_writer_literal, - raptor_turtle_writer_quoted): These may fail when out of memory, - change to return an int non-0 on failure - -2007-10-06 Dave Beckett - - * src/raptor_sequence.c: comments on sequence design - -2007-10-05 Lauri Aalto - - * src/raptor.h, src/raptor_sequence.c: (raptor_sequence_disown_at) - Removed. Was a hack that should not be in a public API. Functions - that needed this have been refactored to use - raptor_sequence_unshift() to get the item and its ownership. - - * src/n3_parser.y: (propertyList) Refactored to not use - raptor_sequence_disown_at() - - * src/turtle_parser.y: (propertyList) Refactored to not use - raptor_sequence_disown_at() - - * src/raptor_sequence.c: Refactor raptor_sequence internals to - make shift/unshift as efficient as push/pop. - (raptor_free_sequence) Use RAPTOR_FREE macro instead of free() for - sequence. - (raptor_sequence_ensure) Added grow_at_front flag to describe - growth direction. Do not grow sequence if seq->capacity == - capacity. Use RAPTOR_CALLOC instead of calloc() for sequence. - (raptor_sequence_grow) Removed. - (raptor_sequence_set_at) Do not allow setting items over +1 - current size. - (main) Added test code. - -2007-10-04 Lauri Aalto - - * src/turtle_parser.y: Memory leak fixes: Free allocated resources - and YYERROR on alloc failure. - (raptor_turtle_new_triple) Free identifiers on error. - - * src/turtle_parser.y: (turtle_parse) Check lexer init return - value. - (raptor_turtle_parse_init) Return error code on failure. - - * src/raptor_identifier.c: (raptor_copy_identifier) Return - non-zero on allocation failure. No need to check for non-null - uris: raptor_uri_copy returns NULL if passed in a null - uri. Removed duplicate copying of literal_language. - - * src/turtle_parser.y: (triples, propertyList, literal, blank) - YYERROR on alloc failure. - (raptor_turtle_parse_terminate) Free uris only if not null. - - * src/n3_parser.y: Memory leak fixes: free resources on error. - (verb, literal, resource, blank, collection) Additional checks for - alloc failures. - - * src/n3_lexer.l: lexer: yyterminate() on alloc failure. - (n3_copy_token, n3_copy_string_token) Check for alloc failure. - - * src/raptor.h, src/raptor_sequence.c: Add raptor_sequence_disown_at() - -2007-10-02 Lauri Aalto - - * src/n3_parser.y: %destructors for %tokens and not just %types. - (directive) YYERROR if namespace alloc failed. - -2007-10-02 Dave Beckett - - * NEWS.html, configure.ac, src/win32_raptor_config.h: Bumped - version to 1.4.17 - -2007-10-01 Lauri Aalto - - * src/raptor_identifier.c: (raptor_new_identifier) Free owned - items on alloc failure. - - * src/n3_parser.y: (raptor_n3_new_triple) Free owned identifiers - on alloc error. - (n3_parse) Check lexer init return value. - - * src/n3_parser.y: n3 parser YYERROR on alloc failure. Still leaks - memory on errors. - - * src/n3_parser.y: n3 parser YYERROR on alloc failure. - - * src/raptor_serialize_rdfxml.c: Fix indent + trim whitespace - -2007-09-30 Dave Beckett - - * Snapshotted raptor_1_4_16 for 1.4.16 release (SVN 12743) - - * docs/libraptor.3: Fix functions using raptor_unichar - GRDDL 2007-09-11 - -2007-09-29 Dave Beckett - - * docs/libraptor.3: Added - raptor_new_xml_element_from_namespace_local_name - - * src/raptor.h, src/raptor_serialize_rdfxml.c, src/raptor_xml.c: - Alter raptor_new_xml_element_from_namespace_local_name signature - to take an xml_language parameter - - * src/raptor_grddl.c: (raptor_grddl_run_recursive): Only set - content type handler when recursive parser is grddl. - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_end): - Make sure an empty legal RDF/XML document is written when 0 - triples were serialized. - - * src/raptor_grddl.c: Replaced all calls to get parser's current - base ID with raptor_parser_get_current_base_id - - * src/raptor_guess.c: (raptor_guess_get_current_base_id): Pass on - the call to get the base ID to the internal parser using - raptor_parser_get_current_base_id - - * src/raptor_internal.h, - src/raptor_parse.c: (raptor_parser_get_current_base_id): Added. - - * src/raptor_grddl.c: (raptor_grddl_parse_chunk): Remove - #ifdef-out old processing - - * src/raptor_grddl.c: (raptor_grddl_ensure_internal_parser): - Re-init the guess parser each time so it does a fresh guess. - (raptor_grddl_run_grddl_transform_doc): Save and restore the genid - around recursive parsers, so blank nodes are numbered across - graphs. - (raptor_grddl_run_recursive): Switch to parser_name, flags args. - Pass on the filter to the internal parser call. Do not add parent - if the parser is not grddl. Pass on the ignore error flag to - raptor_grddl_fetch_uri. Save and restore the genid around - recursive parsers, so blank nodes are numbered across graphs. Do - not call rdfxml parser if selected parser is already rdfxml. - Update raptor_grddl_run_recursive calls to use parser name and - flags. Alter the processing to use the guess parser to - figure out the mime type during the recursion. Do not filter the - triples. - Fixes Issue#0000238 http://bugs.librdf.org/mantis/view.php?id=238 - - * src/raptor_www.c: (raptor_www_file_handle_fetch): Ensure the - buffer has a NUL after the last byte read, it helps elsewhere when - using str*() functions on the results - such as guessing the - parser from content. - - * src/raptor_grddl.c: (raptor_grddl_parse_chunk): Use - RAPTOR_LIBXML_HTML_PARSE_NONET to decide whether to enable libxml - HTML_PARSE_NONET with the html parser. - - * configure.ac: Add test for libxml HTML_PARSE_NONET since it not - a define, it cannot be done at run-time with #ifdef - Define RAPTOR_LIBXML_HTML_PARSE_NONET if available - - * src/raptor_grddl.c: Add declaration for libxml_options - - * src/raptor_grddl.c: (raptor_grddl_parse_chunk): Use - RAPTOR_LIBXML_XML_PARSE_NONET to set XML nonet option if it was - set with raptor feature nonet. - - * tests/grddl/test-01.html: lie about the mime type in order to - get the test to work - - * src/raptor_grddl.c: (raptor_grddl_uri_xml_parse_bytes): Use - RAPTOR_LIBXML_XML_PARSE_NONET to check for enum value - XML_PARSE_NONET - - * src/raptor_sax2.c: (raptor_sax2_parse_chunk): Use - RAPTOR_LIBXML_XML_PARSE_NONET to check for XML_PARSE_NONET enum - value. - - * tests/grddl/Makefile.am: Call rapper with -f noNet to prevent - unnecessary fetches of HTML DTDs - - * configure.ac: Add test for libxml XML_PARSE_NO_NET since it not - a define, it cannot be done at run-time with #ifdef - Define RAPTOR_LIBXML_XML_PARSE_NONET if available - - * src/raptor_grddl.c: (raptor_grddl_fetch_uri): Reject a URI with - feature noNet only if it is not a file URI - - * configure.ac, tests/Makefile.am, tests/grddl, - tests/grddl/Makefile.am, tests/grddl/data-01.nt, - tests/grddl/data-01.rdf, tests/grddl/data-02.rdf, - tests/grddl/test-01.html, tests/grddl/test-01.out: Added - tests/grddl dir and test-01 - - * AUTHORS: Added Lauri Aalto - -2007-09-27 Lauri Aalto - - * src/n3_parser.y: (raptor_n3_parse_terminate) Do not assume the - parser is fully initialized. - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_ensure_writen_header, - raptor_rdfxml_serialize_statement) Memory leak fixes: make sure - base_uri is freed. - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_ensure_writen_header) - Memory leak fix. Set context->written_header flag early to prevent - running the function again when a previous call to this function - failed. - - * src/raptor_uri.c: (raptor_uri_to_relative_counted_uri_string) - Fix memory leak - free uri details if suffix allocation fails. - -2007-09-26 Dave Beckett - - * autogen.sh: Added an inline perl script to grep out the version - from programs. - -2007-09-26 Lauri Aalto - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_statement) - Skip statements with bad predicate uris, do not return an error. - - * src/raptor_uri.c: (raptor_default_new_uri, - raptor_uri_path_make_relative_path, - raptor_uri_to_relative_counted_uri_string, - raptor_uri_uri_string_to_filename_fragment) Check for alloc - failures. - - * src/raptor_serialize_rdfxml.c: - (raptor_rdfxml_serialize_statement) Make sure - xml_writer->current_element does not become a dangling pointer on - error. - (raptor_rdfxml_serialize_end) No-op if context->rdf_RDF_element is NULL. - - * src/raptor_uri.c: (raptor_uri_to_counted_string) Copy uri - string, not uri struct - worked previously with raptor_uris but - breaks with librdf_uris. No need to allocate +sizeof(char*). - - * src, tests, utils: Props: ignore .exes - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_ensure_writen_header) - Forgot to return 0 on success - oops - -2007-09-25 Dave Beckett - - * autogen.sh: Use 3-part versions with perl to decode them. Still - broken for autoconf - -2007-09-25 Lauri Aalto - - * src/raptor_xml_writer.c: (raptor_iostream_write_xml_element_start) - Check for alloc failures and clean up nspace_declarations on - failure. - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_ensure_writen_header) - Check for alloc failures. Return an error code on failure. - (raptor_rdfxml_serialize_statement) Check for - raptor_rdfxml_ensure_writen_header() return code. - (raptor_rdfxml_ensure_writen_header) Ignore - raptor_rdfxml_ensure_writen_header() return code in a cleanup - function. - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_statement) - Get a copy of predicate uri string for modification. Check for - alloc failures and clean up on error. Refactored to use - raptor_new_xml_element_from_namespace_local_name(). - - * src/raptor.h, src/raptor_xml.c: Refactoring: Added - raptor_new_xml_element_from_namespace_local_name(). Pulled from - rasqal_query_results_new_xml_element() - the same xml element - creation pattern recurs in other serializers as well. - -2007-09-24 Lauri Aalto - - * autogen.sh: Do not compare versions as decimal, e.g. automake - 1.10 should be treated newer than 1.7. - (update_prog_version) Convert [z.]x.y version strings to 100x+y. - -2007-09-23 Dave Beckett - - * src/raptor_grddl.c: Revert GRDDL to the main algorithm of around - 12377 which passes the tests again and - Fixes Issue#0000239 http://bugs.librdf.org/mantis/view.php?id=239 - - (raptor_grddl_parser_add_parent): Restored. - (raptor_grddl_copy_state): Removed - (raptor_grddl_new_child_parser): Removed. - (raptor_grddl_run_recursive): Remove reference to the above - - replacing raptor_grddl_new_child_parser with - raptor_grddl_ensure_internal_parser and replacing 'nparser' - references with grddl_parser->internal_parser. - - * src/raptor_grddl.c: (raptor_grddl_discard_message): debug - message tweak. - - * examples, tests, docs, docs/tmpl: props - - * docs/tmpl/section-uri-factory.sgml, docs/tmpl/section-uri.sgml, - docs/tmpl/section-xml-namespace.sgml: Updated gtkdoc templates for - raptor_uri_compare - -2007-09-21 Lauri Aalto - - * src/raptor.h, src/raptor_namespace.c: - (raptor_new_namespace): Check for alloc failures and clean up on - error. - (raptor_namespaces_init): Changed to return an error code. - - * src/raptor_parse.c: (raptor_parse): Check for alloc - failures. Clean up on failure. - - * src/raptor_rdfxml.c: (raptor_rdfxml_start_element_handler) - return on fatal error, do not use NULL pointers. - (raptor_rdfxml_end_element_grammar) abort() after reporting a - fatal error. - - * src/raptor_serialize.c: (raptor_new_serializer): Check for alloc - failures. Clean up on failure. - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_init): - Check for alloc failures. Clean up on failure. - - * src/raptor_namespace.c: raptor_namespace.c: Fix comment typo - - * src/raptor_abbrev.c: (raptor_abbrev_subject_add_property) Free - passed in nodes on error. - - * src/raptor_abbrev.c, src/raptor_sequence.c: raptor_sequence: - Delete items to be inserted on error. - Fixes Issue#0000237 http://bugs.librdf.org/mantis/view.php?id=237 - - * src/fix-bison: bison parsers / fix-bison: Fix compiler warning - about empty declarations (remove semicolon). - - * src/raptor_parse.c: (raptor_guess_parser_name) Fix compiler - warnings about unnecessary const cast - - * src/raptor_rfc2396.c: (raptor_new_uri_detail) Check for alloc - failure. - - * src/raptor_serialize_rdfxml.c: raptor_serialize_rdfxml: Fix - compiler warnings about uninitialized variables. - - * src/raptor_serialize_rdfxmla.c: (raptor_rdfxmla_ensure_writen_header) - Fix compiler warning about uninitialized variable. - - * src/raptor_xml_writer.c: (raptor_iostream_write_xml_element_start) - Check for alloc failure - - * src/raptor_internal.h: raptor_internal.h: Allow - RAPTOR_WWW_BUFFER_SIZE to be externally defined. Can save stack - space in some resource-constrained environments with smaller - buffers. - - * src/raptor_internal.h: raptor_internal.h: Allow - RAPTOR_ASSERT_DIE to be externally defined e.g. in a makefile. - - * src/raptor_internal.h: raptor_internal.h: Rearrange include file - guards to include stdlib.h without dmalloc. - - * src/raptor_general.c: (raptor_init) Set initialized flag early - to allow cleanup with raptor_finish() on init errors. - - * src/raptor_general.c: (raptor_log_error) Do not abort() on fatal - messages - leave it up to caller to enable resource cleanup. - - * src/raptor_general.c: (raptor_statement_part_as_counted_string) - Fix compiler warnings about uninitialized variables. - - * src/raptor_rss_common.c, src/raptor_sax2.c: Fix compiler - warnings about possible unwanted semicolons - - * src/raptor_serialize.c: Fix typos in comments - - * src/raptor_sax2.c: Fix indent - - * Makefile.am, autogen.sh, configure.ac, data/Makefile.am, - docs/Makefile.am, examples/Makefile.am, src/Makefile.am, - tests/22-rdf-syntax-ns.rdf, tests/Makefile.am, - tests/all-escape.rdf, tests/bad-00.rdf, tests/bad-01.rdf, - tests/bad-02.rdf, tests/bad-03.rdf, tests/bad-04.rdf, - tests/bad-05.rdf, tests/bad-06.rdf, tests/bad-07.rdf, - tests/bad-08.rdf, tests/bad-09.rdf, tests/bad-10.rdf, - tests/bad-11.rdf, tests/bad-12.rdf, tests/bad-13.rdf, - tests/bad-14.rdf, tests/bad-15.rdf, tests/bad-16.rdf, - tests/bad-17.rdf, tests/bad-18.rdf, tests/bad-19.rdf, - tests/bad-20.rdf, tests/bad-21.rdf, tests/bad-22.rdf, - tests/bad-23.rdf, tests/daml-oil.rdf, tests/ex-00.rdf, - tests/ex-01.rdf, tests/ex-02.rdf, tests/ex-03.rdf, - tests/ex-04.rdf, tests/ex-05.rdf, tests/ex-06.rdf, - tests/ex-07.rdf, tests/ex-08.rdf, tests/ex-09.rdf, - tests/ex-10.rdf, tests/ex-11.rdf, tests/ex-12.rdf, - tests/ex-13.rdf, tests/ex-14.rdf, tests/ex-15.rdf, - tests/ex-16.rdf, tests/ex-17.rdf, tests/ex-18.rdf, - tests/ex-19.rdf, tests/ex-20.rdf, tests/ex-21.rdf, - tests/ex-22.rdf, tests/ex-23.rdf, tests/ex-24.rdf, - tests/ex-25.rdf, tests/ex-26.rdf, tests/ex-27.rdf, - tests/ex-28.rdf, tests/ex-29.rdf, tests/ex-30.rdf, - tests/ex-31.rdf, tests/ex-32.rdf, tests/ex-33.rdf, - tests/ex-34.rdf, tests/ex-35.rdf, tests/ex-36.rdf, - tests/ex-37.rdf, tests/ex-38.rdf, tests/ex-39.rdf, - tests/ex-40.rdf, tests/ex-41.rdf, tests/ex-42.rdf, - tests/ex-43.rdf, tests/ex-44.rdf, tests/ex-45.rdf, - tests/ex-46.rdf, tests/ex-47.rdf, tests/ex-48.rdf, - tests/ex-49.rdf, tests/ex-51.rdf, tests/ex-53.rdf, - tests/ex-54.rdf, tests/ex-55.rdf, tests/ex-56.rdf, - tests/ex-57.rdf, tests/ex-58.rdf, tests/ex-59.rdf, - tests/ex-60.rdf, tests/ex-61.rdf, tests/ex-62.rdf, - tests/turtle/Makefile.am, tests/turtle/bad-00.ttl, - tests/turtle/bad-01.ttl, tests/turtle/bad-02.ttl, - tests/turtle/bad-03.ttl, tests/turtle/bad-04.ttl, - tests/turtle/bad-05.ttl, tests/turtle/bad-06.ttl, - tests/turtle/bad-07.ttl, tests/turtle/bad-08.ttl, - tests/turtle/bad-09.ttl, tests/turtle/bad-10.ttl, - tests/turtle/bad-11.ttl, tests/turtle/bad-12.ttl, - tests/turtle/bad-13.ttl, tests/turtle/bad-14.ttl, - tests/turtle/manifest-bad.ttl, tests/turtle/manifest.ttl, - tests/turtle/rdf-schema.out, tests/turtle/rdf-schema.ttl, - tests/turtle/rdfq-results.out, tests/turtle/rdfq-results.ttl, - tests/turtle/rdfs-namespace.out, tests/turtle/rdfs-namespace.ttl, - tests/turtle/test-00.out, tests/turtle/test-00.ttl, - tests/turtle/test-01.out, tests/turtle/test-01.ttl, - tests/turtle/test-02.out, tests/turtle/test-02.ttl, - tests/turtle/test-03.out, tests/turtle/test-03.ttl, - tests/turtle/test-04.out, tests/turtle/test-04.ttl, - tests/turtle/test-05.out, tests/turtle/test-05.ttl, - tests/turtle/test-06.out, tests/turtle/test-06.ttl, - tests/turtle/test-07.out, tests/turtle/test-07.ttl, - tests/turtle/test-08.out, tests/turtle/test-08.ttl, - tests/turtle/test-09.out, tests/turtle/test-09.ttl, - tests/turtle/test-10.out, tests/turtle/test-10.ttl, - tests/turtle/test-11.out, tests/turtle/test-11.ttl, - tests/turtle/test-12.out, tests/turtle/test-12.ttl, - tests/turtle/test-13.out, tests/turtle/test-13.ttl, - tests/turtle/test-14.out, tests/turtle/test-14.ttl, - tests/turtle/test-15.out, tests/turtle/test-15.ttl, - tests/turtle/test-16.out, tests/turtle/test-16.ttl, - tests/turtle/test-17.out, tests/turtle/test-17.ttl, - tests/turtle/test-18.out, tests/turtle/test-18.ttl, - tests/turtle/test-19.out, tests/turtle/test-19.ttl, - tests/turtle/test-20.out, tests/turtle/test-20.ttl, - tests/turtle/test-21.out, tests/turtle/test-21.ttl, - tests/turtle/test-22.out, tests/turtle/test-22.ttl, - tests/turtle/test-23.out, tests/turtle/test-23.ttl, - tests/turtle/test-24.out, tests/turtle/test-24.ttl, - tests/turtle/test-25.out, tests/turtle/test-25.ttl, - tests/turtle/test-26.out, tests/turtle/test-26.ttl, - tests/turtle/test-27.out, tests/turtle/test-27.ttl, - tests/turtle/test-28-out.ttl, tests/turtle/test-28.out, - tests/turtle/test-28.ttl, tests/turtle/test-29.out, - tests/turtle/test-29.ttl, tests/turtle/test-30.out, - tests/turtle/test-30.ttl, utils/Makefile.am, win32/Makefile.am: - Fix EOL issues when building svn version on cygwin. - Partial fix to http://bugs.librdf.org/mantis/view.php?id=236 - - * tests/Makefile.am, tests/turtle/Makefile.am: Added $(EXEEXT)s to - Makefiles to fix "make clean" on cygwin. Partial fix to - Issue#0000235 http://bugs.librdf.org/mantis/view.php?id=235 - - * autogen.sh: raptor autogen.sh $dir quoting. Partial fix to - Issue#0000234 http://bugs.librdf.org/mantis/view.php?id=234 - -2007-09-20 Dave Beckett - - * src/raptor_rdfxml.c: (raptor_rdfxml_parse_recognise_syntax): - Check for presence of html in the mime type correctly. - -2007-09-19 Dave Beckett - - * src/raptor_parse.c: (raptor_parse_uri_with_connection): Ensure a - parser is started if it wasn't started during WWW retrieval - - typically this is only if the file was empty (o bytes). Some RDF - syntaxes are legal as an empty file so can produce a valid empty - graph, such as N-Triples and Turtle. - -2007-09-17 Dave Beckett - - * src/raptor_turtle_writer.c: Add xsd boolean, decimal, double, - integer URIs to structure - (raptor_turtle_writer_literal): Use raptor_uri_equal instead of - strcmps. In Redland, this means no strcmps. - - * src/raptor_serialize_turtle.c: (raptor_turtle_serialize_start): - Remove call to raptor_turtle_writer_base since - raptor_new_turtle_writer will do it if necessary. - - * src/raptor_turtle_writer.c: (raptor_new_turtle_writer): Call - raptor_turtle_writer_base with initial base URI if there is one. - (raptor_turtle_writer_base): Adedd. Back to possibly generating a - relative base, allowing this to be called multiple times and - setting the actual writer base URI, potentially to NULL. - (main): Adjust expected result to expect an @base - - * tests/turtle/test-28-out.ttl: @base and relative prefix - - * src/raptor_internal.h, src/raptor_serialize_turtle.c, - src/raptor_turtle_writer.c: (raptor_turtle_writer_base): Added to - generate @base as an absolute URI. - (raptor_turtle_serialize_start): Call it if there is an output - base URI. - -2007-09-16 Dave Beckett - - * docs/raptor-sections.txt: Add raptor_uri compare_func funcs - - * tests/turtle/manifest.ttl: Added test-26 to test-30 to manifest. - - * src/raptor_uri.c: (main): Ensure called is inited - - * src/raptor_uri.c: (main): Add tests for raptor_uri_compare and - interface versioning. - - * src/raptor_uri.c: (raptor_uri_set_handler): Adjust handler to - not have to point to const data and to have V1 or V2 declared by - setting the initialised field. Truncate it to 1 or 2. - (raptor_uri_compare): Use interface version to decide whether to - invoke the uri_compare method. - (struct raptor_uri_default_handler): Set URI Interface version to 2. - - * src/raptor.h: (struct raptor_uri_handler): Add URI Interface - versions 1 and 2 - adding raptor_uri_compare_func. Overload the - 'initialised' field to store the API version. Existing Redland - sets that to 1. - (raptor_uri_set_handler): Adjust handler to not have to point to - const data. - - * configure.ac, docs/libraptor.3, docs/raptor-parsers.xml, - raptor.rdf.in, src/raptor_grddl.c, src/raptor_internal.h, - src/raptor_parse.c: Remove RDFa support for now - -2007-09-15 Dave Beckett - - * docs/libraptor.3: 1.4.16 - -2007-09-15 Dave Robillard - - * src/raptor.h, src/raptor_uri.c: (raptor_uri_handler): Move new - raptor_uri_compare method to end of struct to limit ABI breakage. - -2007-09-15 Dave Beckett - - * src/raptor_internal.h, src/raptor_parse.c, src/raptor_rdfxml.c, - src/raptor_set.c: Make raptor_set_test less chatty - - * tests/turtle/Makefile.am: Re-added test-30 now it's in SVN - - * tests/turtle/test-30.out, tests/turtle/test-30.ttl: test-30 for @base - -2007-09-15 Dave Robillard - - * docs/tmpl/section-uri.sgml, src/raptor.h, src/raptor_abbrev.c, - src/raptor_uri.c: (raptor_uri_compare): Added for librdf - overloading (rather than using strcmp directly). - - * tests/turtle/Makefile.am: Remove references to nonexistant test-30 - - * src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: Use - AVL tree rather than sequence for abbreviated serialisers (turtle - & rdfxmla), significant performance improvement for large - serialisations. - (raptor_abbrev_node_lookup): Use AVL tree search against - abbrev_node instead of linear sequence search. - (raptor_abbrev_node_cmp): Adapt old raptor_abbrev_node_equals to - provide strcmp-like ordering. - (raptor_abbrev_node_equals): Change to trivial wrapper around new - raptor_abbrev_node_cmp. - -2007-09-14 Dave Robillard - - * src/raptor_serialize_turtle.c: Fix unwanted blank line at end of - Turtle list abbreviation. e.g. before: - :foo :bar ( - 1 - 2 - 3 - - ) . - - after: - - :foo :bar ( - 1 - 2 - 3 - ) . - -2007-09-11 Dave Beckett - - * src/turtle_lexer.l, src/turtle_parser.y: Added turtle @base - - * tests/turtle/Makefile.am: Adde test-30 for @base - -2007-09-08 Dave Beckett - - * src/raptor_sax2.c: (raptor_sax2_finish): Reset libxml error - handlers to defaults. - Fixes Issue#0000232 http://bugs.librdf.org/mantis/view.php?id=232 - -2007-09-06 Dave Beckett - - * src/turtle_common.c: docs fix - -2007-09-03 Dave Beckett - - * src/turtle_lexer.l: {QUOTEDURI}: Apply turtle escapes to URIs - - * tests/turtle/test-29.out, tests/turtle/test-29.ttl: Fix line - endings of test-29 - - * tests/turtle/Makefile.am, tests/turtle/test-29.out, - tests/turtle/test-29.ttl: test-29: Test all ntriples/turtle - escapes U+0001 to U+007F - - * src/snprintf.c: Define __USE_ISOC99 to 1 - - * src/raptor_rss.c: (raptor_rss_end_element_handler): Fixed a bug - that silently discarded non-empty fields -- oops. - - * src/raptor_rss.c: raptor_rss_uplift_map: copy atom:updated to - dc:date - - * configure.ac: Make sure to define HAVE_CURL_CURL_H when - curl/curl.h is found - -2007-09-01 Dave Beckett - - * docs/libraptor.3: Added RDFa - -2007-08-28 Dave Beckett - - * docs/libraptor.3: Added description of new 1.4.16 functions - -2007-08-27 Dave Beckett - - * src/raptor_grddl.c: GRDDL and RDFa - - * src/snprintf.c: just leave raptor_format_float for now. - - * docs/rdfcat.c, docs/rdfprint.c, docs/rdfserialize.c: Added C examples - -2007-08-26 Dave Beckett - - * docs/raptor-tutorial-parsing.xml: parsing filtering tutorial docs - - * docs/raptor-parsers.xml: GRDDL docs - - * src/raptor_grddl.c: (raptor_grddl_fetch_uri): Set WWW timeout - from value of new parser feature RAPTOR_FEATURE_WWW_TIMEOUT - - * src/raptor.h, src/raptor_feature.c, src/raptor_parse.c, - src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Added parser - feature RAPTOR_FEATURE_WWW_TIMEOUT - -2007-08-25 Dave Beckett - - * src/raptor_general.c, src/raptor_nfc.c, - src/raptor_serialize_ntriples.c, src/raptor_xml.c: Use - raptor_unichar instead of unsigned long for a Unicode codepoint - - * src/raptor_utf8.c: (raptor_unicode_char_to_utf8, - raptor_utf8_to_unicode_char, - raptor_unicode_is_xml11_namestartchar, - raptor_unicode_is_xml10_namestartchar, - raptor_unicode_is_xml11_namechar, raptor_unicode_is_xml10_namechar - raptor_unicode_is_namestartchar, raptor_unicode_is_namechar): - Updated to take a raptor_unichar argument. - - * src/raptor_internal.h: Update the raptor_unicode_* functions - that take a unicode char to use raptor_unichar: - raptor_unicode_is_namestartchar and raptor_unicode_is_namechar - - * src/raptor.h: Define raptor_unichar for a Unicode codepoint - instead of unsigned long. Update the raptor_unicode_* functions - that take a unicode char to use it: raptor_unicode_char_to_utf8, - raptor_utf8_to_unicode_char, - raptor_unicode_is_xml11_namestartchar, - raptor_unicode_is_xml10_namestartchar, - raptor_unicode_is_xml11_namechar and - raptor_unicode_is_xml10_namechar. - - * src/raptor_nfc.h: Remove unused u32 - - * src/raptor.h: Document RAPTOR_FEATURE_HTML_LINK - - * src/snprintf.c: raptor_format_float not public - - * docs/libraptor.3: 1.4.16 - -2007-08-24 Dave Beckett - - * utils/rapper.c: word - -2007-08-24 Dave Robillard - - * AUTHORS: Test commit (added undeserving self to AUTHORS). - -2007-08-24 Dave Beckett - - * tests/turtle/Makefile.am: (check-turtle-serialize-syntaxs): - srcdir added for diff and cmp - -2007-08-19 Dave Robillard - - * AUTHORS: Added Dave Robillard - -2007-08-19 Dave Beckett - - * utils/rapper.c: words - - * utils/rapper.1: Added -I/--input-uri and -O/--output-uri - - * utils/rapper.c: Added -I/--input-uri and -O/--output-uri to set - the input/parser base URI and output/serializer base URI directly - Defaults remain the same - the serializer base URI defaults to the - input base URI, however it was set. Tidied the verbose messages - to mention parser name. Added a message for the serializer name - too. - -2007-08-18 Dave Beckett - - * src/turtle_parser.y: (raptor_turtle_parser_register_factory): - Make default application/x-turtle for now - - * src/raptor_parse.c: (raptor_parser_factory_add_mime_type): docs - were wrong. - - * src/raptor_serialize_dot.c: (raptor_dot_serializer_end): Handle - a missing base URI. - Fixes Issue#0000216 http://bugs.librdf.org/mantis/view.php?id=216 - -2007-08-17 Dave Beckett - - * src/raptor.h: Applied raptor part of symbian portability fix for - Issue#0000203 http://bugs.librdf.org/mantis/view.php?id=203 - -2007-08-14 Dave Beckett - - * src/raptor_rdfxml.c: (raptor_rdfxml_parse_recognise_syntax): - Apply a negative score if html is in the mime type. Do not - recognize as rdf if - - * src/raptor_xml_writer.c: (main) Quieter unit test - - * src/snprintf.c: #ifdef out unused dopr_outch prototype - - * src/turtle_common.c: (raptor_stringbuffer_append_turtle_string): - Take const string arg. - - * src/raptor_internal.h: Update prototypes for - raptor_turtle_writer_quoted and raptor_turtle_writer_literal to - take const string args. - - * src/raptor_turtle_writer.c: (raptor_turtle_writer_quoted, - raptor_turtle_writer_literal): const string args. - (main): Unit tests - - * src/raptor_turtle_writer.c: (raptor_turtle_writer_double): - Renamed from snprint_turtle_double and now goes direct to the - writer's iostream. Serialize NaN, -INF and INF numbers - - * src/raptor_turtle_writer.c: (raptor_turtle_writer_literal): Use - raptor_format_float to format decimals. - - * src/Makefile.am: Added snprintf.c - - * src/snprintf.c: (raptor_format_float): Renamed from fmtfp and - edited to be XSD rules. - - * src/raptor_internal.h: Added raptor_format_float - - * src/raptor_parse.c: (raptor_parse_file_stream): C99 - - * tests/turtle/test-28-out.ttl, tests/turtle/test-28.out, - tests/turtle/test-28.ttl: Update test-28 results for truncating to - precision - - * tests/turtle/Makefile.am: Remove test-28 from roundtrip exact - test - - * tests/turtle/Makefile.am: minor fix - - * tests/turtle/Makefile.am: (check-turtle-serialize-syntax): diff - always in text - - * tests/turtle/test-28-out.ttl: fix expected output - - * tests/turtle/Makefile.am: comment - - * tests/turtle/Makefile.am, tests/turtle/test-28-out.ttl, - tests/turtle/test-28.out: Check test-28 for exact syntax returned - as well as triples - -2007-08-02 Dave Beckett - - * src/raptor_parse.c: (raptor_parse_file_stream): Always NULL - terminate the read buffer. - - * tests/turtle/Makefile.am, tests/turtle/test-28.out, - tests/turtle/test-28.ttl: Added test-28.ttl test-28.out for - serializing xsd:double - -2007-07-29 Dave Beckett - - * src/raptor_set.c: (main): Make test silent when successful. - - * src/raptor_avltree.c: remove debug - - * src/raptor_set.c: comment - - * src/raptor_avltree.c: print_string is not needed unless debugging - - * src/raptor_set.c: Switch to use raptor_avltree for ID sets - - * src/raptor_avltree.c, src/raptor_internal.h: Rename constructor - and destructor - - * src/raptor_avltree.c: (main): Make test silent when successful. - - * src/raptor_avltree.c: Conditionalise detailed AVL-tree debugging - - * src/Makefile.am: Add raptor_avltree_test to TESTS - - * src/Makefile.am, src/raptor_avltree.c, src/raptor_internal.h: - Added AVL-Tree code - -2007-07-19 Dave Beckett - - * src/raptor_serialize.c: docs - -2007-07-13 Dave Beckett - - * src/raptor_turtle_writer.c: (snprint_turtle_double): Tidy to - remove several strlen()s - - * src/raptor_serialize_rss.c: cast - - * src/raptor_serialize_rss.c: (raptor_rss10_serialize_statement): - Do not debug die when rdf:Seq node is a blank node. - -2007-07-08 Dave Beckett - - * src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_start): - Pass on the xml declaration feature to the xml writer. - Fixes Issue #0000210 http://bugs.librdf.org/mantis/view.php?id=210 - - * src/raptor_grddl.c: struct raptor_grddl_parser_context_s gains - html_link_processing to enable looking for with - RDF/XML value. - (raptor_grddl_parse_init_common): Enable html by default. - (raptor_rdfa_parse_init): Disable html for RDFA parser. - (raptor_grddl_parse_chunk): Check for html available as - well as allowed by feature. - -2007-07-05 Dave Beckett - - * docs/tmpl/section-feature.sgml, src/raptor.h, - src/raptor_feature.c, src/raptor_grddl.c, src/raptor_parse.c, - src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Added - RAPTOR_FEATURE_HTML_LINK to control GRDDL looking for html - -2007-07-04 Dave Beckett - - * src/raptor_grddl.c: (grddl_free_xml_context): Free the context - itself. - (raptor_grddl_parser_add_parent): Deleted, merged into - raptor_grddl_new_child_parser. Delete html:link entry from table - for now - handle rdf/xml links specially later. - (raptor_grddl_copy_state): Added, pulled out of - raptor_grddl_ensure_internal_parser - (raptor_grddl_ensure_internal_parser): Call - raptor_grddl_copy_state - (raptor_grddl_new_child_parser): Added, from - raptor_grddl_ensure_internal_parser and - raptor_grddl_parser_add_parent to allocate a new parser rather - than overwrite the 'internal_parser'. - (raptor_grddl_fetch_uri): Set/reset the content type handler - eachtime. - (raptor_grddl_run_xpath_match): Free URI after calculating - relative to base. - (raptor_grddl_run_recursive): Gains filter arg, again. Use - raptor_grddl_new_child_parser to make a new (GRDDL) raptor_parser* - and free it here when done. - (raptor_grddl_parse_chunk): Add new filter arg to - raptor_grddl_run_recursive Look for with RDF expected, not an - XSLT transform URI. - - * src/raptor_www_curl.c: (raptor_www_curl_header_callback): Handle - multiple type headers appearing, overwriting - such as during an - HTTP redirect. - -2007-07-03 Dave Beckett - - * src/raptor_grddl.c: (raptor_grddl_discard_message): Report - discarded errors when debugging. - (raptor_grddl_parse_chunk): Run XML then HTML parsing in sequence, - discarding all errors here. Restore the error handlers - afterwards. Move tidying up of buffers to function exit tidying. - - * src/raptor_libxml.c: (raptor_libxml_xmlStructuredErrorFunc): - Tidy output to say "HTML Parser" not "XML HTML Parser" - -2007-07-02 Dave Beckett - - * src/raptor_grddl.c: style - - * src/raptor_grddl.c: match-table gains: looking for - - - * utils/rapper.c: Remove const for print_graph - - * src/raptor_serialize_turtle.c: raptor_turtle_context gains - rdf_nil_uri. Tidy some error messages to remove ()s - (raptor_turtle_emit_subject_collection_items): At the object of an - rdf:rest, if it's blank, check it exists and make it the new - subject, otherwise check it's a URI called rdf:nil. - (raptor_turtle_serialize_init, raptor_turtle_serialize_terminate): - Init/free rdf:rest URI. - Fixes Issue#0000207 http://bugs.librdf.org/mantis/view.php?id=207 - - * tests/Makefile.am, tests/ex-62.rdf: Added ex-62 for Issue#0000207 - -2007-06-23 Dave Beckett - - * src/snprintf.c: style, ANSI C and std headers - - * src/snprintf.c: Import Public Domain snprintf from mutt: - http://dev.mutt.org/hg/mutt/file/55cd4cb611d9/snprintf.c Last - Modified: Tue Aug 08 22:49:12 2006 +0000. - -2007-06-20 Dave Beckett - - * raptor.rdf.in: Set Project URI - Update syntaxes - - * src/raptor_grddl.c: Add XSLT security - (raptor_init_parser_grddl_common): Deny reading, writing to files, - creating directories or writing to network. - (raptor_terminate_parser_grddl_common): Tidy up xslt security prefs. - -2007-06-19 Dave Beckett - - * src/raptor.h: raptor_graph_handler without const uri - - * tests/Makefile.am: Add trig dir - - * docs/raptor-parsers.xml: Update GRDDL - Add RDFa and TRiG - - * utils/rapper.1: Added --show-graphs - - * utils/rapper.c: Added --show-graphs option to print named graph - URIs as seen - - * tests/trig, tests/trig/Makefile.am, tests/trig/example1.out, - tests/trig/example1.trig, tests/trig/example2.out, - tests/trig/example2.trig, tests/trig/example3.out, - tests/trig/example3.trig: Added TRiG tests - - * configure.ac: Add trig parser support, enabled by default. - - * src/Makefile.am: Added RAPTOR_PARSER_TRIG sharing turtle parser code - - * src/raptor.h: Added raptor_graph_handler - Added raptor_set_graph_handler - - * src/raptor_parse.c: (raptor_parsers_init): Call - raptor_init_parser_trig. - (raptor_set_graph_handler): Added to get graph name callbacks. - (raptor_parser_set_graph_name): Added internal function. - - * src/turtle_common.h: struct raptor_turtle_parser_s gains trig flag. - - * src/raptor_internal.h: struct raptor_parser_s gains field - graph_handler Added raptor_init_parser_trig and - raptor_parser_set_graph_name prototypes. - - - * src/turtle_parser.y: Add TRiG support. New tokens LEFT_CURLY, - RIGHT_CURL, COLONMINUS ({, } and :-) New token graphName - (colonMinusOpt): Added for TRiG's optional :- - (graph): Added for TRiG graph name before { ... graph ... } - (graphName): Added for TRiG - (graphBody): Added for TRiG - (triplesList): Added for TRiG - (terminatedTriples): Added. - (statement): uses graph, terminatedTriples - (triples): Added, pulled out of statement - (raptor_trig_parse_recognise_syntax): Recognise trig in url. - (raptor_trig_parser_register_factory): Added for TRiG - (raptor_init_parser_trig): Added for TRiG - - * src/turtle_lexer.l: Add { } and :- for TRiG - -2007-06-12 Dave Beckett - - * src/raptor_grddl.c: (raptor_grddl_run_grddl_transform_uri): Hack - locator URI so errors with XSLT are reported against that URI not - the documents. - - * src/raptor_grddl.c: (raptor_grddl_fetch_uri): Fix accept header - - * src/raptor_grddl.c: Use /* for root element - - * src/raptor_grddl.c: XML @dataview:transformation are only on the - root element. - - * src/raptor_grddl.c: (raptor_grddl_check_recursive_content_type_handler): - Renamed from raptor_grddl_check_rdf_content_type_handler since it - stores all content types now. Check for HTML content type and set - html_base processing flag - (raptor_grddl_run_recursive): Remove allow_rdf flag, always true. - - - * src/raptor_grddl.c: struct raptor_grddl_parser_context_s gains - xinclude_processing and html_base_processing flags. - (raptor_grddl_parse_init_common): Initialise grddl, xinclude but - not html base. - (raptor_rdfa_parse_init): Disable grddl, xinclude and init html - base. - (raptor_grddl_run_xpath_match): If html_base_processing is - enabled, switch XML doc type to XML_HTML for the xmlNodeGetBase() - call and restore afterwards. - (raptor_grddl_parse_chunk): Look for HTML or XHTML mime types to - enable html_base_processing. Conditionalise XML Include - processing with xinclude_processing flag. - -2007-06-10 Dave Beckett - - * src/raptor_grddl.c: Debug message madness! - (raptor_grddl_parse_chunk): After xinclude processing, reserialize - the document DOM so it can be parsed later as RDF/XML if needed. - - * src/raptor_grddl.c: (raptor_grddl_parse_chunk): Recognise root - rdf:RDF element and process as RDF/XML. Fix RDF/XML parsing of - doc to not filter triples. - - * utils/rapper.c: If no base URI is given, do not set it - - * src/raptor_grddl.c: (raptor_grddl_run_recursive): Send to right - parser. - - * tests/ex-61.nt, tests/ex-61.out (from - /raptor/trunk/tests/ex-61.nt:12321): Rename ex-61.nt to ex-61.out - - * src/raptor_grddl.c: (raptor_grddl_parse_uri_write_bytes): - Removed. - (raptor_grddl_run_recursive): Use typedef - raptor_parse_bytes_context with raptor_parse_uri_write_bytes as a - handler for starting parse lazily - - * src/raptor_parse.c: Moved raptor_parse_bytes_context to - raptor_internal.h - (raptor_parse_uri_write_bytes): No longer static. - - * src/raptor_internal.h: Added raptor_parse_bytes_context Export - raptor_parse_uri_write_bytes handler for use with GRDDL fetch. - - * src/raptor_parse.c: Added raptor_parse_bytes_context typedef - (raptor_parse_uri_write_bytes): Use the above to look if this is the - first time called, and if so, determine the base URI from the user's - set base URI, the final URI from protocol, or otherwise, the resolved - URI. This prevents calling raptor_start_parse() until the first byte - is seen (and thus the base URI, protocol context is known) - (raptor_parse_uri_with_connection): Explains the base URI rules in - detail. Remove call to raptor_start_parse() and initialse the rpbc - block. - - * src/raptor_www_curl.c: (raptor_www_curl_update_status): set - final_uri and call final_uri_handler if set - - * src/raptor_www.c: (raptor_www_set_final_uri_handler): Added. - - * src/raptor.h: Added raptor_www_final_uri_handler typedef. Added - raptor_www_set_final_uri_handler prototype. - - * src/raptor_internal.h: raptor_www gains final_uri_userdata and - final_uri_handler; - - * src/raptor_internal.h: struct raptor_www_s gains a - checked_status flag - - * src/raptor_www_curl.c: (raptor_www_curl_update_status): Added. - (raptor_www_curl_write_callback): Call raptor_www_curl_update_status - from here when first byte arrives, before any parsing. - (raptor_www_curl_fetch): Move getting final URI earlier - above. - - * src/raptor_www_curl.c: typo - - * tests/Makefile.am, tests/ex-61.nt, tests/ex-61.rdf: Added ex-61 - - * src/raptor_www_curl.c: (raptor_www_curl_fetch): Save final URI - - * src/raptor_www.c: (raptor_www_get_final_uri): Added. - - * src/raptor.h: Added raptor_www_get_final_uri prototype - - * src/raptor_internal.h: struct raptor_www_s gains a final_uri field - - * src/raptor_sax2.c: (raptor_sax2_inscope_xml_language): Turn - xml:lang="" into a NULL result. - - * src/raptor_grddl.c: (raptor_grddl_run_recursive): Zaps error - handlers on recursive parse when ignore_errors set. - - * src/raptor_grddl.c: (raptor_grddl_fetch_uri): flags - argument (was ignore_errors) can now send a different accept - header. - (raptor_grddl_run_grddl_transform_uri): Call - raptor_grddl_fetch_uri and expect XSLT. - (raptor_grddl_run_recursive): Call raptor_grddl_fetch_uri and - ignore errors. - - * src/raptor_grddl.c: (raptor_grddl_discard_message): Added. - (raptor_grddl_fetch_uri): Added ignore_errors argument to set the - raptor_www error handler to raptor_grddl_discard_message - (raptor_grddl_run_grddl_transform_uri): Do not discard errors from - raptor_grddl_fetch_uri call. - (raptor_grddl_run_recursive): Added ignore_errors argument and use - it to return 0 with no warnings, when errors happen. - (raptor_grddl_parse_chunk): Run namespace URI recursive grddl - while discarding errors. Run head profile URIs recursive grddl - while discarding errors. - - * src/raptor_grddl.c: (raptor_grddl_run_grddl_transform_doc): Pass - in an xml context and use the base URI there rather than the - parser's. - (raptor_grddl_run_grddl_transform_uri): Pass on the xml context to - the above. - -2007-06-09 Dave Beckett - - * docs/tmpl/section-www.sgml: Added - raptor_www_set_connection_timeout - - * docs/tmpl/section-feature.sgml: new feature - @RAPTOR_FEATURE_MICROFORMATS - - * docs/raptor-sections.txt: Added - raptor_www_set_connection_timeout - - * src/raptor_www_curl.c: (raptor_www_curl_init): Use - www->connection_timeout. - - * src/raptor_www.c: (raptor_www_new_with_connection): Init - connection timeout to 10s - (raptor_www_set_connection_timeout): Added. - - * src/raptor.h: Add raptor_www_set_connection_timeout - - * src/raptor_internal.h: raptor_www gains connection_timeout - - * src/raptor_www_curl.c: (raptor_www_curl_init): Set a 10 second - connection timeout. - - * src/raptor_libxml.c: (raptor_libxml_xmlStructuredErrorFunc): For - HTTP error only, append str1 to the error. - - * src/raptor_grddl.c: Use XML base URI passed around with the - grddl_xml_context. - (raptor_new_xml_context): Renamed from - raptor_sequence_push_xml_context, moving sequence push to main - code. - (raptor_rdfa_parse_init): Push URI for RDFa in - raptor_grddl_parse_start. - (raptor_grddl_parse_start): Add XML context for RDFa here. - (raptor_grddl_add_transform_xml_context): Renamed from - raptor_grddl_add_transform_uri - (raptor_grddl_run_grddl_transform_doc): If there is no parser name - guessable, return. - (raptor_grddl_run_grddl_transform_uri): Take a grddl_xml_context* - arg instead of raptor_uri. - -2007-06-06 Dave Beckett - - * src/raptor_grddl.c: Added grddl_xml_context structure. - Transform and profile URI raptor_sequences are now sequences of - grddl_xml_context structures. - (raptor_sequence_push_xml_context, grddl_free_xml_context): Added. - (raptor_grddl_parse_init_common): No need for - raptor_libxml_init_generic_error_handlers, raptor_new_sax2 does - it. Initialise raptor_sequence with grddl_free_xml_context. - (raptor_grddl_add_transform_uri): Use - raptor_sequence_push_xml_context. - (raptor_grddl_filter_triples): Use grddl_xml_context for - profile_uri sequence. - (raptor_grddl_run_xpath_match): Use grddl_xml_context for URI - results. - (raptor_grddl_parse_chunk): Use raptor_sequence_push_xml_context - for former URI sequences. - - * src/raptor_libxml.c: (raptor_libxml_generic_error): Now - external, not static. Call raptor_log_error_varargs direct, no - mention of sax2, locator is from error_handlers. - (raptor_libxml_init_generic_error_handlers): Removed. - (raptor_libxml_xmlStructuredErrorFunc): Add err->str1 to message - if it's given. - - * src/raptor_www_libxml.c: (raptor_www_libxml_http_error): - Deleted, no longer needed. - (raptor_www_libxml_init): Set xml generic error context, but save - old one. - (raptor_www_libxml_free): Restore old xml generic error context. - - * src/raptor_www.c: (raptor_www_new_with_connection): Init - RAPTOR_ERROR_HANDLER_MAGIC - (raptor_www_set_error_handler): Use error_handlers - (raptor_www_error_varargs): Removed, merged into raptor_www_error - (raptor_www_error): Call raptor_log_error_varargs here. - - * src/raptor_sax2.c: (raptor_new_sax2): Set xmlSetGenericErrorFunc - here with the same context pointer as for structured errors. - - * src/raptor_parse.c: (raptor_new_parser): Init - RAPTOR_ERROR_HANDLER_MAGIC - - * src/raptor_internal.h: removed - raptor_libxml_init_generic_error_handlers prototype added - raptor_libxml_generic_error prototype raptor_www gains - old_xmlGenericErrorContext for libxml and error_handlers replacing - older error_data, error_handle. removed raptor_www_error_varargs - prototype - - * src/raptor_sax2.c: SAX2 error_handler fix for expat - - * tests/turtle/Makefile.am, tests/turtle/test-27.out, - tests/turtle/test-27.ttl: Added turtle test test-27 for scope of - @prefix - -2007-06-04 Dave Beckett - - * src/raptor_grddl.c: Do an additional RDF/XML parse of content - that is found to be RDF/XML by mime type during recursive GRDDL, - and an additional parse of the top level content too, if also - found. - - * src/raptor_parse.c: (raptor_parser_copy_user_state): Copy last - feature too! - - * src/raptor_parse.c, src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Added - RAPTOR_FEATURE_MICROFORMATS - - * src/raptor_grddl.c: (raptor_grddl_parse_chunk): Use feature - RAPTOR_FEATURE_MICROFORMATS to dis/enable checking for hardcoded - microformats - - * src/raptor_feature.c: C - - * src/raptor_feature.c: raptor_features_list gains - RAPTOR_FEATURE_MICROFORMATS with name 'microformats' - - * src/raptor.h: Added RAPTOR_FEATURE_MICROFORMATS - - * src/raptor_grddl.c: Remove C++ comment - - * src/raptor_grddl.c: Added MATCH_LAST to stop searching for - hardcoded sheets. Add hReview sheet that if matches, stops - looking for later microformats such as hCard. - (raptor_grddl_parse_chunk): Use MATCH_LAST to stop looking for - later hardcoded matches. - (raptor_init_parser_grddl_common, - raptor_terminate_parser_grddl_common): Added, called once for - grddl or rdfa available. - - * src/raptor_parse.c: (raptor_parsers_init): Call - raptor_init_parser_grddl_common for GRDDL or RDFA parsers. - (raptor_parsers_finish): Call raptor_terminate_parser_grddl_common - for GRDDL or RDFA parsers. - - * src/raptor_internal.h: Add prototypes for - raptor_init_parser_grddl_common and - raptor_terminate_parser_grddl_common - - * src/raptor_grddl.c: (raptor_grddl_add_transform_uri): Added, to - add a transformation URI - (XSLT) for a document, removing duplicate URIs. - (raptor_grddl_filter_triples, raptor_grddl_parse_chunk): Use - raptor_grddl_add_transform_uri. - -2007-06-03 Dave Beckett - - * configure.ac, src/raptor_grddl.c, src/raptor_internal.h, - src/raptor_parse.c: Add RDFa parser - -2007-05-27 Dave Beckett - - * src/raptor_serialize.c: (raptor_serializer_register_factory): - Fix debug call with RAPTOR_DEBUG>1 - Fixes Issue#0000195 http://bugs.librdf.org/mantis/view.php?id=195 - -2007-05-26 Dave Beckett - - * src/raptor_uri.c: (raptor_uri_filename_to_uri_string): Make - path_max bigger *2, not smaller /4. - Fixes Issue#0000192 http://bugs.librdf.org/mantis/view.php?id=192 - - * src/n3_parser.y: (n3_parser_error): Invoke - raptor_parser_simple_error with a format string and arg. - - * src/turtle_parser.y: (turtle_parser_error): Invoke - raptor_parser_simple_error with a format string and arg. - - * src/raptor.h: Allow _declspec and __declspec - Fixes Issue#0000188 http://bugs.librdf.org/mantis/view.php?id=188 - -2007-05-23 Dave Beckett - - * docs/tmpl/section-feature.sgml: Add RAPTOR_FEATURE_HTML_TAG_SOUP - -2007-05-21 Dave Beckett - - * configure.ac: Check for libxml/nanohttp.h only once the - xml-config include paths have been setup. - - * configure.ac: Add -Wformat-security - -2007-05-14 Dave Beckett - - * src/raptor_grddl.c: (raptor_grddl_parse_chunk): Use - HTML_PARSE_RECOVER if available - - * src/raptor.h, src/raptor_feature.c, src/raptor_grddl.c, - src/raptor_parse.c, src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Added parser - feature RAPTOR_FEATURE_HTML_TAG_SOUP aka htmlTagSoup for use by - GRDDL parser - - * src/raptor_libxml.c: debug bogus pointers not fail temporarily - - * src/raptor_rdfxml.c: (raptor_rdfxml_parse_recognise_syntax): - Move buffer editing to raptor_guess_parser_name. - - * src/raptor_parse.c: (raptor_guess_parser_name): Only run - recognise_syntax with first N bytes of content - - * src/raptor_grddl.c: debugmsg - - * src/raptor_grddl.c: Use HTML parser when XML parser fails, to - create a DOM for GRDDLing from invalid/not-WF HTML content. - raptor_grddl_parser_context_s gains htmlParserCtxt as well as - xmlParserCtxt and process_this_as_rdfxml GRDDL flag to know when - to parse the content twice. - (raptor_grddl_parse_terminate): Tidy htmlParserCtxt. Add - MATCH_IS_HARDCODED to match_table just to make it clear. - (match_table): Re-enable hcalendar and hcard as hardcoded XSLTs - (raptor_grddl_run_xpath_match): Handle non-namespace elements. - Handle MATCH_IS_HARDCODED and return on first match. - (raptor_grddl_parse_chunk): Major change in structure - all - content passed in is saved until is_end=1, then parsed with XML - parser and if that fails, HTML parser. HTML parser is run with no - errors or warnings. - -2007-05-11 Dave Beckett - - * src/turtle_parser.y: (raptor_turtle_parse_recognise_syntax): - Look for turtle @prefix and rdf namespace use in buffer. - - * src/n3_lexer.l: Add rule to allow a comment on the last line, - without a final newline - - * src/turtle_lexer.l: Add rule to allow a comment on the last - line, without a final newline - - * tests/turtle/Makefile.am, tests/turtle/test-26.out, - tests/turtle/test-26.ttl: Add test-26 - -2007-05-10 Dave Beckett - - * src/raptor_rdfxml.c: 's - -2007-05-09 Dave Beckett - - * src/raptor_rdfxml.c: (raptor_rdfxml_parse_recognise_syntax): - Recognize rdf entities as namespaces. Add bonus points for using - the words rdf and rdf - -2007-05-08 Dave Beckett - - * src/raptor_rdfxml.c: (raptor_rdfxml_parse_recognise_syntax): - Only use first 512 bytes of content for hunting for namespaces. - -2007-04-26 Dave Beckett - - * src/raptor_internal.h: struct raptor_www_s loses useless - old_handler field for www_libxml - - * src/raptor_www_libxml.c: (raptor_www_libxml_init, - raptor_www_libxml_free): Set, reset generic error func. - - * src/raptor_internal.h: Fix raptor_parse_date prototype - - * src/raptor_libxml.c: (raptor_libxml_init_generic_error_handlers): - Use xmlSetGenericErrorFunc - - * src/parsedate.y: ANSI C function prototypes. - - * src/parsedate.y: Prototype for raptor_parse_date - -2007-04-24 Dave Beckett - - * src/raptor_general.c: raptor_log_level_labels make it the right size - - * src/raptor_grddl.c, src/raptor_parse.c, src/raptor_sax2.c: - Update for error_handlers arrays. - - * src/raptor_libxml.c: (raptor_libxml_warning): Update for - error_handlers arrays. Also do not send an error to the warning - handlers. - (raptor_libxml_error_common, raptor_libxml_validation_warning): - Update for error_handlers arrays. - (raptor_libxml_xmlStructuredErrorFunc): Add xpath to the error - message when the domain is XML_FROM_XPATH. Ignore error_handlers - if the pointer is bogus. Use the arrays. If error_handler is - NULL, ignore it. - - * src/raptor_general.c: (raptor_error_handlers_init): Init error - handler array fields and magic field. - - * src/raptor_internal.h: raptor_error_handlers now contains arrays - of user_data and handlers and a magic field to check that an - error_handler pointer is valid. - -2007-04-22 Dave Beckett - - * autogen.sh: Update autogen.sh - -2007-04-14 Dave Beckett - - * src/raptor_serialize_turtle.c: (raptor_turtle_emit_literal, - raptor_turtle_emit_xml_literal): Send namespace stack to - raptor_turtle_writer_literal - - * src/raptor_turtle_writer.c: (raptor_turtle_writer_literal): Add - nspace field and use it to look up if a qname can be used for a - datatype URI. - - * src/raptor_internal.h: raptor_turtle_writer_literal gains nspace - field - - * src/raptor_parse.c: (raptor_guess_parser_name): Make suffix - decoding work again - -2007-04-10 Dave Beckett - - * src/raptor_rss.c: (raptor_rss_parse_recognise_syntax): One more - addition in the neverending guesswork that is rss tag soup. This - time for sites that have feed in the DNS name, or just somewhere - in the URL. - - * src/raptor_parse.c: (raptor_guess_parser_name): Discard suffixes - that are not '\.[a-zA-Z0-9]+$' - -2007-03-27 Dave Beckett - - * configure.ac: Check for curl header after inserting any cflags - from curl-config. This lets the curl test work when curl the - includes are not in the usual places - -2007-03-26 Dave Beckett - - * configure.ac, src/win32_raptor_config.h: Bumped version to - 1.4.16 - - * Snapshotted raptor_1_4_15 for 1.4.15 release (SVN r12027) - - * src/raptor_grddl.c: (raptor_grddl_parser_register_factory): - Register XHTML mime type higher, very unlikely another parser is - dealing with this. - - * src/raptor_rss.c: (raptor_rss_parse_recognise_syntax): Make mime - type heuristics ignore anything with html in it so XHTML mime type - is ignored. - -2007-03-25 Dave Beckett - - * src/raptor_internal.h: raptor_uri_detail_s gains is_hierarchical - flag. - - * src/raptor_rfc2396.c: (raptor_new_uri_detail): Set - is_hierarchical flag. - (raptor_uri_resolve_uri_reference): Handle a non-hierarchical base - URI. - Fixes Issue#0000177 http://bugs.librdf.org/mantis/view.php?id=177 - (main): Fix above changes an earlier test: - From: - resolve("foo:", "not_scheme:blah") => "foo:/not_scheme:blah" - To: - resolve("foo:", "not_scheme:blah") => "foo:not_scheme:blah" - - * src/raptor_rfc2396.c: (main): Add test to confirm report from - Issue#000177 http://bugs.librdf.org/mantis/view.php?id=177 - - * utils/rapper.c: Print all informational and help messages to - stderr. Only results of parsing and the help (-h/--help) message - goes to stdout now. - -2007-03-22 Dave Beckett - - * src/raptor_xml_writer.c, src/ntriples_parse.c, - src/raptor_grddl.c, src/raptor_parse.c: Casts for C++ - - * examples/grapper.c: Use library variables for license, home page - - * examples/grapper.c: Casts and C99 fixes - - * src/raptor_rss.h: Fix CONTENT_NAMESPACE_URI to correct URI - -2007-03-19 Dave Beckett - - * utils/rapper.c: NULL base URI - - * tests/Makefile.am: Set rapper output baseuri to NULL via '-' - - * utils/rapper.1, utils/rapper.c: Allow base uri '-' for no output - base URI - - * src/raptor_www.c: (raptor_www_fetch): If a request returns a - status code that is not success, generate an error message. - - * src/raptor_www_curl.c: (raptor_www_curl_fetch): Enhance failure - error message - -2007-03-15 Dave Beckett - - * src/raptor_serialize_rss.c: Adjust the xml:base attribute adding - to put it next to the raptor_xml_writer_start_element of the root - element. - - * src/raptor_serialize_rdfxmla.c: - raptor_rdfxmla_serializer_context gains xml_nspace field. - (raptor_rdfxmla_serialize_init, - raptor_rdfxmla_serialize_terminate): Init/free xml namespace. - (raptor_rdfxmla_ensure_writen_header): Write xml:base when a base - URI is given. - Addresses Issue #0000174 http://bugs.librdf.org/mantis/view.php?id=174 - - * src/raptor_serialize_rdfxml.c: raptor_rdfxml_serializer_context - gains xml_nspace field. - (raptor_rdfxml_serialize_init, raptor_rdfxml_serialize_terminate): - Init/free xml namespace. - (raptor_rdfxml_ensure_writen_header): Write xml:base when a base - URI is given. - Addresses Issue #0000174 http://bugs.librdf.org/mantis/view.php?id=174 - -2007-03-12 Dave Beckett - - * src/raptor_rss.c, src/raptor_serialize_rss.c: Replace shared - nspaces list with one per rss-parser/serializer. - - * src/raptor_rss.h: raptor_rss_namespace_info looses nspace field. - - * src/raptor_rfc2396.c: (raptor_uri_resolve_uri_reference): In - removing ./ do not go past end of buffer. - -2007-03-11 Dave Beckett - - * src/raptor_grddl.c: struct raptor_grddl_parser_context_s gains - content_type, content_type_check and stringbuffer for saved - rdf/xml content. - (raptor_grddl_parse_terminate): Free any saved content type or - stringbuffer. - (raptor_grddl_parse_start): Init type check. - (raptor_grddl_libxml_discard_error): Restore, for discarding - validation errors again. - (raptor_grddl_parse_chunk): If content type was seen and type was - application/rdf+xml, save content for later parsing as RDF/XML. - Discard validation errors again. - (raptor_grddl_parse_content_type_handler): Save content type - header when passed in. - (raptor_grddl_parser_register_factory): Register - raptor_grddl_parse_content_type_handler. - - * src/raptor_parse.c: (raptor_guess_parser_name): Add any mime - type q <10 to the score, don't lose it entirely. - -2007-03-02 Dave Beckett - - * src/raptor_grddl.c: Alter match_table to look for substrings - inside html:link@rel and html:a@rel Delete old hard-coded - transforms for dc: never worked and embedded RDF: grddl profile - support handles this now. - - * src/raptor_grddl.c: (raptor_grddl_run_grddl_transform_doc): - Invoke xsltSetGenericErrorFunc here to get the right rdf_parser - configured. - - * src/raptor_grddl.c: Handles GRDDL W3C Working Draft 2 March 2007 - - * src/raptor_grddl.c: (raptor_grddl_libxml_discard_error): Deleted. - (raptor_grddl_parse_chunk): No longer ignore validation errors - http://lists.w3.org/Archives/Public/public-grddl-comments/2007JanMar/0062.html - -2007-02-15 Dave Beckett - - * src/raptor_grddl.c: (raptor_grddl_run_grddl_transform_uri): - Return a warning and do not fail if XSLT sheet is not found - (raptor_grddl_run_recursive): Return a warning and do not fail if - the recursive GRDDL doc is not found. - (raptor_grddl_parse_chunk): Tidy other errors. Add aborting on - XInclude failure. - - * src/raptor_grddl.c: (raptor_grddl_parse_chunk): Do not get/set - content when there was no internal parser. - - * src/raptor_grddl.c: (raptor_grddl_ensure_internal_parser): Unset - user_data/statement_handler if filter is not used so that re-using - the same parser with different filter now works. - (raptor_grddl_fetch_uri): Add content_type_handler and - content_type_user_data args and use them to call - raptor_www_set_content_type_handler if not NULL. - (raptor_grddl_run_grddl_transform_uri): Update - raptor_grddl_fetch_uri call - (raptor_grddl_check_rdf_content_type_handler): Handler to look for - RDF MIME Type and trigger content saving if so. - (raptor_grddl_run_recursive): Add allow_rdf argument to allow - RDF/XML content to be processed if the type is right. - (raptor_grddl_parse_chunk): For a namespace URI, run recursive and - allow RDF/XML. If it was seen on return, create a new "rdfxml" - parser and run it. Reorder setting the root_ns_uri profile - earlier so that it can be recognised as a transform in RDF/XML - namespace documents. - - * src/raptor_parse.c: (raptor_parse_chunk): If the stringbuffer is - declared, save a copy of the bytes that pass by. - (raptor_parser_save_content, raptor_parser_get_content): Added to - trigger/reset saving content and to get the content back as a new - string. - - * src/raptor_internal.h: raptor_parser gains a stringbuffer Added - prototypes for raptor_parser_save_content and - raptor_parser_get_content - -2007-02-12 Dave Beckett - - * src/raptor_grddl.c: (raptor_grddl_parse_init): Update - raptor_new_sax2 call. Delete raptor_sax2_set_locator. - - * src/raptor_rss.c: (raptor_rss_parse_init): Update - raptor_new_sax2 call. Delete raptor_sax2_set_locator. - - * src/raptor_rdfxml.c: (raptor_rdfxml_parse_init): Update - raptor_new_sax2 call. Delete raptor_sax2_set_locator. - - * src/raptor_www.c: (raptor_www_error_varargs): Call - raptor_log_error_varargs. - - * src/raptor_parse.c: (raptor_new_parser): Set locator and - handlers/data in the error_handlers. - (raptor_parser_fatal_error): Call raptor_log_error_varargs - (raptor_parser_fatal_error_varargs): Removed. - (raptor_parser_fatal_error_message_handler): call - raptor_log_error. - (raptor_parser_simple_error, raptor_parser_error_varargs, - raptor_parser_warning): Call raptor_log_error_varargs. - (raptor_parser_error_message_handler, - raptor_parser_warning_message_handler): Call raptor_log_error. - (raptor_set_fatal_error_handler, raptor_set_error_handler, - raptor_set_warning_handler): Update for error_handlers - (raptor_parser_copy_user_state): Copy raptor_error_handlers block. - - * src/raptor_sax2.c: (raptor_new_sax2): Just have error_handlers - arg. Use xmlSetStructuredErrorFunc for better libxml errors - (raptor_sax2_set_locator): Removed, not needed. - (raptor_sax2_simple_error): Call raptor_log_error_varargs. - (raptor_sax2_parse_start): Call xmlSetStructuredErrorFunc - (raptor_sax2_parse_chunk): Call raptor_log_error_simple instead of - directly calling the error handler. - - * src/raptor_libxml.c: (raptor_libxml_call_handler): Removed. - (raptor_libxml_warning, raptor_libxml_error_common, - raptor_libxml_validation_warning): Use raptor_log_error_varargs. - (raptor_libxml_xmlStructuredErrorFunc): Use locator from the - error_handlers. Call raptor_log_error. - - * src/raptor_general.c: (raptor_invoke_simple_message_varargs, - raptor_invoke_message_varargs): Removed internal function. Added - raptor_log_level_labels list. - (raptor_log_error_simple, raptor_log_error_varargs, - raptor_log_error): Added for new logging. - (raptor_error_handlers_init): Added to init new structure - - * src/raptor_internal.h: Added raptor_error_handlers structure and - remove the pointers from raptor_parser, raptor_sax2. Added - raptor_log_level enum Removed raptor_invoke_message_varargs, - raptor_invoke_simple_message_varargs Added - raptor_error_handlers_init, void raptor_log_error_simple, void - raptor_log_error_varargs, void raptor_log_error raptor_new_sax2 - now just takes a raptor_error_handler* param - Removed raptor_sax2_set_locator - - * utils/rapper.c: help text for -t/--trace - -2007-02-11 Dave Beckett - - * src/raptor_libxml.c: #if LIBXML_VERSION >= not > - - * utils/rapper.1: Added -t/--trace option to show URIs traversed. - - * utils/rapper.c: Added -t/--trace option to show URIs traversed. - (rapper_uri_trace): Added. - (main): If tracing, register rapper_uri_trace as a URI filter - function with raptor_parser_set_uri to see URis retrieved. - - * src/raptor_grddl.c: (raptor_grddl_parse_chunk): Call - xmlSetStructuredErrorFunc to make most errors be printed much nicer. - - * src/raptor_internal.h: Added - raptor_libxml_xmlStructuredErrorFunc prototype. - - * src/raptor_libxml.c: (raptor_libxml_xmlStructuredErrorFunc): - Added for sending libxml structured error messages back to a - parser. - -2007-02-10 Dave Beckett - - * src/raptor_grddl.c: Add XInclude headers - (raptor_grddl_filter_triples): Renamed from - raptor_grddl_relay_triples - (raptor_grddl_filter_triples): Do not pass on triples, just look - for transformation triples. - (raptor_grddl_ensure_internal_parser): Add filter arg and if set - for profile and namespace parsings, send triples via - raptor_grddl_filter_triples. - (raptor_grddl_run_grddl_transform_doc): Call - raptor_grddl_ensure_internal_parser with no filtering when have - got the resulting string and want to do a specific parse, not a - recursive GRDDL. - (raptor_grddl_run_recursive): Call - raptor_grddl_ensure_internal_parser filtering when doing a - recursive GRDDL - this is namespace or profile recursion. - (raptor_grddl_parse_chunk): Run XML include processing. Do not - try to call NULL profile URIs. Fix transformation loop to call - all transformations, not just first. - - * src/raptor_grddl.c: (raptor_grddl_libxml_discard_error): Added - to throw away libxml errors. - (raptor_grddl_parse_chunk): Use raptor_grddl_libxml_discard_error - to dicard XML validation errors since it seems the GRDDL spec - doesn't care. - - * src/turtle_parser.y: (raptor_turtle_parse_recognise_syntax): - Recognise n3 in mime type when N3 parser is not around. - (raptor_turtle_parser_register_factory): Register low interest in - text/rdf+n3 when N3 parser is not around. - -2007-02-06 Dave Beckett - - * src/raptor_grddl.c: (raptor_grddl_parse_chunk): Tidy up doc and - xpath context on errors or success so that it is initialised next - time for new documents. - - * src/raptor_grddl.c: (raptor_grddl_parser_add_parent): Do not set - parent twice - -2007-01-31 Dave Beckett - - * configure.ac, src/win32_raptor_config.h: Bumped version to - 1.4.15 - - * Snapshotted raptor_1_4_14 for 1.4.14 release (SVN r11863) - -2007-01-28 Dave Beckett - - * src/raptor_grddl.c: (raptor_libxslt_error_common): Added. - (raptor_grddl_xsltGenericError_handler): Added. - (raptor_grddl_parse_init): Register - raptor_grddl_xsltGenericError_handler to handle XSLT generic - errors. - (raptor_grddl_run_grddl_transform_doc): Set 'base' and 'Base' XSLT - parameters to allow some XSLT sheets to work - pragmatism. - - * src/raptor_grddl.c: struct raptor_grddl_parser_context_s gains - rdf_parser field. Add lots more debugging messages - (raptor_grddl_parse_init): Init rdf_parser field. - (raptor_grddl_parser_add_parent): Relay all triples to the parent - grddl parser. - (raptor_grddl_ensure_internal_parser): Lose relay flag - always - relay. - (raptor_grddl_parse_chunk): Copy root_ns_uri if not NULL. When - processing head profile URIs, strip out the GRDDL profile URI - before adding them to the grddl_parser->profile_uris sequence. - -2007-01-27 Dave Beckett - - * configure.ac: Add AC_CHECK_FUNC(xsltInit) - - * src/raptor_grddl.c: (raptor_init_parser_grddl): Check for xsltInit - - * src/raptor_parse.c: (raptor_parsers_finish): Call - raptor_terminate_parser_grddl when enabled. - - * src/raptor_internal.h: Added raptor_terminate_parser_grddl prototype - - * src/raptor_grddl.c: Add XML schema namespace to ignored - namespace list. - (raptor_grddl_parse_chunk): Copy root namespace URI when adding to - a list. - (raptor_terminate_parser_grddl): Added, to free up shared - resources. - - * docs/libraptor.3: 1.4.14 - - * src/raptor_parse.c: autodocs - - * src/raptor_internal.h: Move raptor_turtle_writer to - raptor_internal.h for now. - - * src/raptor.h: Move raptor_turtle_writer to raptor_internal.h for - now. - -2007-01-26 Dave Beckett - - * src/n3_parser.y, src/ntriples_parse.c, src/raptor_general.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/turtle_parser.y: Rename - raptor_generate_id to raptor_parser_internal_generate_id with - altered calling convention - pass in ID type - - * src/raptor.h: Adedd prototype for raptor_parser_generate_id - - * src/raptor_internal.h: raptor_parser_internal_generate_id - renamed from raptor_generate_id. - - * src/raptor_parse.c: (raptor_parser_generate_id): Added as a - public function, modified from previously internal - raptor_generate_id(). - (raptor_parser_internal_generate_id): Renamed from - raptor_generate_id. - -2007-01-16 Dave Beckett - - * utils/rapper.c: Add a another raptor_finish() before exit - -2007-01-14 Dave Beckett - - * src/raptor_grddl.c: struct raptor_grddl_parser_context_s loses - xpathObj - (raptor_grddl_parse_terminate): Remove xpathObj tidy. Remove - profile URIs from 'match_table' list of xpaths - now invoked on - it's own. - (raptor_grddl_relay_triples): Add relay triples debugging. Fix - loop to properly walk through profile URIs - (raptor_grddl_run_xpath_match): Added to invoke a match to an - xpath returning a list of URIs as raptor_sequence. Code removed - from raptor_grddl_parse_chunk. - (raptor_grddl_run_recursive): Added to invoke a recursive GRDDL on - a URI, sending triples back to the current parser. Code removed - from raptor_grddl_parse_chunk. - (raptor_grddl_parse_chunk): Use raptor_grddl_run_recursive to do - most of the work. Invoke the early on before - running general XPath matches. Use raptor_grddl_run_xpath_match - to run general XPath matches. - - * utils/rapper.c: Use raptor_home_url_string and - raptor_license_string in short and long usage messages. - - * src/raptor.h: Added raptor_home_url_string (replacing raptor_url) - - * src/raptor_general.c: raptor_home_url_string - - * src/raptor.h: Added raptor_url - - * src/raptor.h: Added raptor_license_string - - * src/raptor_general.c: 2007 and add raptor_license_string - -2007-01-07 Dave Beckett - - * src/raptor_abbrev.c: (raptor_new_abbrev_node): Initialise with - ref_count 1 - (raptor_abbrev_node_lookup): Do not add ref_count here - - * tests/turtle/Makefile.am: (check-turtle-serialize): rdfdiff with - a local file, not one in $(srcdir) - - * utils/rdfdiff.c: Apply the base URI to the to-file, if given. - Otherwise use the from_file's URI. - - * tests/turtle/Makefile.am: (check-turtle-serialize): Add base - URIs for the rdf-schema.ttl and rdfs-namespace.ttl - - * tests/turtle/Makefile.am: (check-turtle-serialize): Ensure it - dies when a failure happens - - * tests/turtle/Makefile.am: (check-turtle-serialize): Call rdfdiff - with -u to set base URI for input turtle. This allows test-00.ttl - to produce the same absolute URIs each time and for round-trip - serializing to work. - - * utils/rdfdiff.c: Added -u/--base-uri option to specify the from - file base URI so that if the from file is a local file or relative - URI, it can be given an absolute base. - - * tests/turtle/Makefile.am: (check-turtle-serialize): output - serialization results to .ttl files - - * tests/turtle/Makefile.am: Add check-turtle-serialize to - check-local - -2007-01-05 Dave Beckett - - * src/raptor-config.1: Document --private-libs and explain what it - is under --libs too. - - * src/raptor-config.in: Add --private-libs and move private @LIBS - to that from --libs - - * raptor.pc.in: Use Libs.private for internal dynamically linked - libraries diff --git a/ChangeLog.9 b/ChangeLog.9 deleted file mode 100644 index b1984802..00000000 --- a/ChangeLog.9 +++ /dev/null @@ -1,3100 +0,0 @@ -2008-11-26 Dave Beckett - - * docs/tmpl/section-general.sgml, docs/tmpl/section-triples.sgml: - sgml docs - - * tests/turtle/Makefile.am: more workarounds for noisy gnu make - - * tests/turtle/Makefile.am: workaround gnu make being noisy - - * tests/Makefile.am, tests/ex-62.rdf, tests/turtle/Makefile.am, - tests/turtle/ex-62.rdf: Moved remaining turtle tests to - tests/turtle - - * configure.ac, tests/Makefile.am, tests/all-escape.nt, - tests/all-escape.rdf, tests/bad-00.nt, tests/bad-01.nt, - tests/bad-02.nt, tests/bad-03.nt, tests/bad-04.nt, - tests/bad-05.nt, tests/bad-06.nt, tests/ntriples, - tests/ntriples/Makefile.am, tests/ntriples/all-escape.nt, - tests/ntriples/all-escape.rdf, tests/ntriples/bad-00.nt, - tests/ntriples/bad-01.nt, tests/ntriples/bad-02.nt, - tests/ntriples/bad-03.nt, tests/ntriples/bad-04.nt, - tests/ntriples/bad-05.nt, tests/ntriples/bad-06.nt, - tests/ntriples/test.nt, tests/ntriples/test.out, tests/test.nt, - tests/test.out: Moved ntriples tests to tests/ntriples - - * tests/Makefile.am: Removed unused OWL URLs - - * configure.ac, tests/ex*rdf, tests/ex*out, tests/bad*rdf, - tests/warn*rdf, tests/warn*out, tests/wine*: Moved rdf/xml parsing - and serializing tests to tests/rdfxml - - * src/raptor_nfc.c: - (raptor_nfc_check): Invert check for - raptor_nfc_check_combiners "check 3" to make legal Unicode - sequence U+006b U+0061 U+0304 U+0062 U+006f U+006c - as UTF-8 encoded bytes: - 0x6b 0x61 0xcc 0x84 0x62 0x6f 0x6c - work. Causes additional raptor_nfc_test failures but they are - probably(?) not correct. raptor_nfc_test is not currently part of - the normal test suite (make check) - - Fixes Issue#0000259 http://bugs.librdf.org/mantis/view.php?id=259 - -2008-11-22 Dave Beckett - - * src/turtle_common.c: - (raptor_stringbuffer_append_turtle_string): Calculate new string - size correctly. - - * src/turtle_parser.y: - (turtle_parse): Take a length arg and save a strlen inside lexer - by using turtle_lexer__scan_bytes - -2008-11-18 Dave Beckett - - * librdfa/rdfa.c: GIT commit - 2ddcb3f9e010d0b3d9ee546e807539be5da1b14a - The bug appears whenever there is a subject and predicate - specified on an element, but no child nodes for the object literal. - - Fixes Issue#0000289 http://bugs.librdf.org/mantis/view.php?id=289 - -2008-11-12 Lauri Aalto - - * src/raptor_sax2.c: - (raptor_sax2_parse_chunk): Fixed raptor_log_error_to_handlers() - calls when built with expat. Fixes issue #287 - http://bugs.librdf.org/mantis/view.php?id=287 - -2008-11-07 Dave Beckett - - * configure.ac: handle empty LEX in test - -2008-10-13 Lauri Aalto - - * src/raptor_internal.h, src/raptor_sax2.c: - (raptor_sax2_init, raptor_sax2_finish): (revert r14679, reapply - r14459): Reintroduce sax2_initialized counter. This time to work - around issues cleaning up libxml2 in case it was never initialized - due to a failure earlier in raptor initialization. - -2008-10-09 Lauri Aalto - - * src/raptor_grddl.c: - (raptor_terminate_parser_grddl_common): Zero raptor_xslt_sec - variable after xsltFreeSecurityPrefs() to prevent double deletions - with multiple raptor instances in the same process. - - * src/raptor_internal.h, src/raptor_sax2.c: - (raptor_sax2_init, raptor_sax2_finish): (Revert r14459) Removed - sax2_initialized counter from raptor_world. Does not serve its - purpose if multiple raptor_worlds used. - -2008-10-08 Lauri Aalto - - * src/raptor.h, src/raptor_general.c, src/raptor_internal.h: - Revert r14677 as unnecessary - - * src/raptor.h, src/raptor_general.c, src/raptor_internal.h: - (raptor_world_instance): Internal function turned to an API - function for legacy support. - -2008-10-07 Lauri Aalto - - * src/raptor.h: Wrap raptor_world declaration to - RAPTOR_WORLD_DECLARED preprocessor guards. - - * src/raptor_general.c: docs - -2008-10-06 Dave Beckett - - * src/raptor.h: RAPTOR_DISABLE_V1 not RAPTOR_DISBALE_V1 - -2008-10-06 Lauri Aalto - - * src/raptor_set.c: Refactored raptor_set_test to use raptor v2 - functions. - - * src/raptor_avltree.c: Refactored raptor_avltree_test to use - raptor v2 functions. - - * src/raptor_turtle_writer.c: Refactored raptor_turtle_writer_test - to use raptor v2 functions. - - * src/raptor_xml_writer.c: Refactored raptor_xml_writer_test to - use raptor v2 functions. - - * src/raptor_www_test.c: Refactored raptor_www_test to use raptor - v2 functions. - - * src/raptor_namespace.c: Refactored raptor_namespace_test to use - raptor v2 functions. - - * src/raptor_uri.c: Refactored raptor_uri_test to use raptor v2 - functions. - - * src/raptor_parse.c: Refactored raptor_parse_test to use raptor - v2 functions. - - * utils/rdfdiff.c: Refactored rdfdiff to use raptor v2 APIs + - internals. - - * src/raptor_internal.h, src/raptor_statement.c: Reorganized - internal raptor_statement functions. - - (raptor_statement_copy): Require raptor_world param, replace - earlier raptor_statement_copy_common() static function. - - (raptor_free_statement): Require raptor_world param, replace - earlier raptor_free_statement_common() static function. Loses - RAPTOR_DISABLE_V1 status. - - (raptor_print_statement_v1): Pulled static function to library - internals. - - * utils/rapper.c: Refactored rapper to use raptor v2 API. - - * src/raptor.h, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c, - src/raptor_uri.c: - (raptor_uri_to_relative_uri_string_v2): New v2 API - function. raptor_uri_to_relative_uri_string() depends on V1 - functions and cannot be used with RAPTOR_DISABLE_V1 or without - raptor_init(). - - * src/raptor_internal.h: Fixed flipped flag - - * src/raptor_general.c: - (raptor_world_open): Fixed return type - - * src/raptor.h, src/raptor_general.c, src/raptor_internal.h, - src/raptor_www.c: Refactored raptor_www init/finish to support v2 - raptor_world_instance. Retain source/binary compatibility with old - API. - - (raptor_www_init_v2, raptor_www_finish_v2, - raptor_www_no_www_library_init_finish_v2): New API functions that - work with raptor_world objects. - - * src/raptor.h, src/raptor_general.c, src/raptor_internal.h: - Decouple raptor_world allocation and initialization to allow - setting flags etc. before init. - - (raptor_world_open): New API function. - - (raptor_world_s): Internal struct gains opened field. - - * src/raptor.h, src/raptor_parse.c, - src/raptor_serialize.c: - (raptor_parser_get_world, raptor_serializer_get_world): Added two - new API functions to access raptor_world from a parser/serializer - object. - - * src/raptor.h, src/raptor_feature.c, src/raptor_general.c, - src/raptor_identifier.c, src/raptor_internal.h, - src/raptor_iostream.c, src/raptor_locator.c, - src/raptor_namespace.c, src/raptor_parse.c, src/raptor_qname.c, - src/raptor_sequence.c, src/raptor_serialize.c, - src/raptor_serialize_ntriples.c, src/raptor_statement.c, - src/raptor_uri.c, src/raptor_www.c, src/raptor_xml_writer.c: Added - API flag RAPTOR_V2_AVAILABLE. - - Flagged v1 functions replaced with v2 variants with RAPTOR_V1 - - easy to deprecate later. - - Wrapped v1 functions replaced with v2 variabrs in #ifndef - RAPTOR_DISABLE_V1 - easy to remove old implementations if needed. - - * src/fix-bison: Keep #line references up to date - - * src/fix-bison, src/n3_parser.y, src/turtle_parser.y: HACK: Use - fix-bison to pass in pure bison parser param (rdf_parser*) to - %destructor - raptor_world required for raptor_free_uri_v2(). - - * src/raptor.h, src/raptor_serialize_ntriples.c: Refactored - raptor_serialize_ntriples internals to use v2 raptor_world APIs. - - (raptor_iostream_write_statement_ntriples_v2): New API function - that takes in a raptor_world param. - -2008-10-03 Lauri Aalto - - * src/raptor_grddl.c: Refactored raptor_grddl internals to use v2 - raptor_world APIs. - - * src/raptor_serialize_rss.c: Debug prints to use v2 APIs. - - * src/raptor_serialize.c: - (raptor_serializer_register_factory): Fixed compiler warning in - debug print. - - * src/raptor_namespace.c, src/raptor_qname.c, src/turtle_parser.y: - Debug prints to use v2 APIs. - - * src/raptor.h, src/raptor_sequence.c: - (raptor_new_sequence_with_handler_context): New API function that - supports passing context data (e.g. raptor_world) to free_handler, - print_handler. - - (raptor_sequence_set_print_handler_v2): New API function. - - (raptor_sequence_free_handler_v2, - raptor_sequence_print_handler_v2): New API callback function - typedefs for raptor_new_sequence_with_handler_context(), - raptor_sequence_set_print_handler_v2(). - - (raptor_sequence_print_uri): Deprecated API function, should use - raptor_uri_print(), raptor_uri_print_v2() instead. - - (raptor_free_sequence, raptor_sequence_set_at, - raptor_sequence_push, raptor_sequence_shift): Support - free_handler_v2 - - (raptor_sequence_print): Support print_handler_v2. - - * src/raptor_expat.c: - (raptor_expat_init): v2 APIs - - * src/raptor.h, src/raptor_iostream.c, - src/raptor_serialize_simple.c: Refactored raptor_iostream - internals to use v2 raptor_world APIs. - - (raptor_iostream_write_uri_v2): New API function that takes in a - raptor_world param. - - (raptor_simple_serialize_statement): Use - raptor_iostream_write_uri_v2() instead of - raptor_iostream_write_uri(). - - * utils/rdfdiff.c: - (long_options,title_format_string): Use const qualifier for - constant data. - - * utils/rapper.c: - (long_options,title_format_string): Use const qualifier for - constant data. - - * src/raptor_www.c: Changed raptor_www_do_www_init_finish to its - inverse raptor_www_skip_www_init_finish to make the flag default - to 0 -> moved from writable .data chunk to .bss. - - * librdfa/curie.c: - (g_property_reserver_words,g_relrev_reserver_words): Use const - qualifier for constant data. - -2008-10-02 Lauri Aalto - - * src/raptor_statement.c: - (raptor_statement_compare_v2): Fixed args to - raptor_statement_compare_common() - - * src/raptor_statement.c: - (raptor_print_statement_as_ntriples_common): Added const qualifier - to helper prototype - - * src/raptor.h, src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_rss_common.c, src/raptor_serialize_json.c, - src/raptor_serialize_rss.c, src/raptor_statement.c: Refactored - raptor_statement internals to use v2 raptor_world APIs. - - (raptor_statement_v2): New API struct for wrapping - raptor_statement with raptor_world without breaking source/binary - compatibility. - - (raptor_print_statement_v2, raptor_print_statement_as_ntriples_v2, - raptor_statement_compare_v2): New API function variants that work - on raptor_statement_v2 objects. - - (raptor_statement_part_as_counted_string_v2, - raptor_statement_part_as_string_v2): New API function variants - that take in raptor_world object. - - (raptor_statement_copy_v2, raptor_statement_copy_v2_from_v1, - raptor_free_statement_v2): New internal raptor_statement_v2 - lifecycle functions. - - (raptor_print_abbrev_po): Use - raptor_statement_part_as_string_v2(). - - (raptor_new_rss_item, raptor_rss10_serialize_init, - raptor_rss10_move_statements, - raptor_rss10_move_anonymous_statements, - raptor_rss10_store_statement, raptor_rss10_serialize_statement, - raptor_rss10_build_items, raptor_rss10_emit_rdfxml_item_triples, - raptor_rss10_serialize_end): triples sequences are now sequences - of raptor_statement_v2. - - (raptor_json_serialize_start, raptor_json_serialize_statement): - context->avltree is now a tree of raptor_statement_v2. - - (raptor_statement_copy_common): (Pulled from - raptor_statement_copy.) Now also checks for OOM. - - - * librdfa/curie.c, librdfa/rdfa.c: Refactored librdfa raptor - integration internals to use v2 raptor_world APIs. - -2008-09-23 Lauri Aalto - - * src/raptor_www_libfetch.c, src/raptor_www_libxml.c: Refactored - raptor_www_lib{fetch,xml} internals to use v2 raptor_world APIs. - - * src/raptor_www_curl.c: Refactored raptor_www_curl internals to - use v2 raptor_world APIs. - -2008-09-22 Lauri Aalto - - * src/raptor_abbrev.c, src/raptor_namespace.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_turtle.c, - src/raptor_xml.c: Use - raptor_new_qname_from_namespace_local_name_v2() instead of - raptor_new_qname_from_namespace_local_name() - -2008-09-20 Lauri Aalto - - * src/raptor_sequence.c: - (raptor_sequence_set_at): Maintain sequence design contract: - "size" consecutive items in "sequence" starting from "start" when - setting items more than +1 offset beyond the end of sequence. - - Fixes Issue#000276 http://bugs.librdf.org/mantis/view.php?id=276 - -2008-09-19 Lauri Aalto - - * src/raptor_serialize_rss.c: - (raptor_rss_group_map): Internal struct gains world field, cannot - trust item to be valid to use item->world. - - (raptor_free_group_map, raptor_rss_group_map_compare, - raptor_rss10_set_item_group): Use/init group_map's raptor_world. - - (raptor_rss10_get_group_item): Init world field on search group - map allocated on stack. - - * src/raptor_rss_common.c: - (raptor_new_rss_item): Init identifier.world as well - - * src/raptor.h, src/raptor_qname.c: - (raptor_new_qname_from_namespace_local_name_v2): New API function - that takes in a raptor_world param. Passed in raptor_namespace* - may be NULL -> cannot use ns->world. - - (raptor_qname_copy): Copy qname->world as well. - - * src/raptor_serialize_json.c: Refactored raptor_serialize_json - internals to use v2 raptor_world APIs. - - * src/raptor_serialize_dot.c: Refactored raptor_serialize_dot - internals to use v2 raptor_world APIs. - - * src/raptor_serialize_rss.c: Refactored raptor_serialize_rss - internals to use v2 raptor_world APIs. - - * src/raptor_serialize_turtle.c: Refactored - raptor_serializer_turtle internals to use v2 raptor_world APIs. - - * src/raptor_serialize_rdfxmla.c: Refactored - raptor_serializer_rdfxmla internals to use v2 raptor_world APIs. - - * src/raptor_avltree.c: - (raptor_new_avltree): Bugfix: set world - field to passed in value. - - * src/raptor_abbrev.c, src/raptor_avltree.c, - src/raptor_internal.h, src/raptor_serialize_json.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c, - src/raptor_serialize_turtle.c, src/raptor_set.c: Refactored - raptor_abbrev, raptor_avltree internals to use v2 raptor_world - APIs. - - (raptor_new_abbrev_node, raptor_new_avltree): Internal functions - changed to take in raptor_world. - - (raptor_avltree_s): Moved internal struct definition to - raptor_internal.h. Gains world field. - - (raptor_abbrev_node): Internal struct gains world field. - - * src/raptor_serialize_json.c: - (raptor_json_serializer_start): - Fixed accidentally deleted base_uri declaration - - * src/raptor_internal.h, src/raptor_json_writer.c, - src/raptor_serialize_json.c: Refactored raptor_json_writer - internals to use v2 raptor_world APIs. - - (raptor_new_json_writer): Internal function prototype - changed. Require raptor_world, do not take uri handlers anymore. - - * src/raptor_serialize.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_turtle_writer.c: Further - internals refactoring to use v2 raptor_uri functions. - - * src/raptor.h, src/raptor_internal.h, src/raptor_rdfxml.c, - src/raptor_statement.c, src/raptor_uri.c: Further refactored - raptor_uri internals to use v2 raptor_world APIs. - - (raptor_uri_to_relative_counted_uri_string_v2, - raptor_uri_print_v2, raptor_uri_to_counted_string_v2, - raptor_uri_to_string_v2): New API functions that take in a - raptor_world param. - - (raptor_new_uri_from_rdf_ordinal): Changed internal function to - take in raptor_world. - - * src/raptor_serialize_rdfxml.c: Refactored - raptor_serialize_rdfxml internals to use v2 raptor_world APIs. - -2008-09-18 Lauri Aalto - - * src/raptor_librdfa.c: Refactored raptor_librdfa internals to use - v2 raptor_world APIs. - - * src/raptor_guess.c: Refactored raptor_guess internals to use v2 - raptor_world APIs. - - * src/raptor_rss.c, src/raptor_rss.h, src/raptor_rss_common.c, - src/raptor_serialize_rss.c: Refactored raptor_rss internals to use - v2 raptor_world APIs. - - (raptor_rss_field_s, raptor_rss_item_s, raptor_rss_model, - raptor_rss_element_s): Internal structs gain world field. - - (raptor_new_rss_item, raptor_rss_new_field): Internal functions - gain world param. - - * src/ntriples_parse.c: Refactored ntriples_parse internals to use - v2 raptor_world APIs. - - * src/n3_lexer.l, src/n3_parser.y: Refactored n3_parser/n3_lexer - internals to use v2 raptor_world APIs. - FIXME: Figure out a way to pass custom args (raptor_world) to - %destructor. - -2008-09-12 Lauri Aalto - - * src/turtle_parser.y: Refactored turtle_parser internals to use - v2 raptor_world APIs. - FIXME: Figure out a way to pass custom args (raptor_world) to - %destructor. - - * src/turtle_lexer.l: Refactored turtle_lexer internals to use v2 - raptor_world APIs. - - * src/n3_parser.y: - (FLOATING_LITERAL): missing cast - - * src/raptor_sax2.c: Refactored raptor_sax2 internals to use v2 - raptor_world APIs. - - * src/raptor_www.c: - (raptor_www_fetch): Use raptor_new_uri_for_retrieval_v2() - - * src/raptor.h, src/raptor_uri.c: - (raptor_new_uri_for_xmlbase_v2, raptor_new_uri_for_retrieval_v2): - Added new v2 API functions to replace old ones. Refactored - internals to use raptor v2 raptor_world APIs. - - * src/raptor_rdfxml.c: Refactored raptor_rdfxml internals to use - v2 raptor_world APIs. - - * src/raptor_rdfxml.c: Refactored raptor_rdfxml internals to use - v2 raptor_world APIs. - - * src/raptor.h, src/raptor_uri.c: - (raptor_new_uri_from_id_v2): Added new API function to replace - raptor_new_uri_from_id(). Refactored internals to use raptor v2 - raptor_world APIs. - - * src/n3_parser.y, src/raptor_internal.h, src/raptor_xsd.c: - Refactored raptor_xsd internals to use v2 raptor_world APIs. - - (raptor_new_identifier_from_double): Internal function prototype - changed. - - * src/raptor_turtle_writer.c: - (main): Use raptor_world_instance() in test code temporarily to - make tests compile - - * src/raptor_internal.h, src/raptor_serialize_turtle.c, - src/raptor_turtle_writer.c: Refactored raptor_turtle_writer - internals to use v2 raptor_world APIs. - - (raptor_new_turtle_writer): Internal function prototype changed. - - * src/raptor_set.c: - (main): Use raptor_world_instance() in test code temporarily to - make tests compile - - * src/raptor_internal.h, src/raptor_rdfxml.c, src/raptor_set.c: - Refactored raptor_set internals to use v2 raptor_world APIs. - - (raptor_new_id_set): Internal function changed to require - raptor_world param. - - * src/raptor.h, src/raptor_xml_writer.c: Refactored - raptor_xml_writer internals to use v2 raptor_world APIs. - - (raptor_new_xml_writer_v2): New API function that takes in a - raptor_world param. - -2008-09-10 Dave Beckett - - * docs/libraptor.3: extra b - -2008-09-10 Lauri Aalto - - * src/raptor_rss.h: - (raptor_rss_namespace_info): Fix const member missing constructor - warning in c++ mode. - - * src/raptor_internal.h, src/raptor_sax2.c: - (raptor_world_s, raptor_sax2_init, raptor_sax2_finish): Store - raptor_sax2 init counter in raptor_world. Works around resiliency - issues in some xml parser implementations where xmlCleanupParser() - crashes if xmlInitParser() has not been run. - -2008-09-08 Lauri Aalto - - * src/raptor.h, src/raptor_internal.h: Moved EXTERN_C definitions - to internal header - no need to expose in API. - - * src/raptor.h, src/raptor_iostream.c, src/raptor_parse.c, - src/raptor_sequence.c, src/raptor_serialize.c, src/raptor_www.c: - Workaround for an armcc c++ mode issue regarding function pointers - as arguments: Need explicit extern "C" to get C linkage for C - function pointers. - - * src/raptor_rdfxml.c: - (rdf_syntax_terms_info,rdf_content_type_info): Fixed c++ mode - warnings about missing const member initializers. Array data is - already const by the outermost const. - - * src/n3_lexer.l, src/turtle_lexer.l: casts for c++ - -2008-09-05 Dave Beckett - - * src/raptor_libxml.c: - (raptor_libxml_xmlStructuredErrorFunc): Use fputs when there is no - error handler. - - * src/raptor_serialize_rss.c: - (raptor_rss10_ensure_atom_field_zero_one): do not assign same - variable field while initing it. - - * librdfa/rdfa.c, src/raptor_rss_common.c, - src/raptor_serialize_rss.c: Fixes for g++ from - Issue#0000270 http://bugs.librdf.org/mantis/view.php?id=270 - -2008-09-04 Lauri Aalto - - * src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_rss.h, - src/raptor_rss_common.c: - (raptor_rdfxml_start_element_handler, - raptor_rss_new_enclosure): Bugfix: Initialize world fields in - composed raptor_identifiers. - - * src/raptor_xml.c: Refactored raptor_xml internals to use v2 - raptor_world APIs. - - * src/raptor.h, src/raptor_identifier.c: Refactored - raptor_identifier internals to use v2 raptor_world functions. - - (raptor_new_identifier_v2): New API function that takes in - raptor_world param. - - (raptor_identifier): API struct gains world field. BINARY - COMPATIBILITY BREAK: sizeof(raptor_identifier) changed. Source - compatibility not broken. - -2008-09-03 Lauri Aalto - - * src/raptor_parse.c: - (raptor_parse_uri_with_connection): Use - raptor_www v2 functions - - * src/raptor.h, src/raptor_internal.h, src/raptor_www.c: - Refactored raptor_www internals to use v2 raptor_world functions. - - (raptor_www_new_v2, raptor_www_new_with_connection_v2): New API - functions that take in raptor_world param. - - (raptor_www_s): Internal struct gains world param. - - * src/raptor.h, src/raptor_general.c, src/raptor_grddl.c, - src/raptor_internal.h, src/raptor_libxml.c, src/raptor_parse.c, - src/raptor_sax2.c, src/raptor_www.c: Refactored raptor logging to - use v2 raptor_world functions. Store world pointer to raptor_sax2, - raptor_error_handlers. - - (raptor_error_handlers): API struct gains world field. BINARY - COMPATIBILITY BREAK: struct size and layout changed. (Source - compatibility not broken.) - - (raptor_error_handlers_init_v2): New API function that takes in - raptor_world param. - - (raptor_log_error_to_handlers, raptor_log_error_varargs, - raptor_log_error): Internal logging functions now require a - raptor_world param (may be NULL). - - (raptor_sax2_s): Internal struct gains world field. - - * src/raptor_rss_common.c: - (raptor_rss_types_info, - raptor_rss_fields_info): Fixed gcc warnings about missing - initializers. - - * src/raptor_internal.h, src/raptor_qname.c: - (raptor_free_qname, - raptor_qname_copy, raptor_new_qname, - raptor_new_qname_from_namespace_local_name): Bugfix: qname nspace - field may be NULL. Store world pointer in qname struct and use it - instead of indirecting nspace->nstack->world. - - (raptor_qname_s): Internal struct gains world field. - - * src/raptor.h, src/raptor_feature.c, src/raptor_internal.h, - src/raptor_parse.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Refactored - raptor_feature internals to use v2 raptor_world functions. - - (raptor_features_enumerate_v2, - raptor_serializer_features_enumerate_v2, - raptor_feature_from_uri_v2, - raptor_xml_writer_features_enumerate_v2): New API functions that - take in raptor_world param. - - (raptor_features_enumerate_common, - raptor_turtle_writer_features_enumerate): Internal functions - changed to take in raptor_world param. - - * src/raptor_qname.c: Refactored raptor_qname internals to use v2 - raptor_world functions. - - * src/raptor.h, src/raptor_internal.h, src/raptor_namespace.c: - Refactored raptor_namespace internals to use v2 raptor_world - functions. - - (raptor_new_namespaces_v2, raptor_namespaces_init_v2): New API - functions that take in raptor_world param and use the uri handlers - defined in it. - - (raptor_namespace_stack_s): Internal struct gains world field, - loses uri_handler, uri_context fields. - -2008-09-02 Dave Beckett - - * src/raptor_nfc_test.c: Update what is being ntested - -2008-09-02 Lauri Aalto - - * src/raptor_serialize.c: - (raptor_serializer_error_varargs, - raptor_serializer_warning_varargs): Use locator v2 functions - - * src/raptor.h, src/raptor_locator.c: Refactored raptor_locator - internals to use v2 raptor_world functions. - - (raptor_print_locator_v2, raptor_format_locator_v2, - raptor_locator_uri_v2): New API functions that take in a - raptor_world param. - - * src/raptor_uri.c: - (raptor_uri_init): Use raptor_world* as - default uri handler context. - - (raptor_default_new_uri): Refactored internals to use v2 - raptor_world functions. - - * src/raptor_serialize.c: - (raptor_serialize_start_to_iostream, - raptor_serialize_start_to_filename, - raptor_serialize_start_to_string, - raptor_serialize_start_to_file_handle, raptor_free_serializer, - raptor_serializer_set_feature_string): Refactored raptor_serialize - internals to use v2 raptor_world functions. - - * src/raptor.h, src/raptor_parse.c: Refactored raptor_parse - internals to use v2 raptor_world functions. - - (raptor_new_parser_for_content_v2): New API function that takes in - a raptor_world param. - - (raptor_parser_register_factory, raptor_parser_factory_add_alias, - raptor_guess_parser_name_v2): Use RAPTOR_DEBUG instead of - RAPTOR_FATAL for error messaging and let caller handle the - error. These error conditions are really tests for - development-time assumptions and should surface in maintainer - mode (debug messages enabled). - - (raptor_start_parse, raptor_free_parser, raptor_parse_file, - raptor_parse_file_no_net_filter, raptor_parse_uri_with_connection, - raptor_guess_parser_name_v2): Refactored to use v2 raptor_world - functions. - - * src/raptor_general.c, src/raptor_www.c: - (raptor_new_world, - raptor_free_world, raptor_init, raptor_finish): Moved raptor_www - init/finish calls to new_world/free_world. - - Added a FIXME note to raptor_www to re-engineer the init/finish API. - - * src/raptor_internal.h, src/raptor_rss.c, src/raptor_rss.h, - src/raptor_rss_common.c, src/raptor_serialize_rss.c: Made - raptor_rss_{namespaces,types,fields}_info arrays const and moved - non-const uris/qnames to raptor_world. - - (raptor_rss_namespace_info): Internal struct loses uri field. - - (raptor_rss_info): Internal struct oses uri,qname fields. - - (raptor_world_s): Internal struct gains - rss_common_initialised (from raptor_rss_common_initialised static - in raptor_rss_common.c); rss_namespaces_info_uris, - rss_types_info_uris, rss_types_info_qnames, rss_fields_info_uris, - rss_fields_info_qnames from - raptor_rss_{namespaces,types,fields}_info arrays. - - (raptor_rss_item_s): Internal struct gains node_typei field for - indexing to uris/qnames in raptor_world. - - (raptor_rss10_serializer_context): Internal struct gains world - field. - - (raptor_rss_common_init): Require raptor_world param. Return int - return code. Allocate and init uri arrays in raptor_world. - - (raptor_rss_common_terminate): Require raptor_world param. Free - allocs by raptor_rss_common_init(). - - (raptor_rss10_build_xml_names): Allocate and init qname arrays in - raptor_world. Store item type index for uri/qname access. Access - uris/qnames in raptor_world. - - (raptor_rss10_serialize_terminate): Free qname arrays in - raptor_world. - - (raptor_rss_model_init): Require raptor_world param. - - (raptor_rss_parse_init, raptor_rss_start_element_handler, - raptor_rss_sax2_new_namespace_handler, - raptor_rss_insert_enclosure_identifiers, - raptor_rss_emit_enclosure, raptor_rss_emit_item, raptor_rss_emit, - raptor_rss10_move_statements, raptor_rss10_store_statement, - raptor_rss10_serialize_statement, - raptor_rss10_emit_atom_triples_map, raptor_rss10_emit_rss_items): - Access uris/qnames in raptor_world. - - (raptor_rss_insert_identifiers): Store item type index for - uri/qname access. - - (raptor_rss10_emit_item): Store item type index for uri/qname - access. Access uris/qnames in raptor_world. - -2008-09-01 Dave Beckett - - * src/raptor_nfc_test.c: format - - * src/raptor_nfc_test.c: Make test take file as argument. Add - where it can be found - - * librdfa/curie.c: Merge to GIT - 5e29c166212c61d86223d2c4aa97e67fe0655063 - -2008-09-01 Lauri Aalto - - * src/raptor_general.c, src/raptor_internal.h, - src/raptor_sax2.c: - (raptor_sax2_init, raptor_sax2_finish, raptor_init, raptor_finish, - raptor_new_world, raptor_free_world): Changed raptor_sax2 - init/finish code to the raptor_world model. Take in (unused) - raptor_world param. - - * src/raptor_grddl.c: - (raptor_init_parser_grddl_common): Fixed signature to match prototype - - * src/n3_parser.y, src/raptor.h, src/raptor_general.c, - src/raptor_internal.h, src/raptor_namespace.c, src/raptor_uri.c, - src/raptor_www_test.c, src/turtle_parser.y: Moved uri_handler and - uri_handler_context to raptor_world. - - (raptor_new_uri_v2, raptor_new_uri_from_uri_local_name_v2, - raptor_new_uri_relative_to_base_v2, - raptor_new_uri_for_rdf_concept_v2, raptor_free_uri_v2, - raptor_uri_equals_v2, raptor_uri_compare_v2, raptor_uri_copy_v2, - raptor_uri_as_string_v2, raptor_uri_as_counted_string_v2, - raptor_uri_set_handler_v2, raptor_uri_get_handler_v2): New API - functions that take in a raptor_world object. - - (raptor_uri_init,main): Changed internal function to take in - raptor_world param. Changed test code callers to use full - raptor_init()/raptor_finish() instead so that the world is - properly set up. - - FIXME: Refactor the raptor_uri opaque abstraction so that it can - store raptor_world* - no need to pass in world as an argument to - calls that take raptor_uris. - - * src/raptor.h, src/raptor_general.c, src/raptor_internal.h, - src/raptor_serialize.c, src/raptor_serialize_dot.c, - src/raptor_serialize_json.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_simple.c, - src/raptor_serialize_turtle.c: Moved serializers sequence to - raptor_world. - - (raptor_serializers_enumerate_v2, - raptor_serializer_syntax_name_check_v2, raptor_new_serializer_v2): - New API function variants that accept a raptor_world object. - - (raptor_serializer_s, raptor_seriazlizer_factory_s): Internal - structs gain world field. - - (raptor_serializer_register_factory, raptor_serializers_init, - raptor_serializers_finish, raptor_init_serializer_*): Internal - functions changed to require raptor_world param. - - (raptor_delete_serializer_factories): Removed unnecessary prototype. - - * src/n3_parser.y, src/ntriples_parse.c, src/raptor.h, - src/raptor_general.c, src/raptor_grddl.c, src/raptor_guess.c, - src/raptor_internal.h, src/raptor_librdfa.c, src/raptor_parse.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/turtle_parser.y: - Introduced a raptor_world object for storing library-wide data - instead of static variables. - - Moved parsers sequence to raptor_world. - - (raptor_new_world, raptor_free_world): New API functions, - eventually to replace raptor_init() and raptor_finish(). - - (raptor_parsers_enumerate_v2, raptor_syntaxes_enumerate_v2, - raptor_syntax_name_check_v2, raptor_guess_parser_name_v2, - raptor_new_parser_v2): New API function variants that accept a - raptor_world object. - - (raptor_parser_s, raptor_parser_factory_s): Internal structs gain - world field. - - (raptor_parser_register_factory, raptor_parser_factory, - raptor_parser_get_accept_header_all, raptor_parsers_init, - raptor_parsers_finish, raptor_init_parser_*): Internal functions - changed to require raptor_world param. - - (raptor_world_instance): New accessor for a static pointer to a - raptor_world instance created by raptor_init(). Required for - supporting non-v2 API functions (where v2 variants exist). - -2008-08-29 Dave Beckett - - * src/turtle_parser.y: - (raptor_trig_parse_recognise_syntax, - raptor_trig_parse_recognise_syntax): Use raptor_memstr to compare - a string against a buffer that may not be NUL terminated. - Part of fix for - Issue#0000269 http://bugs.librdf.org/mantis/view.php?id=269 - - * src/raptor_rdfxml.c: - (raptor_rdfxml_parse_recognise_syntax): Use - raptor_memstr to compare a string against a buffer that may not be - NUL terminated. - Part of fix for - Issue#0000269 http://bugs.librdf.org/mantis/view.php?id=269 - - * src/raptor_librdfa.c: - (raptor_librdfa_parse_recognise_syntax): - Use raptor_memstr to compare a string against a buffer that may - not be NUL terminated. - Part of fix for - Issue#0000269 http://bugs.librdf.org/mantis/view.php?id=269 - - * src/Makefile.am, src/raptor_memnstr.c, src/raptor_memstr.c (from - /raptor/trunk/src/raptor_memnstr.c:14406): Renamed - raptor_memnstr.c to raptor_memnstr.c - - * src/raptor_internal.h, src/raptor_memnstr.c: - (raptor_memstr): - Renamed from raptor_memnstr - -2008-08-27 Dave Beckett - - * src/raptor_memnstr.c: comment - - * src/raptor_memnstr.c: includes - - * src/raptor_memnstr.c: internal - - * src/raptor_internal.h: Added raptor_memnstr() - - * src/Makefile.am: Added raptor_memnstr.c - - * src/raptor_memnstr.c: Added raptor_memnstr - -2008-08-25 Lauri Aalto - - * src/fix-flex: Removed additional OOM checks added to - flex-generated ensure_buffer_stack(). flex versions 2.5.34 and - later generate the OOM checking code themselves. - -2008-08-24 Dave Beckett - - * utils/rapper.c: - (main): Make printing triples count at least - potentially localizable. - - * src/raptor_uri.c: Added tests for - Issue#0000268 http://bugs.librdf.org/mantis/view.php?id=268 - which pass. - -2008-08-20 Lauri Aalto - - * tests/rdfa/Makefile.am: Run tests inside set +e ... set -e - -2008-07-10 Lauri Aalto - - * src/ntriples_parse.c: - (raptor_ntriples_generate_statement): Cast - to eliminate compiler printf-like format arg warning. - -2008-07-04 Dave Beckett - - * configure.ac: Use AC_PROG_CC AM_PROG_CC_C_O - -2008-07-04 Lauri Aalto - - * src/raptor_turtle_writer.c: - (raptor_turtle_writer_literal): - Validate XSD integer, decimal and double literal output. Emit - special short forms only if the whole literal value is consumed by - strtol() (for integers) or strtod() (for decimals and - doubles). Otherwise produce a warning and emit literal in the - normal "value"^^ format. - Fixes Issue #0000263 http://bugs.librdf.org/mantis/view.php?id=263 - -2008-07-03 Dave Beckett - - * NEWS.html, RELEASE.html, configure.ac, - src/win32_raptor_config.h: Bumped version to 1.4.19 - - * docs: props - -2008-07-02 Dave Beckett - - * docs/libraptor.3: 2008 - -2008-07-02 Lauri Aalto - - * src/ntriples_parse.c: - (raptor_ntriples_generate_statement): - Produce error messages when raptor_new_uri() fails. - Fixes Issue #0000262 http://bugs.librdf.org/mantis/view.php?id=262 - -2008-06-29 Dave Beckett - - * tests/feeds/Makefile: fix - - * tests/feeds/Makefile, tests/feeds/atom.rnc, - tests/feeds/atom.rng, tests/feeds/test01.atom, - tests/feeds/test01.rss, tests/feeds/test02.atom, - tests/feeds/test02.rss, tests/feeds/test03.atom, - tests/feeds/test03.rss: Feed examples - - * tests/feeds: Add feeds - -2008-06-25 Dave Beckett - - * Snapshotted raptor_1_4_18 for 1.4.18 release (SVN 14104) - -2008-06-23 Dave Beckett - - * docs/Makefile.am, utils/Makefile.am: Use $(PERL) not perl - -2008-06-20 Dave Beckett - - * README.html, RELEASE.html, docs/raptor-parsers.xml, - utils/rapper.1: Update RDFa pointers to - http://www.w3.org/TR/2008/CR-rdfa-syntax-20080620/ caniddate rec - - * src/raptor_sequence.c: - (raptor_sequence_set_at): Correct - counting when there is old data but no free handler. - - * tests/rdfa/0011.out, tests/rdfa/0092.out, tests/rdfa/0094.out, - tests/rdfa/0099.xhtml, tests/rdfa/0100.out, tests/rdfa/0100.xhtml, - tests/rdfa/0101.out, tests/rdfa/0101.xhtml, tests/rdfa/0102.out, - tests/rdfa/0102.xhtml, tests/rdfa/0103.out, tests/rdfa/0103.xhtml, - tests/rdfa/0104.xhtml, tests/rdfa/0105.out, tests/rdfa/0105.xhtml, - tests/rdfa/0106.out, tests/rdfa/0106.xhtml, tests/rdfa/0107.out, - tests/rdfa/0107.xhtml, tests/rdfa/0110.out, tests/rdfa/0110.xhtml, - tests/rdfa/0111.out, tests/rdfa/0111.xhtml, tests/rdfa/0112.out, - tests/rdfa/0112.xhtml, tests/rdfa/Makefile.am: Update approved - tests from - http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/ as - of now - -2008-06-19 Dave Beckett - - * docs/libraptor.3: Added raptor_serialize_start_to_iostream for - 1.4.18 - - * docs/raptor-tutorial-serializing.xml: xml - - * docs/raptor-tutorial-serializing.xml: Explain - raptor_serialize_start and raptor_serialize_start_to_iostream, - recommending the latter. - - * docs/Makefile.am: Call gtkdoc-scan with - --deprecated-guards="RAPTOR_DISABLE_DEPRECATED" - - * src/ntriples_parse.c, src/raptor.h, src/raptor_iostream.c, - src/raptor_statement.c, src/raptor_turtle_writer.c, - src/raptor_uri.c: Use RAPTOR_DISABLE_DEPRECATED macro to wrap - disabling deprecated functions and prototypes - - * docs/tmpl/section-feature.sgml, docs/tmpl/section-serializer.sgml: docs tmp - - * src/raptor_iostream.c: typo - - * docs/raptor-sections.txt: Added raptor_serialize_start_to_iostream - - * src/raptor_serialize.c: - (raptor_serialize_set_namespace): Allow - "" as a synonym for NULL prefix. - -2008-06-18 Dave Beckett - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_item): Use - _:author for atom author bnode always since atom:author may not be - a valid bnode ID. - - * src/raptor_serialize_rss.c: - (raptor_rss10_ensure_atom_field_zero_one): Added. - (raptor_rss10_ensure_atom_feed_valid): Use - raptor_rss10_ensure_atom_field_zero_one to ensure that fields - appear 0 or 1 times for atom feed and entry. - -2008-06-15 Dave Beckett - - * docs/rdfserialize.c: Casts for C++ - - * librdfa/rdfa.c: GIT commit 8892f4056d9486d7bdd0cc89fe12b3a863a4d418 - (rdfa_free_context): rewrite - rdfa_free_list(context->context_stack) call to look and do a - proper rdfa_free_context() on each returned item that is not - ourself. Still leaks one malloc but does not crash parser on error. - - * src/raptor_librdfa.c: - (raptor_librdfa_parse_start): Init librdfa - context->error_handlers from static field in raptor_parser - structure so that error handlers are passed correctly to librdfa - and raptor_sax2 - - * librdfa/rdfa.c, librdfa/rdfa.h: GIT commit - 1a4f7d0352017cf6d55ecbcf7d355badb0c777f9. Do not make a new - error_handlers structure for the rdfa context, use the one passed - in from the top-level rdfacontext, set by raptor as error_handlers - static in the raptor_parser structure - - * src/raptor_serialize_dot.c: - (raptor_dot_serializer_new_node): - Return NULL [sparse] - - * src/raptor_rdfxml.c: - (raptor_rdfxml_start_element_grammar): Call - raptor_rdfxml_process_property_attributes with NULL not 0 [sparse] - - * src/raptor_grddl.c: match_table: Use NULL for pointer in - sentinal. [sparse] - - * src/raptor_abbrev.c: - (raptor_new_abbrev_node): Return NULL [sparse] - - * src/raptor_rss.h: raptor_rss_field bitfields should be - unsigned [sparse] - - * src/raptor_sax2.c: #ifdef RAPTOR_XML_EXPAT - - * src/raptor_rdfxml.c: #ifdef RAPTOR_DEBUG_VERBOSE - - * src/raptor_nfc_test.c: casts - - * configure.ac, src/raptor_nfc.h: Use autoconf 2.5.x - AC_CHECK_TYPES for u8 and u16 - -2008-06-14 Dave Beckett - - * utils/rapper.c: fix comment - - * utils/rapper.c: Fix HELP_ARG_BOTH quoting as used in help message. - -2008-06-13 Dave Beckett - - * examples/raptor_abort.c, examples/rdfserialize.c: Casts for C++ - - * src/raptor_serialize_rss.c: Casts to remove warnings when - compiling with C++ - - * librdfa/curie.c, librdfa/rdfa.c, librdfa/rdfa_utils.c, - librdfa/triple.c: GIT commit - aefb63f96141d64e1a9f5845600feebac6aefa45 - librdfa casts to remove warnings when compiling with C++ - - * src/n3_common.h, src/ntriples_parse.c, src/raptor_expat.c, - src/raptor_grddl.c, src/raptor_guess.c, src/raptor_librdfa.c, - src/raptor_libxml.c, src/raptor_locator.c, src/raptor_nfc.c, - src/raptor_nfc.h, src/raptor_nfc_test.c, src/raptor_rfc2396.c, - src/raptor_serialize_dot.c, src/raptor_serialize_json.c, - src/raptor_serialize_ntriples.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_simple.c, src/raptor_utf8.c, - src/raptor_win32.c, src/raptor_www.c, src/raptor_www_curl.c, - src/raptor_www_libfetch.c, src/raptor_www_libxml.c, - src/raptor_www_test.c, src/raptor_xsd.c, src/turtle_common.c, - src/turtle_common.h: 2008 - - * utils/rapper.c: Tidy variables into parser, serializer, other - blocks. Output in error, info messages when filename is - NULL - - * src/raptor_sequence.c: - (raptor_sequence_set_at): Tidy tortured test. - - * src/raptor_sequence.c: - (raptor_sequence_set_at): Update size - when not over-writing an existing item. - -2008-06-12 Dave Beckett - - * src/raptor_serialize_rss.c: - (raptor_rss10_move_leftover_statements): Added to move any - remaining triples after initial serialize_statement scan, to items - or channel. - (raptor_rss10_serialize_end): Call - raptor_rss10_move_leftover_statements. - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_statement): - Use correct URI for rss:items with new macro - RAPTOR_RSS_RSS_items_URI replacing RAPTOR_RSS_RDF_items_URI - - * src/raptor_rss_common.c: - (raptor_rss_model_init): Init - RAPTOR_RSS_RSS_items_URI against rss: - (rss 1.0) namespace, not - rdf: - - * src/raptor_rss.h: RAPTOR_RSS_RDF_items_URI renamed to - RAPTOR_RSS_RSS_items_URI since it is in the rss: - (rss 1.0) - namespace - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_rdfxml_item_triples): - Use raptor_serialize_start_to_iostream() with no destroying - iostream instead of raptor_serialize_start(). - - * src/raptor.h: Added raptor_serialize_start_to_iostream prototype - - * src/raptor_serialize.c: - (raptor_serialize_start_to_iostream): - Added to have the new semantics of not owning and destroying the - passed-in iostream - - * tests/rdfa/Makefile.am: 0094.xhtml fails now - - * librdfa/rdfa.c: GIT commit - c2ca66384c2e201023e0ca7cb4d9e38450459c93 - (rdfa_parse_end): Ensure rdfa_pop_item() is called when in raptor - too - - * librdfa/rdfa.c: GIT commit - 346046a980aee3ed84f69f482a74f95e2414c267 - (start_element): Sort namespaces by prefix and hide overriden ones - -2008-06-10 Dave Beckett - - * librdfa/rdfa.c, librdfa/rdfa.h: Merge to GIT - fd8d211db142e14007ea6b3ac3eab090adf0a793 - - * librdfa/curie.c, librdfa/rdfa.c, librdfa/rdfa.h, - librdfa/rdfa_utils.c, librdfa/rdfa_utils.h, librdfa/triple.c: - Merge to GIT a119a5ea0f215ec6036e79de30bb1131d9ca5647 - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_statement): - correct docs - - * src/raptor_avltree.c: - (main): Do not call an internal debug - function raptor_avltree_print() in unit testing. - - * src/raptor_sequence.c: - (main): Remove test for preventing - raptor_sequence_set_at() at size+1; this is now allowed. - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_statement): - Ignore any triple with predicate rss:items as it can be infered - later for RSS 1.0 and ignore for Atom 1.0 - - * src/raptor_rss.h, src/raptor_rss_common.c: Added rss:items to - raptor_rss_model concepts with macro RAPTOR_RSS_RDF_items_URI - - * src/raptor_serialize_rss.c: - (raptor_rss10_build_items): Skip - triples that have no URI value. - - * src/raptor_sequence.c: - (raptor_sequence_set_at): Handle - extending the sequence beyond capacity+1 - - * src/raptor_serialize_rss.c: - (raptor_rss10_move_statements): - Handled anonymous triples twice and the handled flag did not help - - removed. Improved the logic to clearly 'continue' loop when a - triple is handled; added comments to say why. Changed signature - to return number of triples used, not presently used by callers. - - * src/raptor_serialize_rss.c: - (raptor_rss10_build_xml_names): Off - by 1 in declaring user namespaces. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_set_xml_writer): Free any namespaces - declared on the old stack, before freeing the stack. - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_terminate): - Free all allocated namespaces now it doesn't crash things. - - * src/raptor_serialize_rss.c: Ensure namespaces are freed before - the stack they are associated with, so that URI destructor handler - calls work. - (raptor_rss10_serialize_init, raptor_rss10_serialize_terminate): - Add raptor_free_namespace to user_namespaces sequence and call it - early. - (raptor_rss10_serialize_end): Do not free namespace stack here, as - it refers to namespaces that are still alive. - - * src/raptor_serialize_rss.c: - (raptor_rss10_build_items): Make a - fake triple subject URI for comparison with seq node ID. - -2008-06-09 Dave Beckett - - * docs/raptor-parsers.xml: Added RDFa parser - - * docs/raptor-serializers.xml: rss 1.0 and atom 1.0 serializer notes - -2008-06-05 Dave Beckett - - * utils/rapper.c: update the parser/serializer name length to 14 - for 'rss-tag-soup' & 'json-triples' which are at the previous max - 12 - - * configure.ac: enable atom serializer for everyone - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_atom_triples_map, - raptor_rss10_emit_atom_feed): Adjust - raptor_rss10_emit_atom_triples_map calling convention to add - element name and code tidy. - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_atom_triples_map): - Added, pulled out of raptor_rss10_emit_atom_feed. Skip maps that - do not apply to feed element. - (raptor_rss10_emit_atom_feed): Call above twice, to generate - at:feedmap and at:entrymap. - - * src/raptor_serialize_rss.c: - (raptor_rss10_move_statements, - raptor_rss10_store_statement): Set is_xml field when field is - content:encoded - (raptor_rss10_emit_item): Select rdf:parseType="Literal" for rss - output with XML valued literals but prefer CDATA block for - content:encoded. - -2008-06-04 Dave Beckett - - * src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c: - Make rdfxml and rdfxml-abbrev serializers respect feature - writeBaseURI. - - * src/raptor_feature.c: Adjust RAPTOR_FEATURE_WRITE_BASE_URI description - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_end): - Respect feature writeBaseURI - - * src/raptor_serialize_rss.c: raptor_rss10_serializer_context - gains xml_literal_dt URI field. - (raptor_rss10_serialize_init, raptor_rss10_serialize_terminate): - Free xml_literal_dt field. - (raptor_rss10_move_statements, raptor_rss10_store_statement): Set - is_xml field when an XML literal. - (raptor_rss10_emit_atom_feed, raptor_rss10_emit_rss_items): Emit - relative URIs. - (raptor_rss10_ensure_atom_feed_valid): Set atom:id if not present, - to item URI. - (raptor_rss10_emit_item): Emit relative URIs except for atom:id - For atom:content with a URI value, write and take the type from at:contentType - When writing a literal value and it is xml, write an atom type='xhtml'. - - * src/raptor_rss.h, src/raptor_rss_common.c: raptor_rss_field - gains is_xml field. Added at:contentType / - RAPTOR_RSS_FIELD_AT_CONTENT_TYPE field - - * src/raptor_uri.c: - (raptor_uri_to_relative_counted_uri_string): - Add support for a base URI with scheme and authority but no path, - so the result can be a relative URI starting with '/'. - (main): Add a test for the above - - * src/raptor_serialize_rss.c: - (raptor_rss10_build_xml_names): Tidy - is_atom/not code. - -2008-06-04 Lauri Aalto - - * src/raptor_serialize_rss.c: Fixed warnings. - (raptor_rss10_emit_rdfxml_item_triples, raptor_rss10_serialize_end): - Init variables to NULL for some optimizing compilers that warn - about possible use-before-init. - (raptor_rss10_emit_item): Cast int to enum. - -2008-06-04 Dave Beckett - - * src/raptor_serialize_rss.c: - (raptor_rss10_build_xml_names): Add - is_entry flag and use it to decide root name atom:feed or - atom:entry for atom serializer. - (raptor_rss10_serialize_end): When a feature atom_entry_uri is - set, look for a matching item and if found, emit just that as an - atom entry document. - -2008-06-03 Dave Beckett - - * src/raptor_rss_common.c: - (raptor_rss_set_date_field): cast - -2008-06-02 Dave Beckett - - * src/raptor.h, src/raptor_feature.c, src/raptor_internal.h, - src/raptor_parse.c, src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Added - RAPTOR_FEATURE_ATOM_ENTRY_URI to set the Atom Entry document URI - for the atom serializer - -2008-05-29 Dave Beckett - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_rdfxml_item_triples): Remove rdf-xml - atom:content for; it's not used. - Check for 0 triples and end if nothing to emit. - - * src/raptor_serialize_rss.c: - (raptor_rss10_ensure_atom_feed_valid): ! - - * src/raptor_serialize_rss.c: - (raptor_rss10_ensure_atom_feed_valid): Remove any atom:content or - atom:summary in feed - - * src/raptor_rss_common.c: raptor_atom_to_rss: rss:description - maps to atom:summary - - * tests/rdfa/Makefile.am: 0058 now passes and the others pass if - you re-order the xml namespaces - - * src/raptor_serialize_rss.c: ws - - * src/raptor_serialize_rss.c: - (raptor_rss10_ensure_atom_items_valid): - Added to check and correct atom id, title, updated and link OR - content. - (raptor_rss10_emit_item): Handle atom:link being written as - - no choice for now on - rel. - (raptor_rss10_serialize_end): Call - raptor_rss10_ensure_atom_items_valid - - * src/raptor_xml_writer.c: - (raptor_xml_writer_start_element_common): - Renamed from raptor_iostream_write_xml_element_start. Add - indenting of xml namespace declaration attributes when auto - indenting is on and there are more than 1. - (raptor_xml_writer_end_element_common): Renamed from - raptor_iostream_write_xml_element_end - (raptor_xml_writer_empty_element, raptor_xml_writer_start_element, - raptor_xml_writer_end_element): Update to use new names. - - * src/raptor_xml_writer.c: - (raptor_iostream_write_xml_element_start): - Remove all args that can be found in xml_writer. - (raptor_xml_writer_empty_element, - raptor_xml_writer_start_element): Update to use new - raptor_iostream_write_xml_element_start - - * src/raptor_rss.h, src/raptor_rss_common.c: Added - raptor_rss_format_iso_date and raptor_rss_set_date_field. - (raptor_rss_date_uplift): Use above - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_item): Generate - bnode for author if not present. - - * librdfa/rdfa.c, librdfa/subject.c: Merge with GIT - 8adf69fff952d069e4f6da472d9d8e0acf8fea28 that fixes test case - #0058 - - * src/raptor_serialize_rss.c: Get atom author blank node ID from - atom:author string value. - -2008-05-28 Dave Beckett - - * src/raptor_rss.h: Re-order atom fields so that required ones are - generated first when going in sequential field order. - - * src/raptor_rss_common.c, src/raptor_serialize_rss.c: Re-order - atom fields so that required ones are generated first when going - in sequential field order. - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_terminate): - Comment out raptor_free_namespace calls - crashes worse than leaks - for now. - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_atom_feed): Use - atom_namespace not default for 'link'. - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_rdfxml_item_triples): - use at:md not atom:md - - * docs/tmpl/section-xml-qname.sgml, docs/tmpl/section-xml.sgml: - added raptor_xml_writer_flush raptor_xml_writer_newline to - templates. - - * src/raptor_serialize_rss.c: - (raptor_rss10_serialize_init): Init - namespaces with error reporting. - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_rdfxml_item_triples): - Fix root_qname double free - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_rss_items): Set - xml-writer - (raptor_rss10_emit_rdfxml_item_triples): Added, pulled rdf/xml - block writing out of raptor_rss10_emit_item. Validate you can only - use rdf-xml with rss-1.0 serializer and atom-triples with atom - serializer. - (raptor_rss10_emit_item): Call raptor_rss10_emit_rdfxml_item_triples - - * src/raptor_rss_common.c: Turn dc:date into atom:updated - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_atom_feed): Add - - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_rss_items): - Added, pulled RSS 1.0-specific channel XML out of raptor_rss10_emit_item - (raptor_rss10_emit_item): Call raptor_rss10_emit_rss_items for RSS - 1.0 rdf:Seq and rss:items - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_atom_feed): - Added, pulled atom-specific entry fields out of raptor_rss10_emit_item - (raptor_rss10_emit_item): Call raptor_rss10_emit_item for atom and - channel: atom feed. - - * src/raptor_xml.c: - (raptor_xml_element_set_attributes): note - @attributes become owned - - * src/raptor_serialize_rss.c: RSS 1.0 / Atom serializers now - support user namespace declarations - raptor_rss10_serializer_context gains user_namespaces - (raptor_rss10_serialize_init): Init user_namespaces - (raptor_rss10_serialize_declare_namespace, - raptor_rss10_serialize_declare_namespace_from_namespace): Added. - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_item): Added - at:entrymap and at:map in the atom fee when - rssTriples=atom-triples. - -2008-05-27 Dave Beckett - - * src/raptor_rss.h: Update ATOMTRIPLES_NAMESPACE_URI - - * librdfa/curie.c: - (rdfa_resolve_curie): Protect strtok_r with - NULL string from using a NULL wcptr. - -2008-05-26 Dave Beckett - - * docs/raptor-sections.txt: Added raptor_qname_to_counted_name, - raptor_xml_writer_flush and raptor_xml_writer_newline - - * tests/rdfa/Makefile.am: Update failures to remove those now passing: - + 0092: expected XML result corrected - + 0094: expected XML result corrected - - * tests/rdfa/0011.out, tests/rdfa/0092.out, tests/rdfa/0094.out, - tests/rdfa/0100.out, tests/rdfa/0101.out, tests/rdfa/0102.out, - tests/rdfa/0103.out, tests/rdfa/Makefile.am: update xml results - - * librdfa/rdfa.c: - (start_element): Reverse raptor stack namespace - order to match that which librdfa uses. GIT - 46929dc0822aa55553d61df5127b2695b8c7acf8 - - * tests/rdfa/Makefile.am: Update failures to remove those now passing: - + 0042: no triples is correct; expected result corrected - + 0052: expected result corrected - + 0053: expected result corrected - + 0091: fixed - 0058 still wrong; sparql test case is inadequate - - * src/raptor.h: Added prototype for raptor_qname_to_counted_name - - * src/raptor_qname.c: - (raptor_qname_to_counted_name): Added. - - * librdfa/rdfa.c: - (start_element): Walk raptor namespace stack to - figure out xml literal ns declarations. - (raptor_rdfa_start_element, raptor_rdfa_end_element): Pass in - qname string. GIT c1313ac3de0dee9903e7b132cb4626708f3df257 - - * tests/rdfa/0053.out: Update test result for 0053 to correct - subject for first triple - - * tests/rdfa/0083.xhtml, tests/rdfa/0102.xhtml: Update inputs for - tests 0083 0102 - - * tests/rdfa/0052.out: Update test result for 0052 to correct - subject - - * tests/rdfa/0042.out: Update test result for 0042 to expect no - triples - - * tests/rdfa/0011.out, tests/rdfa/0092.out, tests/rdfa/0094.out: - Update test results for 0011 0092 0094 to use xmlns with double - quotes - - * librdfa/rdfa.c: - (start_element): set xml_lang variable when - inside raptor GIT aeac34493258ecf53374b6cbda5eec03f10b841e - - * librdfa/triple.c: - (rdfa_free_triple): Free triple. GIT - a64e1f00a53d6858a818156a9115d10b7ecec036 - -2008-05-25 Dave Beckett - - * librdfa/curie.c, librdfa/rdfa.c, librdfa/rdfa.h, - librdfa/rdfa_utils.c, librdfa/rdfa_utils.h, librdfa/triple.c: - Merge to GIT f82c0941956254847e8d51654759b2b45dc00088 - - * tests/rdfa/Makefile.am: Update expected test failures to add new - approved & failing tests: - 0042.xhtml 0088.xhtml 0091.xhtml 0092.xhtml 0093.xhtml 0094.xhtml - 0100.xhtml 0101.xhtml 0102.xhtml 0103.xhtml - Add triple counts to failure message - - * tests/rdfa/0017.out, tests/rdfa/0017.xhtml, tests/rdfa/0039.out, - tests/rdfa/0039.xhtml, tests/rdfa/0040.out, tests/rdfa/0040.xhtml, - tests/rdfa/0042.out, tests/rdfa/0042.xhtml, tests/rdfa/0085.out, - tests/rdfa/0085.xhtml, tests/rdfa/0088.out, tests/rdfa/0088.xhtml, - tests/rdfa/0091.out, tests/rdfa/0091.xhtml, tests/rdfa/0092.out, - tests/rdfa/0092.xhtml, tests/rdfa/0093.out, tests/rdfa/0093.xhtml, - tests/rdfa/0094.out, tests/rdfa/0094.xhtml, tests/rdfa/0099.out, - tests/rdfa/0099.xhtml, tests/rdfa/0100.out, tests/rdfa/0100.xhtml, - tests/rdfa/0101.out, tests/rdfa/0101.xhtml, tests/rdfa/0102.out, - tests/rdfa/0102.xhtml, tests/rdfa/0103.out, tests/rdfa/0103.xhtml, - tests/rdfa/0104.out, tests/rdfa/0104.xhtml, tests/rdfa/0107.out, - tests/rdfa/0107.xhtml, tests/rdfa/0108.out, tests/rdfa/0108.xhtml, - tests/rdfa/0109.out, tests/rdfa/0109.xhtml, - tests/rdfa/Makefile.am: Added RDFa approved tests - 0017 0039 0040 0042 0085 0088 0091 0092 0093 0094 0099 0100 0101 0102 - 0103 0104 0107 0108 0109 - where approved tests are given by the SPARQL: - BASE - PREFIX : - SELECT ?test - FROM - WHERE { ?test :reviewStatus :approved } - and - http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/rdfa-xhtml1-test-manifest.rdf - Last-Modified: Mon, 19 May 2008 10:47:38 GMT - -2008-05-24 Dave Beckett - - * docs/tmpl/section-feature.sgml, docs/tmpl/section-triples.sgml: - update docs - - * librdfa/rdfa.c: - (rdfa_free_context): Revert change in GIT - d0f2401a9b914f70fff262be602fe92cf5a2e93e. Memory leak remains - - * src/raptor_librdfa.c: - (raptor_librdfa_parse_start): Free any old - context. - (raptor_librdfa_parse_terminate): Free context. - - * librdfa/rdfa.c: Declare rdfa_init_context as static since it is - only used in rdfa.c. GIT 71dd65d38f70120a205abf73e0cf8fd0bf6f0f27 - - * librdfa/rdfa.c: - (rdfa_free_context): Free context_stack and - remove TODO. GIT d0f2401a9b914f70fff262be602fe92cf5a2e93e - - * librdfa/triple.c: - (rdfa_free_triple): free triple. GIT - 402f883bfc2d7157eb6f13018ad141450ed47944 - - * src/raptor_librdfa.c: include rdfa_utils.h - - * src/raptor_librdfa.c: - (raptor_librdfa_generate_statement): free - incoming triple - -2008-05-22 Lauri Aalto - - * src/n3_lexer.l, src/turtle_lexer.l: Fixed n3/turtle lexer error - handling. Do not report OOM for failed function calls that can - fail for other reasons besides OOM, e.g. qname expansion fails due - to undeclared prefix. - -2008-05-21 Dave Beckett - - * src/raptor_rdfxml.c, src/raptor_serialize_rdfxml.c, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_rss.c: Use - raptor_xml_writer_flush for xml writer - - * src/raptor.h: Added prototypes for raptor_xml_writer_newline - and raptor_xml_writer_flush - - * src/raptor_xml_writer.c: raptor_xml_writer gains pending_newline - flag - (raptor_xml_writer_indent): Handle pending_newline feature as well - as indenting. - (raptor_xml_writer_empty_element, raptor_xml_writer_start_element, - raptor_xml_writer_end_element): Call indent if pending_newline. - (raptor_xml_writer_newline): Added. - (raptor_xml_writer_flush): Added to tidy up at the end of an XML - writer. - - * src/raptor_serialize_rss.c: - (raptor_rss10_move_statements, - raptor_rss10_store_statement, ): Set is_mapped when going from rss - to atom fields. - (raptor_rss10_remove_mapped_item_fields, - raptor_rss10_remove_mapped_fields): Added to delete field values - that were mapped when there is an non-mapped value. - (raptor_rss10_serialize_end): Call - raptor_rss10_remove_mapped_fields for atom. - - * src/raptor_rss.c: - (raptor_rss_uplift_fields): Set is_mapped when - uplifting - - * src/raptor_rss.h: raptor_rss_field gains is_mapped field - -2008-05-19 Dave Beckett - - * src/raptor_internal.h, src/raptor_rss.h, - src/raptor_rss_common.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c: Added grouping of triples by - key (uri/fakeuri(bnode)) to item using an avltree of - raptor_rss_group_map - (raptor_free_group_map, raptor_rss_group_map_compare, - raptor_rss10_get_group_item, raptor_rss10_set_item_group): Added. - (raptor_rss10_serialize_init, raptor_rss10_serialize_terminate): - init / free group_map avl tree - (raptor_rss10_move_statements): If a statement object is - anonymous, move it to the item triples, do not search for a field. - Do not move any other fields with anonymous objects. - (raptor_rss10_move_anonymous_statements): Added to move blank node - closure triples to their item. - (raptor_rss10_store_statement): Use avl tree to find an item for a - triple - (raptor_rss10_serialize_statement): Do not discard blank nodes on - input. Set blank node/URI to item mapping. - (raptor_rss10_emit_item): Emit different triple block elements, - attributes only for atom;content - (raptor_rss10_serialize_end): Call - raptor_rss10_move_anonymous_statements - - * src/raptor.h, src/raptor_feature.c, src/raptor_internal.h, - src/raptor_serialize_rdfxmla.c, src/raptor_turtle_writer.c: 2008 - - * src/raptor_feature.c: RAPTOR_FEATURE_RSS_TRIPLES label shorter - - * src/raptor_serialize_rss.c: raptor_rss10_serializer_context - gains rss_triples_mode - (raptor_rss10_serialize_start): Added to set rss_triples_mode from - feature_rss_triples. 1 is "rdf-xml" value, 2 is "atom-triples" - (raptor_rss10_emit_item): Emit triples when enabled by feature - Remove node elements, typed nodes and emit a single node for rss - triples mode 2 - (raptor_rss10_serializer_register_factory): Init - raptor_rss10_serialize_start - - * src/raptor_serialize_rdfxmla.c: raptor_rdfxmla_context gains - fields single_node, write_node_elements, write_typed_nodes - (raptor_rdfxmla_emit_resource_uri): Added. - (raptor_rdfxmla_emit_resource): Use - raptor_rdfxmla_emit_resource_uri - (raptor_rdfxmla_emit_subject_properties): Use write_typed_nodes - flag to write rdf:type property element. - (raptor_rdfxmla_emit_subject): Handle write_typed_nodes to skip - typed node element. Handle write_node_elements flag. - (raptor_rdfxmla_emit): Do not emit any top-level blank nodes if - single_node is set. - (raptor_rdfxmla_serialize_init): Init defaults for - write_node_elements and write_typed_nodes: true/1. - (raptor_rdfxmla_serialize_set_write_rdf_RDF, - raptor_rdfxmla_serialize_set_xml_writer): autodocs - (raptor_rdfxmla_serialize_set_single_node, - raptor_rdfxmla_serialize_set_write_node_elements, - raptor_rdfxmla_serialize_set_write_typed_nodes): Added to set - internal flags. - (raptor_rdfxmla_serialize_end): Free single node URI if present. - - * src/raptor_internal.h: raptor_serializer_s gains feature_rss_triples - Added prototypes for raptor_rdfxmla_serialize_set_single_node, - raptor_rdfxmla_serialize_set_write_node_elements and - raptor_rdfxmla_serialize_set_write_typed_nodes - - * src/raptor.h, src/raptor_feature.c, src/raptor_parse.c, - src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_xml_writer.c: Added feature - rss_triples (RAPTOR_FEATURE_RSS_TRIPLES) for rss-1.0/atom serializers - -2008-05-18 Lauri Aalto - - * tests/rdfa: props - -2008-05-17 Dave Beckett - - * librdfa/rdfa.c, librdfa/rdfa_utils.h, librdfa/subject.c: Update - to GIT 402f883bfc2d7157eb6f13018ad141450ed47944 - -2008-05-15 Dave Beckett - - * librdfa/rdfa.h: Remove uri_mappings field if LIBRDFA_IN_RAPTOR is defined - - * docs/tmpl/section-sequence.sgml, docs/tmpl/section-triples.sgml, - docs/tmpl/section-xml.sgml: gtk docs - - * src/raptor_xml_writer.c: autodocs - - * src/raptor_avltree.c: de-autodoc internal functions - - * docs/raptor-sections.txt: Added raptor_sequence_delete_at and - raptor_xml_writer_get_depth - - * librdfa/rdfa.c: Do not call rdfa_update_uri_mappings with - LIBRDFA_IN_RAPTOR - - * tests/rdfa/0060.out, tests/rdfa/Makefile.am: Fix 0060.out to - make 4 tests expected to fail - - * tests/rdfa/Makefile.am: annotate expected test failures - - * tests/rdfa/Makefile.am: Expect failures: 0011.xhtml 0052.xhtml - 0053.xhtml 0058.xhtml 0060.xhtml - - * configure.ac, tests/Makefile.am, tests/rdfa, - tests/rdfa/0001.out, tests/rdfa/0001.xhtml, tests/rdfa/0006.out, - tests/rdfa/0006.xhtml, tests/rdfa/0007.out, tests/rdfa/0007.xhtml, - tests/rdfa/0008.out, tests/rdfa/0008.xhtml, tests/rdfa/0009.out, - tests/rdfa/0009.xhtml, tests/rdfa/0010.out, tests/rdfa/0010.xhtml, - tests/rdfa/0011.out, tests/rdfa/0011.xhtml, tests/rdfa/0012.out, - tests/rdfa/0012.xhtml, tests/rdfa/0013.out, tests/rdfa/0013.xhtml, - tests/rdfa/0014.out, tests/rdfa/0014.xhtml, tests/rdfa/0015.out, - tests/rdfa/0015.xhtml, tests/rdfa/0018.out, tests/rdfa/0018.xhtml, - tests/rdfa/0019.out, tests/rdfa/0019.xhtml, tests/rdfa/0020.out, - tests/rdfa/0020.xhtml, tests/rdfa/0021.out, tests/rdfa/0021.xhtml, - tests/rdfa/0023.out, tests/rdfa/0023.xhtml, tests/rdfa/0025.out, - tests/rdfa/0025.xhtml, tests/rdfa/0026.out, tests/rdfa/0026.xhtml, - tests/rdfa/0027.out, tests/rdfa/0027.xhtml, tests/rdfa/0029.out, - tests/rdfa/0029.xhtml, tests/rdfa/0030.out, tests/rdfa/0030.xhtml, - tests/rdfa/0031.out, tests/rdfa/0031.xhtml, tests/rdfa/0032.out, - tests/rdfa/0032.xhtml, tests/rdfa/0033.out, tests/rdfa/0033.xhtml, - tests/rdfa/0034.out, tests/rdfa/0034.xhtml, tests/rdfa/0035.out, - tests/rdfa/0035.xhtml, tests/rdfa/0036.out, tests/rdfa/0036.xhtml, - tests/rdfa/0037.out, tests/rdfa/0037.xhtml, tests/rdfa/0038.out, - tests/rdfa/0038.xhtml, tests/rdfa/0041.out, tests/rdfa/0041.xhtml, - tests/rdfa/0046.out, tests/rdfa/0046.xhtml, tests/rdfa/0047.out, - tests/rdfa/0047.xhtml, tests/rdfa/0048.out, tests/rdfa/0048.xhtml, - tests/rdfa/0049.out, tests/rdfa/0049.xhtml, tests/rdfa/0050.out, - tests/rdfa/0050.xhtml, tests/rdfa/0051.out, tests/rdfa/0051.xhtml, - tests/rdfa/0052.out, tests/rdfa/0052.xhtml, tests/rdfa/0053.out, - tests/rdfa/0053.xhtml, tests/rdfa/0054.out, tests/rdfa/0054.xhtml, - tests/rdfa/0055.out, tests/rdfa/0055.xhtml, tests/rdfa/0056.out, - tests/rdfa/0056.xhtml, tests/rdfa/0057.out, tests/rdfa/0057.xhtml, - tests/rdfa/0058.out, tests/rdfa/0058.xhtml, tests/rdfa/0059.out, - tests/rdfa/0059.xhtml, tests/rdfa/0060.out, tests/rdfa/0060.xhtml, - tests/rdfa/0061.out, tests/rdfa/0061.xhtml, tests/rdfa/0062.out, - tests/rdfa/0062.xhtml, tests/rdfa/0063.out, tests/rdfa/0063.xhtml, - tests/rdfa/0064.out, tests/rdfa/0064.xhtml, tests/rdfa/0065.out, - tests/rdfa/0065.xhtml, tests/rdfa/0066.out, tests/rdfa/0066.xhtml, - tests/rdfa/0067.out, tests/rdfa/0067.xhtml, tests/rdfa/0068.out, - tests/rdfa/0068.xhtml, tests/rdfa/0069.out, tests/rdfa/0069.xhtml, - tests/rdfa/0070.out, tests/rdfa/0070.xhtml, tests/rdfa/0071.out, - tests/rdfa/0071.xhtml, tests/rdfa/0072.out, tests/rdfa/0072.xhtml, - tests/rdfa/0073.out, tests/rdfa/0073.xhtml, tests/rdfa/0074.out, - tests/rdfa/0074.xhtml, tests/rdfa/0075.out, tests/rdfa/0075.xhtml, - tests/rdfa/0076.out, tests/rdfa/0076.xhtml, tests/rdfa/0077.out, - tests/rdfa/0077.xhtml, tests/rdfa/0078.out, tests/rdfa/0078.xhtml, - tests/rdfa/0079.out, tests/rdfa/0079.xhtml, tests/rdfa/0080.out, - tests/rdfa/0080.xhtml, tests/rdfa/0081.out, tests/rdfa/0081.xhtml, - tests/rdfa/0082.out, tests/rdfa/0082.xhtml, tests/rdfa/0083.out, - tests/rdfa/0083.xhtml, tests/rdfa/0084.out, tests/rdfa/0084.xhtml, - tests/rdfa/0086.out, tests/rdfa/0086.xhtml, tests/rdfa/0087.out, - tests/rdfa/0087.xhtml, tests/rdfa/0089.out, tests/rdfa/0089.xhtml, - tests/rdfa/0090.out, tests/rdfa/0090.xhtml, tests/rdfa/1001.out, - tests/rdfa/1001.xhtml, tests/rdfa/Makefile.am: Added RDFA test - cases from - http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/ - - * librdfa/curie.c: - (rdfa_resolve_curie): Handle undefined - namespaces prefix - - * src/raptor_librdfa.c: - (raptor_librdfa_generate_statement): - Generate correct bnodes - - * Makefile.am, configure.ac, librdfa, librdfa/Makefile.am, - librdfa/curie.c, librdfa/language.c, librdfa/rdfa.c, - librdfa/rdfa.h, librdfa/rdfa_utils.c, librdfa/rdfa_utils.h, - librdfa/subject.c, librdfa/triple.c, src/Makefile.am, - src/raptor_internal.h, src/raptor_librdfa.c, src/raptor_parse.c: - Added RDFA support via a copy of librdfa linked inside Raptor - - librdfa/ directory contains a copy of (part of) librdfa - http://rdfa.digitalbazaar.com/librdfa/ by Manu Sporny - - "librdfa is licensed under the GNU Lesser General Public License v2.1 - (or newer), GNU General Public License v2.0 (or newer), or the Apache - 2.0 License (or newer). Each license is an alternative, and if you - select one license, that one alone applies." - - (same license as raptor) - - The sources were taken from GIT at - http://rdfa.digitalbazaar.com/librdfa.git - and patched to work inside raptor. - - src/raptor_librdfa.c: New raptor parser 'rdfa' - - * src/raptor_grddl.c: - (raptor_grddl_parse_recognise_syntax): Lower - scores for xhtml since the mime type gets added in too - - * src/raptor_grddl.c: - (raptor_grddl_parse_recognise_syntax): Do - not guess using "xhtml" suffix twice - -2008-05-15 Lauri Aalto - - * src/raptor_serialize_turtle.c: - (raptor_turtle_emit_subject): - Resiliency fix. Check raptor_new_avltree_iterator() return value. - - * src/raptor_serialize_turtle.c: - (raptor_turtle_emit_subject_properties): Free avltree iterator - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_emit_subject_properties): Resiliency fix: do not - leak iterator on OOM. - -2008-05-14 Dave Beckett - - * src/raptor_abbrev.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_turtle.c: Switch raptor_avltree_cursor_* - functions to use raptor_avltree_iterator - - * tests/Makefile.am: check-rdfxmla, check-turtle-serialize: check - status from rapper & rdfdiff - - * src/raptor_avltree.c: - (raptor_avltree_cursor_first, - raptor_avltree_cursor_last): Return failure/finished if tree was - empty. - - * src/raptor_avltree.c: - (raptor_avltree_iterator_get): finished if - no current node - - * tests/turtle/Makefile.am: check-turtle-serialize: check status - from rapper & rdfdiff - - * src/raptor_avltree.c: - (raptor_new_avltree): Zap cursor_iterator - - * src/raptor_internal.h: Added raptor_avltree_iterator typedef. - Added RAPTOR_AVLTREE_FLAG_REPLACE_DUPLICATES flag Added prototypes - for raptor_new_avltree_iterator, raptor_free_avltree_iterator, - raptor_avltree_iterator_end, raptor_avltree_iterator_next and - raptor_avltree_iterator_get. - - * src/raptor_avltree.c: Autodocs for (still internal) AVL Tree - functions Some whitespace/indenting fixes. - (raptor_avltree_add, raptor_avltree_sprout): Will either replace or - ignore updates to a duplicate - equivalent - item depending on the - new raptor_new_avltree constructor flags arg value - RAPTOR_AVLTREE_FLAG_REPLACE_DUPLICATES. - (raptor_avltree_node_leftmost, raptor_avltree_node_rightmost): - Accept a range argument to use for searching in a range. - (raptor_avltree_node_search_right, - raptor_avltree_node_search_left): Added for searching for a node - in a direction in a range. - (raptor_avltree_node_prev, raptor_avltree_node_next): Handle - moving with ranges. - (raptor_new_avltree_iterator): Added iterator constructor with - direction arg to indicate prev/next direction of iteration, - optionally in a range. - (raptor_free_avltree_iterator): Added iterator destructor. - (raptor_avltree_iterator_end): Added iterator done check method. - (raptor_avltree_iterator_next): Added iterator move method. - (raptor_avltree_iterator_get): Added iterator get current method. - (raptor_avltree_cursor_first, raptor_avltree_cursor_last, - raptor_avltree_cursor_prev, raptor_avltree_cursor_next, - raptor_avltree_cursor_get): Rewritten in terms of a - tree->cursor_iterator iterator. - (raptor_avltree_print): Rewritten using an iterator. - (raptor_avltree_check_internal, raptor_avltree_check): Use an - unsigned int count. - (main): Use iterator for going forward check. - -2008-05-10 Dave Beckett - - * src/raptor_abbrev.c: - (raptor_abbrev_subject_add_property): Do - not lose reference count for inner nodes. - - * src/raptor_serialize_turtle.c: - (raptor_turtl_serialize_statement): - use raptor_abbrev_subject_add_property to ignore duplicate triples - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_statement): use - raptor_abbrev_subject_add_property to ignore duplicate triples - - * src/raptor_abbrev.c: - (raptor_abbrev_node_cmp): Fix comparison to - properly return 0 when literals are truly equal - (raptor_abbrev_subject_add_property): Catch duplicates and do not - add them. - - * src/raptor_serialize_turtle.c: - (raptor_turtle_serialize_statement): - Revert bogus dup triple test. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_statement): - Revert bogus dup triple test. - - * tests/turtle/Makefile.am: check-turtle-serialize: do not break - on first error; still return failure - - * src/raptor_turtle_writer.c: - (raptor_new_turtle_writer): Make - first @base be absolute since there is no base URI at that point. - - * src/raptor_serialize_turtle.c: - (raptor_turtle_serialize_statement): Check whether no new subject, - predicate or object nodes were created, in which case this is a - duplicate statement that can be ignored. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_statement): Check whether no new - subject, predicate or object nodes were created, in which case - this is a duplicate statement that can be ignored. - - * src/raptor_abbrev.c: - (raptor_abbrev_node_lookup, - raptor_abbrev_subject_lookup): Added a created_p output parameter - which is set to non-0 if a node was created. - - * src/raptor_internal.h: raptor_abbrev_node_lookup and - raptor_abbrev_subject_lookup gain a created_p output parameter. - -2008-05-01 Dave Beckett - - * src/raptor_serialize_rss.c: - (raptor_rss10_emit_item): Fix attrs - re-declared warning - - * src/raptor_serialize_rss.c: Removed indent arg from - raptor_rss10_emit_item and comment out indent lines - (raptor_rss10_emit_item): Loose indent - - * src/raptor_serialize_rss.c: With the atom serializer, write any - remaining triples for an item as an ... block using the rdf/xml-abbrev - serializer. Use auto-indenting XML writer, do not manage indent - here anymore. - (raptor_rss10_emit_item): Write atom:content block for atom - serializer and when triples present. - (raptor_rss10_serialize_end) Init auto indent and auto empty xml - elements. - - * src/raptor_serialize_rdfxmla.c: Added new flags to allow an - external xml_writer to be given, not write rdf:RDF, initialise the - starting xml writer depth and allow an external namespace stack. - (raptor_rdfxmla_emit, - raptor_rdfxmla_serialize_declare_namespace_from_namespace): Set - starting xml writer depth. - (raptor_rdfxmla_serialize_init_nstack): Added to separate out - stack initialising from raptor_rdfxmla_serialize_init. - (raptor_rdfxmla_serialize_init): Call - raptor_rdfxmla_serialize_init_nstack() and set rdf:RDF writing to - true by default. - (raptor_rdfxmla_serialize_terminate): Conditionalise freeing the - xml writer and namespaces stack. - (raptor_rdfxmla_serialize_set_write_rdf_RDF): Added - (raptor_rdfxmla_serialize_set_xml_writer): Added - (raptor_rdfxmla_serialize_start): Do not init local xml_writer if - one was passed in. - (raptor_rdfxmla_ensure_writen_header): Do not write rdf:RDF if not - wanted. - - * src/raptor_rss_common.c: - (raptor_new_rss_item): Added, - refactoring raptor_rss_model_add_item and - raptor_rss_model_add_common content and ensuring triples field is - always initialised. - - * src/raptor_rss.h: Added raptor_new_rss_item prototype. - - * src/raptor_qname.c: - (raptor_new_qname_from_namespace_local_name): Accept NULL - namespace to make a namespace-less qname. - - * src/raptor_xml_writer.c: - (raptor_xml_writer_get_depth): Added. - - * src/raptor_sequence.c: - (raptor_sequence_delete_at): Added - - * src/raptor.h: Added raptor_sequence_delete_at and - raptor_xml_writer_get_depth - - * src/raptor_serialize.c: - (raptor_serialize_end): use - free_iostream_on_end field to free iostream only if it was - internal, not passed in - - * src/raptor_internal.h: iostream gets free_iostream_on_end field - Added raptor_rdfxmla_serialize_set_write_rdf_RDF and - raptor_rdfxmla_serialize_set_xml_writer prototypes - -2008-04-30 Dave Robillard - - * src/raptor_turtle_writer.c: - (raptor_new_turtle_writer, - raptor_turtle_writer_base): Set base URI even if not writing @base - directive, so relative URI writing works correctly when @base is - disabled. - -2008-04-26 Dave Beckett - - * src/raptor_uri.c: - (assert_uri_to_relative): Free base_uri if not NULL - -2008-04-25 Dave Beckett - - * src/raptor_avltree.c, src/raptor_general.c, - src/raptor_identifier.c, src/raptor_internal.h, - src/raptor_iostream.c, src/raptor_json_writer.c, - src/raptor_namespace.c, src/raptor_parse.c, src/raptor_qname.c, - src/raptor_sax2.c, src/raptor_sequence.c, src/raptor_serialize.c, - src/raptor_serialize_turtle.c, src/raptor_set.c, - src/raptor_statement.c, src/raptor_stringbuffer.c, - src/raptor_uri.c, src/raptor_xml.c, src/raptor_xml_writer.c, - src/raptor_abbrev.c: Use RAPTOR_ASSERT_OBJECT_POINTER_RETURN on - destructor object arg. Code comments 2008 - -2008-04-16 Lauri Aalto - - * src/raptor_serialize_turtle.c: - (raptor_turtle_serialize_end): - Reset context->written_header flag to enable serializer object - reuse. - -2008-04-14 Dave Beckett - - * src/turtle_lexer.l: Rename fatal_error_longjmp_env to - turtle_lexer_fatal_error_longjmp_env - - * src/n3_lexer.l: Use setjmp/longjmp to return fatal error - messages to caller without abort() - (n3_lexer_fatal_error): Remove abort() call. - main code: setjmp before starting parse. Move code to inside %{ - %} block. - - * src/n3_common.h, src/n3_parser.y, src/turtle_common.h, - src/turtle_parser.y: Count errors in syntax parsing and do not - report errors after the first one. A workaround instead of adding - full bison error parser recovery. - - * configure.ac, src/turtle_lexer.l: Use setjmp/longjmp to return - fatal error messages to caller without abort() - (turtle_lexer_fatal_error): Remove abort() call. - main code: setjmp before starting parse. Move code to inside %{ - %} block. - -2008-04-14 Lauri Aalto - - * src/raptor_rdfxml.c: - (raptor_rdfxml_end_element_grammar): - Resiliency fixes: check raptor_parser_internal_generate_id() - return value - - * src/raptor_libxml.c: - (raptor_libxml_free): Resiliency fix: make - sure myDoc is always freed. - - * src/n3_lexer.l, src/turtle_lexer.l: Reverted from r13787 abort() - calls back to *_lexer_fatal_error() - it is assumed that these - functions never return. - - * src/ntriples_parse.c: - (raptor_ntriples_generate_statement, - raptor_ntriples_string_as_utf8_string): Resiliency fixes: check - for alloc failures. - -2008-04-13 Dave Beckett - - * src/raptor_rss_common.c: 2008 - - * src/raptor_rss.h, - src/raptor_rss_common.c: - (raptor_rss_model_add_item, - raptor_free_rss_item): Add triples, free it. - (raptor_clear_rss_item): Deleted, not used. - - * src/raptor_serialize_rss.c: comments - (raptor_rss10_serialize_statement): pass on handled flag from - raptor_rss10_store_statement() - - * src/raptor_guess.c: - (raptor_guess_parse_chunk):: Check for - raptor_parser_copy_user_state failure and pass on. - - * src/raptor_grddl.c: - (raptor_grddl_ensure_internal_parser): Check - for raptor_parser_copy_user_state failure and pass on. Slightly - adjust nearby code to remove else. - - * src/raptor_internal.h, - src/raptor_parse.c: - (raptor_parser_copy_user_state): Add a return - value on failure of allocs. - - * src/raptor_parse.c: - (raptor_parser_copy_user_state): Copy - Cache-Control: header and User-Agent: header values to destination - parser - - * src/raptor_internal.h: Note about code changes needed when - adding user data to raptor_parser - - * src/raptor_internal.h: Removed prototypes for removed functions: - raptor_parser_error_message_handler, - raptor_parser_fatal_error_message_handler, - raptor_parser_warning_message_handler, - raptor_parser_fatal_error_varargs, raptor_parser_warning_varargs - - * src/n3_lexer.l, src/parsedate.y, src/raptor_parse.c, - src/raptor_rdfxml.c, src/turtle_lexer.l: Remove calls to abort() - in mainline code (some aborts still exist in test code for - consistency failures in avltree but they are only compiled in with - RAPTOR_DEBUG) - - (raptor_parser_fatal_error): Set parsing failed flag on fatal error. - (raptor_parser_fatal_error_message_handler, - raptor_parser_error_message_handler, - raptor_parser_warning_message_handler): Removed, no longer used. - - (raptor_rdfxml_start_element_grammar): - case RAPTOR_STATE_PARSETYPE_DESCRIPTION... - RAPTOR_STATE_PARSETYPE_COLLECTION - Remove use of abort() for an ancient check for an object URI that can - be worked around. - case RAPTOR_STATE_MEMBER_PROPERTYELT: - With content type RAPTOR_RDFXML_ELEMENT_CONTENT_TYPE_XML_LITERAL, - remove use of abort() for unknown content types related to - daml/collections - it will fall through to a fatal error anyway. - With default content type, remove abort() and tidy the error - message. - Parsing will still fail in this case. - - (n3_lexer_fatal_error, turtle_lexer_fatal_error): Do not call abort. - - (ToHour): Do not call abort, print message when debugging and return - invalid value. - -2008-04-12 Dave Beckett - - * src/raptor_rss.c: - (raptor_rss_start_namespaces): Added, pulling - namespace scanning out of raptor_rss_parse_chunk. - (raptor_rss_parse_chunk): Call above. - - * src/raptor_rss.c: Add a nspaces_seen[] array in raptor_rss and - track namespaces declared either in input (xmlns seen via SAX) or - output, when writing a field in RSS1.0 schema. Save them all up - and generate before emitting. - (raptor_rss_parse_start): Reset nspaces_seen array to none seen. - (raptor_rss_sax2_new_namespace_handler): Mark namespace seen, do - not pass on to rdf namespace handler just yet. - (raptor_rss_parse_chunk): On finish, scan all fields of all items - for namespaces and mark those that need declaring. Then call - raptor_parser_start_namespace() to start them for the client. - -2008-04-11 Dave Beckett - - * src/raptor_rss.c: - (raptor_rss_sax2_new_namespace_handler): Added. - (raptor_rss_parse_init): Register - raptor_rss_sax2_new_namespace_handler to pass on SAX2 namespace - events to the rdf parser. - Fixes Issue #0000255 http://bugs.librdf.org/mantis/view.php?id=255 - - * docs/tmpl/section-triples.sgml: sgml docs - - * src/raptor_serialize_rss.c: 2008 - -2008-04-11 Lauri Aalto - - * src/raptor_general.c: - (raptor_init, raptor_finish): Changed - raptor_initialised flag to a reference count. - -2008-04-05 Dave Beckett - - * docs/raptor-serializers.xml: Add JSON serializers section - -2008-04-03 Lauri Aalto - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_end): - Fixed crash when reusing serializer objects. Reset - context->written_header flag so that when - raptor_rdfxmla_ensure_writen_header() returns success, - context->rdf_RDF_element is always non-null. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_statement): - Fixed rdfxml-xmp segfault. Make sure avltree cursor points to - something before trying to indirect it. - -2008-04-01 Dave Beckett - - * src/raptor-config.1: remove undefined macro .l other fixes - - * NEWS.html, RELEASE.html configure.ac, src/win32_raptor_config.h: - Bumped version to 1.4.18 - -2008-03-29 Dave Beckett - - * Snapshotted raptor_1_4_17 for 1.4.17 release (SVN 13771) - - * utils/rapper.c: adjust feature pops - - * utils/rapper.c: free features - - * utils/rapper.c: Allow multiple features to be set with - -f/--feature by storing them away in two raptor_sequence* lists, - one for parser and one for serializer. - - Then such things like - rapper -q -o json -f jsonCallback=foo -f 'jsonExtraData="foo":"bar"' -f relativeURIs ... - can be called. - - * src/raptor_serialize_json.c: - (raptor_json_serialize_init): Alter - default to serialize with absolute URIs for JSON. - (raptor_json_serialize_start): Use feature_relative_uris to decide - what base uri to send to JSON writer. - -2008-03-27 Dave Beckett - - * src/raptor_serialize_json.c: - (raptor_json_serialize_start): Make - callback start with '(' again. - -2008-03-26 Dave Beckett - - * src/raptor_sax2.c: - (raptor_sax2_unparsed_entity_decl): Do not - return error when there is no handler. - (raptor_sax2_external_entity_ref): Error out when there is no - handler as the XML cannot be parsed with unknown external entity - references. - - * src/raptor_rdfxml.c, src/raptor_sax2.c: - (raptor_sax2_unparsed_entity_decl, - raptor_sax2_external_entity_ref): Moved unparsed entity and - external entity reference error messages to sax2 class. - (raptor_rdfxml_unparsed_entity_decl_handler, - raptor_rdfxml_external_entity_ref_handler): Deleted. - (raptor_rdfxml_parse_init): Remove setting handlers - - * src/raptor_rdfxml.c: - (raptor_rdfxml_unparsed_entity_decl_handler, - raptor_rdfxml_external_entity_ref_handler): Turn - fprintf(stderr...) calls into real raptor_parser_error calls - - * src/raptor_sax2.c: - (raptor_sax2_external_entity_ref): Note - failure is happening with 'return 0' - - * src/raptor.h: raptor_sax2_external_entity_ref_handler autodocs - -2008-03-25 Dave Beckett - - * src/raptor.h, src/raptor_sax2.c, src/raptor_iostream.c: autodocs - - * docs/libraptor.3: 1.4.17 and lots of formatting tidying - - * src/raptor.h, src/raptor_feature.c, src/raptor_internal.h, - src/raptor_parse.c, src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_serialize_json.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: Added RAPTOR_FEATURE_JSON_EXTRA_DATA name - jsonExtraData that allows adding data to the end of the top level - JSON object on output - -2008-03-23 Dave Beckett - - * docs/tmpl/section-feature.sgml: add json callback feature - -2008-03-16 Dave Beckett - - * configure.ac: fix check for needing to link with -lm - - * src/raptor_sax2.c: - (raptor_sax2_parse_chunk): Fixes to calling - raptor_log_error_to_handlers when built with expat. - - * src/raptor_parse.c: - (main): Only define program if RAPTOR_DEBUG - - * src/raptor_avltree.c: - (check_string, main): Casts for C++ - - * src/raptor_turtle_writer.c: - (main): Cast for C++ - - * src/raptor_uri.c: - (main): Remove C99 initializer for C++ - - * src/raptor_abbrev.c: - (raptor_abbrev_node_lookup): Cast for C++ - - * src/raptor_set.c: - (raptor_id_set_add): Casts for C++ - - * src/raptor_turtle_writer.c: - (main): use raptor_iostream_tell - instead of deprecated raptor_iostream_get_bytes_written_count - - * tests/turtle/test-28-out.ttl: Update expected exact turtle - serializer result due to AVLTree change in re-ordering the triples - - * src/raptor.h, src/raptor_feature.c, src/raptor_internal.h, - src/raptor_parse.c, src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_serialize_json.c, src/raptor_turtle_writer.c, - src/raptor_xml_writer.c: Added RAPTOR_FEATURE_JSON_CALLBACK - serializer feature for the JSON serializer to emit a callback - block like callback(...); - struct raptor_serializer_s gains feature_json_callback. - (raptor_free_serializer): Free all string features. - (raptor_serializer_set_feature_string, - raptor_serializer_get_feature_string): Store/return JSON callback - in feature_json_callback. - raptor_features_list array gains new entry for - RAPTOR_FEATURE_JSON_CALLBACK with name "jsonCallback". - (raptor_json_serialize_start): Write callback before serialize start. - (raptor_json_serialize_end): Terminate callback after serialize end. - - * src/raptor.h: Removed raptor_sax2_parse_handle_errors prototype - - no such function. - -2008-02-25 Lauri Aalto - - * src/raptor_rdfxml.c: - (raptor_rdfxml_start_element_grammar, - raptor_rdfxml_end_element_grammar): Check for alloc failures. - - * src/raptor_xml.c: - (raptor_new_xml_element): Check for cdata - stringbuffer alloc failure. - - * src/raptor_sax2.c: - (raptor_sax2_start_element): Low-memory - cleanup fixes. - - * src/raptor.h: - (raptor_error_handlers): Quick segfault fix: - statically allocate RAPTOR_LOG_LEVEL_LAST+1 error handler slots - - * src/raptor.h: - (raptor_error_handlers): Portability fix: avoid - "type containing an unknown-size array is not allowed" errors on - some compilers. - -2008-02-24 Lauri Aalto - - * src/raptor_www.c: - (raptor_www_set_http_cache_control): +1 for - zero termination - -2008-02-24 Dave Beckett - - * src/raptor.h, src/raptor_general.c, src/raptor_grddl.c, - src/raptor_internal.h, src/raptor_libxml.c, src/raptor_parse.c, - src/raptor_sax2.c, src/raptor_www.c, src/raptor_www_libxml.c: - Added struct raptor_message_handler_closure for user data plus an - error handler. - (raptor_log_error_simple): Removed, only used in raptor_sax2.c - (raptor_log_error_to_handlers): Added to log to an - raptor_error_handlers object. - (raptor_sax2_simple_error): Tidy error calling to use closure - pointer. - (raptor_sax2_parse_chunk, raptor_log_error_to_handlers): Use - raptor_log_error_to_handlers - (raptor_www_set_error_handler, raptor_www_error): Update for - closure struct. - (raptor_grddl_fetch_uri, raptor_grddl_parse_chunk): Update for - closure struct. Tidy saving and restoring error handlers - (raptor_new_parser): Init last_log_level for error handlers. - (raptor_parse_uri_with_connection, raptor_parser_simple_error, - raptor_parser_error_varargs, raptor_parser_error_message_handler, - raptor_parser_warning, raptor_parser_warning_message_handler, - raptor_set_fatal_error_handler, raptor_set_error_handler, - raptor_set_warning_handler): Update for closure struct. - (raptor_libxml_warning, raptor_libxml_error_common, - raptor_libxml_generic_error, - raptor_libxml_xmlStructuredErrorFunc): Update for closure struct. - (raptor_www_libxml_init): Update for closure struct. - -2008-02-24 Lauri Aalto - - * src/Makefile.am: flex-generated header file does not need fixing - with fix-flex. It already has YY_NO_UNISTD_H guard and all other - fix-flex issues are for .c files only. - Fixes warnings due to multiple inclusion of raptor_config.h. - -2008-02-23 Dave Beckett - - * docs/tmpl/section-feature.sgml, src/raptor.h, - src/raptor_feature.c, src/raptor_grddl.c, src/raptor_internal.h, - src/raptor_parse.c, src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_turtle_writer.c, src/raptor_www.c, - src/raptor_www_curl.c, src/raptor_www_libxml.c, - src/raptor_xml_writer.c: Add RAPTOR_FEATURE_WWW_HTTP_CACHE_CONTROL - and RAPTOR_FEATURE_WWW_HTTP_USER_AGENT to control WWW. Pass that - on in parsers to internal www. raptor_www struct gains - cache_control and user_agent fields. - (raptor_www_curl_fetch): Disable curl www Pragma: header always. - (raptor_www_set_http_cache_control): Added. - (raptor_www_set_user_agent, raptor_www_set_proxy): Error checking - on malloc failure. - Fixes Issue #0000252 http://bugs.librdf.org/mantis/view.php?id=252 - -2008-02-22 Lauri Aalto - - * src/raptor_rdfxml.c: - (raptor_rdfxml_cdata_grammar): Check for - null pointer before indirecting it. - - * src/raptor_libxml.c: Removed writable static data from - raptor_libxml.c - -2008-02-16 Dave Beckett - - * autogen.sh: autogen checks when env prog version is - empty. Update all packages to latest autogen.sh - -2008-02-09 Dave Beckett - - * src/raptor_avltree.c, src/raptor_internal.h: - (raptor_avltree_remove): Added. - (raptor_avltree_delete): Rewritten in terms of - raptor_avltree_remove. (main): Add test with - raptor_avltree_remove - -2008-02-07 Dave Beckett - - * src/raptor_avltree.c: - (raptor_avltree_search_internal): Alter to - return the node. (raptor_avltree_search): Use - raptor_avltree_search_internal changed - -2008-02-07 Lauri Aalto - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_emit_subject_properties): Do not throw away return - value from raptor_rdfxmla_emit_subject_list_items(). - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_emit_subject_properties): Check - raptor_avltree_cursor_first() return value. Fixes a NULL - indirection crash later on. - - * src/raptor_avltree.c: - (raptor_new_avltree): Initialize print_fn - field to NULL. - -2008-02-06 Lauri Aalto - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_statement): - Ensure variable rv is initialized before use. - -2008-02-02 Dave Beckett - - * src/raptor_abbrev.c, src/raptor_internal.h, - src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: - Switch raptor_avltree subject->properties from raptor_sequence to - raptor_avltree and use an AVL Tree cursor to iterate it. This - changes the exact ordering of the output from original order, to - sorted by raptor_abbrev_node comparison order. - - * src/raptor_avltree.c: Export avltree cursor prototypes. Added - raptor_data_print_function field. - (raptor_avltree_set_print_handler, raptor_avltree_print): Added to - print an AVL Tree. - (raptor_avltree_sprout_right): Fix failure to set parent correctly - in RR rebalancing. - (raptor_avltree_dump_internal): Print node value if print_fn is - defined. - - * src/raptor_internal.h: Added raptor_data_print_function typedef. - Added raptor_avltree_set_print_handler and raptor_avltree_print - prototypes. Added avltree cursor prototypes: - raptor_avltree_cursor_first, raptor_avltree_cursor_last, - raptor_avltree_cursor_prev, raptor_avltree_cursor_next and - raptor_avltree_cursor_get - - * src/raptor_avltree.c: - (compare_strings): update sig - - * src/raptor_avltree.c, src/raptor_internal.h, - src/raptor_serialize_json.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_turtle.c, src/raptor_set.c: Change - raptor_avltree data from raptor_avltree_t typedef to void*. - excessive typedefs. Rename raptor_avltree_compare_function to - raptor_data_compare_function. Rename - raptor_avltree_delete_function to raptor_data_free_function - - * src/raptor.h, src/raptor_general.c, src/raptor_parse.c, - src/raptor_www.c: - (raptor_error_handlers_init): Remove all args - except object pointer. Add docs. This is currently not called - internally so no need for extra arg soup. Use to init - error_handlers everywhere. - (raptor_new_parser, raptor_www_new_with_connection): Use - raptor_error_handlers_init rather than set magic directly. - - * src/raptor_statement.c: - (raptor_statement_compare): Allow - subject, predicate or object to have NULL pointers which always - sort earlier than pointers with values. - -2008-01-29 Lauri Aalto - - * tests/grddl/Makefile.am: Run GRDDL tests only if GRDDL parser is - enabled in configuration. - -2008-01-27 Dave Beckett - - * src/raptor_avltree.c: - (raptor_new_avltree): Init size and cursor - - * src/raptor_avltree.c: struct raptor_avltree gains a cursor - field. - (raptor_avltree_node_leftmost, raptor_avltree_node_rightmost): - Added for code clarity. Really this could be inlined or a macro. - (raptor_avltree_node_prev, raptor_avltree_node_next): Added for - moving around tree in order. - (raptor_avltree_cursor_first, raptor_avltree_cursor_last, - raptor_avltree_cursor_prev, raptor_avltree_cursor_next, - raptor_avltree_cursor_get): Added avltree cursor with new methods. - (main): Added tests for forwards and backwards cursoring. - - * src/raptor_statement.c: code style - - * src/raptor_serialize_turtle.c: - (raptor_turtle_serialize_start): - Indenting - - * src/raptor_serialize_json.c: - (raptor_statement_avltree_compare): - Use raptor_statement_compare. - - * src/Makefile.am, src/raptor.h, src/raptor_general.c, - src/raptor_statement.c: Added raptor_statement.c for statement - functions. - (raptor_statement_compare): Added, based on - raptor_json_statement_compare. - - * src/raptor_turtle_writer.c: - (main): Use write_base_uri in test. - -2008-01-23 Dave Robillard - - * src/raptor_serialize_turtle.c: - (raptor_turtle_context): Fix - comment on written_header for Turtle (not XML). - Add feature to control writing @base directive to Turtle files. - (RAPTOR_FEATURE_WRITE_BASE_URI): Added. - (raptor_new_turtle_writer): Added write_base_uri parameter. - - -2008-01-22 Dave Beckett - - * src/raptor_avltree.c: Remove most internal checks as they do not - hold while sprouting and rebalancing - (raptor_avltree_add, raptor_avltree_delete): Check here - afterwards. - -2008-01-21 Dave Beckett - - * src/raptor_avltree.c: Run raptor_avltree_check_node after only - if not rebalancing - node is still being moved. - - * src/raptor_avltree.c: remove QUOTE_FN and flush stderr - - * src/raptor_avltree.c: Remove other raptor_avltree_check_node before - - * src/raptor_avltree.c: - (raptor_avltree_sprout): Do not run before - check, the node is not consistent while it is moving to the right - place. - - * src/raptor_turtle_writer.c: - (main) cast for strlen - - * src/raptor_internal.h: Added prototypes for raptor_avltree_size, - raptor_avltree_dump and raptor_avltree_check - - * src/raptor_avltree.c: raptor_avltree_node gains a parent field - raptor_avltree gains a size field - (raptor_avltree_sprout): Add a parent node arg for updating parent - field on sprouts. - (raptor_avltree_add): Call raptor_avltree_sprout with NULL parent. - (raptor_avltree_print_node): Added for debugging - (raptor_avltree_check_node): Added to check a node for validity of - pointers - (raptor_avltree_sprout_left, raptor_avltree_sprout_right, - raptor_avltree_sprout, raptor_avltree_balance_left, - raptor_avltree_balance_right): Update parent pointers and run - check functions afterwards. - (raptor_avltree_delete_internal): Run check functions - (raptor_avltree_size): Added to get tree size. - (raptor_avltree_dump_internal, raptor_avltree_dump, - raptor_avltree_check_internal, raptor_avltree_check): Added for - debugging tree and checking consistency. - (main): Added one more test item so tree is not balanced. Run - checks during adds and delete. - -2008-01-21 Lauri Aalto - - * src/raptor_rdfxml.c: - (raptor_rdfxml_parse_init): Check for - allocation failures and return error code if necessary. - (raptor_rdfxml_parse_terminate): Do not assume sax2, id_set are - initialized. - -2008-01-21 Dave Beckett - - * utils/rdfdiff.c: Changed algorithm - read both files into - rdfdiff_file* structures with rdfdiff_collect_statements, removing - duplicates for each file then compare afterwards. - (rdfdiff_statement_equals): Edited to have one return. - (rdfdiff_statement_find): Added - (rdfdiff_statement_exists): Uses rdfdiff_statement_find. - (rdfdiff_compare_statements): Removed. - (main): Use rdfdiff_collect_statements and after both files are - read in, walk through and remove common statements from the - from_file list. - - * tests/Makefile.am: show results from check-rdfdiff failing - - * utils/rdfdiff.c: - (rdfdiff_statement_exists): Added. - (rdfdiff_collect_statements): Use rdfdiff_statement_exists to not - add duplicate statements. - - * tests/Makefile.am: Set result=1 on errors - -2008-01-20 Dave Beckett - - * tests/turtle/rdf-schema.out, tests/turtle/rdf-schema.ttl: Remove - duplicate statements from rdf-schema* now that serializer discards - them - - * src/raptor_abbrev.c: - (raptor_abbrev_subject_add_property): Do - not save duplicate statements. - Fixes Issue #0000245 http://bugs.librdf.org/mantis/view.php?id=245 - - * src/raptor_avltree.c: - (main): Add test for raptor_avltree_search - - * src/raptor.h, src/raptor_xml.c: autodocs - -2008-01-17 Dave Beckett - - * src/raptor_serialize_json.c: - (raptor_json_serialize_init): - Change the test for name "json". - - * src/raptor_serialize_json.c: - (raptor_init_serializer_json): - Change serializer name 'json-t' to 'json-triples' - - * src/raptor_serialize_json.c: - (raptor_init_serializer_json): Set - JSON mime type to application/json. Change serializer name 'json' - to resource-centric one and add alias 'json-r'. - - * src/raptor_xml_writer.c: - (main): Use raptor_iostream_tell rather - than deprecated raptor_iostream_get_bytes_written_count - - * src/raptor_serialize_json.c: - (raptor_init_serializer_json): Cast - - * src/raptor_json_writer.c: Added define - RAPTOR_JSON_WRITER_DATATYPES to remove unused fields and - initialising/freeing supporting commented-out function - raptor_json_writer_literal_datatype - - * configure.ac, src/Makefile.am, src/raptor_internal.h, - src/raptor_json_writer.c, src/raptor_serialize.c, - src/raptor_serialize_json.c: Added JSON serializing support. - raptor_json_writer class for formatting JSON. json-r and json-t - serializations based on - http://n2.talis.com/wiki/RDF_JSON_Specification - -2008-01-16 Dave Beckett - - * src/raptor_turtle_writer.c: - (raptor_iostream_write_string_python): - Do not write too much raw UTF-8 - - * src/raptor_turtle_writer.c: - (raptor_iostream_write_string_python): Add Long Turtle mode 2, - shift JSON to 3. - (raptor_turtle_writer_quoted_counted_string): Use mode 2 for - triple-quoted long strings - - * src/raptor_internal.h: Add - raptor_turtle_writer_quoted_counted_string replacing - raptor_turtle_writer_quoted - - * src/raptor.h, src/raptor_serialize_ntriples.c, - src/raptor_turtle_writer.c: - (raptor_iostream_write_string_python): - Added renamed from raptor_iostream_write_string_turtle and - replacing raptor_iostream_write_string_ntriples. Handles writing - to an iostream with escapes in N-Triples, Turtle and JSON with - appropriate escapes which are all python like. - (raptor_iostream_write_string_turtle): Changed to use - raptor_iostream_write_string_python. - (raptor_turtle_writer_quoted_counted_string): Renamed from - raptor_turtle_writer_quoted and taking a length - -2008-01-14 Lauri Aalto - - * autogen.sh: Do not branch autogen.sh scripts but keep them - identical - -2008-01-12 Dave Beckett - - * autogen.sh: automake 1.10 research - -2008-01-11 Lauri Aalto - - * src/n3_parser.y, src/ntriples_parse.c, src/raptor_grddl.c, - src/raptor_guess.c, src/raptor_internal.h, src/raptor_parse.c, - src/raptor_rdfxml.c, src/raptor_rss.c, src/raptor_serialize.c, - src/raptor_serialize_dot.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_simple.c, - src/raptor_serialize_turtle.c, src/turtle_parser.y: - (raptor_*_serializer_register_factory, - raptor_*_parser_register_factory) Return error codes from parser - and serializer factory registration functions. - (raptor_serializer_register_factory, - raptor_parser_register_factory) Check factory function return - code. - (raptor_parser_factory_add_alias, - raptor_parser_factory_add_mime_type, - raptor_parser_factory_add_uri) Added error code returns. Bubble up - OOM errors to caller. - - * src/raptor_parse.c, src/raptor_serialize.c: - (raptor_parsers_init, - raptor_parser_register_factory, - raptor_serializer_register_factory): Let raptor_init() handle - dying on OOM. - - * src/n3_parser.y, src/ntriples_parse.c, src/raptor_general.c, - src/raptor_grddl.c, src/raptor_guess.c, src/raptor_internal.h, - src/raptor_parse.c, src/raptor_rdfxml.c, src/raptor_rss.c, - src/raptor_sax2.c, src/raptor_serialize.c, - src/raptor_serialize_dot.c, src/raptor_serialize_ntriples.c, - src/raptor_serialize_rdfxml.c, src/raptor_serialize_rdfxmla.c, - src/raptor_serialize_rss.c, src/raptor_serialize_simple.c, - src/raptor_serialize_turtle.c, src/raptor_uri.c, - src/turtle_parser.y: Changed raptor internal init functions to - return error codes. - -2008-01-07 Lauri Aalto - - * src/raptor.h: Add raptor_error_handlers_init and raptor_sax2 - RAPTOR_API exports. - - * src/raptor_rfc2396.c: - (raptor_uri_resolve_uri_reference): Cast - unsigned char -> char. Fixes compilation problems on non-gcc - compilers. - -2008-01-05 Dave Beckett - - * src/raptor_rfc2396.c: Update URI resolving for RFC3986 - some - abnormal examples have different results or have defined possible - results. - (raptor_uri_resolve_uri_reference): Remove leading /../ and /./ - (main): Update tests for RFC3986 changes - - * src/raptor_general.c: 2008 - -2008-01-04 Lauri Aalto - - * src/raptor_serialize_turtle.c: - (raptor_turtle_ensure_writen_header): - Do not assume context->turtle_writer is initialized. - - * src/raptor_serialize_turtle.c: - (raptor_turtle_serialize_init): - Require non-NULL rdf:type abbrev node. - - * src/raptor_abbrev.c: - (raptor_abbrev_subject_add_property): - Prevent low-memory double deletes - increment object reference - counts earlier. - - * src/raptor_turtle_writer.c: - (raptor_turtle_writer_quoted): Check - for stringbuffer alloc failures. - -2008-01-03 Dave Beckett - - * src/raptor.h, src/raptor_qname.c: Added - raptor_qname_get_counted_value - -2008-01-03 Lauri Aalto - - * src/raptor_serialize_turtle.c: - (raptor_turtle_serialize_statement): - Return error if raptor_abbrev_node_lookup() or - raptor_abbrev_subject_add_property() calls fail. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_statement): - Removed redundant conditional. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_ensure_writen_header): - Check for qname alloc failure, do not pass NULL attributes to XML - element. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_statement): - Lowmem fixes. Return raptor_abbrev_subject_add_property() errors - to caller. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_ensure_writen_header): - Added int return code. - (raptor_rdfxmla_serialize_end) Fixed low-memory crash: make sure - context->rdf_RDF_element is not used if NULL. - - * src/raptor_abbrev.c: - (raptor_new_qname_from_resource): Fixed - low-memory leaks. - - * src/raptor_serialize_rdfxmla.c, src/raptor_serialize_turtle.c: - rdfxml-abbrev & turtle serializer error messages: Removed double - 0x prefixes - %p already gives one. - - * src/raptor_iostream.c: Changed raptor_iostream_handler2 - initializers from gcc/c99 style to traditional C. - -2008-01-02 Lauri Aalto - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_end): - Do not assume xml_writer or rdf_RDF_element are initialized. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_serialize_statement): - Check for raptor_abbrev_node_lookup() errors. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_ensure_writen_header): - Check for alloc failures. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_emit_subject): - Check for alloc failures. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_emit_subject_properties): Check for alloc failures. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_emit_literal): - Check for qname attribute alloc failures. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_emit_resource): - Check for qname attribute alloc failure. - - * src/raptor_serialize_rdfxmla.c: - (raptor_rdfxmla_emit_subject_list_items): Check for xml element - alloc failure. - - * src/raptor_abbrev.c: - (raptor_new_qname_from_resource): Check for - alloc failure. - - * src/raptor_abbrev.c: - (raptor_abbrev_node_lookup): Check for - lookup node allocation failures. - - * src/raptor_abbrev.c: - (raptor_new_abbrev_node): Check for alloc - failures. - - * src/turtle_parser.y: - (raptor_turtle_parse_chunk): Do not leave - turtle_parser->buffer a dangling pointer if realloc fails. - (raptor_turtle_parse_terminate) When freeing - turtle_parser->buffer, do not trust turtle_parser->buffer_length - to be in sync. - - * src/raptor_iostream.c: - (raptor_new_iostream_to_filename): Close - file on alloc failure. - - * src/raptor_iostream.c: - (raptor_new_iostream_from_filename): - Close file on alloc failure. - - * src/raptor_iostream.c: - (raptor_iostream_calculate_modes, - raptor_iostream_check_handler, raptor_new_iostream_from_handler2): - Fix compiler error on some non-gcc compilers - illegal use of - const. - -2008-01-01 Dave Beckett - - * src/raptor_iostream.c: code style - - * src/raptor_iostream.c: docs - - * src/raptor_iostream.c: - (raptor_iostream_calculate_modes): Use - handler2 version for calculations. - (raptor_iostream_check_handler): Check handler API versions. - (raptor_new_iostream_from_handler2, - raptor_new_iostream_to_filename, - raptor_new_iostream_to_file_handle, raptor_new_iostream_to_string, - raptor_new_iostream_from_filename, - raptor_new_iostream_from_file_handle): Set mode once. - - * src/raptor_iostream.c: Check handler matches requested mode - (raptor_iostream_calculate_modes): Added. - (raptor_iostream_check_handler): Renamed from - raptor_iostream_init_common. - (raptor_new_iostream_from_handler2, raptor_new_iostream_to_filename, - raptor_new_iostream_to_file_handle, raptor_new_iostream_to_string, - raptor_new_iostream_from_filename, - raptor_new_iostream_from_file_handle): Use - raptor_iostream_check_handler to check things and - raptor_iostream_calculate_modes to set mode. - - * src/raptor_iostream.c: Merge read/write filename code Ensure - finish is called to fclose(handle) - - * src/raptor_iostream.c: - (test_*): Replace uses of - raptor_iostream_get_bytes_written_count with raptor_iostream_tell - - * src/raptor_iostream.c: Use unsigned long offset not bytes. - (raptor_iostream_get_bytes_written_count): Deprecated for - raptor_iostream_tell - (raptor_iostream_tell): Added - - * src/raptor.h: Deprecate raptor_iostream_get_bytes_written_count - for raptor_iostream_tell - - * src/raptor_iostream.c: - (raptor_filename_iostream_finish): Added - to close filename file - handle. raptor_iostream_read_file_handle_handler struct added - (raptor_new_iostream_from_file_handle): Added. - (test_read_from_file_handle): Enabled. - - * src/raptor_iostream.c: Put ended EOF into flags - - * src/raptor_iostream.c: Merge read/write sinks - - * src/raptor_iostream.c: Add private field to raptor_iostream_s - for handling freeing handler2 - (raptor_new_iostream_from_handler2): Add const to hamdler2 arg. - - * src/raptor.h: raptor_iostream_handler2 loses private field - it - can be part of internals of raptor_iostream Updated - raptor_new_iostream_from_handler2 to make handler2 arg - constant pointer to constant data. - - * src/raptor.h: Added raptor_iostream_read_eof and typedef - raptor_iostream_read_eof_func to raptor_iostream_handler2 - structure. - - * src/raptor_iostream.c: - (raptor_iostream_read_eof): Added. - (main) More unit test refactoring and checking. - - * src/raptor_iostream.c: Resource cleanup on test failures - - * src/raptor_iostream.c: Refactor read tests to be units - one - function per test. - - * src/raptor_iostream.c: Refactor write tests to be units - one - function per test. - - * src/raptor_iostream.c: - (main): Tests for iostream reading - diff --git a/INSTALL.html b/INSTALL.html index 94b1142c..dccc2109 100644 --- a/INSTALL.html +++ b/INSTALL.html @@ -136,7 +136,9 @@

2.1. Create GNU Bison to build lexers and parsers. configure will warn or fail if they are missing or the installed versions are too old. -These are only required when building from GIT. +These are only required when building from GIT in which case +you MUST add --enable-maintainer-mode to configure which +is automatically added if autogen.sh is run.

diff --git a/scripts/fix-flex.pl b/scripts/fix-flex.pl index 785864e2..f95cc2c0 100755 --- a/scripts/fix-flex.pl +++ b/scripts/fix-flex.pl @@ -150,5 +150,8 @@ s%^(\s*if \(\s*)YY_CURRENT_BUFFER(\s*\)\s*\{.*)$%${1}YY_CURRENT_BUFFER_LVALUE${2}%; } + # Make buffer size and number of characters unsigned + s/int (yy_buf_size|yy_n_chars)/yy_size_t $1/; + print; } diff --git a/src/turtle_lexer.l b/src/turtle_lexer.l index 8d0c53e8..f60e6c0e 100644 --- a/src/turtle_lexer.l +++ b/src/turtle_lexer.l @@ -282,14 +282,6 @@ EXPONENT [eE][+-]?[0-9]+ \"|(\\.|[^\"\\]|\n)* { char *p; - if(*yytext == EOF) { - BEGIN(INITIAL); - turtle_syntax_error(rdf_parser, "End of file in middle of literal"); - raptor_free_stringbuffer(turtle_parser->sb); - turtle_parser->sb = NULL; - return EOF; - } - for(p = yytext; *p; p++) { if(*p == '\n') turtle_parser->lineno++; @@ -350,7 +342,7 @@ EXPONENT [eE][+-]?[0-9]+ \'|(\\.|[^\'\\]|\n)* { char *p; - if(*yytext == EOF) { + if(*yytext == YY_END_OF_BUFFER_CHAR) { BEGIN(INITIAL); turtle_syntax_error(rdf_parser, "End of file in middle of \'\'\'literal\'\'\'"); raptor_free_stringbuffer(turtle_parser->sb); @@ -437,7 +429,7 @@ EXPONENT [eE][+-]?[0-9]+ return IDENTIFIER; } (.|\n) { BEGIN(INITIAL); - if(*yytext == EOF) + if(*yytext == YY_END_OF_BUFFER_CHAR) return EOF; turtle_syntax_error(rdf_parser, "syntax error at '%c'", *yytext); @@ -531,7 +523,7 @@ EXPONENT [eE][+-]?[0-9]+ \#[^\r\n]* { /* # comment on the last line with no terminating newline */ } -. { if(*yytext == EOF) +. { if(*yytext == YY_END_OF_BUFFER_CHAR) return EOF; turtle_syntax_error(rdf_parser, "syntax error at '%c'", *yytext); diff --git a/src/turtle_parser.y b/src/turtle_parser.y index 1474a3db..5c3e815d 100644 --- a/src/turtle_parser.y +++ b/src/turtle_parser.y @@ -231,7 +231,6 @@ graph: GRAPH_NAME_LEFT_CURLY if(turtle_parser->graph_name) raptor_free_term(turtle_parser->graph_name); turtle_parser->graph_name = raptor_new_term_from_uri(rdf_parser->world, $1); - raptor_free_uri($1); raptor_parser_start_graph(rdf_parser, turtle_parser->graph_name->value.uri, 1); } @@ -1299,6 +1298,9 @@ turtle_parser_error(raptor_parser* rdf_parser, void* scanner, !turtle_parser->is_end) { /* we encountered an error on or around the last byte of the buffer * sorting it in the next run aye? */ +#if defined(RAPTOR_DEBUG) && RAPTOR_DEBUG > 1 + printf("Ignoring error '%s' when near end of buffer\n", msg); +#endif return 0; } @@ -2060,12 +2062,15 @@ main(int argc, char *argv[]) FILE *fh; const char *filename; size_t nobj; + const char *parser_name = "turtle"; #if defined(RAPTOR_DEBUG) && RAPTOR_DEBUG > 2 turtle_parser_debug = 1; #endif if(argc > 1) { + size_t filename_len;; + filename = argv[1]; fh = fopen(filename, "r"); if(!fh) { @@ -2073,6 +2078,12 @@ main(int argc, char *argv[]) strerror(errno)); exit(1); } + filename_len = strlen(filename); + if(!strcmp(filename + filename_len - 5, ".trig")) + parser_name = "trig"; + else + parser_name = "turtle"; + } else { filename=""; fh = stdin; @@ -2092,6 +2103,8 @@ main(int argc, char *argv[]) if(argc > 1) fclose(fh); + fprintf(stderr, "file '%s' parser '%s'\n", filename, parser_name); + memset(&rdf_parser, 0, sizeof(rdf_parser)); memset(&turtle_parser, 0, sizeof(turtle_parser)); @@ -2107,7 +2120,7 @@ main(int argc, char *argv[]) raptor_parser_set_statement_handler(&rdf_parser, stdout, turtle_parser_print_statement); - raptor_turtle_parse_init(&rdf_parser, "turtle"); + raptor_turtle_parse_init(&rdf_parser, parser_name); turtle_parser.error_count = 0;