Modelling Property Ranges in Part7 and Part8

Message
Author
KeithWillshaw
Posts: 77
Joined: Tue May 15, 2012 8:48 am

Re: Modelling Property Ranges in Part7 and Part8

#21 Post by KeithWillshaw »

Victor Agroskin Posted

> Keith,

> What is the difference between suggested template and
> PropertyRangeMagnitudeRestrictionOfClass already registered with
> URI http://tpl.rdlfacade.org/data#R57467669805 and available at
> http://www.iringsandbox.org/repositorie ... tSet/query ?

Mainly that one is for Individuals and the other for classes


> These Lower and Upper Limit classes look like a mistake for me.
> They are instances of a subtype of ClassOfProperty.
> But no "upper" or "lower" derivations can be modeled as "direct" property.
> They should be specializations of ClassOfIndirectProperty, not Single
> Property Dimensions.

Well they are defined as Single Property in Part 4 but I agree they are
clearly indirect property and have been given templates of InDirectPropertyScaleReal

> As you can not omit a role in a template or put it to zero if it's indeed an infinity - I'm supporting Hans suggestion for two extra templates.

If we have a situation where we only have one value then we clearly need to model them separately.

Both scenarios are possible, examples

Calibrated Range for an Instrument - you would always have both values

Operating Pressure Range - Its concievable that you have only the maximum value

I looked at the Templates Hans provided for Max and Min Values and in general they look good, the only question is why do we need the Cardinalty Role when when only have one value by definition

Keith

KeithWillshaw
Posts: 77
Joined: Tue May 15, 2012 8:48 am

Re: Modelling Property Ranges in Part7 and Part8

#22 Post by KeithWillshaw »

HT Posted

Hi Keith,

> All six cases are about ClassOfIndirectProperty.
> Please see:
> http://www.infowebml.ws/TS/TS-> details/TemplatesForIndirectProperty.htm#ClassOfIndirectPropertyWithBoundingValues
> http://www.infowebml.ws/TS/TS-details/T ... ximumValue
> http://www.infowebml.ws/TS/TS-details/T ... nimumValue

> Null values are not allowed in Part 8

Thanks that helps

There are two common scenarios for which I can provide examples

1) Instrument has Property Calibrated Range
Here we always have two values the max and min

We did have some disucssion on whether this should be Direct or Indirect
so I would be interested on your reason for chosing Indirect

2) Equipment has Operating Pressure Range
Here its entirely possible we would only have one of the values,
typically the Upper Limit

One clarification I would like is why we need a template role for
Cardinality when we have only a single value

Keith

HansTeijgeler
Posts: 283
Joined: Sun Jan 22, 2012 10:02 pm

Re: Modelling Property Ranges in Part7 and Part8

#23 Post by HansTeijgeler »

Hi Keith,
1) Instrument has Property Calibrated Range; Here we always have two values the max and min
We did have some discussion on whether this should be Direct or Indirect so I would be interested on your reason for chosing Indirect
[HT] Yes, then use http://www.infowebml.ws/TS/TS-details/T ... dingValues
I quote Part 2:
A property is indirect because it does not directly apply. There can only be one temperature that a thing has (at a time), so a Maximum Allowable Working Temperature is not its temperature, but an indirect property derived from doing some tests or calculations to determine its value (as opposed to it being a current measurement). This is what makes it indirect.
The temperature of a thermometer with a calibrated range of 50 - 150 degrees C that lays in stock is ambient temperature.
2) Equipment has Operating Pressure Range; Here its entirely possible we would only have one of the values, typically the Upper Limit
[HT] Then be specific and use a template with only an upper limit: http://www.infowebml.ws/TS/TS-details/T ... ximumValue
One clarification I would like is why we need a template role for Cardinality when we have only a single value
[HT] As explained in http://www.15926.info/class-of-relation ... nality.htm the cardinality defines how many member relationships there may be with end1 involved, and how many with end2 involved. In this case it states that an object can have only one design pressure (to mention an example) at a time. To humans that is clear, computers are dumb and have to be instructed.

Regards,
Hans

dariuskanga
Posts: 76
Joined: Thu Mar 08, 2012 1:43 pm

Re: Modelling Property Ranges in Part7 and Part8

#24 Post by dariuskanga »

Hi Hans,
Quote:
2) Equipment has Operating Pressure Range; Here its entirely possible we would only have one of the values, typically the Upper Limit

[HT] Then be specific and use a template with only an upper limit: http://www.infowebml.ws/TS/TS-details/T ... ximumValue
It’s fine to use a range template for an application that has both values and a single property template when the app has only the upper or lower value. But what if an app has both properties but a particular object may have a null for one of the values; maybe only the lower or only the upper range value is currently known? Would you have to conditionally map to three templates (range, lower, and upper) and have the software select the appropriate one depending on the data values? That seems unreasonably complex. I realize this is a mere implementation issue :D

HansTeijgeler
Posts: 283
Joined: Sun Jan 22, 2012 10:02 pm

Re: Modelling Property Ranges in Part7 and Part8

#25 Post by HansTeijgeler »

Hi Darius,

Yes, that would be complex. Typically I wouldn't map incomplete data.

Is your question hypothetical or based on a real-world use case?
Who is supposed to act upon this incomplete information?

The problem might be solved by replacing Operating Pressure Range with two templates, one for Minimum Operating Pressure and one for Maximum Operating Pressure. Your mapping software can do this once and for all. Then you have the freedom you wish to have.

Regards,
Hans

mikhail fedorov
Posts: 13
Joined: Thu Mar 08, 2012 8:37 am
Location: Haarlem, the Netherlands

Re: Modelling Property Ranges in Part7 and Part8

#26 Post by mikhail fedorov »

As far as I understand there will have to be some logic at the application level anyway as you do not only have to check that an upper or a lower limit is not null but you have to make sure the value has the appropriate type. The axiom implies the type but doesn't prevent you from using the template with improper values

Post Reply