fsprojects / FSharp.Data

F# Data: Library for Data Access
https://fsprojects.github.io/FSharp.Data
Other
813 stars 287 forks source link

Support composite units of measure in CsvProvider/HtmlProvider #110

Open ovatsus opened 11 years ago

ovatsus commented 11 years ago

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 commented 9 years ago

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

ovatsus commented 9 years ago

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

dgrimmin commented 6 years ago

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.

ovatsus commented 6 years ago

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

dgrimmin commented 6 years ago

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.

ovatsus commented 6 years ago

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