-
Notifications
You must be signed in to change notification settings - Fork 3
Description
It would be good to have a description of "what problems does it solve" near the beginning, because people aren't going to read about it if they don't know what it adds to the tools and techniques they are currently using. This isn't well-thought-out yet to propose text, but something like:
Problem: different strings representing the same thing can't be compared for equality or sorted into order. There's no way to compare times without converting to a common format; the information 1690402891 decimal or 64C1804B hex correspond to time in a wide variety of formats (XSD has 9 different built-in times):
"07/26/2023 @ 4:21pm"
"2023-07-26T16:21:31+00:00"
"Wed, 26 Jul 2023 16:21:31 +0000"
"Wednesday, 26-Jul-23 16:21:31 UTC"
JSON at least has a number type, but XSD has only strings - "decimal" is a string of digits, and "integer" is a subclass of decimal with no fractional digits. That's backwards, and because XSD doesn't it can't tell that "1.0E6" is the same as "1,000,000" or "1000000".
Problem: UML has four fundamental kinds of collections: ordered/unordered + unique/non-unique. Defining those 4 as information building blocks with standard representations in JSON and XML would allow [25, 89] to be recognized as equal to {"x": 25, "y": 89}
Problem: RDF has widespread adoption, but it is saddled with being based on XML and its string and structure limitations. RDF defines datatypes but does not require support for them or define any mechanism to define them, nobody uses them. An IM could be the basis for an "Information RDF" where "time" information values are distinguished from lexical representations and datatypes like {"x": 25, "y": 89} can be defined, operated on, and reasoned about without the overhead of assigning indices and cluttering the graph with unnecessary nodes. JSON Schema with path property names, regexes, and ABNF as datatype expressions usable directly in RDF/XML should be explored.
(That was the motivation for updating the parsing diagram to include classtype and datatype as distinct kinds of collection).
Problem: complex-to-read schemas. The advantage of using JIDL as a template language for JSON Schema and XSD should be highlighted up front. JADN needs to be translated into existing technologies supported by mature tools in order to be accepted, it can't be pitched as an alternative. The vision of "common front end for XML, JSON, plus CBOR, Protobuf" needs better explanation.