From mantis-bug-sender at librdf.org Tue Jul 1 18:21:04 2014 From: mantis-bug-sender at librdf.org (Mantis Bug Tracker) Date: Tue, 1 Jul 2014 22:21:04 +0000 Subject: [redland-dev] [Raptor RDF Syntax Library 0000574]: Language tags with underscore Message-ID: The following issue has been SUBMITTED. ====================================================================== http://bugs.librdf.org/mantis/view.php?id=574 ====================================================================== Reported By: aharth Assigned To: ====================================================================== Project: Raptor RDF Syntax Library Issue ID: 574 Category: utilities Reproducibility: always Severity: minor Priority: low Status: new Syntax Name: ====================================================================== Date Submitted: 2014-07-01 22:21 Last Modified: 2014-07-01 22:21 ====================================================================== Summary: Language tags with underscore Description: The N-Triples parser complains with "zh_pinyin" language tags. Probably that's a problem with the data provider (IIRC one should use dash instead of underscore: zh-pinyin). Steps to Reproduce: $ rapper http://linkedgeodata.org/triplify/node424310680 | rapper -i ntriples -c - http://ex.org rapper: Parsing URI http://linkedgeodata.org/triplify/node424310680 with parser rdfxml rapper: Serializing with serializer ntriples rapper: Parsing file with parser ntriples and base URI http://ex.org rapper: Error - URI http://ex.org:166 column 132 - Illegal bNodeID - _ not followed by : rapper: Error - URI http://ex.org:166 column 132 - Missing terminating "." rapper: Parsing returned 225 triples rapper: Parsing returned 224 triples $ rapper --version 2.0.14 $ Additional Information: Not urgent, I might ping the linkedgeodata.org guys to fix their data. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2014-07-01 22:21 aharth New Issue ====================================================================== From porton at narod.ru Sat Jul 26 11:07:30 2014 From: porton at narod.ru (Victor Porton) Date: Sat, 26 Jul 2014 18:07:30 +0300 Subject: [redland-dev] raptor_uri_resolve_uri_reference() Message-ID: <5680771406387250@web17h.yandex.ru> I am writing Ada bindings for Raptor. I've stumbled with the function raptor_uri_resolve_uri_reference(). raptor_uri_resolve_uri_reference() has "length" argument. How to calculate this length? It seems a wrong API. -- Victor Porton - http://portonvictor.org From dave at dajobe.org Sat Jul 26 12:08:51 2014 From: dave at dajobe.org (Dave Beckett) Date: Sat, 26 Jul 2014 09:08:51 -0700 Subject: [redland-dev] raptor_uri_resolve_uri_reference() In-Reply-To: <5680771406387250@web17h.yandex.ru> References: <5680771406387250@web17h.yandex.ru> Message-ID: <53D3D293.1040301@dajobe.org> On 7/26/14, 8:07 AM, Victor Porton wrote: > I am writing Ada bindings for Raptor. > > I've stumbled with the function raptor_uri_resolve_uri_reference(). > > raptor_uri_resolve_uri_reference() has "length" argument. How to calculate this length? It seems a wrong API. >From the source: * @base_uri: Base URI string * @reference_uri: Reference URI string * @buffer: Destination buffer URI * @length: Length of destination buffer So it reads @base_uri and @reference_uri and outputs ( writes) to @buffer which must be pre-allocated to @length bytes. ... although it seems that function doesn't check it. Oops. To be safe, you can use a buffer of size strlen(base_uri) + strlen(reference_uri) + 1 which is what raptor_new_uri_relative_to_base_counted() uses Dave From porton at narod.ru Sun Jul 27 16:49:32 2014 From: porton at narod.ru (Victor Porton) Date: Sun, 27 Jul 2014 23:49:32 +0300 Subject: [redland-dev] What are "sinks"? Message-ID: <490491406494172@web24m.yandex.ru> http://librdf.org/raptor/api/raptor2-section-iostream.html tells something about "sinks". What is a sink? (I am writing thick Ada2012 bindings for Raptor.) -- Victor Porton - http://portonvictor.org From dave at dajobe.org Sun Jul 27 17:09:04 2014 From: dave at dajobe.org (Dave Beckett) Date: Sun, 27 Jul 2014 14:09:04 -0700 Subject: [redland-dev] What are "sinks"? In-Reply-To: <490491406494172@web24m.yandex.ru> References: <490491406494172@web24m.yandex.ru> Message-ID: <53D56A70.2040209@dajobe.org> On 7/27/14, 1:49 PM, Victor Porton wrote: > http://librdf.org/raptor/api/raptor2-section-iostream.html > tells something about "sinks". > > What is a sink? > > (I am writing thick Ada2012 bindings for Raptor.) In *nix terms, it's /dev/null - it provides an empty iostream (read) or throws away all output (write) Dave