Redland
view release on metacpan or search on metacpan
redland/ChangeLog.5 view on Meta::CPAN
rasqal/tests/sparql/part1/dawg-query-002,
rasqal/tests/sparql/simple/dawg-tp-04.rq,
rasqal/tests/sparql/simple/dawg-data-01.n3: foaf:knowns to
foaf:knows
2004-12-02 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/rdfdump.c: Make a raptor_sequence of namespace
declarations declared by '-f xmlns:foo="bar"' and then add them to
the serializer when initialised.
(rdfdump_free_namespace_decl): Added, to provide a helper to
cleanup.
* raptor/raptor_serialize.c (raptor_serialize_set_namespace): Call
factory method declare_namespace.
(raptor_rdfxml_serialize_declare_namespace): Copy the passed in
namespace prefix, URI before storing the namespace.
(raptor_rdfxml_serialize_start): Delete the namespace sequence
contents as the namespaces are declared on the namespace stack,
which is the new owner of the namespaces.
* raptor/raptor_namespace.c
(raptor_new_namespace_parts_from_string): Added, to decode things
like "xmlns:foo='bar'" into prefix, uri strings.
* raptor/raptor.h: Added prototype for
raptor_new_namespace_parts_from_string.
raptor_sequence_free_handler prototype changed to return void
2004-11-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal/tests/sparql/examples/ex2-1a-result.n3,
rasqal/tests/sparql/examples/ex2-2a-result.n3,
rasqal/tests/sparql/examples/ex2-3a-result.n3,
rasqal/tests/sparql/examples/ex2-4a-result.n3,
rasqal/tests/sparql/examples/ex3-result.n3: .
* raptor/raptor_serialize.c (raptor_rdfxml_serialize_init): Add a
sequence of user-declared namespaces.
(raptor_rdfxml_serialize_terminate): Tidy sequence.
(raptor_rdfxml_serialize_declare_namespace): Use sequence to store
declared namespaces.
(raptor_rdfxml_serialize_start): Declare used-defined namespaces
and start them in the namespace stack.
* raptor/raptor_namespace.c (raptor_new_namespace_from_uri): Added
with raptor_new_namespace code.
(raptor_new_namespace): Now a wrapper around
raptor_new_namespace_from_uri.
(raptor_namespace_copy): Use raptor_new_namespace_from_uri.
* raptor/raptor_qname.c (raptor_iostream_write_qname):
Added to write a qname to an iostream.
* raptor/raptor.h: Add prototypes for raptor_iostream_write_qname,
raptor_new_namespace_from_uri
* raptor/raptor_rdfxml.c (raptor_xml_start_element_handler,
raptor_xml_end_element_handler, raptor_xml_comment_handler,
raptor_start_element_grammar, raptor_end_element_grammar,
raptor_cdata_grammar): Update the use of xml_writer for building
parseType="Literal" content to use an iostream. Use more sax2
methods rather than direct access to internals - still some left.
(raptor_xml_parse_init, raptor_xml_parse_start,
raptor_xml_parse_terminate, raptor_inscope_xml_language,
raptor_inscope_base_uri): Move expat/libxml details to
raptor_new_sax2, raptor_sax2_parse_start, raptor_free_sax2,
raptor_sax2_inscope_xml_language, raptor_sax2_inscope_base_uri
respectively.
(raptor_xml_parse_chunk_): Deleted, moved to
raptor_sax2_parse_chunk
* raptor/raptor_xml_writer.c: Change to output to an iostream not
build up a stringbuffer.
(raptor_new_xml_writer): Add iostream arg, delete never-used
canonicalize.
(raptor_free_xml_writer): Remvoe stringbuffer.
(raptor_xml_writer_start_element, raptor_xml_writer_end_element):
Delete stringbuffer and use raptor_iostream_write_sax2_element.
(raptor_xml_writer_cdata): Delete stringbuffer and use
raptor_iostream_write_xml_escaped_string.
(raptor_xml_writer_raw): Added to write just the bytes.
(raptor_xml_writer_comment): Fixed to emit <!-- and -->
(raptor_xml_writer_as_string): Deleted.
(main): Added with test case.
* raptor/raptor_sax2.c (raptor_new_sax2, raptor_free_sax2,
raptor_sax2_inscope_xml_language, raptor_sax2_inscope_base_uri,
raptor_sax2_get_depth, raptor_sax2_inc_depth,
raptor_sax2_dec_depth, raptor_sax2_parse_start,
raptor_sax2_parse_chunk, raptor_sax2_element_get_element): Added.
(raptor_iostream_write_sax2_element): Renamed from
raptor_format_sax2_element and now writing to a raptor_iostream
with no allocing/freeing buffers.
* raptor/raptor_xml.c (raptor_iostream_write_xml_escaped_string):
Added, to write an
XML-escaped version of a string to an iostream
2004-11-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/raptor_namespace.c (raptor_iostream_write_namespace):
Added to write a namespace to a raptor_iostream
* raptor/raptor.h: Added raptor_iostream_write_namespace
* raptor/Makefile.am: Added raptor_xml_writer_test
* raptor/raptor_expat.c (raptor_expat_init): Take void* user data
* raptor/raptor_internal.h: raptor_exp_init takes void*
Add user_data to raptor_sax2
Added prototypes or raptor_new_sax2, raptor_free_sax2,
raptor_sax2_parse_start, raptor_sax2_parse_chunk,
raptor_sax2_parse_handle_errors, raptor_sax2_get_depth,
raptor_sax2_inc_depth, raptor_sax2_dec_depth,
raptor_sax2_inscope_xml_language, raptor_sax2_inscope_base_uri,
raptor_sax2_element_get_element, raptor_iostream_write_sax2_element
Deleted raptor_format_sax2_element, raptor_xml_writer_as_string and
raptor_xml_writer_write_to_iostream
Changed raptor_new_xml_writer to write to a raptor_iostream
* raptor/raptor.h: Added raptor_iostream_write_xml_escaped_string
and raptor_namespace_write
* rasqal/rasqal_expr.c (rasqal_expression_evaluate):
UMINUS, PLUS, MINUX, STAR, SLASH are
now done with floating literals.
* rasqal/rasqal_internal.h: Export rasqal_literal_as_floating
* rasqal/rasqal_literal.c (rasqal_new_floating_literal):
Changed to take a double arg
(rasqal_literal_as_floating): Export.
(rasqal_literal_compare): Improve promotion. Promote to float where
needed, especially assuming strings could be a float.
* rasqal/sparql_lexer.l, rasqal/rdql_lexer.l:
Do sscanf here and call rasqal_new_floating_literal with the double.
redland/ChangeLog.5 view on Meta::CPAN
* raptor/Makefile.am: Added raptor_feature.c
* raptor/raptor_feature.c:
Moved common raptor_feature code from raptor_parse.c
* raptor/raptor_rss.c:
Added <none> entry to raptor_rss_fields_info so that when indexed
with RAPTOR_RSS_FIELDS_NONE, does not access invalid data.
Fixes for xmlReader API for older libxml2s:
Added node type defines for <2.5.9
Use xmlTextReaderLocalName, xmlTextReaderNamespaceUri instead of the
Const versions with additional corresponding xmlFree()s for <2.6.0
2004-11-02 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal/rasqal_raptor.c (ordinal_as_uri): Utterly broken
* rasqal/tests/sparql/check-sparql (run_test):
Take array of data files and use them to invoke roqet
Tidy some rapper invoking.
Add more debug messages.
* rasqal/sparql_parser.y (GraphPattern):
Merge the two sequences to make one sequence of triples.
(PatternElement): Pass on PatternElementForms sequence
(GraphPattern1:) Make a new triple sequence and pass on
PatternElementForms.
* rasqal/roqet.c (main): Add sources before prepare.
* rasqal/roqet.c (main):
Form a list of files/source URIs to add using a
raptor_sequence and add them once the query is created.
* librdf/win32_rdf_config.h, configure.ac: Bumped version to
0.9.20
* rasqal/configure.ac, rasqal/win32_rasqal_config.h: Bumped
version to 0.9.5
2004-11-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/configure.ac, raptor/win32_raptor_config.h: Bumped
version to 1.4.3
* Snapshotted redland_0_9_19 for 0.9.19 release
* LICENSE-2.0.txt, LICENSE.html, MPL.html, Makefile.am, NOTICE,
README.html, TODO.html, librdf/redland.spec.in: LGPL / Apache 2.0
license - remove MPL MPL.html add Apache2 LICENSE-2.0.txt NOTICE
* Switched to LGPL / Apache 2.0 license in the sources
CVS tags before: redland_license_lgpl_mpl,
and after: redland_license_lgpl_apache2
* rasqal/configure.ac, configure.ac: Need raptor 1.4.2
* raptor/win32_raptor_config.h, raptor/configure.ac: Bumped
version to 1.4.2
* raptor/raptor_xml_writer.c (raptor_xml_writer_cdata):
Return when raptor_xml_escape_string fails.
* raptor/raptor_xml.c (raptor_xml_escape_string):
Return -1 on UTF-8 encoding failure
* raptor/raptor_xml.c: docs
* utils/rdfproc.c (log_handler):
Check level against fatal, not facility.
* librdf/rdf_serializer_raptor.c, librdf/rdf_serializer.c,
librdf/rdf_query_rasqal.c, librdf/rdf_query.c,
librdf/rdf_parser.c, librdf/rdf_model.c, librdf/rdf_init.c: Casts
for C++
2004-10-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal/configure.ac: Minimum raptor 1.4.1
* rasqal/rasqal_raptor.c (ordinal_as_uri): Helper, added to
Properly calculate uri_string from rdf:_n ordinals
(raptor_statement_as_rasqal_triple): Use above for subject,
predicate, object
* rasqal/rasqal_expr.c (rasqal_free_triple):
Handle a partially constructed triple.
2004-10-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/raptor_xml.c (raptor_xml_escape_string): Ensure an empty
string is copied out; write a NUL.
* rasqal/sparql_parser.y, rasqal/rdql_parser.y,
rasqal/rasqal_query_test.c: Casts for C++
* raptor/libraptor.3: int return on raptor_xml_escape_string in body
* raptor/libraptor.3: 1.4.1 raptor_xml_escape_string return value
now int, <0 on failure.
* raptor/raptor_xml_writer.c (raptor_xml_writer_cdata):
Use int for raptor_xml_escape_string
return variables and use error return <0
* raptor/raptor_serialize.c:
(raptor_rdfxml_serialize_write_xml_attribute,
raptor_rdfxml_serialize_statement) Use int for
raptor_xml_escape_string return variables. Handle empty string
attribute when len=0.
* raptor/raptor_sax2.c (raptor_format_sax2_element):
Use int for raptor_xml_escape_string return.
* raptor/raptor.h: raptor_xml_escape_string changed return value to int
* raptor/raptor_xml.c (raptor_xml_escape_string):
Return value now int, <0 on failure to
allow escaping an empty string to return 0 bytes required.
(main): Add empty string escaping test. Check for failure of first
raptor_xml_escape_string call.
* raptor/raptor_rss.c (raptor_rss_parser_processNode):
Fix url attribute failing for
non-enclosure.
* rasqal/tests/sparql/check-sparql: Use PATH to find programs.
(run-test): More debug messages
Add -s $srcdir arg to find manifest
* rasqal/tests/sparql/syntax/Makefile.am,
rasqal/tests/sparql/simple/Makefile.am,
rasqal/tests/sparql/part1/Makefile.am,
rasqal/tests/sparql/examples/Makefile.am: Invoke check-sparql with
PATH set and -s $(srcdir) arg
* rasqal/tests/sparql/simple/manifest.n3,
rasqal/tests/sparql/part1/manifest.n3: Update to latest DAWG
tests, no file:
* rasqal/sparql_lexer.l, rasqal/rdql_lexer.l:
Remove YY_INPUT since it never worked.
(main): Read query string into a buffer and use *_lexer__scan_buffer
* rasqal/sparql_parser.y (main):
Use full rasqal_init/finish sequence since setup and cleanup
is rather complex now.
2004-10-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal/sparql_parser.y (sparql_parse):
Added workaround to crash when regex is at very end
of input, by appending a space to the parsed query string.
* rasqal/rdql_parser.y (rdql_parse):
Added workaround to crash when regex is at very end of
input, by appending a space to the parsed query string.
* raptor/raptor_rfc2396.c (raptor_new_uri_detail):
Do not add schema_len twice to dest pointer;
stop buffer overrun
redland/ChangeLog.5 view on Meta::CPAN
* raptor/raptor_iostream.c (raptor_string_iostream_finish): Code tidy.
* raptor/libraptor.3, raptor/raptor.h: Added
raptor_www_fetch_to_string
* raptor/raptor_www.c (raptor_www_fetch_to_string_write_bytes):
Added handler for following function:
(raptor_www_fetch_to_string): Added, to get content back as a string.
* rasqal/roqet.c:
(roqet_get_www_content); Use raptor_stringbuffer_copy_to_string.
* rasqal/configure.ac: enable sparql for regular users
2004-10-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/libraptor.3: Updates for 1.4.0
* raptor/raptor.h, raptor/raptor_iostream.c: s/fh/handle/ for clarity.
* rasqal/configure.ac, rasqal/Makefile.am: Added rasqal.rdf.in
* rasqal/rasqal.rdf.in: Rasqal DOAP description
* raptor/raptor.spec.in:
Update descriptions to include serializers
2004-10-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* rasqal/Makefile.am, rasqal/rasqal.spec.in,
rasqal/LICENSE-2.0.txt, NOTICE: LGPL / Apache 2.0 license
* rasqal/tests/sparql/simple/Makefile.am, rasqal/docs/build-docs,
rasqal/tests/Makefile.am, rasqal/tests/rdql/Makefile.am,
rasqal/tests/rdql/testsuite/Makefile.am,
rasqal/tests/rdql/testsuite/check-rdql,
rasqal/tests/sparql/Makefile.am, rasqal/tests/sparql/check-sparql,
rasqal/tests/sparql/examples/Makefile.am,
rasqal/tests/sparql/part1/Makefile.am, rasqal/docs/Makefile.am,
rasqal/sparql_parser.y, rasqal/win32_rasqal_config.h,
rasqal/rdql_parser.y, rasqal/roqet.c, rasqal/sparql_common.h,
rasqal/sparql_lexer.l, rasqal/Makefile.am, rasqal/configure.ac,
rasqal/rasqal-config.in, rasqal/rasqal-src-config.in,
rasqal/rasqal.h, rasqal/rasqal.spec.in, rasqal/rasqal_engine.c,
rasqal/rasqal_expr.c, rasqal/rasqal_general.c,
rasqal/rasqal_internal.h, rasqal/rasqal_literal.c,
rasqal/rasqal_query.c, rasqal/rasqal_query_test.c,
rasqal/rasqal_raptor.c, rasqal/rasqal_redland.c,
rasqal/rasqal_xml.c, rasqal/rdql_common.h, rasqal/rdql_lexer.l:
LGPL / Apache 2.0 license
* rasqal/win32/rasqal.dsp, rasqal/win32/rasqal.dsw:
win32 updates including sparql (not tested)
* librdf/rdf_parser_raptor.c
(librdf_parser_raptor_new_statement_handler): Do not copy datatype
URIs for new statements.
* raptor/raptor_namespace.c: less namespace debugs
* raptor/raptor_xml_writer.c: less cdata debugs
* raptor/raptor_namespace.c: Make most namespace debug messages
appear only if #ifdef RAPTOR_DEBUG_VERBOSE
* raptor/raptor_rdfxml.c:
Make most rdf/xml parsing debug messages appear only if
#ifdef RAPTOR_DEBUG_VERBOSE
* librdf/rdf_serializer.c
(librdf_serializer_serialize_model_to_counted_string,
librdf_serializer_serialize_model_to_string): Do not require a
base_uri.
* examples/example6.c:
Redland example code using model methods load and to_string
* librdf/rdf_serializer_raptor.c
(librdf_serializer_raptor_serialize_statement): Convert statement
object URI correctly.
(librdf_serializer_raptor_serialize_model_to_counted_string): Zap
string, string_length before starting.
* raptor/raptor_serialize.c:
(raptor_serialize_start, raptor_serialize_start_to_filename,
raptor_serialize_start_to_string,
raptor_serialize_start_to_file_handle,
raptor_serialize_statement, raptor_serialize_end):
Fail if no iostream is made or available.
* raptor/raptor_iostream.c (raptor_new_iostream_to_string):
Docs, zap string and length before
starting.
* examples/Makefile.am: Added example6.c
* raptor/raptor_serialize.c (raptor_rdfxml_serialize_statement):
Print datatype URIs correctly.
2004-10-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* librdf/rdf_query_rasqal.c:
Update redland support to rasqal changes after addition of origin.
* rasqal/rasqal_redland.c (rasqal_redland_bind_match):
Take array of 4 bindings.
* rasqal/rasqal_redland.c:
Update redland support to changes after addition of origin.
* rasqal/rasqal_general.c:
Added rasqal_initialising and rasqal_finishing statics
(rasqal_init, rasqal_finish): Use the above to prevent
recursion in these methods when rasqal uses redland using rasqal.
* rasqal/configure.ac:
use $srcdir not .. when looking for raptor sources nearby
* configure.ac: rasqal minimum version 0.9.3
* raptor/configure.ac, raptor/win32_raptor_config.h: 1.4.0
redland/ChangeLog.5 view on Meta::CPAN
Add xml_literal_datatype_uri to parser context.
(raptor_turtle_parse_init,raptor_turtle_parse_terminate): use above
(raptor_turtle_generate_statement): Use above to remove language
from all literals except xml literals.
* raptor/turtle_common.h:
Add xml_literal_datatype_uri to parser context.
* raptor/ntriples_parse.c:
Add xml_literal_datatype_uri to parser context.
(raptor_ntriples_parse_init,raptor_ntriples_parse_terminate): use
above
(raptor_ntriples_generate_statement): Use above to remove language
from all literals except xml literals.
* raptor/raptor_identifier.c (raptor_identifier_print):
Use raptor_xml_literal_datatype_uri_string
and save a string.
2004-04-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/rdfdump.c (main):
Use raptor_free_memory to free memory allocated in libraptor.
* raptor/raptor_www_libxml.c (raptor_www_libxml_fetch):
Free content type using libxml's xmlFree
since it was allocated there.
* raptor/raptor_www_libxml.c, raptor/raptor_www_curl.c
(raptor_www_libxml_fetch): Make headers for User-Agent: and/or
Accept: if they were set in the raptor_www.
* raptor/raptor_www.c (raptor_www_set_http_accept): Added.
* raptor/raptor_internal.h: Added http_accept to raptor_www
* raptor/raptor.h: Added raptor_www_set_http_accept
2004-04-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* Redland.i: Added output typemap for ruby returning char NULL.
Added some more model api calls used by ruby-rdf
2004-04-25 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* librdf/rdf_node.c (librdf_node_get_blank_identifier): Assert typo.
2004-04-15 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/raptor_general.c (raptor_guess_parser_name):
use strrchr to find *last* .
2004-04-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* librdf/rdf_node.c (librdf_node_to_counted_string):
Encode language and datatype for
literal strings.
* raptor/raptor_sequence.c (raptor_new_sequence): Zap sequence field.
* raptor/raptor_xml_writer.c (raptor_xml_writer_cdata):
Do not copy more bytes than allowed.
* raptor/Makefile.am: Added raptor_expat.c
* raptor/raptor_parse.c: Export some expat-only handlers:
raptor_xml_unparsed_entity_decl_handler,
raptor_xml_external_entity_ref_handler.
(raptor_xml_parse_init): Do not call expat init code here.
(raptor_xml_parse_start): Call new aptor_expat_init to initialise
parser state.
* raptor/raptor_internal.h: Added RAPTOR_XML_EXPAT only exports
including raptor_expat_init prototype.
* raptor/raptor_expat.c: raptor expat parser
2004-04-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/raptor.h: Added xsd and owl namespace URIs
* raptor/raptor_namespace.c (raptor_namespaces_init):
Define xsd, owl when defaults is 2+
2004-04-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* librdf/Makefile.am:
Apply local cppflags to AM_CFLAGS, for building tests
2004-04-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* raptor/raptor_parse.c:
(raptor_xml_parse_start) Free expat/libxml contexts from an
earlier parsing to ensure resetting of state
* librdf/rdf_parser.c (main):
Need to init node, concepts before parser.
* Redland.i: set default args on librdf_model_load
* Redland.i: Updated to use librdf_test_error and
librdf_test_warning for testing errors.
* librdf/rdf_log.h, librdf/rdf_log.c
(librdf_test_error,librdf_test_warning): Added for testing errors.
* Redland.i, librdf/rdf_model.h: Added librdf_model_load
* librdf/rdf_model.c (librdf_model_load):
Added, using parser guessing via
raptor_guess_parser_name if no name is given.
* librdf/rdf_parser_raptor.c:
Move raptor_new_parser to the init factory method rather than making
a new one for each parsing. Add a raptor_parser* rdf_parser field
to the context structure.
(librdf_parser_raptor_get_feature): Call raptor_get_feature if it is
not known here.
(librdf_parser_raptor_set_feature): Call raptor_set_feature.
* raptor/raptor_stringbuffer.c
( run in 0.790 second using v1.01-cache-2.11-cpan-39bf76dae61 )