<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">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">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><br></div><div>John</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, May 10, 2025 at 9:58 PM 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:1px solid rgb(204,204,204);padding-left:1ex"><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>