Re: Hardf PHP library

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
>
>
>



-- 
@prefix : <http://www.kanzaki.com/ns/sig#> . <> :from [:name
"KANZAKI Masahide"; :nick "masaka"; :email "mkanzaki@gmail.com"].

Received on Tuesday, 18 April 2017 13:32:39 UTC