Comments (4)
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.
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.
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.
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)
- IDS schema location HOT 5
- uri attribute in propertyType not available in applicability (0.9.7) HOT 4
- Documentation checks
- Remove sample that is checking wall types HOT 2
- XSD regular expression flavor HOT 5
- Remove the outdated "implementation agreement" comment lines from the schema HOT 4
- IDS Audit Tool: Wrong error message for Pset_FootCommon.LoadBearing and Pset_FurnitureTypeCommon.Reference HOT 4
- IDS 0.9.7 Update Issues? HOT 5
- Errors in IDS files for attribute facet
- Can you actually contain a distribution system in a building? HOT 2
- test case coverage
- ‘Prohibited’ testcases in ‘ids’ suite invalid according to latest logic HOT 1
- Clarification of testcase intent: partof\pass-an_optional_facet_always_passes_regardless_of_outcome_1_2 HOT 1
- Invalid string literal in material test case: fail-an_optional_material_fails_if_no_value_matches.ifc
- invalid PSET requirements
- Problem of understanding documentation regarding Facets. HOT 4
- Inconsistent ifcVersion in IDS testcases HOT 3
- interpretation of IDS strings to value types (xs:base types) HOT 1
- Classification System Parameter HOT 3
- Double enumeration value in ids.xsd HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ids.