Redland
view release on metacpan or search on metacpan
redland/rasqal/ChangeLog.3 view on Meta::CPAN
tests/sparql/regex/regex-query-002.rq,
tests/sparql/regex/regex-query-003.rq,
tests/sparql/regex/regex-query-004.rq,
tests/sparql/Expr1/expr-1.rq, tests/sparql/Expr1/expr-2.rq,
tests/sparql/Expr1/expr-3.rq, tests/sparql/Expr2/query-bev-1.rq,
tests/sparql/Expr2/query-bev-3.rq,
tests/sparql/Expr2/query-bev-4.rq,
tests/sparql/Expr2/query-bev-5.rq,
tests/sparql/Expr2/query-bev-6.rq,
tests/sparql/ExprBuiltins/q-datatype-1.rq,
tests/sparql/ExprBuiltins/q-str-1.rq,
tests/sparql/ExprBuiltins/q-str-2.rq,
tests/sparql/ExprBuiltins/q-str-3.rq,
tests/sparql/ExprBuiltins/q-str-4.rq,
tests/sparql/ExprEquals/query-eq-1.rq,
tests/sparql/ExprEquals/query-eq-2.rq,
tests/sparql/ExprEquals/query-eq-3.rq,
tests/sparql/ExprEquals/query-eq-4.rq,
tests/sparql/ExprEquals/query-eq-5.rq,
tests/sparql/ExprEquals/query-eq2-1.rq,
tests/sparql/ExprEquals/query-eq2-2.rq,
tests/sparql/SyntaxFull/manifest.ttl,
tests/sparql/SyntaxFull/syntax-expr-01.rq,
tests/sparql/SyntaxFull/syntax-expr-05.rq,
tests/sparql/SyntaxFull/syntax-expr-06.rq: Updates from DAWG CVS
* rasqal_query.c: Moved rasqal_query_result_row to
rasqal-internal.h
(rasqal_new_query_result_row): Handle no order_conditions_sequence
present. Set NULL literal values when they appear, as from
OPTIONAL.
(rasqal_query_results_update): Added, based on core of
rasqal_query_results_next to get next result from query engine,
including offsets.
(rasqal_query_execute): Use rasqal_query_results_update when not
sorting and make a query_results->row
(rasqal_free_query_results): Free any row field used.
(rasqal_query_results_get_bindings,
rasqal_query_results_get_binding_value,
rasqal_query_results_get_binding_value_by_name): Return row
values, using query_results row field for stream results.
* rasqal_raptor.c (rasqal_raptor_bind_match): Use
rasqal_new_literal_from_literal when binding literal values, do
not turn them into nodes this early.
* tests/sparql/sort/Makefile.am: sort-4 sort-7 pass now only fail
sort-6
* rasqal_expr.c (rasqal_expression_evaluate): For case
RASQAL_EXPR_LT, RASQAL_EXPR_GT, RASQAL_EXPR_LE, RASQAL_EXPR_GE -
invert the test for the result of rasqal_literal_compare test as
it was totally backwards for ints and doubles.
* rasqal_literal.c (rasqal_literal_compare): Return correct <0, 0,
>0 for integers and doubles. It was formerly negative the right
result.
* rasqal_internal.h: Added struct rasqal_query_result_row internal
for now. rasqal_query_results gains field row for use as the
current result row when streaming results.
* tests/sparql/check-sparql: tidy messages
* rasqal_query.c (rasqal_new_query_result_row): Just do
allocations here, and use rasqal_query_result_row_update to update
the contents from the current query engine result.
(rasqal_query_result_row_update): Added, updating the given row
with the current query engine result.
2005-06-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal_literal.c (rasqal_literal_print):
Fix formats for decimal, datetime
* rasqal_query.c (rasqal_query_results_write_xml_20041221,
rasqal_query_results_write_xml_result2,
rasqal_query_results_get_triple): Handle RASQAL_LITERAL_FLOAT (as
a double), RASQAL_LITERAL_DECIMAL (as a string) and
RASQAL_LITERAL_DATETIME (as a string).
* rasqal_literal.c (rasqal_new_double_literal): Added, based on
rasqal_new_floating_literal.
(rasqal_new_floating_literal): Now a wrapper around the above.
(rasqal_literal_string_to_native): Promote xsd:float too.
(rasqal_free_literal, rasqal_literal_print,
rasqal_literal_as_boolean, rasqal_literal_as_integer,
rasqal_literal_as_floating, rasqal_literal_as_string,
rasqal_literal_compare, rasqal_literal_equals,
rasqal_literal_as_node): Handle RASQAL_LITERAL_FLOAT (as a
double), RASQAL_LITERAL_DECIMAL (as a string) and
RASQAL_LITERAL_DATETIME (as a string).
* rasqal_redland.c: Use RASQAL_LITERAL_DOUBLE instead of
RASQAL_LITERAL_FLOATING
* sparql_lexer.l, rdql_lexer.l, rasqal_expr.c: Replace
rasqal_new_floating_literal with rasqal_new_double_literal
* rasqal_general.c: Added rasqal_xsd_float_uri URI constant.
(rasqal_uri_init, rasqal_uri_finish): Init/free it.
* rasqal_internal.h: Added rasqal_xsd_float_uri.
* rasqal.h: Added RASQAL_LITERAL_DOUBLE (formerly
RASQAL_LITERAL_FLOATING), RASQAL_LITERAL_FLOAT,
RASQAL_LITERAL_DECIMAL and RASQAL_LITERAL_DATETIME. float uses
the 'double floating' field. decimal and datetime use the string
field, for now. Deprecated rasqal_new_floating_literal Added
prototype for rasqal_new_double_literal
* roqet.c: Added a -e/--exec option to execute a query string
directly. Usage updated to show the two forms.
2005-06-22 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* Makefile.am: Added ChangeLog.1 ChangeLog.2
* win32_rasqal_config.h: win32 fixes from John Barstow.
2005-06-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
redland/rasqal/ChangeLog.3 view on Meta::CPAN
tests/sparql/ExprEquals/result-eq2-1.ttl,
tests/sparql/ExprEquals/result-eq2-2.ttl,
tests/sparql/Makefile.am, tests/sparql/regex/Makefile.am,
tests/sparql/regex/manifest.n3,
tests/sparql/regex/regex-data-01.n3,
tests/sparql/regex/regex-query-001.rq,
tests/sparql/regex/regex-query-002.rq,
tests/sparql/regex/regex-query-003.rq,
tests/sparql/regex/regex-query-004.rq,
tests/sparql/regex/regex-result-001.n3,
tests/sparql/regex/regex-result-002.n3,
tests/sparql/regex/regex-result-003.n3,
tests/sparql/regex/regex-result-004.n3: Import Expr1 Expr2
ExprBuiltins ExprEquals regex from DAWG tests
2005-06-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal_engine.c (rasqal_select_NULL_last_compare): Added helper
for removing duplicate select variables.
(rasqal_engine_assign_variables): Look for duplicate select
variables, warn about them and remove them by sorting and then
deleting NULL variables.
* tests/sparql/syntax/Makefile.am: Added select-dup.rq
* tests/sparql/syntax/select-dup.rq: Test for duplicates in select
2005-06-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* tests/sparql/examples/Makefile.am:
sparql-query-example-Testing-Values-isBlank now works
* tests/sparql/survey/Makefile.am: survey-2 now works.
* rasqal_query.c (rasqal_query_prepare): Call
rasqal_engine_merge_basic_graph_patterns
* rasqal_engine.c (rasqal_engine_join_basic_graph_patterns): Move
the triples and constraints from a source to a destination graph
pattern.
(rasqal_engine_make_basic_graph_pattern): Use
rasqal_engine_join_basic_graph_patterns to merge:
1) a group of all basic graph patterns
2) an optional group of all basic graph patterns
3) a graph pattern with 1 sub-graph pattern
Have to play some games with graph pattern operators.
(rasqal_engine_merge_basic_graph_patterns): Use
rasqal_engine_join_basic_graph_patterns to merge all basic graph
patterns in a group into group of a single basic graph pattern of
all the triples and constraints.
* rasqal_internal.h: Added prototypes for
rasqal_engine_join_basic_graph_patterns and
rasqal_engine_merge_basic_graph_patterns
* rasqal_query.c (rasqal_query_execute): For ordering results,
directly use rasqal_engine_get_next_result to avoid doing limit
and offset checks too early. Start off from result_count 1.
(rasqal_query_results_next): For ordered results, handle limit and
offset with a loop and a check with
rasqal_engine_check_limit_offset. For streaming results, move
check code to rasqal_engine_check_limit_offset and use it.
(rasqal_query_results_get_bindings,
rasqal_query_results_get_binding_value,
rasqal_query_results_get_binding_value_by_name): For ordered
results, use result_count-1 as an index.
* rasqal_engine.c (rasqal_engine_check_limit_offset): Added to
check the current query result is in the range specified by limit
and offset
* rasqal_internal.h: Added prototype for
rasqal_engine_check_limit_offset
2005-06-09 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* win32_rasqal_config.h, configure.ac: Bumped version to 0.9.11
* Snapshotted rasqal_0_9_10 for 0.9.10 release
* tests/sparql/ValueTesting/Makefile.am: extendedType-eq-pass
passes
* rasqal_query.c (rasqal_new_query_result_row): Added offset to
store original sort order in case it is needed to order two
identical literals.
(rasqal_query_result_row_print): Print offset.
(rasqal_engine_query_results_compare): Renamed from
rasqal_engine_query_results_sort. Lots more debug messages and
checks. Order NULL literals before other types.
(rasqal_query_execute): Pass result offset into
rasqal_new_query_result_row.
* rasqal_literal.c (rasqal_literal_compare): Make comparison
stable for URIs and datatyped strings - use strcmp on string
values of URIs.
* tests/sparql/sort/Makefile.am: sort-3 works
* librasqal.3: Updates for 0.9.10
2005-06-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* win32_rasqal_config.h: Undefine OPTIONAL as something in win32
defines it.
* sparql_parser.y, roqet.c, rasqal_query.c, rasqal_internal.h,
rasqal_graph_pattern.c, rasqal_engine.c: Rename
rasqal_graph_pattern_operator variables called 'operator' to 'op'
for C++. Other casts for C++
* rasqal_internal.h: Added RASQAL_DEPRECATED_WARNING to generate a
rasqal warning once only.
* sparql_parser.y (OrderCondition): Use RASQAL_DEPRECATED_WARNING
to explain ASC[] and DESC[] have been replaced.
* sparql_parser.y (OrderCondition): Use RASQAL_EXPR_ORDER_COND_ASC
or DESC not NONE which is deleted.
* rasqal_query.c, rasqal_expr.c, rasqal.h: Deleted
( run in 3.681 seconds using v1.01-cache-2.11-cpan-97f6503c9c8 )