summaryrefslogtreecommitdiff
path: root/utils/rdfdiff.c
Commit message (Collapse)AuthorAgeFilesLines
* (rdfdiff_new_blank) resource leak on error [CID 122405]Dave Beckett2015-07-051-1/+3
|
* (rdfdiff_new_file) resource leak on error [CID 122404]Dave Beckett2015-07-051-1/+3
|
* Remove strcpy() and replace with count and memcpy()Dave Beckett2015-05-021-4/+11
|
* Restore space between title and versionDave Beckett2014-12-171-2/+2
|
* Remove static string printfs in utilities (-Wformat)Dave Beckett2014-11-221-3/+3
|
* Provide title and usage if args are missing [Coverity CID 72385]Dave Beckett2014-08-211-2/+3
|
* (main): from_string and to_string are never NULL [coverity CID 29290, CID 29291]Dave Beckett2014-04-161-14/+10
|
* Remove all traces of win32_raptor_config.hDaniel Richard G2012-08-301-4/+0
| | | | | Remove the file itself, all #include uses of it, and all references to it, as this file is no longer needed.
* Fixed reference leak of blank->ownerDave Beckett2012-05-211-1/+4
|
* Add raptor internal macros when building without RAPTOR_INTERNALDave Beckett2012-05-211-0/+6
|
* Need <io.h> on Windows for _access()Dave Beckett2012-05-211-0/+3
|
* (rdfdiff_add_statement): Malloc right sizeDave Beckett2011-08-311-1/+1
|
* Fix rdfdiff assumption that RAPTOR_DEBUG is definedDave Beckett2011-08-271-2/+2
|
* Code style change and cleanup for alloc/free macrosDave Beckett2011-07-311-8/+8
| | | | | | | | | | | | | | | | | | | | | Code style: 1. var = RAPTOR_CALLOC(type, count, size) Prefering: var = RAPTOR_CALLOC(type, 1, sizeof(*var)) when count = 1 2. var = RAPTOR_MALLOC(type, size) 3. RAPTOR_FREE(type, var) The consequence here is allocs that mostly fit into 1 line without so much boilerplate and duplication of types. The RAPTOR_MALLOC and RAPTOR_CALLOC now do the cast to the return type. RAPTOR_FREE takes the object type too but always casts arg to void This certainly contains many wrong types to the arg but might be used later in some kind of smart type-aware debugging allocator.
* (rdfdiff_statement_equals): Return different if object URIs differ. [CLANG]Dave Beckett2011-05-221-1/+3
|
* Switch to raptor2.h as main header. raptor.h includes itDave Beckett2011-04-261-1/+1
|
* Update to new raptor_term blank fieldsDave Beckett2010-05-161-4/+5
|
* Added raptor_log_message for message callbacks.Dave Beckett2010-03-011-11/+10
| | | | | | | | | | | | | | | raptor_log_message: added struct raptor_log_handler function prototype now takes just user dat and message. raptor_world_s gains a static raptor_log_message for use in errors. No field here is reference counted. (raptor_log_error): Rename arg to text and init raptor_log_message structure in world object. Updated rapper and rdfdiff log handler functions to new signature.
* Replace error handlers with single log handlerDave Beckett2010-02-261-30/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function typedef raptor_log_handler renamed from raptor_message_handler and takes log level arg too. (raptor_world_set_fatal_error_handler, raptor_world_set_error_handler, raptor_world_set_warning_handler): Deleted. (raptor_world_set_log_handler): Added typedef raptor_error_handlers deleted (raptor_error_handlers_init): Deleted. (raptor_new_world): Init world MAGIC so that in libxml cases, can validate world arg pointer. Remove init of error handlers and last log level. struct raptor_serializer_s deleted error/warning handler/data that were no longer used. (raptor_libxml_xmlStructuredError_handler_global): Validate world magic number. (raptor_new_parser): Do not need to init error handler locator. Update callers in utilities rapper and rdfdiff. (rapper_log_handler): Added replacing rdfdump_error_handler() and rdfdump_warning_handler. (rapper_free_namespace_decl): Renamed from rdfdump_free_namespace_decl. (rdfdiff_log_handler): Added replacing rdfdiff_error_handler() and rdfdiff_warning_handler.
* raptor_parse_uri() -> raptor_parser_parse_uri()Lauri Aalto2010-02-181-2/+2
|
* raptor_print_locator renamed to raptor_locator_printDave Beckett2010-01-301-2/+2
|
* Update raptor_print_locator calling conventionDave Beckett2010-01-301-2/+2
|
* Rename statement priting methods to raptor_statement_NAME() formDave Beckett2010-01-171-8/+8
| | | | | | | (raptor_statement_print): Renamed from raptor_print_statement (raptor_statement_print_as_ntriples): Renamed from raptor_print_statement_as_ntriples
* Rename parser methods to all start raptor_parser_METHODDave Beckett2010-01-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (raptor_parser_get_feature): Renamed from raptor_get_feature. (raptor_parser_get_label): Renamed from raptor_get_label. (raptor_parser_get_locator): Renamed from raptor_get_locator. (raptor_parser_get_mime_type): Renamed from raptor_get_mime_type. (raptor_parser_get_name): Renamed from raptor_get_name. (raptor_parser_get_need_base_uri): Renamed from raptor_get_need_base_uri. (raptor_world_get_parser_factory): Renamed from raptor_get_parser_factory. (raptor_parser_parse_abort): Renamed from raptor_parse_abort. (raptor_parser_parse_chunk): Renamed from raptor_parse_chunk. (raptor_parser_set_uri_filter_no_net): Renamed from raptor_parse_uri_no_net_filter. (raptor_parser_get_new_generated_i): Renamed from raptor_parser_generate_id. (raptor_parser_set_default_generate_id_parameters): Renamed from raptor_set_default_generate_id_parameters. (raptor_parser_set_generate_id_handler): Renamed from raptor_set_generate_id_handler. (raptor_parser_set_graph_handler): Renamed from raptor_set_graph_handler. (raptor_parser_set_namespace_handler): Renamed from raptor_set_namespace_handler. (raptor_parser_set_statement_handler): Renamed from raptor_set_statement_handler. (raptor_parser_parse_start): Renamed from raptor_start_parse.
* Remove _v2 from name and world arg from raptor_locator functionsDave Beckett2010-01-171-2/+2
| | | | | | | | | | | (raptor_print_locator): Renamed from raptor_print_locator_v2 and loses world arg. (raptor_format_locator): Renamed from raptor_format_locator_v2 and loses world arg. (raptor_locator_uri_string): Renamed from raptor_locator_uri_v2 and renamed to reflect returns a string not a raptor_uri*
* raptor_term values are now a union of uri / literal fields / blank stringDave Beckett2010-01-171-17/+20
| | | | | | | | | | | raptor_term gains union value with uri field, literal struct and blank field for URI, Literal and Blank rdf terms. Lots of consequent changes; mostly mechanical search and replace. Removed several (raptor_uri*)value and (unsigned char*)value casts. (raptor_rss10_move_statements): Changes but when zeroing uri / literal, do that in separate steps rather than assigning to value.
* raptor_term and raptor_term get usages. statement is pointer to 3 termsDave Beckett2010-01-131-38/+38
| | | | | | | | | | | | | | | | | | | | | | | Compiles, does not all work. (raptor_statement_init): Init usage. (raptor_statement_copy): Now just a usage increment; comment out old copying code. (raptor_free_statement): Free on zero usage. (raptor_free_term): Free on zero usage. (raptor_new_term_from_term, raptor_new_term_from_uri, raptor_new_term_from_literal, raptor_new_term_from_blank): Added new term constructors - taking ownership of their input objects. (raptor_rdfxml_generate_statement): Create raptor_term objects to generate reified statements. Update lots of uses in parsers and serializers of object.field to object->field for pointer based access.
* New raptor_uri implementation - reference counted uris with interning.Dave Beckett2010-01-101-41/+29
| | | | | | | | | | | | Based on librdf_uri reference counted uris with interning in an librdf_hash, this uses a raptor_avltree to store/lookup previously seen uris so that a single URI string has one raptor_uri* object. Removed initial world parameter from all raptor_uri class methods. Update all callers of above. rdfdiff debug prints also updated to generate ntriples
* Remove _v2 suffix from raptor_uri constructorsDave Beckett2010-01-091-3/+3
|
* Update for new parser constructor nameDave Beckett2010-01-081-1/+1
|
* Move error-handler setting functions to methods of raptor_worldDave Beckett2010-01-081-2/+2
| | | | | | | | | | | | | (raptor_world_set_fatal_error_handler): Renamed from raptor_set_fatal_error_handler from parser class. (raptor_world_set_error_handler): Renamed from raptor_set_error_handler from parser class. (raptor_world_set_warning_handler): Renamed from raptor_set_warning_handler from parser class. Updated rapper.c and rdfdiff.c to use new names and calling convention.
* Rename raptor_identifier_type enum and values to raptor_term_typeDave Beckett2010-01-061-11/+11
| | | | | | | | The enum values changed: from RAPTOR_IDENTIFIER_TYPE_RESOURCE to RAPTOR_TERM_TYPE_URI, from RAPTOR_IDENTIFIER_TYPE_ANONYMOUS to RAPTOR_TERM_TYPE_BLANK, from RAPTOR_IDENTIFIER_TYPE_LITERAL to RAPTOR_TERM_TYPE_LITERAL and from RAPTOR_IDENTIFIER_TYPE_UNKNOWN to RAPTOR_TERM_TYPE_UNKNOWN.
* Remove RAPTOR_IDENTIFIER_TYPE_XML_LITERALDave Beckett2010-01-061-2/+1
| | | | | | | | | | | | | | | This was used for rdf:parseType="Literal" object literals internally but publically always is turned into RAPTOR_IDENTIFIER_TYPE_LITERAL. raptor_identifier_type loses RAPTOR_IDENTIFIER_TYPE_XML_LITERAL value. Removed all code for this which mostly was deleting switch cases but also deletes some functions from the Turtle and RDF/XML-abbrev serializers. (raptor_rdfxmla_emit_xml_literal, raptor_turtle_emit_xml_literal): Deleted.
* raptor_identifier_type loses the RAPTOR_IDENTIFIER_TYPE_ORDINAL value.Dave Beckett2010-01-061-74/+18
| | | | | | | | | | | | | | | | | | | | | raptor_identifier loses ordinal field. Consequent removal of RAPTOR_IDENTIFIER_TYPE_ORDINAL from cases especially handling predicates. (raptor_rdfxml_end_element_grammar, raptor_rdfxml_generate_statement, raptor_rdfxml_process_property_attributes, raptor_rdfxml_serialize_statement): Most changes were made here to generate a URI instead of the ordinal integers from the various rdf:li element forms. Multiple serializers are now simpler in not having to check for predicate (or even subject/object) ordinals. Several if ordinal {ordinal handling } .. else {uri handling} were removed. rdfdiff lost several checks for ordinal/resource alternatives. (rdfdiff_ordinal_equals_resource): Deleted.
* Remove checks for RAPTOR_IDENTIFIER_TYPE_PREDICATE comparison with ordinal ↵Dave Beckett2010-01-061-36/+11
| | | | for equality.
* Make a raptor_statement into a 3-tuple of raptor_term.Dave Beckett2010-01-061-53/+53
| | | | | | | | | | | This is a short term stage before merging raptor_term with raptor_identifier and getting rid of raptor_triple (in N3 and Turtle parsers). Also want to make the 3 raptor_terms in raptor_statement as object references not statics, and add a graph term. raptor_identifier_type should be raptor_term_type and have less values: kill ordinal and predicate types. Lots of structure name field changes everywhere statement is used.
* Add raptor_world field to raptor_statement, remove raptor_statement_v2.Dave Beckett2010-01-051-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raptor_statment gains a raptor_world* field. raptor_statement_v2 typedef is deleted. (raptor_print_statement_as_ntriples_common, raptor_statement_compare_common): Deleted these internal helper functions. (raptor_print_statement_v2): Renamed to raptor_print_statement (raptor_print_statement_as_ntriples_v2): Renamed to raptor_print_statement_as_ntriples. (raptor_statement_part_as_counted_string_v2): Renamed to raptor_statement_part_as_counted_string. (raptor_statement_part_as_string_v2): Renamed to raptor_statement_part_as_string. (raptor_statement_compare_v2): Renamed to raptor_statement_compare. (raptor_statement_copy): Loses world arg. (raptor_statement_copy_v2, raptor_statement_copy_v2_from_v1): Deleted. (raptor_free_statement): Loses world arg. (raptor_free_statement_v2, raptor_print_statement_v1): Deleted (raptor_statement_init): Added to initialise statically a allocated statement. (raptor_new_parser_v2): Init static statement with raptor_statement_init().
* Code style - whitespace around assignment and comparison opsDave Beckett2010-01-051-51/+51
|
* Merge from raptor branch raptor1Dave Beckett2009-11-251-3/+3
|
* Apply SVN 15667 to raptor trunkDave Beckett2009-11-161-50/+41
|
* Refactored rdfdiff to use raptor v2 APIs + internals.Lauri Aalto2008-10-061-47/+64
|
* (long_options,title_format_string): Use const qualifier for constant data.Lauri Aalto2008-10-031-2/+2
|
* 2008Dave Beckett2008-03-301-1/+1
|
* Changed algorithm - read both files into rdfdiff_file* structuresDave Beckett2008-01-211-111/+126
| | | | | | | | | | | | with rdfdiff_collect_statements, removing duplicates for each file then compare afterwards. (rdfdiff_statement_equals): Edited to have one return. (rdfdiff_statement_find): Added (rdfdiff_statement_exists): Uses rdfdiff_statement_find. (rdfdiff_compare_statements): Removed. (main): Use rdfdiff_collect_statements and after both files are read in, walk through and remove common statements from the from_file list.
* (rdfdiff_statement_exists): Added.Dave Beckett2008-01-211-13/+31
| | | | | (rdfdiff_collect_statements): Use rdfdiff_statement_exists to not add duplicate statements.
* Apply the base URI to the to-file, if given. Otherwise use theDave Beckett2007-01-081-2/+5
| | | | from_file's URI.
* Added -u/--base-uri option to specify the from file base URI so thatDave Beckett2007-01-081-5/+13
| | | | | if the from file is a local file or relative URI, it can be given an absolute base.
* castDave Beckett2006-10-061-2/+2
|
* RCS ID and Copyright 2006Dave Beckett2006-01-081-6/+2
|
* Some code style tidying.Dave Beckett2005-09-211-41/+47
| | | | | (rdfdiff_statement_equals): Fix comparisons of literals with/out language with/out datatype.