- From: Pieter Colpaert <pieter.colpaert@ugent.be>
- Date: Tue, 18 Apr 2017 18:50:10 +0200
- To: KANZAKI Masahide <mkanzaki@gmail.com>
- Cc: "public-lod@w3.org" <public-lod@w3.org>
Thank you Masaka! I have created an issue about this and added a test to the development branch that fails: https://github.com/pietercolpaert/hardf/issues/7 There is a regular expression in which I do not manage to get the regular expressions with the right unicode code points to work. Somehow, PHP tells me even they are disallowed: https://travis-ci.org/pietercolpaert/hardf/jobs/223208399#L195 I will try to find a solution. Kind regards, Pieter On 18-04-17 15:31, KANZAKI Masahide wrote: > Hello, thank you for the useful PHP tool. It's really appreciated. > > I found that TriGParser fails to handle non-ASCII prefixed names, e.g. > > @prefix c: <http://example.org/>. > c:test a c:テスト . > > while it's OK to parse IRI : > > @prefix c: <http://example.org/>. > c:test a <http://example.org/テスト> . > > > (Note N3.js can parse both properly.) > > I guess you need to use mb_str..functions in N3Lexer::tokenizeToEnd, > but simple replacement didn't work... > > hope this helps. > cheers, > > 2017-04-18 15:24 GMT+09:00 Pieter Colpaert <pieter.colpaert@ugent.be>: >> Dear all, >> >> In PHP, there used to be no library supporting parsing/writing n-quads and >> TriG. Libraries that could handle Turtle or N-Triples however did not have >> streaming support and were always limited to files the size a machine could >> keep in memory. Today, that changed: >> >> https://github.com/pietercolpaert/hardf >> >> I have spent some time to port Ruben Verborgh’s great N3.js library to PHP. >> By doing so, we also achieved a parsing speed of 200 times the current most >> popular turtle parsing library in PHP [1]. We hope this library is a >> contribution to all websites that already served RDF today using PHP >> (Drupal, The DataTank, Wordpress, ...) and saves some servers from spending >> too many CPU cycles on RDF handling ;) >> >> Kind regards, >> >> Pieter Colpaert >> >> [1] https://github.com/pietercolpaert/hardf#performance >> >> >> > >
Received on Tuesday, 18 April 2017 16:50:43 UTC