Comments (4)
(a) nobody's asking us for that,
I am, precisely because it forces us to think outside the box.
(b) there's no database column type named "yaml" (though admittedly
you could serialise the content of jsonb columns as yaml -- but
why would you do that?)
Is there a hard link between xtype and the database column type ?
Are we suggesting that if a client creates a VOTable containing a column with xtype="json"
, a database MUST store this as a native JSON column or reject a TAP upload ?
If we allow databases that don't have support for native JSON to store xtype="json"
as VARCHAR(), then we should also allow the same for xtype="yaml"
.
(d) yaml support, while widespread, still is a lot more limited
that json support (e.g., no module in the Python standard
library), and
There is no standard library for JSON in Java. Implementations have to import an external library for it, but that hasn't stopped people claiming JSON is a must have.
Most Java developers use the Jackson libraries, which include support for several serializations including JSON, XML and YAML.
(e) yaml uses whitespace for grammar. In theory, VOTable preserves
whitespace (by virtue of TD being xs:string even in TABLEDATA).
In practice, given XML prettyprinters and all that, I'd rather
not bet on it.
Claiming we can't handle YAML because our standard is tied to an old XML schema that doesn't preserve spaces is
exactly the kind of thing this issue is intended to make us think about.
We should see this as a reason for to update the VOTable standard to preserve spaces, not a reason to avoid new things because we are stuck with an old XML schema.
from dali.
We should see this as a reason for to update the VOTable standard to preserve spaces
See VOTable#54 and VOTable#55
from dali.
(e) yaml uses whitespace for grammar. In theory, VOTable preserves
whitespace (by virtue of TD being xs:string even in TABLEDATA).
In practice, given XML prettyprinters and all that, I'd rather
not bet on it.
You are right, this could happen - I didn't read your comment carefully enough.
from dali.
from dali.
Related Issues (20)
- new xtype="words"
- new xtype="phrases" HOT 4
- xtype="range" HOT 1
- new xtype="uri" HOT 2
- new xtype="uuid" HOT 9
- vocabulary for "xtype" ? HOT 1
- add xtype(s) to support polymorphic values
- Add data origin in VOTable output
- Case sensitive params HOT 1
- New xtypes for sexagesimal angles HOT 3
- Update reference to RDF examples vocabulary HOT 1
- promote xtype section in doc HOT 3
- add xtype(s) for disjoint intervals and polygons HOT 1
- new xtype="json" HOT 25
- Multipolygon delimiter format/examples HOT 1
- Unions of interval, circle, etc
- OVERFLOW query status too tightly linked to MAXREC param
- multipolygon considered unnecessary HOT 3
- HTTP Accept header HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dali.