Hi Diogo,

SPARQL 1.1 actually has a YEAR function and a NOW function. The latest ARQ 
likely supports them, but making D2RQ run with it is a bit of work due to a 
bunch of internal ARQ changes. There's a fork in GitHub here where I believe 
zazi did some work towards that:
https://github.com/zazi/d2rq/tree/d2rq-0.8

Upgrading to latest ARQ would make all the SPARQL 1.1 stuff *work* although it 
would be slow unless it's built directly into the D2RQ engine.

Best,
Richard


On 23 Feb 2012, at 17:06, Diogo FC Patrao wrote:

> Hello
> 
> I wonder if there's something I could do to make d2r support more functions, 
> like
> 
> SELECT DISTINCT ?date ?name 
> {
>     ?patient a :Patient;
>              :patientName ?name;
>              :patientDateOfBirth ?date;
>     FILTER( regex( ?name,  'JOAO' ) && xsd:year( ?date ) = xsd:year( 
> xsd:now() ) )
> } limit 10
> 
> in order to get all people called "JOAO" which were born in the current year. 
> When I try to run this function, D2R-Server logs:
> 
> 15:03:35 WARN  E_Function           :: URI 
> <http://www.w3.org/2001/XMLSchema#year> has no registered function factory
> 
> And it made me wonder if it would be easy to write some extension to support 
> it (and many other functions).
> 
> Thanks,
> 
> 
> --
> diogo patrĂ£o
> 
> 
> 
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing 
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________
> d2rq-map-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to