Hi Akash,

I see the discussion in Issue 629. Can you submit a PR to add your work for 
Literals? That would be useful even before contributing to the SPARQL queries.


Regarding where to start with SPARQL, how about:

https://github.com/RDFLib/rdflib/blob/master/rdflib/plugins/sparql/parser.py#L752
 
<https://github.com/RDFLib/rdflib/blob/master/rdflib/plugins/sparql/parser.py#L752>

And then

https://github.com/RDFLib/rdflib/blob/master/rdflib/plugins/sparql/operators.py#L720
 
<https://github.com/RDFLib/rdflib/blob/master/rdflib/plugins/sparql/operators.py#L720>

The unary expression is detected, parsed and then evaluated at these points.

The first point in the code does seem to be using Literal though...

Feel free to add better stuff here other long-timer RDFlib contributors!

Nick


> On 30 Apr 2020, at 2:30 am, Akash Sharma <[email protected]> wrote:
> 
> 
> Hi! I was working on an issue https://github.com/RDFLib/rdflib/issues/629 
> <https://github.com/RDFLib/rdflib/issues/629>.
> 
> I found that for Raw Literals, it was quite easy to extend this case of 
> duration by handling it in rdfliB/term.py. I assumed that fixing the catch 
> here would result in fixing it in SPARQL. However, this is not the case. I 
> realised SPARQL queries' literal operations are done separately to the Raw 
> Literal handling. 
> 
> This is a new codebase for me. Hence it would be really helpful if anyone can 
> suggest where should I look at for manipulating such SPARQL query 
> expressions? 
> Thanks for the help. 
> 
> -- 
> http://github.com/RDFLib <http://github.com/RDFLib>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "rdflib-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rdflib-dev/a2dbe289-b056-4e19-a675-ce3783e0af1f%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/rdflib-dev/a2dbe289-b056-4e19-a675-ce3783e0af1f%40googlegroups.com?utm_medium=email&utm_source=footer>.

______________________________________________________________________________________
        
Dr Nicholas Car
Data Systems Architect
SURROUND Australia Pty Ltd      
Address P.O. Box 86, Mawson, Canberra ACT 2607
Phone  +61 477 560 177 
<tel:+61+414+99+55+43?utm_source=WiseStamp&utm_medium=email&utm_term=&utm_content=&utm_campaign=signature>
Email  [email protected]
Website  https://surroundaustralia.com
Enhancing Intelligence Within Organisations
delivering evidence that connects decisions to outcomes





-- 
http://github.com/RDFLib
--- 
You received this message because you are subscribed to the Google Groups 
"rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rdflib-dev/FCFBFD3C-24A5-49BB-BBBC-87AC542AAEE0%40surroundaustralia.com.

Reply via email to