About me
home
Portfolio
home

3주차 실습

./services validate baseline.yaml 이나
./services validate agriculture.yaml 을 입력하여 API가 valid한지 확인한다.
./services ngsi argiculture.yaml 을 입력하게 되면
data.models.context-ngsi.jsonld 파일이 생성된다.
cat ./data.models.context-ngsi.jsonld 를 해주면 안의 내용을 볼 수 있다.
내용물은 크게 3가지로 나뉜다.
A list of standard terms and abbreviations - this avoids the necessity of repeating URIs and reduced the overall size of the file
예) “type”, “id”, “ngsi-ld”, “fiware”, “schema”
A series of defined entity types (e.g. Building). These usually start with a capital letter.
예) “Bell”, “Building”, “Door” ,”Person”, …
A list of attributes (e.g. address) and enumerations (e.g. barn)
예) “address”, “temperature”, “price”, …