GithubHelp home page GithubHelp logo

Include YAML as well as JSON about dali HOT 4 OPEN

ivoa-std avatar ivoa-std commented on August 18, 2024
Include YAML as well as JSON

from dali.

Comments (4)

Zarquan avatar Zarquan commented on August 18, 2024

(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.

Zarquan avatar Zarquan commented on August 18, 2024

We should see this as a reason for to update the VOTable standard to preserve spaces

See VOTable#54 and VOTable#55

from dali.

Zarquan avatar Zarquan commented on August 18, 2024

(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.

msdemlei avatar msdemlei commented on August 18, 2024

from dali.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.