2010-08-22  Dave Beckett <dave@dajobe.org>

	* Snapshotted rasqal_0_9_20 for 0.9.20 release (GIT
	6b842b7e85565693bb8fe7a250710443f8d3a2a3)

2010-08-22  Nicholas J Humfrey <njh@aelius.com>

	* rasqal.rdf.in: Updated repository section to new Git repository
	on Github

	* rasqal.rdf.in: Normalised tabs into spaces #ws

2010-08-21  Dave Beckett <dave@dajobe.org>

	* README.html, RELEASE.html: Remove links to TODO.html

	* README.html: words

	* RELEASE.html: 0.9.20

	* NEWS.html: 0.9.20

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Return error failure not abort on
	attempt to evaluate SAMPLE() and GROUP_CONCAT()

	* TODO.html: Empty document and point at bugs.librdf.org

	* README.html: requires raptor 1.4.19

	* README.html: words - jena RDQL links are all broken; comment
	out.

	* LICENSE.html: Link to specific LGPL 2.1 version doc.  Wording
	and formatting

	* INSTALL.html: words

	* src/rasqal_general.c: Removed dmalloc support

	* configure.ac, src/rasqal_internal.h: Removed dmalloc support

	* docs/rasqal-sections.txt, docs/tmpl/section-expression.sgml,
	docs/tmpl/section-query.sgml, docs/tmpl/section-unused.sgml:
	Updated docbook tmpls and sections

	* src/rasqal.h.in, src/rasqal_internal.h, src/rasqal_query.c,
	src/rasqal_query_transform.c, src/rasqal_query_write.c,
	src/sparql_parser.y, tests/sparql/aggregate/Makefile.am,
	tests/sparql/aggregate/group-concat-1.rq,
	tests/sparql/aggregate/group-concat-2.rq,
	tests/sparql/aggregate/group-concat-3.rq:
	Add support for SPARQL 1.1 HAVING <list of Expression>

	(rasqal_query_get_having_conditions_sequence,
	rasqal_query_get_having_condition): Added.

	struct rasqal_query gains new internal field
	having_conditions_sequence.

	(rasqal_free_query, rasqal_query_print,
	rasqal_query_write_sparql_20060406): Handle new sequence of having
	conditions.

	(rasqal_query_build_variables_use_map): Scan HAVING expr for
	variable use.  Removes a fixme.

	(SPARQL parser token HavingClauseOpt): Store having conditions
	sequence.  Removes a fixme.  Added teses for above.

	* src/rasqal_expr.c:
	(rasqal_new_group_concat_expression): Allow separator to be NULL

	* src/rasqal.h.in:
	Add rasqal_new_group_concat_expression header

	* src/rasqal_expr.c, src/rasqal_query_write.c, src/sparql_lexer.l,
	src/sparql_parser.y, tests/sparql/aggregate/Makefile.am,
	tests/sparql/aggregate/group-concat-1.rq: Add full GROUP_CONCAT()
	syntax and representation support.

	Added tests/sparql/aggregate/group-concat-1.rq (nothing in spec
	yet)

	(rasqal_new_group_concat_expression): Added taking distinct flag,
	sequence of expressions and literal separator

	(rasqal_expression_clear, rasqal_expression_write,
	rasqal_expression_print, rasqal_expression_is_constant,
	rasqal_query_write_sparql_expression): updated for above change.

	Fix SPARQL lexer token to be GROUP_CONCAT not GROUPCONCAT.  Oops -
	that's why a test is needed.

	(SeparatorOpt): Use EQ not '=' which never gets here.

	(ExpressionList): added for a comma-separated list of
	expressions.

	(GroupConcatAggregateExpression): Use ExpressionList and create
	new expression from rasqal_new_group_concat_expression().

2010-08-20  Dave Beckett <dave@dajobe.org>

	* src/rasqal_engine_algebra.c:
	Zero out freed node pointer

	(rasqal_algebra_graph_algebra_node_to_rowsource): After "case #2"
	when rasqal_free_algebra_node() is called, zap out the pointer.
	Addresses Issue#0000378
	http://bugs.librdf.org/mantis/view.php?id=378

	* src/rasqal_rowsource_empty.c:
	(rasqal_empty_rowsource_ensure_variables): Use to set row width to
	0

2010-08-19  Dave Beckett <dave@dajobe.org>

	* docs/Makefile.am, src/Makefile.am: Do not ship rasqal.h in
	tarball since it is system-dependent (raptor2 or not)

	Add nodist_ before list of installed includes: rasqal.h must be
	installed but not distributed.

	Add docs dependency rule for rasqal.h for gtk-doc scanning.

	* tests/sparql/bugs/353-result.ttl, tests/sparql/bugs/353.ttl: Add
	bug353 ttl files

	* tests/sparql/check-sparql: remove debug print

2010-08-18  Dave Beckett <dave@dajobe.org>

	* 000-README-GIT.txt: Remove 000-README-GIT.txt intended for old
	repo

	* tests/sparql/bugs/353-result.ttl, tests/sparql/bugs/353.rq,
	tests/sparql/bugs/Makefile.am, tests/sparql/bugs/manifest.ttl: Add
	test for 353 - currently fails

	* tests/sparql/check-sparql: Handle RDF graph results type as well
	as bindings

	* tests/sparql/check-sparql: debug messages when reading results

2010-08-18  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_query_results.c:
	(rasqal_query_results_update_bindings): Avoid using uninitialized
	pointer

2010-08-17  Dave Beckett <dave@dajobe.org>

	* src/rasqal_algebra.c: Ensure CONSTRUCT sets up variables for
	projection.

	(rasqal_algebra_get_variables_mentioned_in): Added to get list of
	variables mentioned in a construct.

	(rasqal_algebra_query_to_algebra): For a CONSTRUCT, get the
	mentioned vars and use those in the projection and free the
	sequence after.

	* AUTHORS: Added Lauri Aalto

	* 000-README-GIT.txt: Moved to GitHub at
	http://github.com/dajobe/rasqal

	* README.html: Update for github

2010-08-05  Dave Beckett <dave@dajobe.org>

	* src/rasqal_result_formats.c:
	(rasqal_query_results_formatter_write): document NULL base_uri is
	allowed

2010-08-04  Dave Beckett <dave@dajobe.org>

	* src/rasqal_raptor.c: Update rasqal_raptor_generate_id_handler to
	handle new raptor generate nodeid API

2010-07-27  Dave Beckett <dave@dajobe.org>

	* src/.gitignore: Ignore generated rasqal.h

	* src/sparql_parser.y:
	Add VarOrBadVarName state to track deprecated LAQRS .. AS varname ...

	(SelectTerm): Use VarOrBadVarName for deprecated LAQRS SELECT
	... AS varname, instead of the draft SPARQL 1.1 Query SELECT
	... AS ?varname

	(VarOrBadVarName): Added generating a warning for a bare varname.

	* src/sparql_lexer.l: Restore SPID state after AS and return $, ?
	and VarName tokens

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/group-by1.rq:
	Remove group-by1.rq - syntax was never added to sparql 1.1 and this
	was never in shipped rasqal release

	* src/sparql_parser.y:
	Make SELECT AS, HAVING, GROUP_CONCAT with SEPARATOR partially work

	Added tokens HAVING and SEPARATOR

	(SelectTerm): Use AS Var not VarName.

	(SelectExpression): Deleted, SelectQuery uses Expression direct.

	(AggregateExpression): Add annotations.

	(SeparatorOpt): Added to handle ; SEPARATOR = "string" for
	GROUP_CONCAT.

	(GroupConcatAggregateExpression): Use SeparatorOpt but throw away
	the string for now - FIXME.

	(SolutionModifier): Add HavingClauseOpt

	(GroupCondition): Use AS Var not VarName

	(HavingCondition): Added, just alias for Constraint.

	(HavingConditionList): Added as list of HavingCondiiton

	(HavingClauseOpt): Added for HAVING.  Throws away result for now -
	FIXME.

	(PrimaryExpression): Add AggregateExpression here; so you can put an
	aggregate expression such as as SUM() etc. anywhere an expression
	can go!

2010-07-26  Dave Beckett <dave@dajobe.org>

	* src/sparql_lexer.l: Added HAVING, GROUP_CONCAT, SEPARATOR tokens

	* configure.ac, tests/sparql/Makefile.am,
	tests/sparql/aggregate/Makefile.am,
	tests/sparql/aggregate/agg-1.rq, tests/sparql/aggregate/agg-2.rq,
	tests/sparql/aggregate/bad-1.rq, tests/sparql/aggregate/data-1.ttl:
	
	Add SPARQL 1.1 aggregate function tests

	* src/sparql_lexer.l:
	Accept ( Expr AS Var ) not ( Expr as VarName ) (AS): Return AS, do
	not enter SPID state.

	(SPID state): Deleted

	* RELEASE.html: words

	* RELEASE.html: words

	* words and formatting

2010-07-25  Dave Beckett <dave@dajobe.org>

	* src/sparql_parser.y: Allow SPARQL 1.1 UPDATE 2010-06-01 CLEAR
	GRAPH <uri>/DEFAULT

	* tests/sparql/update/clear-4.rq: CLEAR GRAPH DEFAULT

	* tests/sparql/update/clear-1.rq: note CLEAR is not legal syntax
	anymore

	* tests/sparql/update/Makefile.am, tests/sparql/update/clear-1.rq,
	tests/sparql/update/clear-2.rq, tests/sparql/update/clear-3.rq,
	tests/sparql/update/create-1.rq, tests/sparql/update/create-2.rq,
	tests/sparql/update/delete-1.rq, tests/sparql/update/delete-2.rq,
	tests/sparql/update/delete-data-1.rq,
	tests/sparql/update/delete-data-2.rq,
	tests/sparql/update/delete-insert-1.rq,
	tests/sparql/update/delete-where-1.rq,
	tests/sparql/update/delete-where-2.rq,
	tests/sparql/update/drop-1.rq, tests/sparql/update/drop-2.rq,
	tests/sparql/update/insert-1.rq, tests/sparql/update/insert-2.rq,
	tests/sparql/update/insert-data-1.rq,
	tests/sparql/update/insert-data-2.rq,
	tests/sparql/update/insert-data-3.rq,
	tests/sparql/update/insert-data-4.rq,
	tests/sparql/update/insert-delete-1.rq,
	tests/sparql/update/load-1.rq, tests/sparql/update/load-2.rq: 
	Updated tests for
	http://www.w3.org/TR/2010/WD-sparql11-update-20100601/

