<div dir="auto">Here are test links for short form rubik.json:</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://create3000.github.io/x_ite/playground/?url=%20https://raw.githubusercontent.com/coderextreme/x3dschema/refs/heads/main/examples/rubik.json">https://create3000.github.io/x_ite/playground/?url=%20https://raw.githubusercontent.com/coderextreme/x3dschema/refs/heads/main/examples/rubik.json</a></div><div dir="auto"><br></div><div dir="auto"><div><a href="https://andreasplesch.github.io/Library/Viewer/index.html?url=https://raw.githubusercontent.com/coderextreme/x3dschema/refs/heads/main/examples/rubik.json">https://andreasplesch.github.io/Library/Viewer/index.html?url=https://raw.githubusercontent.com/coderextreme/x3dschema/refs/heads/main/examples/rubik.json</a></div><br></div><div dir="auto"><br></div><div dir="auto">Thumbs up in both cases.</div><div dir="auto"><br></div><div dir="auto">What I may try to do is create a whole webpage for a bake-off, hopefully including Castle.</div><div dir="auto"><br></div><div dir="auto">John</div><br></div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, May 15, 2025 at 8:52 AM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr"><div>I have modified CreateElement() and elementSetAttribute() in x3dschema to take short-form in JSON encoding, expand to long-form. Changes were made to X3DJSONLD.java.</div><div><br></div><div>Here's where I store PROTOs and create ProtoInstance elements:</div><div><br></div><div><a href="https://github.com/coderextreme/x3dschema/blob/72a2ea6920a4d2c87083f2b28a5cf0e1396a5613/X3DJSONLD.java#L88" target="_blank">https://github.com/coderextreme/x3dschema/blob/72a2ea6920a4d2c87083f2b28a5cf0e1396a5613/X3DJSONLD.java#L88</a></div><div><br></div><div>elementSetAttribute() now creates fieldValue statements where appropropriate</div><div><br></div><div>Note:</div><div><br></div><div>fieldValues can't have "name" or "DEF" values for name fields. These go in the ProtoInstance node.</div><div><br></div><div>There's probably more bugs, but I'd rather put it out there to get test examples (I already have many):</div><div><br></div><div>Here's a test example for people:</div><div><a href="https://github.com/coderextreme/x3dschema/blob/main/examples/rubik.json" target="_blank">https://github.com/coderextreme/x3dschema/blob/main/examples/rubik.json</a></div><div><br></div><div>I'll start working on removing my Proto Expander from X3DJSONLD now.</div></div><div dir="ltr"><div><br></div><div>John</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 10, 2025 at 9:58 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="auto"><br></div><div dir="auto">When that’s done, I’ll work on x3dschema:</div><div dir="auto"><br></div><div dir="auto">CreateElement in Java:</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://github.com/coderextreme/x3dschema/blob/269135736fdbe61e8b21c48fe17fbeaa8a7f93c1/X3DJSONLD.java#L73" target="_blank">https://github.com/coderextreme/x3dschema/blob/269135736fdbe61e8b21c48fe17fbeaa8a7f93c1/X3DJSONLD.java#L73</a></div><div dir="auto"><br></div><div dir="auto">Ditto, but this time, no need to validate with Ajv.</div></div>
</blockquote></div></div>
</blockquote></div></div>