Skip to content

Commit f406401

Browse files
committed
Use vocab
1 parent cfdd012 commit f406401

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

import-data

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ EOF
2020

2121
function addCondition()
2222
{
23-
animals="$animals \"sex\": { \"type\": \"Property\", \"value\": \"$1\"},"
23+
animals="$animals \"sex\": { \"type\": \"VocabularyProperty\", \"vocab\": \"$1\"},"
2424
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\"},";
2727
else
28-
animals="$animals \"phenologicalCondition\": { \"type\": \"Property\", \"value\": \"femaleAdult\"},";
28+
animals="$animals \"phenologicalCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"femaleAdult\"},";
2929

3030
if [ $((count%11)) -eq 0 ]; then
31-
animals="$animals \"reproductiveCondition\": { \"type\": \"Property\", \"value\": \"inactive\"},";
31+
animals="$animals \"reproductiveCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"inactive\"},";
3232
elif [ $((count%7)) -eq 0 ]; then
33-
animals="$animals \"reproductiveCondition\": { \"type\": \"Property\", \"value\": \"inHeat\"},";
33+
animals="$animals \"reproductiveCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"inHeat\"},";
3434
elif [ $((count%5)) -eq 0 ]; then
35-
animals="$animals \"reproductiveCondition\": { \"type\": \"Property\", \"value\": \"inCalf\"},";
35+
animals="$animals \"reproductiveCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"inCalf\"},";
3636
else
37-
animals="$animals \"reproductiveCondition\": { \"type\": \"Property\", \"value\": \"active\"},";
37+
animals="$animals \"reproductiveCondition\": { \"type\": \"VocabularyProperty\", \"vocab\": \"active\"},";
3838
fi
3939
fi
4040
}

0 commit comments

Comments
 (0)