summaryrefslogtreecommitdiff
path: root/src/ntriples_parse.c
Commit message (Collapse)AuthorAgeFilesLines
* autodocs reformatted for gtk-docDave Beckett2005-08-191-1/+3
|
* Update uses of raptor_parser_register_factory to remove aliasDave Beckett2005-08-181-1/+0
| | | | | argument and add calls to raptor_parser_factory_add_alias for raptor (rdfxml) and ntriplesplus (turtle)
* (raptor_init_parser_ntriples): Do not register interest in text/plainDave Beckett2005-07-191-1/+1
| | | | -- too general.
* (raptor_ntriples_parse_chunk): Handle ending on \r\n by updatingDave Beckett2005-07-181-1/+2
| | | | 'start' by 1 position.
* (raptor_ntriples_term): Check sscanf return to catch bad \u or \U hexDave Beckett2005-07-181-2/+10
| | | | escape.
* (raptor_ntriples_term_valid): Remove rdf_parser arg; only for a fatalDave Beckett2005-01-211-24/+31
| | | | | | | | | | error - just die. (raptor_ntriples_term): Make start a const arg. When copying UTF8 bytes, move on the correct number of bytes in src and dest. Update use of raptor_ntriples_term_valid. (raptor_ntriples_string_as_utf8_string, raptor_ntriples_parse_line): Update uses of raptor_ntriples_term_valid.
* LGPL / Apache 2.0 licenseDave Beckett2004-09-201-9/+15
|
* (raptor_ntriples_parse_chunk): Move "junk at end of input" testDave Beckett2004-08-021-12/+10
| | | | | to the end of the function, giving the error only if the current offset isn't at the end of the current line.
* Renamed win32_config.h to win32_raptor_config.hDave Beckett2004-06-301-1/+1
|
* (raptor_ntriples_parse_line): Make language on a datatyped literalDave Beckett2004-06-251-1/+1
| | | | a warnign.
* (raptor_ntriples_generate_statement): Remove use of ntriples_parser,Dave Beckett2004-05-181-1/+1
| | | | not used.
* Do not allow any language with datatype literals.Dave Beckett2004-05-121-10/+5
|
* Fixes for c++Dave Beckett2004-05-041-1/+1
|
* Add xml_literal_datatype_uri to parser context.Dave Beckett2004-05-021-3/+12
| | | | | | | (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.
* Added scoring factory method recognise_syntax for rdfxml, ntriples,Dave Beckett2004-04-101-0/+28
| | | | rss, turtle parsers.
* (raptor_ntriples_generate_statement): Kill a FIXME, fail with anDave Beckett2004-03-191-4/+1
| | | | error on bad rdf:_n property.
* Update to use raptor_parser_register_factory alias argumentDave Beckett2004-01-201-0/+1
| | | | to register any old or alternate names.
* RAPTOR_ERROR* and RAPTOR_FATAL* lose their function arg, using __func__Dave Beckett2004-01-141-19/+10
|
* Use expanded raptor_parser_register_factory with mime_type andDave Beckett2003-12-311-0/+2
| | | | uri_string args where appropriate.
* (raptor_ntriples_parse_line): Casts, unsigned char* for blank node IDs.Dave Beckett2003-12-171-3/+3
|
* (raptor_ntriples_parse_line): Enforce predicate must be URIrefDave Beckett2003-12-171-1/+6
|
* (raptor_ntriples_parse_line): Pass blank node identifier generationDave Beckett2003-12-161-30/+68
| | | | | through raptor_generate_id. Rewrite returns into setting rc and jump to cleanup to ensure allocated blank node IDs are freed.
* (raptor_ntriples_generate_statement,raptor_ntriples_string_as_utf8_string,Dave Beckett2003-12-061-43/+48
| | | | | | | | raptor_ntriples_parse_line): Updated to take/return unsigned char* args and internals. Update raptor_uri calls for similar changes. Use raptor_xml_literal_datatype_uri_string Lots of casts for str* functions char* arguments.
* (raptor_ntriples_term): Use a size_t; cast for C++.Dave Beckett2003-11-281-2/+2
|
* (raptor_ntriples_term_valid,raptor_ntriples_term): ChangeDave Beckett2003-11-281-7/+7
| | | | argument names from class to term_class to avoid C++ keyword.
* Add some debug message arg casts.Dave Beckett2003-11-281-7/+10
| | | | | (raptor_ntriples_parse_chunk): At end of input, check that there is no remaining junk.
* (raptor_ntriples_parse_chunk): Fix line counting problems when \r\nDave Beckett2003-11-281-17/+43
| | | | | crosses a buffer or when a line ends at the end of a buffer. last_char recorded in state.
* Track newlines correctly for \r\n across chunks; move last_nl intoDave Beckett2003-11-191-5/+7
| | | | | | ntriples parser context. (raptor_ntriples_parse_chunk,raptor_ntriples_parse_start): Use and init last_nl in ntriples parser context.
* (raptor_ntriples_term): Added allow_utf8 argument and new classDave Beckett2003-11-161-19/+71
| | | | | | | RAPTOR_TERM_CLASS_FULL which uses all the passed in string. (raptor_ntriples_string_as_utf8_string): Added, using raptor_ntriples_term as above. (raptor_ntriples_parse_line): Use size_t len args.
* Removed deprecated functions as promised. Changes are described inDave Beckett2003-09-081-101/+0
| | | | the libraptor.3 man page.
* (raptor_ntriples_term): Forbid Unicode characters outside #x0-#x10FFFFDave Beckett2003-09-051-0/+5
|
* (raptor_ntriples_parse_line): Normalize language to lowercase.Dave Beckett2003-09-031-0/+12
| | | | After http://www.w3.org/TR/rdf-concepts/#dfn-language-identifier
* (raptor_ntriples_term): Check that the string/URI term was terminatedDave Beckett2003-08-311-1/+9
| | | | before the end of the string.
* Move dmalloc includes into raptor_internal.h and use everywhere.Dave Beckett2003-08-131-6/+0
|
* (raptor_ntriples_parse_line): Casts so isspace calls get int args.Dave Beckett2003-08-081-4/+4
|
* (raptor_ntriples_generate_statement): MakeDave Beckett2003-08-081-6/+25
| | | | | RAPTOR_IDENTIFIER_TYPE_ORDINAL predicates for property URI strings that match the rdf:_<n> pattern with n a decimal integer>0.
* raptor_ntriples_term_class Added for:Dave Beckett2003-08-031-67/+126
| | | | | | | | | | (raptor_ntriples_term_valid): Checking validity of a ntriples term - this could be inlined. (raptor_ntriples_string) Renamed to: (raptor_ntriples_term) Use raptor_ntriples_term_valid. (raptor_ntriples_parse_line): Add more checks that whitespec exists between ntriples terms. Error to have typed literals with languages.
* (raptor_ntriples_parse_chunk): Handle just the end marker being givenDave Beckett2003-07-221-0/+4
| | | | i.e. len=0 (and possibly s=NULL)
* Merged patch from Jose Kahan to switch to use raptor_config.hDave Beckett2003-06-061-1/+1
| | | | (helps people compiling from source with multiple config.h)
* Use raptor_parser_register_factory with label param.Dave Beckett2003-04-271-1/+1
|
* raptor_print_ntriples_string moved to raptor_general.cDave Beckett2003-03-291-69/+0
|
* (raptor_ntriples_parse_start): Remove uri arg.Dave Beckett2003-03-261-1/+1
|
* No need for ntriples.hDave Beckett2003-02-151-1/+1
|
* Fix macro IS_ASCII_DIGIT which refused to allow '0'.Dave Beckett2003-01-211-1/+1
|
* raptor_ntriples_unicode_char_to_utf8 now raptor_unicode_char_to_utf8Dave Beckett2002-12-151-156/+7
| | | | | raptor_ntriples_utf8_to_unicode_char now raptor_unicode_utf8_to_unicode_char (raptor_print_ntriples_string): Allow no delimiter.
* More unsigned char to char fixes, other castings enough to make g++ happy.Dave Beckett2002-12-031-3/+3
|
* (raptor_ntriples_string): sscanf format lxDave Beckett2002-12-021-1/+1
|
* stdarg.h is now a required header.Dave Beckett2002-11-261-2/+0
|
* rdfs:XMLLiteral now rdf:XMLLiteralDave Beckett2002-11-191-2/+2
| | | | Add rdf:nil to allowed rdf namespace terms
* Remove xml"" (stage 1). Parsing it works but gives an error. Never output.Dave Beckett2002-11-061-8/+9
| | | | | | | (raptor_ntriples_generate_statement): Output xml"foo"<...> for xml literal. Remove is_xml argument. (raptor_ntriples_parse_line): For XML literal (old xml""), parse, give an error and emit it in the datatype form.