Re: [mdn-compat-importer] Phase 1 modelisation "first stab"

Hi all!

Here is an update about the project.

Doug and me discussed about the conversion work and here are some notes to describe what we are doing.


Some links to help you analyze:
-  See “CONVERSION STEPS” in [3] for more details about conversion steps:
-  Work is commited in githu within webplatform/mdn-compat-importer in the ‘internal-is-object’ branch [0]
-  At any time, you can see the latest import result change [1] and the data it is using [2]

Steps:

A short summary of the conversion steps
0. Rework array
    - Make an array of objects
    - origin property gives link to source document
    - category property comes a section within the origin URL and “slugified” (lower case, removing spaces, etc)
    - slug is the last part of the origin URL, “slugified” 
1. Step 1
    - Harmonize browser name strings
    - Invert feature compat data key name and value


  [0]: https://github.com/webplatform/mdn-compat-importer/tree/internal-js-object
  [1]: https://github.com/webplatform/mdn-compat-importer/blob/internal-js-object/data/compat-mdn.json
  [2]: https://gist.github.com/renoirb/8746058
  [3]: https://github.com/webplatform/mdn-compat-importer/blob/internal-js-object/lib/EntityConverter.js#L17

Renoir 
~

Received on Tuesday, 4 February 2014 19:06:28 UTC