Giter Site home page Giter Site logo

datamodel.building's People

Contributors

albertoabellagarcia avatar jason-fox avatar jilinhe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

datamodel.building's Issues

Modelling a movable bridge as Building

We are trying to model a movable bridge using the smart data model classes.

In our current approach we want to link a Building of category = 'bridge' with a RoadSegment with its properties status and statusDescription to model the dynamic character of the bridge (i.e., it can be opened or closed). The following figure illustrates our approach:

UML diagram

In this vein, we would like to propose an extension of the Building model with a passedBy (alternatively, refRoadSegment?) attribute. If there are no objections, we will prepare a pull request with the corresponding change.

Thank you!

Inconsistency Relationship vs Property

The schema for Building has a field occupier, which is described as an array of relationships.

"occupier": {
"type": "array",
"description": "Relationship. Person or entity using the building. Model:'https://schema.org/URL'",
"items": {
"oneOf": [
{
"type": "string",
"format": "uri"
},
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"
}
]
}
},

But in the example building the attribute occupier is a Property, not a Relationship.

"occupier": {
"type": "Property",
"value": [
"urn:ngsi-ld:Person:9830f692-7677-11e6-838b-4f9fb3dc5a4f"
]
},

I am trying to understand if this is i) a mistake, ii) a shortcoming of the spec, which does not support multiple relationship or iii) something else

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.