Redland
view release on metacpan or search on metacpan
redland/raptor/ChangeLog view on Meta::CPAN
autodocs
2006-10-08 Dave Beckett <dave@dajobe.org>
* 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 <dave@dajobe.org>
* 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 <dave@dajobe.org>
* examples/Makefile.am: Fix AM_* flags
2006-10-02 Dave Beckett <dave@dajobe.org>
* 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 <dave@dajobe.org>
* 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 <dave@dajobe.org>
* 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 <dave@dajobe.org>
* configure.ac: Allow LEX to be set to things that aren't exactly
'flex'
2006-08-27 Dave Beckett <dave@dajobe.org>
* 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
* 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 <dave@dajobe.org>
redland/raptor/ChangeLog view on Meta::CPAN
* 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 <dave@dajobe.org>
* 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
redland/raptor/ChangeLog view on Meta::CPAN
* 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 <dave@dajobe.org>
* 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 <dave@dajobe.org>
* src/raptor_rss.c: (raptor_rss_parse_chunk): Return 0 on success
2006-05-07 Dave Beckett <dave@dajobe.org>
* 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 <dave@dajobe.org>
* src/raptor_serialize_rdfxml.c: (raptor_rdfxml_serialize_start):
Reset "written header" flag. Without this, reusing a serializer
dies.
2006-04-30 Dave Beckett <dave@dajobe.org>
* docs/libraptor.3: Updated for some final 1.4.9 changes
2006-04-22 Dave Beckett <dave@dajobe.org>
* 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
* 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 <dave@dajobe.org>
* 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 <dave@dajobe.org>
* 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 <dave@dajobe.org>
* tests/all-escape.nt, tests/all-escape.rdf: All 0-7F ascii
escapes and the XML 1.1 output
2006-04-11 Dave Beckett <dave@dajobe.org>
redland/raptor/ChangeLog view on Meta::CPAN
* 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 <dave@dajobe.org>
* 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 <dave@dajobe.org>
* src/raptor_rss.c: Replace raptor_rss_parser_context* with
raptor_rss_parser*
2006-03-27 Dave Beckett <dave@dajobe.org>
* 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 <dave@dajobe.org>
* 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
redland/raptor/ChangeLog view on Meta::CPAN
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 <dave@dajobe.org>
* 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 <dave@dajobe.org>
* configure.ac: allow --enable-parsers/serializers=none
2006-02-02 Dave Beckett <dave@dajobe.org>
* 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 <dave@dajobe.org>
* src/raptor_serialize_rss.c: Do not write XML header here, XML
writer does it.
2006-01-22 Dave Beckett <dave@dajobe.org>
* src/raptor_guess.c: (raptor_guess_parse_chunk): Tired of seeing
debug message. Goodbye.
2006-01-16 Dave Beckett <dave@dajobe.org>
* 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 <dave@dajobe.org>
* 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
redland/raptor/ChangeLog view on Meta::CPAN
* raptor.spec.in: Add gtk-doc docs to rpm
2005-11-04 Dave Beckett <dave@dajobe.org>
* 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 <dave@dajobe.org>
* 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
redland/raptor/ChangeLog view on Meta::CPAN
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
redland/raptor/ChangeLog view on Meta::CPAN
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
(<LITERAL>\"\"\"): 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 (<LITERAL>\"\"\"): 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,
( run in 0.606 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )