[x3d-public] Paths forward, Java for JSON Schema
Joseph D Williams
joedwil at earthlink.net
Tue Mar 22 19:22:54 PDT 2022
➢ Convert XML Schema to/from JSON Schema
With this conversion possibility the gltf2 json schema style items may also be converted to xml schema style, and I think goes a long way toward showing schema-to-schema conversion to and from xml and Classic.
The object model can show which field of a certain ‘standard’ validated gltf json file can be imported as data for that node.
Finally, if it is this simple to convert a typical json file to xml or even Classic then why not, for x3d, either json or x3d xml or even Classic can be used for this import/export of field and behavior data libraries?
Thanks,
Joe
From: Brutzman, Donald (Don) (CIV)
Sent: Monday, March 21, 2022 3:10 AM
To: John Carlson
Cc: X3D Graphics public mailing list
Subject: Re: [x3d-public] Paths forward, Java for JSON Schema
Thanks for inquiry about bulk validation possibilities… Recently got update to Altova XMLSpy 2022 Enterprise Edition.
As before, this include capability to
• Convert XML Schema to/from JSON Schema
• https://www.altova.com/manual/XMLSpy/spyenterprise/urefconvert_xmlschematojsonschema.html
Using default settings with “latest JSON schema” selected, the current X3D 4.0 XML Schema converted to JSON and update saved at
• https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json
Please advise if you want different settings applied. Should be interesting to compare their version with your version.
I suspect that bulk validation will be possible… Just checked the XMLSpy project files autogenerated with each X3D Examples archive, will improve them and then try…
… fixed, adding entry for JSON models to catalog. Bulk validation supported! Screenshot attached.
Am now updating all catalogs and running a full rebuild of latest X3dToJson.xslt conversions.
Looks like we are back in business! Have fun comparing/debugging/improving X3D JSON Schema and conversion patterns…
XMLSpy error log follows. Again, this is using their autogenerated X3D JSON schema, not yours. Onward we go.
File C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForWebAuthors\HelloWorld.json is not valid.
Property '-children' is not allowed here because schema property 'additionalProperties' is false.
Hint: A matching entry in 'properties' or 'patternProperties' is needed to successfully validate this object.
Error location: X3D / Scene / -children
Details
Property 'Scene' is not valid.
Property 'X3D' is not valid.
Property '-children' is not allowed here because schema property 'additionalProperties' is false.
Hint: A matching entry in 'properties' or 'patternProperties' is needed to successfully validate this object.
Error location: X3D / head / -children
Details
Property 'head' is not valid.
Property 'X3D' is not valid.
Property 'encoding' is not allowed here because schema property 'additionalProperties' is false.
Hint: A matching entry in 'properties' or 'patternProperties' is needed to successfully validate this object.
Error location: X3D / encoding
Details
Property 'X3D' is not valid.
Property '@xsd:noNamespaceSchemaLocation' is not allowed here because schema property 'additionalProperties' is false.
Hint: A matching entry in 'properties' or 'patternProperties' is needed to successfully validate this object.
Error location: X3D / @xsd:noNamespaceSchemaLocation
Details
Property 'X3D' is not valid.
Property 'JSON schema' is not allowed here because schema property 'additionalProperties' is false.
Hint: A matching entry in 'properties' or 'patternProperties' is needed to successfully validate this object.
Error location: X3D / JSON schema
Details
Property 'X3D' is not valid.
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, Navy robotics https:// faculty.nps.edu/brutzman
From: x3d-public <x3d-public-bounces at web3d.org> On Behalf Of John Carlson
Sent: Sunday, March 20, 2022 12:34 PM
To: X3D Graphics public mailing list <x3d-public at web3d.org>
Subject: [x3d-public] Paths forward, Java for JSON Schema
So if we want a Java solution for JSON Schema 2020-12, what do we do?
AFAIK, Khronos supports 2020-12 with glTF 2, but glTF has been web-oriented, so no need for Java, TIKO.
Can we do some kind of bulk JSON validation with XMLSpy?
Should we just skip Java-based JSON validation based on other’s code, and hope we can accomplish validation on our own? I have been relying on X3DJSAIL.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220322/c6733061/attachment.html>
More information about the x3d-public
mailing list