Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

unitCode: {value:""},

observable: {value:""},
name: {value:""},
iptype: {value:"iot:CarbonDioxideConcentration"},
capability: {value:""},
Expand Down Expand Up @@ -58,18 +57,11 @@
<div class="form-row">
<label for="node-input-unitCode" style="width:40%"><i class="icon-tag"></i> UnitCode:</label>
<select id="node-input-unitCode" style="width:30%">
<option value="iot:PartsPerMillion">PartsPerMillion</option>
<option value="iot:PartsPerMillion">PartsPerMillion</option>
<option value="iot:Percent">Percent</option>
<option value="iot:GasInAirConcentrationUnit">GasInAirConcentrationUnit</option>
</select><br/>
</div>

<div class="form-row">
<label for="node-input-observable" style="width:40%"><i class="icon-tag"></i> Observable:</label>
<select id="node-input-observable" style="width:30%">
<option value="true">True</option>
<option value="false">False</option>
</select>
</div>
<hr/>
<b>Optional</b><br/>
Expand Down Expand Up @@ -113,7 +105,7 @@ <h4><b>Configurations</b></h4>
<dt>UnitCode <span class="property-type">


<ul><li>PartsPerMillion</li><li>PartsPerMillion</li><li>Percent</li></ul>
<ul><li>GasInAirConcentrationUnit</li></ul>
</span></dt>
</dl>
</dl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ module.exports = function(RED) {
configJ["configParams"]["FeatureOfInterestType"] = config.foitype;
configJ["configParams"]["FeatureOfInterest"] = config.foi;
configJ["configParams"]["unitCode"] = config.unitCode

configJ["configParams"]["observable"] = config.observable;
configJ["configParams"]["operation"] = config.operation;
configJ["configParams"]["operation"] = config.operation;
output = configInt.addConfigAttributes(source, configJ);
let graph = [];
graph = configInt.removeDuplicates(output["@graph"]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"sh:and": {
"@list": [
{
"@id": "_:ub732bL5C1"
"@id": "_:ub69bL37C1"
},
{
"@id": "_:ub732bL10C1"
"@id": "_:ub69bL42C1"
}
]
},
Expand All @@ -28,75 +28,82 @@
}
},
{
"@id": "_:ub732bL24C1",
"@id": "_:ub69bL28C1",
"sh:property": {
"@id": "_:ub732bL24C14"
"@id": "_:ub69bL28C14"
}
},
{
"@id": "_:ub732bL29C1",
"sh:not": {
"@id": "_:ub732bL29C10"
"@id": "_:ub69bL25C13",
"sh:minCount": 1,
"sh:path": {
"@id": "iot:acceptsInputData"
}
},
{
"@id": "_:ub732bL10C15",
"sh:in": {
"@list": [
{
"@id": "iot:PartsPerMillion"
},
{
"@id": "iot:PartsPerMillion"
},
{
"@id": "iot:Percent"
}
]
"@id": "_:ub69bL37C15",
"sh:datatype": {
"@id": "xsd:float"
},
"sh:maxCount": 1,
"sh:minCount": 1,
"sh:path": {
"@id": "schema:unitCode"
"@id": "schema:propertyType"
}
},
{
"@id": "_:ub732bL5C15",
"sh:datatype": {
"@id": "xsd:float"
},
"@id": "_:ub69bL14C15",
"sh:maxCount": 1,
"sh:minCount": 1,
"sh:node": {
"@id": "iot:CarbonDioxideConcentrationData"
},
"sh:path": {
"@id": "schema:propertyType"
"@id": "iot:providesOutputData"
}
},
{
"@id": "_:ub732bL33C1",
"@id": "_:ub69bL19C1",
"sh:property": {
"@id": "_:ub732bL33C14"
"@id": "_:ub69bL19C14"
}
},
{
"@id": "_:ub732bL30C13",
"sh:minCount": 1,
"sh:path": {
"@id": "iot:acceptsInputData"
"@id": "_:ub69bL42C1",
"sh:property": {
"@id": "_:ub69bL42C15"
}
},
{
"@id": "_:ub732bL24C14",
"sh:hasValue": false,
"sh:maxCount": 1,
"@id": "_:ub69bL24C10",
"sh:property": {
"@id": "_:ub69bL25C13"
}
},
{
"@id": "_:ub69bL9C1",
"sh:property": {
"@id": "_:ub69bL9C15"
}
},
{
"@id": "_:ub69bL5C15",
"sh:minCount": 1,
"sh:node": {
"@list": [
{
"@id": "iot:AmbientAir"
}
]
},
"sh:path": {
"@id": "iot:writable"
"@id": "iot:capability"
}
},
{
"@id": "_:ub732bL10C1",
"@id": "_:ub69bL5C1",
"sh:property": {
"@id": "_:ub732bL10C15"
"@id": "_:ub69bL5C15"
}
},
{
Expand All @@ -105,16 +112,22 @@
"sh:and": {
"@list": [
{
"@id": "_:ub732bL19C1"
"@id": "_:ub69bL5C1"
},
{
"@id": "_:ub69bL9C1"
},
{
"@id": "_:ub69bL14C1"
},
{
"@id": "_:ub732bL24C1"
"@id": "_:ub69bL19C1"
},
{
"@id": "_:ub732bL29C1"
"@id": "_:ub69bL24C1"
},
{
"@id": "_:ub732bL33C1"
"@id": "_:ub69bL28C1"
}
]
},
Expand All @@ -123,18 +136,16 @@
}
},
{
"@id": "_:ub732bL19C15",
"@id": "_:ub69bL19C14",
"sh:hasValue": false,
"sh:maxCount": 1,
"sh:minCount": 1,
"sh:node": {
"@id": "iot:CarbonDioxideConcentrationData"
},
"sh:path": {
"@id": "iot:providesOutputData"
"@id": "iot:writable"
}
},
{
"@id": "_:ub732bL33C14",
"@id": "_:ub69bL28C14",
"sh:datatype": {
"@id": "xsd:boolean"
},
Expand All @@ -145,21 +156,47 @@
}
},
{
"@id": "_:ub732bL5C1",
"@id": "_:ub69bL37C1",
"sh:property": {
"@id": "_:ub732bL5C15"
"@id": "_:ub69bL37C15"
}
},
{
"@id": "_:ub732bL19C1",
"sh:property": {
"@id": "_:ub732bL19C15"
"@id": "_:ub69bL42C15",
"sh:in": {
"@list": [
{
"@id": "iot:GasInAirConcentrationUnit"
}
]
},
"sh:maxCount": 1,
"sh:minCount": 1,
"sh:path": {
"@id": "schema:unitCode"
}
},
{
"@id": "_:ub732bL29C10",
"@id": "_:ub69bL14C1",
"sh:property": {
"@id": "_:ub732bL30C13"
"@id": "_:ub69bL14C15"
}
},
{
"@id": "_:ub69bL24C1",
"sh:not": {
"@id": "_:ub69bL24C10"
}
},
{
"@id": "_:ub69bL9C15",
"sh:maxCount": 1,
"sh:minCount": 1,
"sh:node": {
"@id": "iot:Property"
},
"sh:path": {
"@id": "rdfs:subClassOf"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
color: '#00A4B4',
defaults: {


propertyType: {value:""},


unitCode: {value:""},

name: {value:""},
iptype: {value:"iot:CarbonDioxideConcentrationLimit"},
capability: {value:""},
Expand Down Expand Up @@ -43,6 +49,19 @@
</div>


<div class="form-row">
<label for="node-input-propertyType" style="width:40%"><i class="icon-tag"></i> PropertyType:</label>
<input type="text" id="node-input-propertyType" style="width:50%" placeholder="integer" disabled><br/>
</div>

<div class="form-row">
<label for="node-input-unitCode" style="width:40%"><i class="icon-tag"></i> UnitCode:</label>
<select id="node-input-unitCode" style="width:30%">
<option value="iot:PartsPerMillion">PartsPerMillion</option>
<option value="iot:Percent">Percent</option>
</select><br/>
</div>

<div class="form-row">
</div>
<hr/>
Expand All @@ -64,6 +83,32 @@
is a
Property.

It provides output
which
is
<code>CarbonDioxideConcentrationLimitData</code> .</p>

<p><br/>

<code>CarbonDioxideConcentrationLimitData</code> can be configured with
<code>propertyType</code>
<code>unitCode</code>
<br/><br/>
<h4><b>Configurations</b></h4>
<dl class="message-properties">
<dt>PropertyType <span class="property-type">
Integer

<ul></ul>
</span></dt>
</dl>
<dl class="message-properties">
<dt>UnitCode <span class="property-type">


<ul><li>PartsPerMillion</li><li>Percent</li></ul>
</span></dt>
</dl>
</dl>

</script>
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module.exports = function(RED) {
configJ["configParams"]["capability"] = config.capability;
configJ["configParams"]["FeatureOfInterestType"] = config.foitype;
configJ["configParams"]["FeatureOfInterest"] = config.foi;
configJ["configParams"]["unitCode"] = config.unitCode
configJ["configParams"]["operation"] = config.operation;
output = configInt.addConfigAttributes(source, configJ);
let graph = [];
Expand Down
Loading