[Nepomuk] [PATCH] Soprano::Node::createFromN3

Sebastian Trüg trueg at kde.org
Thu Mar 25 11:55:25 CET 2010


Hi Vishesh,

thanks a lot for the patch.
I would gladly include it in Soprano but there is one problem:
sopranocmd already has N3 parsing which is a bit more complex than your
version. It for example also includes prefix expansion. I already
started on a patch to convert that into a method of Node. The problem is
that I am not sure about the API yet.
Would you be interested to compare our patches? Maybe you have a good
idea on how to solve the problems I am facing: I am not too happy about
the error pointer parameter and the way the prefixes can be specified. I
already thought of maybe even creating a NodeParser class but then again
that seems a bit over the top...

Cheers,
Sebastian

On 03/24/2010 09:08 PM, Vishesh Handa wrote:
> Hi
> 
> I created a new function *static Node createFromN3( const QString& n3
> )*. It creates a Soprano::Node from an N3 String. I've /tried /to
> document it in the header file, but I'm not too sure if it's correct
> (the documentation). It would be nice if somebody could go through it,
> please.
> 
> The Patch had a base directory of /kdesupport/soprano/soprano/
> /
> - Vishesh Handa
> 
> 
> 
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: soprano-fromn3.diff
Url: http://mail.kde.org/pipermail/nepomuk/attachments/20100325/0f3a0a3b/attachment.bat 


More information about the Nepomuk mailing list