Re: Light-weight streaming PHP library for RDF serialization?

On Tue, Jan 29, 2013 at 1:09 PM, Denny Vrandečić <
denny.vrandecic@wikimedia.de> wrote:

> But this would only work for n-triples, and I could not use the nice big
> set of serializations EasyRdf has (like RDF/XML, JSON, etc). And if it was
> only N-Triples what I am aiming for then it would be easier to just
> implement it without a library anyway.
>
>
yup, and that's what i currently do...

https://github.com/micheldumontier/php-lib/blob/master/rdfapi.php



m.


>
> 2013/1/29 Michel Dumontier <michel.dumontier@gmail.com>
>
>> you're right. out of the box "streaming" is not directly supported.  but
>> that should'nt prevent you from implementing one.  if you serialize the
>> content in n-triples to a stream, you'll have no headers or prefix
>> declarations to deal with. then just clear the model and add more triples.
>>
>> m.
>>
>>
>> On Tue, Jan 29, 2013 at 12:17 PM, Denny Vrandečić <
>> denny.vrandecic@wikimedia.de> wrote:
>>
>>> As far as I can tell, EasyRdf requires to first create a model object
>>> which is then send to a serializer. I don't see that EasyRdf can be used
>>> for streaming.
>>>
>>> Please correct me if I am wrong.
>>>
>>> Thank you,
>>> Denny
>>>
>>>
>>>
>>> 2013/1/29 Michel Dumontier <michel.dumontier@gmail.com>
>>>
>>>> Try easyrdf
>>>>
>>>> http://www.easyrdf.org/
>>>>
>>>> m.
>>>>
>>>>
>>>> On Tue, Jan 29, 2013 at 11:54 AM, Denny Vrandečić <
>>>> denny.vrandecic@wikimedia.de> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> is there an actively maintained open source pure PHP library that can
>>>>> be used to create RDF serialization from a model?
>>>>>
>>>>> It should be able to stream a big number of triples.
>>>>>
>>>>> Pluspoints if there it has no Parser or SPARQL processing library as a
>>>>> dependency, in order to decrease the size of the library (smaller library =
>>>>> happier code reviewer, less maintenance costs).
>>>>>
>>>>> Cheers,
>>>>> Denny
>>>>>
>>>>> --
>>>>> Project director Wikidata
>>>>> Wikimedia Deutschland e.V. | Obentrautstr. 72 | 10963 Berlin
>>>>> Tel. +49-30-219 158 26-0 | http://wikimedia.de
>>>>>
>>>>> Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V.
>>>>> Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter
>>>>> der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für
>>>>> Körperschaften I Berlin, Steuernummer 27/681/51985.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michel Dumontier
>>>> Associate Professor of Bioinformatics, Carleton University
>>>> Chair, W3C Semantic Web for Health Care and the Life Sciences Interest
>>>> Group
>>>> http://dumontierlab.com
>>>>
>>>
>>>
>>>
>>> --
>>> Project director Wikidata
>>> Wikimedia Deutschland e.V. | Obentrautstr. 72 | 10963 Berlin
>>> Tel. +49-30-219 158 26-0 | http://wikimedia.de
>>>
>>> Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V.
>>> Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter
>>> der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für
>>> Körperschaften I Berlin, Steuernummer 27/681/51985.
>>>
>>
>>
>>
>> --
>> Michel Dumontier
>> Associate Professor of Bioinformatics, Carleton University
>> Chair, W3C Semantic Web for Health Care and the Life Sciences Interest
>> Group
>> http://dumontierlab.com
>>
>
>
>
> --
> Project director Wikidata
> Wikimedia Deutschland e.V. | Obentrautstr. 72 | 10963 Berlin
> Tel. +49-30-219 158 26-0 | http://wikimedia.de
>
> Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V.
> Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter
> der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für
> Körperschaften I Berlin, Steuernummer 27/681/51985.
>



-- 
Michel Dumontier
Associate Professor of Bioinformatics, Carleton University
Chair, W3C Semantic Web for Health Care and the Life Sciences Interest Group
http://dumontierlab.com

Received on Tuesday, 29 January 2013 18:15:37 UTC