Giter Club home page Giter Club logo

iota's People

Contributors

rgeraldporter avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iota's Issues

Changes to the feed standard

So I think now that we've been using IoTA objects internally for awhile, we should discuss changes we want/need to make for this to be a 1.0 candidate. Here are a few of my thoughts:

  1. Since an IoTA object is, generally, one "thing," I feel like geo should be an object, rather than an array. If there are multiple locations (eg, for each item in the items array), that informantion should be stored in each item.
  2. Related to that, I feel like we should use GeoJSON for our geometric points. Just storing lat/lng in our current format isn't really a problem, but if we ever need to model more complicated things (shapes, lines, etc), we have a framework for it.
  3. On the subject of taxonomies, I'd like to see them moved from an array to a key/value pair. This will making looking things up or seeing if properties exist much easier & faster.
// Current:
"taxonomies": [
    {
        "type":  "tags",
        "value": [ "objects", "examples" ]
    },
    {
        "type":  "categories",
        "value": [ "published" ]
    }
]

// Proposed (Option A):
"taxonomies": {
    {
        "tags": [ "objects", "examples" ],
        "categories": [ "published" ]
    }
}

// Proposed (Option B):
"taxonomies": {
    {
        "tags": {
            "value": [ "objects", "examples" ]
        },
        "categories": {
            "value": [ "published" ]
        }
    }
}
  1. On the subject of relationships: Do we need them? I'm struggling to find a difference between relationships and taxonomies.
  2. On the subject of datetime: We should always store dates and times as unix timestamps. We should also agree to always use either number of seconds (PHP style) or number of milliseconds (JS style). I don't have a strong preference either way, just as long as we're in agreement.
  3. On the subject of datetime: This is more of a "programming" issue than a "feed standards" issue, but we should try and always include created and updated values in our datetime.
  4. On the subject of accessControls: I feel that we should remove references to this until we have a working prototype. It's a good idea, but not fully fleshed out yet, and I don't want to limit ourselves "because that's what the spec says."

So, these are the few things I've been thinking of. Any thoughts/opinions? @AdamSutch, I think you said you had some changes you wanted to see, but I may be misremembering?

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.