Giter Site home page Giter Site logo

Comments (10)

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

I agree. If someone needs this relation, it is still implicitly available, since comments are linked to viewpoints.

from bcf-xml.

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

Now when looking at this again, it seems that the reference from comment to viewpoint can be removed. Viewpoint can have several comments, so there we need the relation.

from bcf-xml.

ErikPijnenburg avatar ErikPijnenburg commented on July 2, 2024

I raised this issue to make sure we do not create n:n relations between comments and viewpoints. Your solutions still allows that. When you keep only relation from comment to viewpoint and maxoccurs = 1 then this is taken care of.

from bcf-xml.

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

Currently there's maxoccurs = 1 in the markup schema. See line 119 in https://github.com/BuildingSMART/BCF/blob/master/Schemas/markup.xsd. My question is that did you mean that lines 119 to 123 should be removed? This is the information that I find redundant.

from bcf-xml.

ErikPijnenburg avatar ErikPijnenburg commented on July 2, 2024

I mean line 38 to 42 need to be removed to solve this,

from bcf-xml.

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

But that is the one to many relation between viewpoints and comments.

from bcf-xml.

ErikPijnenburg avatar ErikPijnenburg commented on July 2, 2024

Theoretically you could remove either 38-21 (relation from comment to viewpoint, single) or 119-123 (relation from viewpoint to comment, multiple).
If you would remove 119-123 we can still create n:n relations in the file (image the same comment is referred to from two different viewpoints)
If you remove 38-42 we can still create n:1 relation (imagine the same viewpoint is referred to in different comments) but we can never create n:n relations anymore. So that's why I consider this one the best solution.

from bcf-xml.

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

Got you!
Should the minoccurs then be 1 on line 119? Otherwise there can be comments that are not related to any viewpoint.

from bcf-xml.

ErikPijnenburg avatar ErikPijnenburg commented on July 2, 2024

minoccurs should remain '0' since a comment can be added without adding a new viewpoint or referring to a viewpoint. In theory we can have orphan viewpoints: viewpoint exist in the issue but has no comment pointing to it. This should be avoided by the software creating and managing issues.

from bcf-xml.

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

This is fixed in c3a8930

from bcf-xml.

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.