2010-05-17  Dave Beckett <dave@dajobe.org>

	* rasqal.pc.in: set have_raptor2_api boolean for rasqal pkgconfig

2010-05-16  Dave Beckett <dave@dajobe.org>

	* src/rasqal_algebra.c, src/rasqal_engine.c,
	src/rasqal_engine_sort.c, src/rasqal_expr.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_format_table.c,
	src/rasqal_general.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_literal.c, src/rasqal_map.c,
	src/rasqal_query.c, src/rasqal_query_results.c,
	src/rasqal_query_transform.c, src/rasqal_query_write.c,
	src/rasqal_raptor.c, src/rasqal_result_formats.c, src/rasqal_row.c,
	src/rasqal_rowsource.c, src/rasqal_rowsource_rowsequence.c,
	src/rasqal_rowsource_sort.c, src/rasqal_variable.c,
	src/rdql_lexer.l, src/rdql_parser.y, src/sparql_lexer.l,
	src/sparql_parser.y, utils/roqet.c:
	Replace #ifdef RAPTOR_V2_AVAILABLE with #ifdef HAVE_RAPTOR2_API -
	controlled by configure --enable-raptor2

	* src/rasqal_general.c:
	(rasqal_world_set_log_handler): Enable with HAVE_RAPTOR2_API

	* src/rasqal_query.c: Stub out raptor1 error handler functions.

	(rasqal_query_set_fatal_error_handler,
	rasqal_query_set_error_handler, rasqal_query_set_warning_handler):
	Declare as stubs

	* src/rasqal.h.in: When HAVE_RAPTOR2_API, declare raptor1 APIs with
	void* arg

	* configure.ac, src/rasqal.h, src/rasqal.h.in: Define
	HAVE_RAPTOR2_API subst var and alter API depending on raptor2
	availability

	* configure.ac: Add --enable-raptor configure arg

	Raptor2 is only considered if --enable-raptor2 is given to
	configure.  When raptor2 is present and sufficient, #define
	HAVE_RAPTOR2_API and add automakefile variable RAPTOR2

	* src/rasqal_datetime.c, src/rasqal_decimal.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_format_table.c,
	src/rasqal_general.c, src/rasqal_literal.c, src/rasqal_raptor.c,
	src/rasqal_row.c, src/rasqal_variable.c,
	src/rasqal_xsd_datatypes.c, src/rdql_lexer.l, src/sparql_lexer.l: 
	code style: replace strncpy with memcpy - never need strncpy
	zero-checking/filling semantics.

	* src/rasqal_raptor.c: Update to latest raptor_term blank field
	structure.

2010-05-03  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_algebra.c, src/rasqal_engine.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_format_table.c,
	src/rasqal_graph_pattern.c, src/rasqal_internal.h,
	src/rasqal_map.c, src/rasqal_query.c, src/rasqal_query_results.c,
	src/rasqal_query_transform.c, src/rasqal_result_formats.c,
	src/rasqal_row.c, src/rasqal_rowsource.c,
	src/rasqal_rowsource_rowsequence.c, src/rasqal_rowsource_sort.c,
	src/rasqal_variable.c, src/rdql_parser.y, src/sparql_parser.y,
	utils/roqet.c: Ported to raptor2 head - funcptr typedef changes

2010-04-24  Dave Beckett <dave@dajobe.org>

	* src/rasqal_data_graph.c, src/rasqal_decimal.c, src/rasqal_expr.c,
	src/rasqal_general.c, src/rasqal_literal.c, src/rasqal_map.c,
	src/rasqal_prefix.c, src/rasqal_query.c,
	src/rasqal_query_results.c, src/rasqal_result_formats.c,
	src/rasqal_row.c, src/rasqal_rowsource.c, src/rasqal_triple.c,
	src/rasqal_variable.c: Make all rasqal destructors simply return
	when given a NULL object pointer.  They mostly did this already -
	just remove macros to make it obvious.

	* src/rasqal_graph.c: Mark autodocs as INTERNAL

2010-04-16  Dave Beckett <dave@dajobe.org>

	* src/rasqal_query_results.c, src/rasqal_result_formats.c: autodocs
	noting that formatting query results drains them

2010-04-14  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_format_table.c:
	(rasqal_query_results_write_table_bindings): Made function compile
	on raptor2 again.

2010-04-13  Dave Beckett <dave@dajobe.org>

	* docs/tmpl/section-expression.sgml, docs/tmpl/section-general.sgml: 
	Updated docbook tmpls

	* src/rasqal.h: rasqal_expression_s autodocs

	* src/rasqal.h: autodocs

	* src/rasqal.h: autodocs

	* src/rasqal.h: autodocs

	* docs/rasqal-sections.txt: Added new funcs

	* docs/rasqal-sections.txt, src/rasqal.h, src/rasqal_literal.c: 
	rasqal_literal_equals_flags is internal

	* docs/rasqal-sections.txt: remove unused unused raptor world tokens

	* docs/rasqal-sections.txt: Added rasqal_new_function_expression2

	* src/rasqal.h: rasqal_compare_flags: autodocs do not refer to
	internal funcs

	* docs/rasqal-sections.txt: Add rasqal_literal_equals_flags

	* docs/rasqal-sections.txt: Add new funcs
	rasqal_world_set_generate_bnodeid_handler
	rasqal_world_set_default_generate_bnodeid_parameters

	* src/rasqal_literal.c:
	(rasqal_new_string_literal): autodocs do not link to internal
	rasqal_literal_string_to_native

	* src/rasqal_format_table.c:
	(rasqal_query_results_write_table_bindings): Remove unused query
	var.

2010-04-12  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Pack local vars in union to save
	some stack.

	* src/rasqal_format_table.c: #ws

2010-04-11  Dave Beckett <dave@dajobe.org>

	* RELEASE.html: 0.9.20 notes

2010-04-11  Nicholas J Humfrey <njh@aelius.com>

	* src/rasqal_format_table.c: Added boolean result support to the
	Table results format.

2010-04-06  Lauri Aalto <laalto@iki.fi>

	* configure.ac, rasqal.pc.in: Proper pkg-config dependencies when
	built with raptor2.

	* configure.ac: Support configuring with raptor2. Prefer installed
	raptor2 over raptor v1.

	* utils/Makefile.am: Support linking with libraptor2

	* utils/roqet.c: Ported to raptor2 git head. Support
	raptor_syntax_description.

2010-03-31  Dave Beckett <dave@dajobe.org>

	* src/rasqal_query_write.c: ,

	* src/rasqal_query_write.c: write a, b not a ,b

	* src/sparql_parser.y:
	(RelationalExpression): Add IN and NOT IN

	* src/rasqal.h, src/rasqal_expr.c:
	(rasqal_new_set_expression): Added for expr IN/NOT-IN list ops

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/in1.rq: Add
	IN test

	* src/rasqal_format_sv.c: T is for TAB

	* src/rasqal_query_write.c:
	(rasqal_query_write_sparql_expression): Emit DISTINCT for func

	* src/rasqal_query_write.c:
	(rasqal_query_write_sparql_variable): Write ( expr AS var )

	* tests/laqrs/syntax/count2.rq, tests/laqrs/syntax/count4.rq:
	Update expr AS Var format

	* src/rasqal_expr.c:
	(rasqal_new_function_expression_common): Fix arg test

	* configure.ac: fix raptor version test check

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Implement executing of IN and NOT IN

	* src/rasqal_expr.c, src/rasqal_query_write.c: Added expression
	handling for IN and NOT IN - no executing yet.

	(rasqal_expression_clear, rasqal_expression_evaluate,
	rasqal_expression_write, rasqal_expression_print,
	rasqal_expression_is_constant,
	rasqal_query_write_sparql_expression): Added support for IN and
	NOT IN

	(rasqal_expression_visit): Added support for IN and NOT IN;
	adjusted checking of result values for other forms to ensure visit
	is truncated on a return value of non-0

	* src/rasqal.h: Added expression enums for IN and NOT IN
	expressions rasqal_op gains RASQAL_EXPR_IN and RASQAL_EXPR_NOT_IN

	* src/sparql_lexer.l, src/sparql_parser.y: Add NOT and IN tokens
	to sparql lexer and parser

