Redland

 view release on metacpan or  search on metacpan

redland/raptor/ChangeLog.3  view on Meta::CPAN

	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  <Dave.Beckett@bristol.ac.uk>

	* 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

redland/raptor/ChangeLog.3  view on Meta::CPAN


2002-09-29  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* 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 -
	<![CDATA[...]> 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  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* 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

redland/raptor/ChangeLog.3  view on Meta::CPAN


	* 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  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* 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

redland/raptor/ChangeLog.3  view on Meta::CPAN

	* 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  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* raptor_parse.c (raptor_end_element_grammar):
	When zapping content_cdata, always make
	length 0

2002-05-26  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* ntriples_parse.c: Wrap errno with #ifndef WIN32

2002-05-08  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>

	* raptor_parse.c: tail_id is a char*, not a redland URI

2002-04-28  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* raptor_parse.c:
	(raptor_new) Initialise entities table count to 0 since
	xmlCreateEntitiesTable sometimes doesn't do it.

2002-04-27  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* acconfig.h, configure.in, raptor_parse.c:
	renamed NEED_EXPAT/LIBXML to RAPTOR_XML_EXPAT/LIBXML so that raptor

redland/raptor/ChangeLog.3  view on Meta::CPAN

	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  <Dave.Beckett@bristol.ac.uk>

	* 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  <Dave.Beckett@bristol.ac.uk>



( run in 0.741 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )