GithubHelp home page GithubHelp logo

datamodel.environment's People

Contributors

albertoabellagarcia avatar audunven avatar caa06d9c avatar danielvillalbamota avatar jason-fox avatar jilinhe avatar jmcanterafonseca avatar m-arun avatar mgaggero avatar mohamedsadiq102 avatar shyam28598 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

datamodel.environment's Issues

Validating a normalized payload using the provided JSON schema does not work

According to the the main site, the best way to validate a payload is to simply use https://www.jsonschemavalidator.net/ in combination with the JSON schema files on Github. However, the AirQualityObserved schema only supports the keyValues representation -- which as far as I know, is the least important serialization format of NGSI-LD data.

For instance, the schema file specifies:

"dateObserved": {
  "type": "string",
  "description": "Property. The date and time of this observation in ISO8601 UTCformat. Model:'https://schema.org/Text' "
}

Which conflicts with the current data example:

"dateObserved": {
  "type": "Property",
  "value": "2016-03-15T11:00:00/2016-03-15T12:00:00"
}

With the following error message:

Invalid Type. Expected String but got Object.

Would it be possible to provide schema files for both the keyvalues and the normalized formats?
Additionally, it may be worth considering to use SHACL (or ShEx) instead of JSON Schema, as these languages contain useful LD-specific features that JSON Schema wasn't designed for.

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.