2010-03-30  Dave Beckett <dave@dajobe.org>

	* tests/laqrs/syntax/explain.rq: Adjust to require () around
	renamed vars

	* src/sparql_parser.y: Accept ( Expr AS Var ) with required braces
	in select and group by

	(SelectTerm): SelectExpression does not include ()s

	(SelectExpression): Remove optional ()s

	(GroupCondition): Accept ( Expr AS Var ) and store expression in
	var field expression.  Not totally a good idea, should be a new
	rename expression probably.

	* tests/laqrs/syntax/avg1.rq, tests/laqrs/syntax/coalesce1.rq,
	tests/laqrs/syntax/count1.rq, tests/laqrs/syntax/count3.rq,
	tests/laqrs/syntax/coverage.rq, tests/laqrs/syntax/group-by1.rq,
	tests/laqrs/syntax/max1.rq, tests/laqrs/syntax/min1.rq,
	tests/laqrs/syntax/sum1.rq: Update rename expr as var syntax from
	latest SPARQL 1.1 draft

	* src/sparql_parser.y:
	(GroupCondition): Do not free unused variable $3 - not owned here.

	* src/rasqal_query_transform.c: Support finding mentioned
	variables in GROUP BY

	(rasqal_query_expression_build_variables_use_map): Renamed from
	rasqal_query_filter_build_variables_use_map_in_internal

	(rasqal_query_graph_pattern_build_variables_use_map): Rename as
	above for FILTER expression.

	(rasqal_query_expression_build_variables_use_map_row): Renamed
	from rasqal_expression_expr_build_variables_use_map_row

	(rasqal_query_build_expressions_sequence_use_map_row) Lose unused
	query arg.

	(rasqal_query_build_variables_use_map): Tidy code and implement
	finding mentioned vars in list of GROUP BY expressions. Does not
	yet find declared EXPR as Var since SPARQL parser doesn't store it
	anywhere yet.

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/group-by1.rq:
	Add group-by1.rq for group by conditions

	* src/sparql_parser.y:
	(GroupClauseOpt): Do not add group asc/desc to group conditions
	list.

	* src/rasqal_expr.c:
	(rasqal_new_0op_expression): Remove RASQAL_EXPR_GROUP_COND_ASC and
	RASQAL_EXPR_GROUP_COND_DESC from autodocs

	* src/rasqal.h: Mark RASQAL_EXPR_GROUP_COND_ASC and
	RASQAL_EXPR_GROUP_COND_DESC as obsolete.

	* src/sparql_parser.y: Update for GroupCondition rules.

	(GroupConditionList): Added list of GroupCondition.

	(GroupCondition): Added.  FIXME: what does Expression AS Var mean
	in GROUP BY?

	(GroupClauseOpt): Now a list of GroupConditionList

	* src/sparql_parser.y: Implement GROUP_CONCAT and SAMPLE and
	update other builtin agg functions.

	(AggregateExpression): Added group concat and sample.

	(ExpressionOrStar): Added pulled out of CountAggregateExpression.

	(CountAggregateExpression): Simplified duplicate code handling an
	expression and * in one place.  Use
	rasqal_new_aggregate_function_expression() and set distinct flags.

	(SumAggregateExpression, AvgAggregateExpression,
	MinAggregateExpression, MaxAggregateExpression): Use
	rasqal_new_aggregate_function_expression() and set distinct flags.

	(GroupConcatAggregateExpression, SampleAggregateExpression): Added
	using rasqal_new_aggregate_function_expression() and setting
	distinct flags.

	* src/rasqal.h, src/rasqal_expr.c: Add
	rasqal_new_aggregate_function_expression() for built-in aggregate
	functions

	(rasqal_new_function_expression_common): Added internal function
	based on core of rasqal_new_function_expression2 and taking
	optional arg1 rasqal_expression for internal aggregate functions.

	(rasqal_new_function_expression2): Rewritten in terms of
	rasqal_new_function_expression_common.

	(rasqal_new_aggregate_function_expression):
	Added.  based on rasqal_new_function_expression_common.

	* src/rasqal.h: autodocs

	* src/sparql_lexer.l:
	(sparql_token_print): Handle GROUP_CONCAT and SAMPLE tokens

	* src/rasqal_expr.c, src/rasqal_query_write.c: Added expression
	class suport for group_concat() and sample()

	(rasqal_expression_clear, rasqal_expression_visit,
	rasqal_expression_write, rasqal_expression_print,
	rasqal_expression_is_constant,
	rasqal_query_write_sparql_expression): Add support for
	RASQAL_EXPR_SAMPLE and RASQAL_EXPR_GROUP_CONCAT.

	(rasqal_expression_evaluate): Add placeholders for group_concat()
	and sample() evaluation.  Do they have any meaning for
	non-aggregate function evaluation?

	* src/rasqal.h:
	Added RASQAL_EXPR_GROUP_CONCAT and
	RASQAL_EXPR_SAMPLE for SPARQL 1.1 agg functions.

	* src/sparql_parser.y: Added optional DISTINCT for built-in
	aggregate functions, setting bitflags.

	(%union): Added uninteger unsigned int for flags.

	(DistinctOpt): Moved earlier

	(CountAggregateExpression, SumAggregateExpression,
	AvgAggregateExpression, MinAggregateExpression,
	MaxAggregateExpression, FunctionCall): Add DistinctOpt and set
	expression flags if present.

	* src/rasqal.h: Added rasqal_expression_flags for
	rasqal_expression bitflags

	* src/rasqal_expr.c: #ws

	* tests/laqrs/syntax/agg-function-1.rq,
	tests/laqrs/syntax/agg-function1.rq: Rename test

	* tests/laqrs/syntax/Makefile.am,
	tests/laqrs/syntax/agg-function-1.rq: Test agg function with zero
	params

	* tests/laqrs/syntax/function-distinct1.rq: Update to latest draft
	aggregate function syntax; note example is not real.

	* src/sparql_parser.y: Start to handle latest draft aggregate
	function style (DISTINCT + parameters)

2010-03-29  Dave Beckett <dave@dajobe.org>

	* src/sparql_parser.y:
	(FunctionCall): Use rasqal_new_function_expression2

	* src/rasqal.h, src/rasqal_expr.c: Added support for sparql 1.1
	function parameters and flags.

	(rasqal_new_function_expression2): Added.

	(rasqal_new_function_expression): Deprecated for above

	* src/sparql_parser.y: Add support for function with optional
	DISTINCT.

	(DistinctOpt): Added, returning boolean (integer) flag.

	(FunctionCall): Add new clause for DISTINCT

	* tests/laqrs/syntax/Makefile.am,
	tests/laqrs/syntax/function-distinct1.rq: Added test for function
	with DISTINCT for sparql 1.1

	* src/sparql_parser.y: Add ArgList including braces, rename old
	ArgList to ArgListNoBraces.

2010-03-28  Dave Beckett <dave@dajobe.org>

	* rasqal.spec.in: Updates based on fedora spec - not tested.

2010-03-24  Dave Beckett <dave@dajobe.org>

	* src/rasqal_format_html.c, src/rasqal_internal.h: Rewrite in
	RAPTOR V2 API terms with raptor_xml_escape_string_write

	Add raptor_xml_escape_string_write for Raptor V1 to older
	function.

	* src/rasqal_format_html.c: code style

	* src/Makefile.am, src/rasqal_format_html.c,
	src/rasqal_internal.h, src/rasqal_result_formats.c: Add HTML Table
	results format Applied patch from
	http://bugs.librdf.org/mantis/view.php?id=360

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Implement RASQAL_EXPR_IF

	* tests/laqrs/syntax/if1.rq: turn into a constant IF expr that can
	be evaluated at parse time

	* configure.ac, src/rasqal.h: Update minimum raptor to 1.4.19 so
	that raptor_world typedef is always available

2010-03-23  Lauri Aalto <laalto@iki.fi>

	* src/rasqal.h: Use RAPTOR_V2_AVAILABLE instead of
	RAPTOR_WORLD_DECLARED (no longer available) to decide whether to
	declare raptor_world type

	* src/rasqal_xsd_datatypes.c: Fixed gcc4 warnings about using a
	char where an int is required

	* src/sparql_parser.y:
	(LoadQuery): Allow DEFAULT graphs i.e. NULL graph_uri.

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Use raptor_world not rasqal_world
	for raptor_new_uri()

2010-03-22  Dave Beckett <dave@dajobe.org>

	* src/sparql_parser.y:
	(UpdateQuery): Handle WITH URI INSERT DATA

	* src/rasqal.h: Record deprecated bnodeid functions.Adjust
	macros.

	Add RASQAL_DEPRECATED for
	rasqal_query_set_default_generate_bnodeid_parameters and
	rasqal_query_set_generate_bnodeid_handler.  If
	RASQAL_DISABLE_DEPRECATED is defined, remove all deprecated
	prototypes and typedefs.

	* src/sparql_parser.y: Handle LOAD ... list of DocUris... (INTO
	GraphUri)

	(IriRefList): Added to build a raptor_sequence of raptor_uri

	(LoadQuery): Use IriRefList to iterate over doc uris and make an
	update operation for each of them.  This may not correspond to the
	actual sparql update semantics, to be determined. If the list-load
	is one operation, it will need a rasqal_update_operation API
	change

	* src/sparql_parser.y: Handle updated SPARQL 1.1 update draft
	syntax removing GRAPH keyword in update operations, adding DEFAULT
	keyword

	* src/sparql_lexer.l: Added DEFAULT token

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): RASQAL_EXPR_BNODE fix for no arg.

	* src/rasqal_expr.c: Handle BNODE() with NULL expression arg.

	(rasqal_expression_clear, rasqal_expression_visit,
	rasqal_expression_evaluate, rasqal_expression_write,
	rasqal_expression_print, rasqal_expression_is_constant): Handle
	optional arg1 for RASQAL_EXPR_BNODE.

	* src/rasqal.h, src/rasqal_general.c, src/rasqal_internal.h,
	src/rasqal_query.c: Move generate blank node ID functionality to
	world class and deprecate query class methods

	rasqal_generate_bnodeid_handler2 added handler typedef taking world
	arg.

	rasqal_world gains bnodeid generating parameter fields and
	handler/user data fields.

	rasqal_query loses the bnodeid generating parameter fields,
	renamed to unused1-3.

	(rasqal_world_set_default_generate_bnodeid_parameters,
	rasqal_world_set_generate_bnodeid_handler): Added

	(rasqal_query_set_default_generate_bnodeid_parameters): Deprecated
	for rasqal_world_set_default_generate_bnodeid_parameters and now
	is a wrapper for it.

	(rasqal_query_set_generate_bnodeid_handler): Deprecated but still
	has to be stored since handler signature is not the same as new
	rasqal_generate_bnodeid_handler2
	typedef.

	(rasqal_query_generate_bnodeid): Prefer world bnodeid handler,
	then query handler, then world generate bnodeid functionality.

	* src/rasqal_general.c: Renamed some internal functions

	(rasqal_query_default_generate_bnodeid_handler): Renamed from
	rasqal_default_generate_bnodeid_handler

	* src/rasqal_general.c: autodocs

	* src/rasqal.h, src/rasqal_expr.c: Fix rasqal_expression_visit,
	rasqal_graph_pattern_visit_fn and rasqal_expression_visit_fn docs
	to match code

	* src/sparql_parser.y:
	(BuiltInCall): Handle BNODE() and BNODE(expr)

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/bnode2.rq:
	Add test for BNODE() with no args

	* tests/sparql/update/Makefile.am, tests/sparql/update/clear-4.rq,
	tests/sparql/update/insert-data-2.rq,
	tests/sparql/update/insert-data-3.rq,
	tests/sparql/update/insert-data-4.rq,
	tests/sparql/update/load-3.rq, tests/sparql/update/load-4.rq:
	Added laqrs / SPARQL 1.1 update draft syntax examples from

	http://lists.w3.org/Archives/Public/public-rdf-dawg/2010JanMar/0569.html

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/bnode1.rq,
	tests/laqrs/syntax/strdt1.rq, tests/laqrs/syntax/strdt2.rq: Update
	laqrs tests for bnode() and strdt()

	* src/rasqal_expr.c: Implement expression evaluation for IRI, URI,
	STRLANG, STRDT, BNODE.

	(rasqal_expression_evaluate): Implement RASQAL_EXPR_IRI,
	RASQAL_EXPR_URI, RASQAL_EXPR_STRLANG, RASQAL_EXPR_STRDT and
	RASQAL_EXPR_BNODE.

	* tests/laqrs/syntax/Makefile.am, tests/laqrs/syntax/bnode1.rq,
	tests/laqrs/syntax/if1.rq, tests/laqrs/syntax/iri1.rq,
	tests/laqrs/syntax/strdt1.rq, tests/laqrs/syntax/strlang1.rq,
	tests/laqrs/syntax/uri1.rq: Add LAQRS tests for new LAQRS (draft
	SPARQL 1.1) expressions

	* src/rasqal_expr.c, src/rasqal_query_write.c: Add expression
	support for STRLANG, STRDT, IF, URI, IRI and BNODE.

	(rasqal_expression_clear, rasqal_expression_visit,
	rasqal_expression_write, rasqal_expression_print,
	rasqal_expression_is_constant,
	rasqal_query_write_sparql_expression): Added cases for new
	expressions.  rasqal_op_labels and rasqal_sparql_op_labels gain
	labels for new tokens.

	(rasqal_expression_evaluate): Added dummy support for these
	expressions, causing a fatal error.

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL
	lexer/parser for STRLANG, STRDT, IF, IRI, URI and BNODE.

	* src/rasqal.h: Added operations for IF, URI, IRI, STRLANG, STRDT
	and BNODE expressions.

	rasqal_op gains RASQAL_EXPR_IF, RASQAL_EXPR_URI, RASQAL_EXPR_IRI,
	RASQAL_EXPR_STRLANG, RASQAL_EXPR_STRDT and RASQAL_EXPR_BNODE

