Hi Richard

I updated the arq.jar on my d2r-server instance and afn:now() started to
work! However I'm not sure anymore if it didn't work before.

It's not difficult to get custom Java functions to run with d2r-server. I
already wrote a date adding function (so I can write stuff like "in the
last 5 months"). However, as it can not be translated to SQL, it gets slow
on d2r. whatever, it's working!

I couldn't find the YEAR and MONTH functions you mentioned, would you mind
to write the link?

thanks!

--
diogo patrão





On Fri, Feb 24, 2012 at 7:35 AM, Richard Cyganiak <[email protected]>wrote:

> 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