2020
2121function addCondition()
2222{
23- animals=" $animals \" sex\" : { \" type\" : \" VocabularyProperty \" , \" vocab\" : \" $1 \" },"
23+ animals=" $animals \" sex\" : { \" type\" : \" VocabProperty \" , \" vocab\" : \" $1 \" },"
2424 if [ " $1 " == " male" ]; then
25- animals=" $animals \" phenologicalCondition\" : { \" type\" : \" VocabularyProperty \" , \" vocab\" : \" maleAdult\" }," ;
26- animals=" $animals \" reproductiveCondition\" : { \" type\" : \" VocabularyProperty \" , \" vocab\" : \" active\" }," ;
25+ animals=" $animals \" phenologicalCondition\" : { \" type\" : \" VocabProperty \" , \" vocab\" : \" maleAdult\" }," ;
26+ animals=" $animals \" reproductiveCondition\" : { \" type\" : \" VocabProperty \" , \" vocab\" : \" active\" }," ;
2727 else
28- animals=" $animals \" phenologicalCondition\" : { \" type\" : \" VocabularyProperty \" , \" vocab\" : \" femaleAdult\" }," ;
28+ animals=" $animals \" phenologicalCondition\" : { \" type\" : \" VocabProperty \" , \" vocab\" : \" femaleAdult\" }," ;
2929
3030 if [ $(( count% 11 )) -eq 0 ]; then
31- animals=" $animals \" reproductiveCondition\" : { \" type\" : \" VocabularyProperty \" , \" vocab\" : \" inactive\" }," ;
31+ animals=" $animals \" reproductiveCondition\" : { \" type\" : \" VocabProperty \" , \" vocab\" : \" inactive\" }," ;
3232 elif [ $(( count% 7 )) -eq 0 ]; then
33- animals=" $animals \" reproductiveCondition\" : { \" type\" : \" VocabularyProperty \" , \" vocab\" : \" inHeat\" }," ;
33+ animals=" $animals \" reproductiveCondition\" : { \" type\" : \" VocabProperty \" , \" vocab\" : \" inHeat\" }," ;
3434 elif [ $(( count% 5 )) -eq 0 ]; then
35- animals=" $animals \" reproductiveCondition\" : { \" type\" : \" VocabularyProperty \" , \" vocab\" : \" inCalf\" }," ;
35+ animals=" $animals \" reproductiveCondition\" : { \" type\" : \" VocabProperty \" , \" vocab\" : \" inCalf\" }," ;
3636 else
37- animals=" $animals \" reproductiveCondition\" : { \" type\" : \" VocabularyProperty \" , \" vocab\" : \" active\" }," ;
37+ animals=" $animals \" reproductiveCondition\" : { \" type\" : \" VocabProperty \" , \" vocab\" : \" active\" }," ;
3838 fi
3939 fi
4040}
@@ -117,7 +117,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
117117 {
118118 "id": "urn:ngsi-ld:Building:farm001",
119119 "type": "Building",
120- "category": {"type": "Property ", "value ": ["farm"]},
120+ "category": {"type": "VocabProperty ", "vocab ": ["farm"]},
121121 "address": {
122122 "type": "Property",
123123 "value": { "streetAddress": "Großer Stern 1", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10557"},
@@ -133,7 +133,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
133133 {
134134 "id": "urn:ngsi-ld:Building:barn002",
135135 "type": "Building",
136- "category": {"type": "Property ", "value ": ["barn"]},
136+ "category": {"type": "VocabProperty ", "vocab ": ["barn"]},
137137 "address": {
138138 "type": "Property",
139139 "value": { "streetAddress": "Straße des 17. Juni", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10557"},
@@ -149,7 +149,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
149149 {
150150 "id": "urn:ngsi-ld:Building:tower003",
151151 "type": "Building",
152- "category": {"type": "Property ", "value ": ["water_tower"]},
152+ "category": {"type": "VocabProperty ", "vocab ": ["water_tower"]},
153153 "address": {
154154 "type": "Property",
155155 "value": { "streetAddress": "John-Foster-Dulles-Allee", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10557"},
@@ -165,7 +165,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
165165 {
166166 "id": "urn:ngsi-ld:Building:farm002",
167167 "type": "Building",
168- "category": {"type": "Property ", "value ": ["farm"]},
168+ "category": {"type": "VocabProperty ", "vocab ": ["farm"]},
169169 "address": {
170170 "type": "Property",
171171 "value": { "streetAddress": "Hardenbergplatz 8", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10787"},
0 commit comments