2010-03-22  Lauri Aalto <laalto@iki.fi>

	* utils/roqet.c: Ported to raptor2 git head.
	raptor_parser_get_option_count() -> raptor_option_get_count()

2010-03-06  Dave Beckett <dave@dajobe.org>

	* src/rasqal.h: Note datetime does not write to literal value

	* src/rasqal_internal.h: Added prototypes for
	rasqal_xsd_date_check and rasqal_xsd_date_string_to_canonical

	* src/rasqal_datetime.c: Adjust normalized xsd:date - no trailing
	Z

	* src/rasqal_datetime.c: Fix
	rasqal_xsd_datetime_parse_and_normalize_common() for dates.  Add
	tests.

	(rasqal_xsd_datetime_parse_and_normalize_common): Handle day in
	common code and allow xsd:date to terminate on Z or +/- timezone.

	(rasqal_xsd_date_to_string): Terminate in Z Add test framework for
	xsd:date and adjust dateTime tests to check timezones with dates
	that canonicalize to a different date.

	* src/rasqal_datetime.c:
	(main): Rename d var to dt for dateTime

	* src/rasqal_datetime.c:
	Add rasqal_xsd_date and xsd:date check,
	normalization functions rasqal_xsd_date added based on y/m/d from
	rasqal_xsd_dateTime

	(rasqal_xsd_date_parse_and_normalize): Added calling
	rasqal_xsd_datetime_parse_and_normalize_common and copying the
	result fields over on success.

	(rasqal_xsd_date_to_string): Added.

	(rasqal_xsd_date_string_to_canonical): Added.

	(rasqal_xsd_date_check): Added.

	* src/rasqal_datetime.c:
	Start letting rasqal_xsd_datetime_parse_and_normalize_common()
	handle date

	(rasqal_xsd_datetime_parse_and_normalize_common): Renamed from
	rasqal_xsd_datetime_parse_and_normalize and takes is_dateTime
	boolean arg.  If set, checks hour, mins, secs and fractions of
	secs, otherwise sets that to 12:00:00.00 for
	xsd:date.

	(rasqal_xsd_datetime_parse_and_normalize): Call
	rasqal_xsd_datetime_parse_and_normalize_common with flag set.

	* src/rasqal_datetime.c: code style

2010-03-04  Dave Beckett <dave@dajobe.org>

	* NEWS.html, configure.ac, src/rasqal.h:
	Bumped version to 0.9.20

	* tests/sparql/bugs/352-result.ttl, tests/sparql/bugs/352.rq,
	tests/sparql/bugs/352.ttl, tests/sparql/bugs/Makefile.am,
	tests/sparql/bugs/manifest.ttl: Add tests for bug 352

	* docs/tmpl/section-general.sgml, docs/tmpl/section-literal.sgml:
	Update doc tmpls

	* docs/rasqal-sections.txt:
	Add rasqal_world_set_log_handler

	* tests/sparql/.gitignore, tests/sparql/bugs/354-result.ttl,
	tests/sparql/bugs/354.nt, tests/sparql/bugs/354.rq,
	tests/sparql/bugs/Makefile.am, tests/sparql/bugs/manifest.ttl: Add
	sparql bugs dir

	* configure.ac, tests/sparql/Makefile.am: Add bugs test area and
	test for Issue#0000354

	* src/rasqal_xsd_datatypes.c: code style

	* src/rasqal.h, src/rasqal_format_json.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_format_sv.c,
	src/rasqal_literal.c, src/rasqal_query_results.c,
	src/rasqal_query_write.c, src/rasqal_xsd_datatypes.c:
	Added literal type RASQAL_LITERAL_INTEGER_SUBTYPE to let subtypes
	of xsd:integer work.

	rasqal_literal_type gains (internal)
	RASQAL_LITERAL_INTEGER_SUBTYPE to handle literals that are
	sub-types of xsd:integer - so their parent is always
	RASQAL_LITERAL_INTEGER and for all other purposes, act as integer.

	(rasqal_literal_set_typed_value): If type is
	RASQAL_LITERAL_INTEGER_SUBTYPE, do not rewrite the datatype URI
	based on the literal type, but assume URI already there and parent
	type are correct.

	(rasqal_xsd_datatype_uri_to_type): Recognize when a type URI is
	found that is a subtype of xsd:integer, set literal type to
	RASQAL_LITERAL_INTEGER_SUBTYPE.

	(rasqal_xsd_datatype_is_numeric): Accept
	RASQAL_LITERAL_INTEGER_SUBTYPE as a numeric type.

	(rasqal_xsd_datatype_parent_type): Return RASQAL_LITERAL_INTEGER
	as parent type for RASQAL_LITERAL_INTEGER_SUBTYPE.

	Update all literal type switches to use
	RASQAL_LITERAL_INTEGER_SUBTYPE as RASQAL_LITERAL_INTEGER.

	* src/rasqal_xsd_datatypes.c:
	code style

2010-03-02  Lauri Aalto <laalto@iki.fi>

	* src/rasqal.h, src/rasqal_format_sparql_xml.c,
	src/rasqal_general.c, src/rasqal_internal.h, src/rasqal_query.c,
	utils/roqet.c:
	Ported to raptor2 git head while retaining support for raptor1.
	
	(rasqal_query_set_fatal_error_handler,
	rasqal_query_set_error_handler, rasqal_query_set_warning_handler):
	Flagged out for raptor2. Use rasqal_world_set_log_handler()
	instead.
	
	(rasqal_world_set_log_handler): Added new API function for raptor2
	only. 
	
	(rasqal_rowsource_sparql_xml_context): Flagged out error_handlers.
	Not needed with raptor2.
	
	(rasqal_query_results_get_rowsource_sparql_xml): No need to init
	error_handlers. raptor2 raptor_new_sax2() takes a raptor_locator*,
	not error_handlers containing raptor_locator*.
	
	(rasqal_world_open): Flagged out error_handlers magic.
	
	(rasqal_log_error_varargs): Support raptor2 raptor_log_messages and
	raptor_log_handlers.
	
	(rasqal_log_error): Removed unused internal function declaration.
	
	(rasqal_world_s): Flagged out error_handlers. Added support for
	raptor_log_handlers.
	
	(roqet_log_handler): Added.
	
	(main): Use raptor2 log_handler in roqet.

2010-02-28  Dave Beckett <dave@dajobe.org>

	* src/rasqal_query_results.c: Check for limit and offsets when
	reading incremental query results

	(rasqal_query_results_ensure_have_row_internal): When calling the
	execution factory get_row() method, check the query result limit
	and offsets are met and select a subsequence of the returned
	results.

	Intended to address Issue#000352 but may also be better done with
	other changes to QE1 to remove it's duplicate limit/offset
	checking in favour of this check.

2010-02-23  Dave Beckett <dave@dajobe.org>

	* src/rasqal_internal.h: Declare
	rasqal_escaped_name_to_utf8_string with printf format arg.

2010-02-22  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_general.c, src/rasqal_internal.h, src/rdql_lexer.l,
	src/sparql_lexer.l: raptor2 raptor_unicode_utf8_string_put_char(),
	raptor_unicode_utf8_string_get_char()

