fadmaa/grefine-rdf-extension — Issue #40: Typing generic values
Author: danpaulsmith
Created: 2011-12-06 16:57:38+00:00
State: open

Hi there,

Could you possibly add an enhancement to the plugin?

If you copy and paste this code into a GREL expression box:

if(type(value) == "number",if(value % 1 == 0,"int","float"),"string")

You will see that it identifies whether a value is a string, int or float.

I can't see how I could include this at the moment.

I would replace "string" with "@en", "int" with "^^" and "float" with "^^".

What do you think?

Thanks,
Dan