Coder Social home page Coder Social logo

Comments (4)

CBenghi avatar CBenghi commented on July 4, 2024 1

Entities selected with the applicability will have to adhere to the requirements listed.
In this case
Applicability: all entities (the xs:pattern value="IFC\w+" means all entities whose name start's with IFC -> which is all of them).
Have one requirement which states that they must be either IFCPROJECT, IFCWALL or IFCWINDOW.

To understand this you can think that if an IFCMATERIAL is present in the file, it matches the applicability.
So It is then tested for all the requirements specified, but it will fail, because IFCMATERIAL is not in the list provided.

I hope this makes sense.

from ids.

CBenghi avatar CBenghi commented on July 4, 2024

This would restrict all to PROJECT, WALL and WINDOWS... mind you, this would be an illegal IFC.

<ids:applicability maxOccurs="unbounded">
	<ids:entity>
		<ids:name>
			<xs:restriction base="xs:string">
				<xs:pattern value="IFC\w+"/>
			</xs:restriction>
		</ids:name>
	</ids:entity>
</ids:applicability>
<ids:requirements>
	<ids:entity>
		<ids:name>
			<xs:restriction base="xs:string">
				<xs:enumeration value="IFCPROJECT"/>
				<xs:enumeration value="IFCWALL"/>
				<xs:enumeration value="IFCWINDOW"/>
			</xs:restriction>
		</ids:name>
	</ids:entity>
</ids:requirements>

Please close the issue if the response is clear.

from ids.

abdoulayediak avatar abdoulayediak commented on July 4, 2024

Thanks for your reply. Could you please explain the logic of your answer?
And is the detail of these tags (e.g., restrictions under name, etc.) documented somewhere? The documentation I am seeing in the Github is great for general understanding but a bit limited to allow me to understand what you did here.

from ids.

abdoulayediak avatar abdoulayediak commented on July 4, 2024

Sounds like an elegant approach! Thank you.
Currently digging into the XSD to learn more, but I'd be happy to take any hint on more documentation (I'll close the issue though).

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.