Coder Social home page Coder Social logo

Comments (7)

Moult avatar Moult commented on July 4, 2024 1

A note that the cardinality may be fixed in the schema, but that's a separate thing to the cardinality in IDS.

For example, the cardinality in schema might be optional, but the IDS might say "It is required for this to be filled in" or "It is prohibited for this to be filled in".

from ids.

Moult avatar Moult commented on July 4, 2024

I recall attribute regexes were useful in some of the more annoying situations like LayerSetName vs Name.

It also has usecases in schema differences.

Why is the cardinality for attributes meaningless?

from ids.

pasi-paasiala avatar pasi-paasiala commented on July 4, 2024

There are very few useful attributes in IFC. Most of the expected use cases deal with things like property sets and classifications. That's why I'd prefer to keep the attribute implementation as simple as possible. The effort to write LayerSetName instead of using regex is small in comparison to supporting this in multiple implementations.

The current schemas are compatible, aren't they? Things are only added, so I don't understand the point of schema difference use cases.

In my opinion, you can only set requirements for an attribute value. Whether there is an attribute or not depends on the schema and not on the user. That's why I think cardinality is meaningless.

from ids.

aothms avatar aothms commented on July 4, 2024

from ids.

TLiebich avatar TLiebich commented on July 4, 2024

schema compatibility in ifc also applies to ifcXML (if used), so I agree with Pasi. In case of attributes (mainly "Name", "Description", "LongName", and a few others) both the attribute name and the attribute cardinality are fixed in the schema and no use for wildcards or other cardinality bounds. So requirements for attributes are only useful for its value, not for the attribute name.

from ids.

pasi-paasiala avatar pasi-paasiala commented on July 4, 2024

The cardinality for attributes then can only be min/max = 0 or min/max = 1. Or should cardinality be applied to the value of the attribute, for example, if it is a list, then you could require that it has at least three items? I wonder, if there are any list attributes?

from ids.

Moult avatar Moult commented on July 4, 2024

The cardinality for everything, not just attributes, can either be required, optional, or prohibited only. IDS as far as I'm aware has no scope right now for checking cardinality in the full sense of "there must be N items"

Note that handling lists is also covered in the test cases.

from ids.

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.