2010-02-21  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_algebra.c, src/rasqal_format_sparql_xml.c,
	src/rasqal_general.c, src/rasqal_query.c, src/rasqal_query_test.c,
	src/rasqal_raptor.c, src/rasqal_row.c,
	src/rasqal_rowsource_triples.c, src/rasqal_xsd_datatypes.c,
	src/rdql_lexer.l, src/rdql_parser.y, src/sparql_lexer.l,
	src/sparql_parser.y, tests/algebra/convert_graph_pattern.c,
	tests/engine/rasqal_construct_test.c,
	tests/engine/rasqal_graph_test.c,
	tests/engine/rasqal_limit_test.c,
	tests/engine/rasqal_order_test.c,
	tests/engine/rasqal_triples_test.c, utils/roqet.c: raptor2
	raptor_new_uri() with preprocessor macro for raptor1 compatibility

	* src/rasqal_algebra.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_literal.c,
	src/rasqal_rowsource.c, tests/algebra/convert_graph_pattern.c,
	utils/roqet.c: raptor2 raptor_new_iostream_to_file_handle() with
	preprocessor macro for raptor1 compatibility

	* src/rasqal_format_json.c, src/rasqal_format_sv.c,
	src/rasqal_internal.h, src/rasqal_literal.c,
	src/rasqal_query_write.c, src/sparql_parser.y: raptor2
	raptor_string_ntriples_write() with preprocessor macro for raptor1
	raptor_iostream_write_string_ntriples() compatibility

	* src/rasqal_feature.c, src/rasqal_general.c,
	src/rasqal_internal.h, src/rasqal_xsd_datatypes.c: raptor2
	raptor_new_uri_from_uri_local_name() with preprocessor macro for
	raptor1 compatibility

	* src/rasqal_expr.c, src/rasqal_internal.h, src/rasqal_query.c,
	src/rasqal_query_results.c, src/rasqal_query_transform.c,
	src/rdql_parser.y, src/sparql_parser.y: raptor2
	RAPTOR_LOG_LEVEL_WARN with preprocessor macro for raptor1
	compatibility

	* src/rasqal_general.c, src/rasqal_internal.h:
	raptor_unicode_decode_utf8_char() ->
	raptor_unicode_utf8_string_get_char()

2010-02-19  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_algebra.c, src/rasqal_expr.c,
	src/rasqal_format_json.c, src/rasqal_format_sparql_xml.c,
	src/rasqal_format_sv.c, src/rasqal_format_table.c,
	src/rasqal_general.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_literal.c,
	src/rasqal_query_write.c, src/rasqal_rowsource.c,
	src/rasqal_triple.c, src/rasqal_variable.c, src/sparql_parser.y,
	tests/algebra/convert_graph_pattern.c:
	Ported to raptor2 git head.
	  - raptor_iostream_*()  
	  - raptor_uri_write()
	  - raptor_new_qname_from_namespace_local_uri()

	Use preprocessor defines to maintain compatibility with raptor1. 

2010-02-18  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_literal.c:
	(rasqal_literal_print): DRY: Use rasqal_literal_write().

	(rasqal_literal_print_type): DRY: Use rasqal_literal_write_type().

	(rasqal_literal_write): raptor2
	raptor_iostream_write_string_ntriples() ->
	raptor_string_ntriples_write()

	* utils/roqet.c:
	updated roqet.c to compile on raptor2 git head

	* src/sparql_parser.y:
	(rasqal_sparql_query_language_iostream_write_escaped_counted_string):
	raptor2 raptor_iostream_write_string_ntriples() ->
	raptor_string_ntriples_write()

	* src/rasqal_format_json.c, src/rasqal_format_sv.c:
	(rasqal_query_results_write_json1,rasqal_query_results_write_sv):
	raptor2 raptor_iostream_write_string_ntriples() ->
	raptor_string_ntriples_write()

	* src/rasqal_query_write.c:
	(rasqal_query_write_sparql_uri,rasqal_query_write_sparql_literal):
	raptor2 raptor_iostream_write_qname() -> raptor_qname_write(),
	raptor_iostream_write_string_ntriples() ->
	raptor_string_ntriples_write()

	* src/rasqal_raptor.c:
	(ordinal_as_uri): Flagged out function needed only with raptor1

	* src/rasqal_raptor.c:
	(rasqal_raptor_new_triples_source): raptor2 raptor_parse_uri() ->
	raptor_parser_parse_uri()

2010-02-16  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_result_formats.c:
	(rasqal_query_results_formatter_write): NULL base_uri is valid.

	* src/fix-bison: Removed fix-bison %destructor hack.  Was required
	to get the raptor_world* param to raptor_free_uri() - no longer
	needed.

2010-02-15  Dave Beckett  <dave@dajobe.org>

	* Snapshotted rasqal_0_9_19 for 0.9.19 release

	* NEWS.html, RELEASE.html, configure.ac, src/rasqal.h: 0.9.19

	* rasqal.pc.in:
	Restore Requires: raptor ...

	* README.html: GIT

2010-02-14  Dave Beckett  <dave@dajobe.org>

	* Snapshotted rasqal_0_9_18 for 0.9.18 release

	* utils/Makefile.am: Add -lraptor to internal linking of utility
	and example programs.

	Added -lraptor to linking roqet, srxread and srxwrite so that on
	systems where indirect library symbols (here in libraptor) are not
	automatically found by looking up the base library (here
	librasqal), the programs work.  This should not affect user
	programs that link with rasqal since they use
	  pkg-config rasqal --libs
	or
	  rasqal-config --libs
	both of which add -lraptor.

	See also
	  Fedora bug 564885 for rasqal
	  https://bugzilla.redhat.com/show_bug.cgi?id=564885
	nd
	  http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
	  https://fedoraproject.org/wiki/UnderstandingDSOLinkChange

	Fixes Issue#0000347 http://bugs.librdf.org/mantis/view.php?id=347

2010-02-13  Dave Beckett <dave@dajobe.org>

	* src/rasqal.h:
	reorder to put query results methods together

	* src/rasqal_general.c: 2010

2010-02-12  Dave Beckett <dave@dajobe.org>

	* src/rasqal.h:
	reorder to group query_results functions

	* src/rasqal_literal.c:
	(rasqal_literal_as_node): Return NULL rather than reswitch and die.

	* src/rasqal_literal.c: autodocs

	* src/rasqal_literal.c:
	(rasqal_literal_as_node): Let reswitch - variable values return
	a NULL value for an unbound variable.

	* src/sparql_lexer.l:
	(sparql_copy_string_token): copy language NUL

	* src/sparql_lexer.l: code style

	* src/rdql_lexer.l: code style

	* src/rasqal_prefix.c: add includes

	* src/Makefile.am: Add rasqal_prefix.c to lib

	* src/rasqal_result_formats.c: code style

	* src/rasqal_expr.c, src/rasqal_prefix.c: Move rasqal_prefix
	class to rasqal_prefix.c

	* src/Makefile.am, src/rasqal_data_graph.c, src/rasqal_expr.c:
	Move rasqal_data_graph class to rasqal_data_graph.c

	* src/Makefile.am, src/rasqal_expr.c, src/rasqal_triple.c:
	Move rasqal_triple class to rasqal_triple.c

	* ChangeLog, ChangeLog.7, Makefile.am: Add ChangeLog.7 for 2009

	* .gitignore: do not ignore ChangeLog

2010-02-12  Lauri Aalto <laalto@iki.fi>

	* .gitignore: ignore *.stackdump files

	* src/rasqal_general.c: raptor2 compatible rasqal_log_level_labels

	* src/rasqal_query_results.c:
	(rasqal_query_results_get_triple): break out of switch properly
	with raptor2.

	* tests/algebra/convert_graph_pattern.c,
	tests/engine/rasqal_construct_test.c,
	tests/engine/rasqal_graph_test.c,
	tests/engine/rasqal_limit_test.c,
	tests/engine/rasqal_order_test.c,
	tests/engine/rasqal_triples_test.c: Ported test code to raptor2
	git HEAD with RAPTOR_V2_AVAILABLE flagging.

	* src/rasqal_algebra.c: raptor2 raptor_new_sequence()
	compatibility in test code.

	* utils/roqet.c: Ported roqet to raptor2 git HEAD with
	RAPTOR_V2_AVAILABLE flagging.

	* src/rdql_lexer.l, src/rdql_parser.y: RDQL parser/lexer:
	raptor2 raptor_uri calls

	* src/rasqal_raptor.c:
	(rasqal_raptor_new_triples_source): raptor2 statement_handler,
	generate_id_handler settings. Removed error_handler
	setting.
	(rasqal_raptor_statement_handler): Signature changed
	to accept non-const raptor_statement for raptor2.
	(rasqal_raptor_error_handler): Flagged out as unneeded with
	raptor2.

	* src/rasqal_raptor.c:
	(rasqal_raptor_error_handler): raptor2 raptor_locator_format()

	* src/rasqal_raptor.c:
	(raptor_statement_as_rasqal_triple): raptor2 compatible variant
	of the function

2010-02-11  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_raptor.c:
	(rasqal_raptor_new_triples_source): raptor2 raptor_new_parser()
	call

	* src/rasqal_algebra.c, src/rasqal_expr.c,
	src/rasqal_format_json.c, src/rasqal_format_sparql_xml.c,
	src/rasqal_format_sv.c, src/rasqal_general.c, src/rasqal_query.c,
	src/rasqal_query_test.c, src/rasqal_query_write.c,
	src/rasqal_result_formats.c, src/rasqal_row.c,
	src/rasqal_rowsource.c, src/rasqal_rowsource_graph.c,
	src/rasqal_rowsource_rowsequence.c, src/rasqal_rowsource_sort.c,
	src/rasqal_rowsource_triples.c, src/rasqal_variable.c,
	src/rasqal_xsd_datatypes.c, src/rdql_lexer.l, src/rdql_parser.y,
	src/sparql_lexer.l, src/sparql_parser.y: Work-in-progress to make
	rasqal compile with raptor2 git HEAD (with RAPTOR_V2_AVAILABLE
	defined).

	Changed RAPTOR_LOG_LEVEL_WARNING to RAPTOR_LOG_LEVEL_WARN

	Changed function call args:
	 * raptor_uri calls
	 * raptor_print_locator() -> raptor_locator_print()
	 * raptor_new_sequence():
	   raptor_sequence_{free,print}_handler -> raptor_data_..._handler
	 * raptor_qname_string_to_uri()

	* tests/.gitignore: ignore roqet.tmp in tests

