[semantics-public] X3DUOM improvements and X3D Ontology additions: further datatype information
Brutzman, Donald (Don) (CIV)
brutzman at nps.edu
Mon Nov 18 17:36:45 PST 2019
yes, much less error prone and also clearer, less obscure
On 11/18/2019 9:09 AM, yottzumm at gmail.com wrote:
> Here are possible places where isArray may come in handy:
>
> $ grep -n 'type.*starts' etgenerateJSONschema.py
>
> 131: if not field.get("type").startswith("MF"):
>
> 392: if field.get('type').startswith("SF"):
>
> 394: elif field.get('type').startswith("MF"):
>
> Maybe removechildren and addchildren as well, not sure.
>
> Likely I will sign in to the meeting today.
>
> John
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
>
> *From: *Brutzman, Donald (Don) (CIV) <mailto:brutzman at nps.edu>
> *Sent: *Monday, November 18, 2019 10:04 AM
> *To: *yottzumm at gmail.com <mailto:yottzumm at gmail.com>; X3D Semantic Web Working Group <mailto:semantics-public at web3d.org>; X3D Graphics public mailing list <mailto:x3d-public at web3d.org>
> *Subject: *Re: [semantics-public] X3DUOM improvements and X3D Ontology additions: further datatype information
>
> On 11/18/2019 6:51 AM, yottzumm at gmail.com wrote:
>
> > Suggestion in green below.
>
> >
>
> > I apologize for not working harder. I am not the same Slartibartfast I used to be.
>
> > [...]
>
> "Walking on water wasn't built in a day." Jack Kerouac
>
> > *From: *Brutzman, Donald (Don) (CIV) <mailto:brutzman at nps.edu>
>
> > *Sent: *Monday, November 18, 2019 8:22 AM
>
> > *To: *X3D Semantic Web Working Group <mailto:semantics-public at web3d.org>; X3D Graphics public mailing list <mailto:x3d-public at web3d.org>
>
> > *Subject: *Re: [semantics-public] X3DUOM improvements and X3D Ontology additions: further datatype information
>
> >
>
> > Much work has been done on these multiple points. Rather than insert into prior email, here are changes:
>
> >
>
> > -----
>
> >
>
> > 1. X3DUOM includes tupleSize and isArray properties in each field type.
>
> >
>
> > Is isArray the same as having a type of MF*? This could be validated when validating X3DUOM. Also, it might be possible to improve the JSON schema generator based on this.
>
> Yes.
>
> Having formal definitions for boolean ArrayType and int tupleSize makes generation of code less error-prone and allows authors to program repeatable patterns for handling all types.
>
> 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
>
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
More information about the semantics-public
mailing list