|
20 | 20 |
|
21 | 21 | function addCondition() |
22 | 22 | { |
23 | | - animals="$animals \"sex\": { \"type\": \"Property\", \"value\": \"$1\"}," |
| 23 | + animals="$animals \"sex\": { \"type\": \"VocabularyProperty\", \"vocab\": \"$1\"}," |
24 | 24 | if [ "$1" == "male" ]; then |
25 | | - animals="$animals \"phenologicalCondition\": { \"type\": \"Property\", \"value\": \"maleAdult\"},"; |
26 | | - animals="$animals \"reproductiveCondition\": { \"type\": \"Property\", \"value\": \"active\"},"; |
| 25 | + animals="$animals \"phenologicalCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"maleAdult\"},"; |
| 26 | + animals="$animals \"reproductiveCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"active\"},"; |
27 | 27 | else |
28 | | - animals="$animals \"phenologicalCondition\": { \"type\": \"Property\", \"value\": \"femaleAdult\"},"; |
| 28 | + animals="$animals \"phenologicalCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"femaleAdult\"},"; |
29 | 29 |
|
30 | 30 | if [ $((count%11)) -eq 0 ]; then |
31 | | - animals="$animals \"reproductiveCondition\": { \"type\": \"Property\", \"value\": \"inactive\"},"; |
| 31 | + animals="$animals \"reproductiveCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"inactive\"},"; |
32 | 32 | elif [ $((count%7)) -eq 0 ]; then |
33 | | - animals="$animals \"reproductiveCondition\": { \"type\": \"Property\", \"value\": \"inHeat\"},"; |
| 33 | + animals="$animals \"reproductiveCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"inHeat\"},"; |
34 | 34 | elif [ $((count%5)) -eq 0 ]; then |
35 | | - animals="$animals \"reproductiveCondition\": { \"type\": \"Property\", \"value\": \"inCalf\"},"; |
| 35 | + animals="$animals \"reproductiveCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"inCalf\"},"; |
36 | 36 | else |
37 | | - animals="$animals \"reproductiveCondition\": { \"type\": \"Property\", \"value\": \"active\"},"; |
| 37 | + animals="$animals \"reproductiveCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"active\"},"; |
38 | 38 | fi |
39 | 39 | fi |
40 | 40 | } |
|
0 commit comments