2010-02-10  Dave Beckett <dave@dajobe.org>

	* src/rasqal_literal.c:
	(rasqal_literal_divide): Make decimal division call
	rasqal_xsd_decimal_divide() not add!

	* src/Makefile.am, src/rasqal_formula.c, src/rasqal_literal.c:
	Added rasqal_formula.c for rasqal_formula class code

	* src/rasqal_variable.c: Revert
	"(rasqal_new_variable_from_variable): Do not copy NULL expression"
	This reverts commit 124173f9eddde4a57ed184ebd650418503d53e5b.

	* src/rasqal_rowsource_join.c: Revert
	"(rasqal_new_join_rowsource): Do not copy a NULL expr" This
	reverts commit f9e92a72533cd8432c78175e0d65dce3392951da.

	* src/rasqal_expr.c:
	(rasqal_new_expression_from_expression): Allow NULL arg again for
	the sake of code simplicity.

	* src/rasqal_variable.c: Revert
	"(rasqal_new_variable_from_variable): Do not try to copy NULL
	literal pointer." This reverts commit
	b1df8da1d6fadab183457ead62ab019eccde81ec.

	* src/rasqal_literal.c:
	(rasqal_new_literal_from_literal): Allow NULL arg again for the sake
	of code simplicity.

	* src/rasqal_variable.c:
	(rasqal_new_variable_from_variable): Do not try to copy NULL
	literal pointer.

	* src/rasqal_literal.c: More assertions for NULL args for literal
	class.  Tidied internal autodocs.

	* src/rasqal_literal.c:
	(rasqal_new_decimal_literal_from_decimal): Remove assertions
	already checked in code

	* src/rasqal_literal.c: casts for literal class arg checking

	* src/rasqal_internal.h, src/rasqal_literal.c,
	src/sparql_parser.y:
	
	rasqal_new_formula() gains a world arg.

	* src/rasqal_literal.c: Code style: use var = ... calloc ( ...
	sizeof(*var) )

	* docs/tmpl/section-row.sgml,
	docs/tmpl/section-variables-table.sgml: doc words

	* docs/rasqal-docs.xml, docs/rasqal-sections.txt,
	docs/tmpl/section-query_results.sgml, docs/tmpl/section-row.sgml,
	docs/tmpl/section-variable.sgml,
	docs/tmpl/section-variables-table.sgml: Update docs to add row and
	variables-table sections and new functions

	* src/rasqal_query_results.c:
	(rasqal_query_results_add_row): This is public.  autodocs and
	check params

2010-02-10  Lauri Aalto <laalto@iki.fi>

	* .gitignore: ignore .libs, *.exe

	* src/rasqal_raptor.c: raptor_uri

	* src/rasqal_query_results.c:
	(rasqal_query_results_get_triple): Construct raptor_statement
	using v2 raptor_terms.

	(rasqal_new_query_results): Init static
	raptor_statement.

	(rasqal_free_query_results): Free terms owned by static
	raptor_statement.

2010-02-09  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_algebra.c, src/rasqal_engine.c,
	src/rasqal_engine_sort.c, src/rasqal_expr.c, src/rasqal_feature.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_format_table.c,
	src/rasqal_general.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_literal.c, src/rasqal_map.c,
	src/rasqal_query.c, src/rasqal_query_results.c,
	src/rasqal_query_transform.c, src/rasqal_query_write.c,
	src/rasqal_raptor.c, src/rdql_lexer.l, src/sparql_lexer.l:
	
	Work-in-progress to make rasqal compile with raptor2 git HEAD (with
	RAPTOR_V2_AVAILABLE defined).

	(rasqal_escaped_name_to_utf8_string): Changed internal function
	signature to be compatible with both raptor1 and raptor2.

	(rasqal_query_results_get_triple): Construct raptor_statement
	using v2 raptor_terms.

	(rasqal_new_query_results): Init static raptor_statement.

	(rasqal_free_query_results): Free terms owned by static
	raptor_statement.

	Changed RAPTOR_LOG_LEVEL_WARNING to RAPTOR_LOG_LEVEL_WARN

	Changed function call args:
	  * raptor_new_namespaces()
	  * raptor_new_xml_writer()
	  * raptor_new_qname(), raptor_new_qname_from_namespace_local_name()
	  * raptor_qname_string_to_uri()
	  * raptor_error_handlers_init()
	  * raptor_new_sax2()
	  * raptor_new_iostream_to_string(),
	    raptor_new_iostream_to_file_handle()
	  * raptor_uri calls
	  * raptor_print_ntriples_string()
	  * raptor_new_sequence(),
	    raptor_sequence_{free,print}_handler ->  raptor_data_..._handler

	* src/rasqal_general.c, src/rasqal_internal.h, src/rdql_lexer.l,
	src/sparql_lexer.l:
	(rasqal_escaped_name_to_utf8_string): Changed internal function
	signature to be compatible with both raptor1 and raptor2.

2010-02-09  Dave Beckett <dave@dajobe.org>

	* src/rasqal_expr.c:
	(rasqal_new_prefix): Allow NULL prefix

	* src/rasqal_graph_pattern.c:
	(rasqal_new_graph_pattern_from_sequence): Allow NULL
	graph_patterns seq.

	* src/rasqal_variable.c:
	(rasqal_new_variable_from_variable): Do not copy NULL expression
	value.

	* src/rasqal_expr.c:
	(rasqal_expression_evaluate): Allow locator arg to be NULL.

	* src/rasqal_rowsource_join.c:
	(rasqal_new_join_rowsource): Do not copy a NULL expr

	* src/rasqal_expr.c, src/rasqal_graph_pattern.c,
	src/rasqal_result_formats.c: Add a lot of assertions for
	validating parameters are not NULL.

	* src/rasqal_feature.c, src/rasqal_general.c,
	src/rasqal_internal.h, src/rasqal_query.c,
	src/rasqal_query_results.c: Add a lot of assertions for validating
	parameters are not NULL.

	* tests/.gitignore: Ignore test output junk

	* utils/.gitignore: Ignore example exes

	* src/rasqal_format_json.c:
	(rasqal_query_results_write_json1): Work when query is NULL and
	take world from query results.

	* src/rasqal_internal.h, src/rasqal_query_results.c: Add
	rasqal_query_results_get_world()

	* utils/Makefile.am: Add examples target

	* utils/Makefile.am: Added srxwrite example to create a query
	results via API and write it

	* utils/srxwrite.c: Added srxwrite example to create a query results
	via API and write it

	* src/rasqal_query_results.c: (rasqal_query_results_get_binding_name):
	Use variables table to get projection order if there is no query

	* src/rasqal_format_sparql_xml.c, src/rasqal_row.c: Change
	rasqal_row_set_value_at semantics to copy the passed-in literal.

	(rasqal_row_set_value_at): Free any existing literal and copy the
	literal given.  Update all callers to above semantics.

	* src/rasqal.h, src/rasqal_row.c,
	src/rasqal_rowsource_assignment.c, src/rasqal_rowsource_graph.c,
	src/rasqal_rowsource_join.c, src/rasqal_rowsource_project.c: Give
	row construct a world parameter like other constructors

	(rasqal_new_row_for_size): Gains world param.

	(rasqal_new_row_common): Gains world parameter.  Update all
	callers.

2010-02-08  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_internal.h, src/rasqal_literal.c:
	(rasqal_literal_string_to_native): Deleted error_handler, error_data
	args from internal function - not used.

	* src/rasqal_format_sparql_xml.c:
	(rasqal_query_results_get_rowsource_sparql_xml): Removed redundant
	call to raptor_sax2_set_characters_handler().

	* src/rasqal_algebra.c, src/rasqal_engine.c,
	src/rasqal_engine_sort.c, src/rasqal_format_sparql_xml.c,
	src/rasqal_format_table.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_map.c, src/rasqal_query.c,
	src/rasqal_query_results.c, src/rasqal_query_transform.c:
	
	raptor_new_sequence(), raptor_sequence_{free,print}_handler ->
	raptor_data_..._handler

	* src/rasqal_literal.c:
	raptor_qname_string_to_uri()

	* src/rasqal_literal.c:
	raptor_print_ntriples_string()

	* src/rasqal_internal.h, src/rasqal_literal.c:
	(rasqal_literal_string_to_native): Deleted error_handler, error_data
	args from internal function - not used.

	* src/rasqal_algebra.c, src/rasqal_graph_pattern.c:
	
	raptor_new_iostream_to_file_handle()

	* src/rasqal_expr.c, src/rasqal_feature.c,
	src/rasqal_format_sparql_xml.c, src/rasqal_general.c,
	src/rasqal_literal.c, src/rasqal_query.c, src/rasqal_query_write.c:
	
	raptor_uri

	* src/rasqal_format_table.c:
	raptor_new_iostream_to_string()

	* src/rasqal_format_sparql_xml.c:
	(rasqal_query_results_get_rowsource_sparql_xml): Removed redundant
	call to raptor_sax2_set_characters_handler().

	* src/rasqal_format_sparql_xml.c:
	raptor_new_sax2()

	* src/rasqal_format_sparql_xml.c:
	raptor_error_handlers_init()

	* src/rasqal_format_sparql_xml.c:
	
	raptor_new_qname_from_namespace_local_name()

	* src/rasqal_format_sparql_xml.c:
	raptor_new_qname()

	* src/rasqal_format_sparql_xml.c:
	raptor_new_xml_writer()

	* src/rasqal_format_sparql_xml.c, src/rasqal_query.c,
	src/rasqal_query_write.c:
	raptor_new_namespaces()

	* src/rasqal_expr.c, src/rasqal_query.c,
	src/rasqal_query_results.c, src/rasqal_query_transform.c:
	
	RAPTOR_LOG_LEVEL_WARNING -> RAPTOR_LOG_LEVEL_WARN

	* src/rasqal_internal.h: raptor_simple_message_handler ->
	raptor_message_handler

