FSharp.Data icon indicating copy to clipboard operation
FSharp.Data copied to clipboard

Support composite units of measure in CsvProvider/HtmlProvider

Open ovatsus opened this issue 12 years ago • 6 comments

The Freebase provider already supports it (see https://github.com/fsharp/FSharp.Data/blob/master/src/Freebase/FreebaseProvider.fs#L191) Do the same for CsvProvider/HtmlProvider

ovatsus avatar Mar 28 '13 15:03 ovatsus

We now support a very basic subset of this: https://github.com/fsharp/FSharp.Data/blob/master/src/CommonRuntime/StructuralInference.fs#L307

ovatsus avatar Oct 18 '14 22:10 ovatsus

parseUnitOfMeasure needs to be extended here: https://github.com/fsharp/FSharp.Data/blob/master/src/CommonRuntime/StructuralInference.fs#L312

ovatsus avatar Oct 18 '14 22:10 ovatsus

Dear Ovatsus,

I would like to use the CsvProvider to infer units of measure such as <kg/m>, and <N/m^2>. Can you tell me whether that is possible with the Provider product and inverse that you refer to in the source?

I am impressed by all the work done on FSharp.Data.

dgrimmin avatar Jul 11 '18 14:07 dgrimmin

Not supported currently, that's what's this open issue is about

ovatsus avatar Jul 11 '18 14:07 ovatsus

Is this bit of Freebase code you refer to still available? It would be very very cool if the issue could be solved with a minimum of effort.

dgrimmin avatar Jul 11 '18 15:07 dgrimmin

Try to go the the repo state as of Oct 18, 2014

ovatsus avatar Jul 11 '18 15:07 ovatsus