[x3d-public] X3D JSON Javascript schema validators broken on relative URIs. Issues filed.

Don Brutzman brutzman at nps.edu
Tue Feb 2 00:38:38 PST 2016


cc: list

Please explain John, am not seeing what you would consider bad in the following URL list.  URNs perhaps?

The backslashes were produced during your cut & paste, and are not in the scene source.

The relative URLs are OK.  We picked the # syntax for prototype names since it matched the HTML bookmark scheme, thus a well-supported syntax.

On 1/28/2016 10:01 AM, John Carlson wrote:
> I was able to replace the URI format with the same one from the Ajv code and the validator now works.  ???  However, it found what I view as a bad URI:

<ExternProtoDeclare name='ScalarDamper' url='"Dampers.x3d#ScalarDamper"

> "http://www.web3d.org/x3d/content/examples/Basic/Followers/Dampers.x3d#ScalarDamper\" Dampers.wrl#ScalarDamper \"http://www.web3d.org/x3d/content/examples/Basic/Followers/Dampers.wrl#ScalarDamper”
>
>
> in
>
> examples//Basic/Followers/FollowerExternalPrototypeDeclarations.json

Also
<ExternProtoDeclare name='PositionDamper' url='"urn:inet:hersto.net:node:PositionDamper" "Dampers.wrl#PositionDamper" "http://www.hersto.net/Followers/Dampers.wrl#PositionDamper"'>


The URNs are questionable but they are defined by IETF and endorsed by W3C and included in VRML/X3D specifications.  Not sure if anyone uses them anymore.

RFC 2141: URN Syntax
https://www.ietf.org/rfc/rfc2141.txt

URIs, URLs, and URNs: Clarifications and Recommendations 1.0
Report from the joint W3C/IETF URI Planning Interest Group
W3C Note 21 September 2001
https://www.w3.org/TR/uri-clarification/

Roy and I got started on an X3D Regexes page.  We will return to that when other X3D Schema work in progress is complete.  Skeleton at
http://www.web3d.org/specifications/X3dRegularExpressions.html

If you look inside the X3D Schema, you will find a number of regexes for X3D datatypes in there already.  XML Schema does let you define a regex to validate special types, so this is a worthwhile future task.

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 x3d-public mailing list