2010-02-08  Dave Beckett <dave@dajobe.org>

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_variable.c: Export
	rasqal_variables_table_add to public API.

	* utils/srxread.c: Use only public API.

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_query_results.c,
	src/rasqal_row.c, src/rasqal_variable.c: Export to public API
	functions and structs to allow creating standalone results

	rasqal_variables_table added to public API (opaque struct)

	rasqal_new_variables_table() and rasqal_free_variables_table() added
	to public API to make a variables table and free it.

	rasqal_query_results_type enum added to public API for use with
	rasqal_new_query_results().

	rasqal_new_query_results() added to public API to create a static
	query result set.

	rasqal_query_results_add_row() added to public API to add a row to a
	static query result set.  Adjust to return a failure status.

	rasqal_new_row_for_size(), rasqal_free_row() and
	rasqal_row_set_value_at() added to public API to make a row with
	literal values.  Add docs plus argument and offset checking to
	rasqal_row_set_value_at().

	* utils/srxread.c: #ws

	* utils/srxread.c: Use rasqal_new_query_results_formatter2

	* docs/rasqal-docs.xml, docs/tmpl/section-data.sgml,
	docs/tmpl/section-expression.sgml,
	docs/tmpl/section-graph_pattern.sgml,
	docs/tmpl/section-literal.sgml, docs/tmpl/section-prefix.sgml,
	docs/tmpl/section-query.sgml,
	docs/tmpl/section-query_results.sgml,
	docs/tmpl/section-query_results_formatter.sgml,
	docs/tmpl/section-triple.sgml, docs/tmpl/section-updates.sgml,
	docs/tmpl/section-variable.sgml: Updated doc templates.  Added
	section updates.

	* src/rasqal.h: rasqal_update_operation - autodocs for flags

	* src/rasqal_expr.c: rasqal_prefix_print - autodocs

	* docs/rasqal-sections.txt: Add section-updates

	* src/rasqal_query_results.c: autodocs

	* src/rasqal.h, src/rasqal_query_results.c: Added query read and
	write functions with name, mime type and format args.

	(rasqal_query_results_write2, rasqal_query_results_read2): Added
	with new name and mime_type args deprecating versions without the
	2 suffix.

	* src/rasqal_query_results.c: Use
	rasqal_new_query_results_formatter2 in query results read/write
	methods.

	(rasqal_query_results_write, rasqal_query_results_read): Use
	rasqal_new_query_results_formatter2 with NULL name and mime type
	args.

	* utils/roqet.c, utils/srxread.c: Use
	rasqal_new_query_results_formatter2 in utilities

	* src/rasqal.h, src/rasqal_result_formats.c: Added
	rasqal_new_query_results_formatter2 with format name, mime type
	and URI args.

	(rasqal_new_query_results_formatter2): Added

	(rasqal_new_query_results_formatter,
	rasqal_new_query_results_formatter_by_mime_type): Deprecated for
	the above.

	* src/rasqal.h, src/rasqal_algebra.c, src/rasqal_internal.h,
	src/rasqal_literal.c, src/rasqal_map.c: Add status return code for
	literal, algebra node, map print methods.

	(rasqal_literal_print, rasqal_map_print,
	rasqal_algebra_node_print): Return int status.

	* src/rasqal_variable.c: autodocs

	* src/rasqal_expr.c: autodocs

	* src/rasqal_graph_pattern.c: autodocs

	* src/rasqal_expr.c: autodocs

	* src/rasqal_query_write.c: Update query writing for older laqrs
	insert/delete forms.

	(rasqal_query_write_sparql_20060406): Handles LAQRS INSERT/DELETE
	experimental forms.  Add comments for what SPARQL 1.1 (Draft)
	Update forms are done.

	* tests/sparql/update/Makefile.am: insert-2.rq and delete-data-2.rq
	now pass

2010-02-07  Dave Beckett <dave@dajobe.org>

	* src/rasqal_query_write.c: Format SPARQL Update 1.1 output

	(rasqal_query_write_sparql_triple_data): Added to help write
	triple data blocks - GP known to contain just triples.

	* src/sparql_parser.y: Set RASQAL_UPDATE_FLAGS_SILENT for CREATE /
	DROP SILENT

	* src/rasqal.h, src/rasqal_query.c, src/rasqal_query_results.c,
	src/rasqal_query_transform.c: Delete RASQAL_QUERY_VERB_CLEAR /
	CREATE / DROP / LOAD

	* src/sparql_parser.y: Use RASQAL_UPDATE_FLAGS_DATA to mark INSERT /
	DELETE DATA is using triples.

	* src/rasqal.h: Add RASQAL_UPDATE_FLAGS_DATA to rasqal_update_flags
	for triple data.

	* src/sparql_parser.y: Add UpdateOperationList to allow sequences of
	update operations

	* tests/sparql/update/Makefile.am: delete-2.rq passes

	* src/sparql_parser.y: (UpdateQuery): Use WhereClauseOpt to allow
	optional WHERE

	* tests/sparql/update/Makefile.am, tests/sparql/update/clear-1.rq,
	tests/sparql/update/clear-2.rq, tests/sparql/update/clear-3.rq,
	tests/sparql/update/create-1.rq, tests/sparql/update/create-2.rq,
	tests/sparql/update/delete-1.rq, tests/sparql/update/delete-2.rq,
	tests/sparql/update/delete-data-1.rq,
	tests/sparql/update/delete-data-2.rq,
	tests/sparql/update/drop-1.rq, tests/sparql/update/drop-2.rq,
	tests/sparql/update/insert-1.rq, tests/sparql/update/insert-2.rq,
	tests/sparql/update/insert-data-1.rq,
	tests/sparql/update/insert-delete-1.rq,
	tests/sparql/update/load-1.rq, tests/sparql/update/load-2.rq:
	Update tests from
	http://www.w3.org/TR/2010/WD-sparql11-update-20100126/

	* tests/sparql/update/Makefile.am,
	tests/sparql/update/delete-data-2.rq: Add delete-data-2.rq from
	http://www.w3.org/TR/2010/WD-sparql11-update-20100126/

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_update.c,
	src/sparql_parser.y: Each rasqal_update_operation can now do
	inserts and deletes in one.

	Remove update types insert, delete and merge into
	RASQAL_UPDATE_TYPE_UPDATE.

	Added enum RASQAL_UPDATE_FLAGS_SILENT for capturing SILENT from
	SPARQL update.

	rasqal_update_operation gains both an insert and delete set of
	templates.

	(rasqal_new_update_operation): Gains two templates args to replace
	one and a flags arg.  Update callers to create one
	rasqal_update_operation instead of 1 or 2.

	* src/sparql_parser.y: Moved WITH ... INSERT/DELETE ... WHERE query
	into rasqal_update_operation form

	* src/rasqal.h, src/rasqal_graph_pattern.c, src/rasqal_internal.h,
	src/rasqal_update.c, src/sparql_parser.y: Added
	rasqal_new_basic_graph_pattern_from_triples()

	(rasqal_new_basic_graph_pattern_from_triples): Added to create a
	basic graph pattern form a sequence of triples.

	* src/sparql_parser.y: improve error message for beyond SPARQL 1.0
	extensions.

	* src/sparql_parser.y: Write update operations into query updates

	Add update to lexer/parser union of type rasqal_update_operation.

	Add destructor for GraphTriples as type rasqal_update_operation

	Make all update queries return RASQAL_QUERY_VERB_UPDATE except for
	previously used RASQAL_QUERY_VERB_INSERT and
	RASQAL_QUERY_VERB_DELETE that are deprecated now.

	(GraphTriples) creates and returns an update operation.

	(InsertQuery, UpdateQuery, DeleteQuery, ClearQuery, DropQuery):
	Create updates rather than store in query structure directly.

	* src/rasqal_internal.h, src/rasqal_query.c: Remove query
	graph_uri and document_uri fields in preference to updates field.

	* src/rasqal_update.c: rasqal_new_update_operation args can be
	NULL for CLEAR.

	* src/rasqal.h, src/rasqal_update.c: Sort rasqal_update_type and
	fix labels

	* src/rasqal.h, src/rasqal_expr.c, src/rasqal_graph_pattern.c,
	src/rasqal_internal.h, src/rasqal_literal.c, src/rasqal_query.c,
	src/rasqal_row.c, src/rasqal_update.c, src/rasqal_variable.c:
	Debug print methods now return int status to match
	raptor_sequence_print_handler method.

	* src/sparql_parser.y: (LoadQuery): Store document and graph URIs
	in update operations.

	* src/rasqal_update.c: cast for malloc

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_query.c: Added
	rasqal_query_add_update_operation - internal for now

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_query.c: Add
	update reading methods to query class

	(rasqal_query_get_update_operations_sequence): Added to get sequence
	of updates.

	(rasqal_query_get_update_operation): Added to get an operation from
	sequence of updates.

	rasqal_query_s gains updates sequence field.

	(rasqal_free_query): Free updates sequence.

	(rasqal_query_print): Print updates

	* src/rasqal.h, src/rasqal_internal.h, src/rasqal_update.c: Add
	document_uri to rasqal_update_operation

	* src/Makefile.am, src/rasqal.h, src/rasqal_internal.h,
	src/rasqal_update.c: Add rasqal graph update type, structure and
	object functions

	Added rasqal_update_type enum for types of graph update

	Added rasqal_update_operation for holding an individual update

	(rasqal_update_type_label): Added to get label for update type.

	(rasqal_new_update_operation, rasqal_free_update_operation): Added
	constructor and destructor for update operation.

	(rasqal_update_operation_print): Added debug print method

	* src/rasqal_query.c: Add update operations to
	rasqal_query_verb_labels

	* src/rasqal.h, src/rasqal_query_results.c,
	src/rasqal_query_transform.c: Added RASQAL_QUERY_VERB_UPDATE for
	update operations

	rasqal_query_verb gains RASQAL_QUERY_VERB_UPDATE Update switch
	statements on this type to add new case.

	* src/sparql_parser.y: Restored LAQRS old INSERT and DELETE syntax
	with deprecated warnings.

	* tests/improve: allow recursive running of a test to skip dirs
	where it isn't supported

	* tests/sparql/update/Makefile.am: Mark insert-2.rq as expected to
	fail

	* src/sparql_parser.y: Revert "Improve ConstructTemplate and
	ConstructTriples rules"

	This reverts commit f3e05dc3d465ce12677fc2daa12c80dc4ffc278e.

	Get older tests to work at the cost of new test insert-2 failing.

	* src/sparql_parser.y: debug message fix

	* src/sparql_parser.y: Improve ConstructTemplate and
	ConstructTriples rules

	Down from expect 31 shift/reduce conflicts to
	13 (ConstructTriplesRest): Added for second optional clause in
	ConstructTriples to reduce conflicts.

	* src/sparql_parser.y: Adjust comment - EXPLAIN is LAQRS, not in
	SPARQL 1.1 draft

