[x3d-public] JSON Schema meeting minutes

John Carlson yottzumm at gmail.com
Mon Oct 18 17:37:12 PDT 2021


Don,

I did a bit more digging for -children with @USE fields. -children is 
only used for #comment's   I think this should be allowed, but not 
really sure.

"required" requires an array around the fields that are required.

           "required": [
             "@USE"
           ],

This is formatted by jsonlint, so I can not really change output unless 
we find a better pretty-printer.  jsonlint also checks low level grammar.

I suggest you might look into a JSON-to-JSON translation with XMLSpy.  
I'm guessing you can do a lot of stylesheet programming against JSON now 
(Woohoo!).

Removed regex/pattern from JSON schema for now.   Recall that we may 
want to change the X3DUOM attribute to pattern from regex. Let me know.

Refined comment verbage in @USE -children:

"#comment": { "type": "string", "$comment": "#comment statements are the 
only allowed in -children node when using a USE field" }

Ajv JSON validation results minus recent changes, I haven't had an 
opportunity to rerun X3dToJson.xslt on entire archive since a few days 
ago.  Note that some of these came back after I reran the archive:

$ grep Ajv results.txt |grep -v XvlShell|grep -v RigidBodyPhysics|grep 
-v Gltf|grep -v Basic/HumanoidAnimation|grep -v riginal|grep -v 
development | sed 's/[^\/]*//' | xargs ls -l
-rw-rw-r-- 1 coderextreme coderextreme   11913 Oct 14 18:05 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/CAD/CADPartChildTransformationAlternativeB.json
-rw-rw-r-- 1 coderextreme coderextreme   12619 Oct 14 18:05 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/CAD/CADPartChildTransformationAlternativeC.json
-rw-rw-r-- 1 coderextreme coderextreme    9669 Oct 14 18:07 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/Geospatial/newGeospatialScene.json
-rw-rw-r-- 1 coderextreme coderextreme 1216341 Oct 14 18:10 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/Points/ArchimedesPointProperties.json
-rw-rw-r-- 1 coderextreme coderextreme   15381 Oct 14 18:10 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/Points/BasicPointSprites.json
-rw-rw-r-- 1 coderextreme coderextreme   11420 Jul 24 10:41 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/Locations/Dardanelles/dardanel/Display.json
-rw-rw-r-- 1 coderextreme coderextreme   11416 Jul 24 10:44 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/Locations/StraitsOfHormuz/StraitsOfHormuz-Small/Display.json
-rw-rw-r-- 1 coderextreme coderextreme    9239 Oct 14 18:31 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/COMDESRON31/COMDESRON31.json
-rw-rw-r-- 1 coderextreme coderextreme   19838 Oct 14 18:31 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/COMDESRON31/DESRON31Test.json
-rw-rw-r-- 1 coderextreme coderextreme    9224 Oct 14 18:31 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/COMDESRON9/COMDESRON9.json
-rw-rw-r-- 1 coderextreme coderextreme    9215 Oct 14 18:31 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/CSG11/CSG11.json
-rw-rw-r-- 1 coderextreme coderextreme    9779 Oct 12 03:48 
/c/x3d-code/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter30Scripts/Figure30_1ScriptSlidingBall.json
-rw-rw-r-- 1 coderextreme coderextreme   10033 Oct 14 18:38 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/AllAudioGraphNodesTest.json
-rw-rw-r-- 1 coderextreme coderextreme   15316 Oct 14 18:38 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json
-rw-rw-r-- 1 coderextreme coderextreme   15098 Oct 14 18:38 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/SpatialAudioCameraAnimation.json
-rw-rw-r-- 1 coderextreme coderextreme    7141 Apr 21  2017 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldCommentedAlternativeEncoding.json
-rw-rw-r-- 1 coderextreme coderextreme    7669 Oct 14 18:41 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/MultiTextureDesignPattern.json
-rw-rw-r-- 1 coderextreme coderextreme  215088 Oct 14 18:41 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/MultiTextureTeapot.json

I will continue with comprehensive python validation testing.  I really 
have to stop typing on a mechanical keyboard.

Here's the schema (just checked in):

https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/schema/x3d-4.0-JSONSchema.json

John

On 10/18/21 5:09 PM, Brutzman, Donald (Don) (CIV) wrote:

> John and I reviewed his latest schema today and discussed various 
> design considerations.
>
> His latest version, generated by a Python program reading X3DUOM, is 
> found as follows:
>
>   * https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/schema/x3d-4.0-JSONSchema.json
>
> Looking at the result in Firefox was helpful because that has a great 
> way to look at JSON which allowed us to iconize/expand (fold/unfold) 
> as needed.  Excerpt follows.
>
> The result looks great.  One refinement John will handle: for nodes 
> with a USE field, no -children nodes are permitted.
>
> Once he has the next version, I will check it into the specifications 
> directory (next to X3D XML Schema and XML DOCTYPE).
>
> At that point we are ready to begin further validation efforts using 
> multivarious tools against the many X3D examples in JSON, such as
>
>   * https://savage.nps.edu/Savage/GroundVehicles/Jeep/Jeep.json
>
> Testing without regex patterns is good for now.  A prior version had 
> acceptable regex, so that appears to be do-able.
>
> Having fun with X3D JSON!  8)
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20211018/35a932e6/attachment.html>


More information about the x3d-public mailing list