Thanks for the update Josh - *Prescriptive vs. descriptive schemas*. This is very important for > property graphs. Whereas TinkerPop and most other PG solutions are > relatively schema-less, there is strong motivation for a real, > vendor-neutral schema language, which is what is driving the PGSWG. At > the > same time, a solution which requires all graph data to strictly conform > to > a schema in all contexts would not be supportive of typical > applications, > so there needs to be a spectrum. We are still discussing ways in which > to > provide the flexibility of schemas which describe parts of a graph and > help > with validation and inference over those parts, but which are tolerant > of > "other stuff" which goes beyond the schema. For TinkerPop, I think it > will > be simplest to start out with a binary world: either your graph is > schemaless, i.e. you just don't have or just don't care about a schema, > or > it is expected to strictly conform to a predefined schema. Long-term, we > are likely to move toward more of a true spectrum, and I think it's > reasonably clear how to make that transition. In the beginning, you > either > have a schema or you don't. >
Could you clarify who is making that choice? Is it the provider saying their graph supports schema or not? or did you mean the user is making that choice somehow and TinkerPop would thus enforce the schema? - *Atomic types*. As part of the basic type system for property graphs, > there is broad agreement that there should be a collection of predefined > atomic types (called "primitive types" in the APG paper and in Dragon) > like > integers, floating-point numbers, character strings, and booleans. > There is > also agreement within the property types group that this collection of > atomic types may be infinite, and that parameterization of atomic types > should not be part of the standard schema language. For example, in > addition to a 32-bit integer type, you might also have a 16-bit integer > type, a 64-bit integer type, and so on... potentially any number of > "integer" data types related to each other by a parameter. In GQL, these > will likely just be given names like int32, int16, etc. and it will be > up > to implementations to determine the internal structure of the types, if > any. Other possible parameters for integer types, for example, are > signedness and width encoding. In TinkerPop, I suspect that we will > take a > slightly different approach (and one similar to Dragon) in that the > grammar > will in fact provide vocabulary for type parameters, and we will > endeavor > to make the parameter language expressive enough to serve the needs of > most > graph vendors. That makes the parameterization accessible to programming > logic for optimizing Gremlin traversals, optimizing graph encodings, > etc. > However, all of this is to be discussed in detail on the dev list. > I'm pretty interested in the direction this goes as numbers have always been troublesome to our various language variants and it often doesn't make Gremlin look smart to those users of language off the JVM.