2010-02-06  Dave Beckett <dave@dajobe.org>

	* src/sparql_parser.y: Re-add SPARQL 1.1 WITH .. DELETE/INSERT
	From 5 shift/reduce conflicts to 31 shift/reduce conflicts - seems
	to be choices between two optional sequences of triples nearby.

	Add UpdateQuery option that (for now) marks it as an INSERT.

	(DeleteQuery): Switch to list of modify templates - which are
	discarded.

	(GraphTemplate): Added

	(ModifyTemplate, ModifyTemplateList): Added.

	(InsertQuery): Switch to list of modify templates - which are
	discarded.

	(UpdateQuery): Added for WITH alternatives.

	* src/sparql_parser.y: Split ConstructTriplesOpt into
	ConstructTriples and ConstructTriplesOpt

	(ConstructTriplesOpt): Moved empty case here

	(ConstructTriples): Added, calling ConstructTriplesOpt and
	handling a non-empty list of construct triples.  The above makes
	ConstructTemplate closer to the SPARQL 1.0 grammar for construct
	triples.  The difference is probably extra optional '.'s

	* src/sparql_parser.y: Revert to make existing sparql tests work

	Revert commits 83d66dd1c115b9f18b2043f13122630daad594d8
	18ce2f8f3fc61dd641068f6ff5fddc01df4106bc so that the older SPARQL
	tests work.  This makes the SPARQL 1.1 draft insert & delete forms
	tests fail.

	* tests/improve: truncate log to 15 lines only if too long

	* tests/rdql/testsuite/check-rdql: (toDebug): Discard @lang from
	"string"@lang^^datatype

	* tests/rdql/testsuite/check-rdql: #2010

	* .gitignore: Remove rdf files from top level .gitignore

	* docs/tmpl/section-query.sgml, docs/tmpl/section-variable.sgml:
	updated generated docs

	* tests/sparql/update/data.ttl: Data for sparql update test

	* RELEASE.html: 0.9.18

	* src/rasqal_algebra.c, src/rasqal_expr.c,
	src/rasqal_graph_pattern.c, src/rasqal_query.c,
	src/rasqal_rowsource.c, src/rasqal_variable.c: Use FILE* for
	autodocs not #FILE*

	* src/rasqal.h: rasqal_data_graph autodocs

	* src/rasqal_literal.c: rasqal_literal_print_type autodocs

	* src/rasqal.h: rasqal_data_graph autodocs

	* src/rasqal_literal.c: rasqal_literal_print autodocs

	* src/rasqal_query.c: remove autodocs indicator

	* src/rasqal_query_results.c: remove autodocs indicator

	* src/rasqal_general.c:
	rasqal_query_set_default_generate_bnodeid_parameters autodocs

	* src/rasqal_engine.c: remove autodocs indicator

	* .gitignore, RELEASE.html, autogen.sh, build/.gitignore,
	build/shave-libtool.in, build/shave.in, build/shave.m4,
	configure.ac: 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'.

	Delete SHAVE.

	* NEWS.html, configure.ac, src/rasqal.h:
	Bumped version to 0.9.18

	* src/sparql_lexer.l:
	Make sparql_token_free static

	* src/rasqal.h:
	Add user_data field to rasqal_variable.

	rasqal_variable gains user_data field.

	Fixes Issue#0000320
	http://bugs.librdf.org/mantis/view.php?id=320

	* src/rasqal_format_json.c: Use application/json for JSON results
	format mime type

	(rasqal_init_result_format_json): Register mime type
	application/json instead of text/json for JSON results format.
	
	Fixes Issue#0000323 http://bugs.librdf.org/mantis/view.php?id=323

2010-02-05  Dave Beckett <dave@dajobe.org>

	* src/rasqal_format_sv.c: Give CSV and TSV query result formats
	mime types and URIs

	(rasqal_init_result_format_sv): Register result format 'csv' with
	URI http://www.ietf.org/rfc/rfc4180.txt and result format 'tsv'
	with mime type text/tab-separated-values and URI
	http://www.iana.org/assignments/media-types/text/tab-separated-valuesValues
	taken from Issue#0000345.

	Fixes Issue#0000345 http://bugs.librdf.org/mantis/view.php?id=345

2010-02-05  Lauri Aalto <laalto@iki.fi>

	* src/rasqal_format_table.c:
	(rasqal_init_result_format_table): Fixed typo in result format
	MIME type.	

	Fixes Issue #0000343
	http://bugs.librdf.org/mantis/view.php?id=343

2010-02-01  Dave Beckett <dave@dajobe.org>

	* configure.ac: Set and enforce raptor max version of <= 1.8.99

2010-01-31  Dave Beckett <dave@dajobe.org>

	* src/sparql_lexer.l: Make sparql_token_free usable outside this
	module.

2010-01-24  Dave Beckett <dave@dajobe.org>

	* rasqal.pc.in: Use pkg-config (undocumented) Requires.private for
	raptor

2010-01-19  Dave Beckett <dave@dajobe.org>

	* src/sparql_parser.y: Alter DELETE to take a list of templates
	(sub-graphs) to delete.

	* src/sparql_parser.y: make WITH <uri> DELETE ... INSERT ... WHERE
	.. SPARQL 1.1 update (draft) work

	Because the grammar is ambiguous in several places and unstable,
	in this grammar WITH <uri> is required, not optional as the
	grammar makes it.

	Shift/reduce conflicts goes from 5 to 13 probably because of
	insert/delete ambiguity.

	(ConstructTriples): Added; was part of ConstructTriplesOpt

	(GraphTemplate): Added.

	(ModifyTemplate, ModifyTemplateList): To form list of graphs to
	update.  This data is thrown away now, not stored.

	(UpdateQuery): Added but pretending to be INSERT verb.  Only
	supports WITH <uri> DELETE { ... } INSERT { ... } WHERE ...  form
	with no optional WITH; otherwise this is even more ambiguous.

	* tests/sparql/update/insert-1.rq: ws

	* src/sparql_lexer.l, src/sparql_parser.y: Add SPARQL 1.1 update
	draft LOAD <documentUri> [ INTO <graph URI>]

	Added INTO keyword to sparql lexer

	(LoadQuery): Added with the two forms, storing the document URI as
	well as the optional graph URI

	* src/rasqal_internal.h, src/rasqal_query.c: Add document_uri
	field to rasqal_query for SPARQL 1.1 update LOAD document URI

	* src/rasqal.h, src/rasqal_query_results.c,
	src/rasqal_query_transform.c: Add RASQAL_QUERY_VERB_LOAD for
	SPARQL 1.1 update draft LOAD command

	* src/sparql_parser.y: Code style - break lines and whitespace

	* src/sparql_parser.y: Code style - break lines, whitespace, move
	seq size out of loops.

	* src/sparql_parser.y: Code style - break long lines.

	* src/sparql_parser.y: Add DELETE triples syntax from SPARQL 1.1
	update draft

	(DeleteQuery): Add DELETE DATA { triples} form, storing the
	triples to delete in the rasqal_query constructs field, for now.

	* src/sparql_parser.y: Add INSERT triples syntax from SPARQL 1.1
	update draft

	(GraphTriples): Added to turn a block of triples with optional
	graph URI into query structure.  The insert triples are stored in
	the query construct triples field.

	(InsertQuery): Allow SPARQL 1.1 update draft form inserting a set
	of triples with INSERT DATA { triples }.

	(GraphpatternListOpt): Fix error message label

	* src/sparql_parser.y: Add CREATE and DROP syntax from SPARQL 1.1
	update draft

	* src/rasqal.h, src/rasqal_query_results.c,
	src/rasqal_query_transform.c: Add RASQAL_QUERY_VERB_CREATE and
	RASQAL_QUERY_VERB_DROP for SPARQL 1.1 update draft

	* src/sparql_parser.y:
	Added SPARQL 1.1 Update CLEAR & CLEAR GRAPH

	<uri> (ClearQuery): Added.  Stores graph URI when given, in
	rasqal_query field graph_uri.

	* tests/sparql/update/Makefile.am:
	Use -i laqrs in testing for now

	* src/sparql_lexer.l:
	(sparql_token_print): Add missing tokens

	* src/rasqal_internal.h, src/rasqal_query.c: rasqal_query gains
	graph_uri field for storing CLEAR/DROP graph uri

	* src/rasqal.h, src/rasqal_query_results.c,
	src/rasqal_query_transform.c: Added RASQAL_QUERY_VERB_CLEAR for
	SPARQL 1.1 update CLEAR verb

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	LOAD keyword

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	DROP keyword

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	DATA keyword

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	SILENT keyword

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	CREATE keyword

	* src/sparql_lexer.l, src/sparql_parser.y: Added SPARQL 1.1 Update
	CLEAR keyword

	* configure.ac, tests/sparql/Makefile.am,
	tests/sparql/update/Makefile.am, tests/sparql/update/bad-1.rq,
	tests/sparql/update/clear-1.rq, tests/sparql/update/clear-2.rq,
	tests/sparql/update/clear-3.rq, tests/sparql/update/create-1.rq,
	tests/sparql/update/create-2.rq, tests/sparql/update/delete-1.rq,
	tests/sparql/update/delete-data-1.rq,
	tests/sparql/update/drop-1.rq, tests/sparql/update/drop-2.rq,
	tests/sparql/update/insert-1.rq, tests/sparql/update/insert-2.rq,
	tests/sparql/update/insert-data-1.rq,
	tests/sparql/update/insert-delete-1.rq,
	tests/sparql/update/load-1.rq, tests/sparql/update/load-2.rq: Add
	SPARQL 1.1 Update tests

	* src/sparql_lexer.l, src/sparql_parser.y: Added WITH keyword to
	SPARQL 1.1 (draft) / LAQRS

2010-01-06  Dave Beckett <dave@dajobe.org>

	* LICENSE.html: 2010

	* TODO.html: 2010

	* INSTALL.html: 2010

	* RELEASE.html: 2010

	* README.html: 2010

	* NEWS.html: 2010

2010-01-02  Dave Beckett <dave@dajobe.org>

	* tests/engine/.gitignore: Ignore deps

	* docs/tmpl/.gitignore: Update another .gitignore

	* .gitignore, build/.gitignore, docs/.gitignore, src/.gitignore,
	tests/algebra/.gitignore, tests/engine/.gitignore, utils/.gitignore:
	
	Add .gitignore to replace SVN properties svn:ignore
