[x3d-public] Meta-semantic Web3d

John Carlson yottzumm at gmail.com
Sun Dec 29 09:17:27 PST 2019

I say go ahead with Loren’s suggestion.   If we can find a way to do this
in Typescript, all the better.

We might want a meta library which deals with X3DUOM, schema, ontology
(Meta file formats).   Similar to what we have for JSON, XML, VRML,
knowledge base (file formats). Aka X3DJSAIL, X3DJSONLD.   Let me know if
you want me to sketch out a schema or package/class hierarchy—perhaps based
on X3DUOM’s schema.

I am thinking of another package, org.web3d.x3d.reflect... if we can’t find
an existing one.   This will allow us to convert between schemas,
ontologies and object models.

Obviously, we will leverage existing stylesheets which convert schema to
object model and convert object model to schema and ontology.

I propose the term X3D Reflect for the artifact, but some may prefer X3DMOP.

I will volunteer for implementing a JSON schema input/output library for
X3D Reflect.  I can also provide the base for a python library for reading
some of  the X3DUOM into python classes (requires more of an OO library)

Should we bring this up in some meeting?


On Mon, Dec 23, 2019 at 9:58 PM Don Brutzman <brutzman at nps.edu> wrote:

> Several good improvements to X3D Python implementation.  Thanks to my
> being able to configure a second laptop in "plain old Python user" mode,
> have finally unraveled a few PYTHONPATH problems that complicated previous
> releases.
> * Python X3D Package x3d.py
>    https://www.web3d.org/x3d/stylesheets/python/python.html
> =============================
> 🔖 Installation
> Download and install Python (https://www.python.org) on your system.
> Python x3d.py package installation and update options:
>      *pip install x3d*
>      or
>      *python -m pip install x3d*
> That should be all that is needed for most Python X3D programmers!
> Here is an example screenshot for PythonX3dSmokeTests.py using IDLE.
> https://www.web3d.org/x3d/stylesheets/python/images/PythonX3dSmokeTestsIDLE.png
> (image attached)
> =============================
> Test reports welcome.  Anyone else using X3D Python?
> More development details:
> Examples now include /HelloWorldPrefixed.py/ which is produced from
> HelloWorld.x3d by the X3dToPython.xslt stylesheet with invocation parameter
> insertPackagePrefix=true.
> *
> https://www.web3d.org/x3d/stylesheets/python/examples/HelloWorldPrefixed.py
> Tests for /HelloWorld.py/ and /HelloWorldPrefixed.py/ and
> /PythonX3dSmokeTests.py/ are all satisfactory.
> * https://www.web3d.org/x3d/stylesheets/python/build.examples.log.txt
> As described in the Design Features section, this library tracks with
> latest draft X3DUOM for X3Dv4.
> On 11/18/2019 6:01 AM, Brutzman, Donald (Don) (CIV) wrote:
> > have upgraded to 3.8 and made significant improvement in numeric MF
> types, now handling lists of tuples satisfactorily.
> >
> > TODO is handling field/fieldValue declarations for Script and Proto,
> they still default to string.
> So the good news is that the converter is now able to represent strict
> numeric types in field and fieldValue initialization values, not just
> strings.
> Thus the next line of work will be to get the x3d.py package to properly
> parse non-SFString field and fieldValue initialization values.
> Getting that squared away handles most of the remaining issues in the
> comprehensive build of X3D Examples.  At that point we can consider whether
> further extensions (such as the following interesting suggestion from
> Loren) ought to be added to the core x3d.py module, or else better left as
> a separate technique for programmers.
> > On 11/15/2019 12:26 PM, Peitso, Loren (CIV) wrote:
> >> Subject: Re: python 3.8 addition that could be very useful for the X3D
> code
> >>
> >> https://www.python.org/dev/peps/pep-0589/
> >>
> >> Representing an object or structured data using (potentially nested)
> dictionaries with string keys (instead of a user-defined class) is a common
> pattern in Python programs. Representing JSON objects is perhaps the
> canonical use case, and this is popular enough that Python ships with a
> JSON library. This PEP proposes a way to allow such code to be type checked
> more effectively.
> >>
> >> v/r  Loren
> Have fun with X3D Python!
> 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
> http://faculty.nps.edu/brutzman
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20191229/14906ca7/attachment.html>

More information about the x3d-public mailing list