[x3d-public] First cut at X3DUOM to X3DJSON schema mapping

John Carlson yottzumm at gmail.com
Thu Mar 14 13:33:56 PDT 2024


Approaching finalization.  JSON side of @geoSystem and SFNode/MFNode
acceptable types done.  Need to present what X3DUOM looks like in those
cases (the alternating |'s is what I'm referring to).  -childStatements
appears to be done, without any X3DUOM equivalents.  The JSON header is
also not done.

https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/python/index.html

Enjoy!

On Sat, Mar 9, 2024 at 2:22 AM John Carlson <yottzumm at gmail.com> wrote:

> Don,
>
> Here's a first (second) cut at a X3DUOM to X3DJSON schema mapping.
>
> I finally settled on a kind of approach, taking pieces of the X3DUOM and
> comparable pieces from X3DJSON schema and putting them next to each other,
> but final results are still up in the air. Now's your chance for some
> feedback.  I already know I need to handle SFNode and MFNode, -children and
> -childStatemetns, basically anything in JSON with a leading dash.
>
> View on the web/download
>
> X3DJSONLD/src/main/python/index.html at master · coderextreme/X3DJSONLD
> (github.com)
> <https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/python/index.html>
>
> Here's the mapping python.
>
> X3DJSONLD/src/main/python/schemamapping.py at master ·
> coderextreme/X3DJSONLD (github.com)
> <https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/python/schemamapping.py>
>
> If you run it, be aware that it reads schema as a file, and X3DUOM on
> standard input.
>
> Thanks, I'm not done yet.
>
> John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20240314/10fdde76/attachment.html>


More information about the x3d-public mailing list