Skip to content

Commit 7394605

Browse files
committed
Amend data loader
1 parent b68856d commit 7394605

15 files changed

+387
-683
lines changed

NGSI-LD Registrations.postman_collection.json

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"info": {
3-
"_postman_id": "c41ead05-48b8-4f30-9460-d921a817ebec",
3+
"_postman_id": "31256bfe-4ef9-47b8-a771-a07c0d4e168d",
44
"name": "NGSI-LD Registrations",
55
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
6-
"_exporter_id": "513743",
7-
"_collection_link": "https://fiware.postman.co/workspace/NGSI-LD-tutorials~60157bf9-a93f-4c6e-90d1-0917133c1872/collection/513743-c41ead05-48b8-4f30-9460-d921a817ebec?action=share&source=collection_link&creator=513743"
6+
"_exporter_id": "4106882"
87
},
98
"item": [
109
{
@@ -266,7 +265,7 @@
266265
"header": [
267266
{
268267
"key": "Link",
269-
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json"
268+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\""
270269
}
271270
],
272271
"url": {
@@ -344,7 +343,7 @@
344343
},
345344
{
346345
"key": "Link",
347-
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json"
346+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\""
348347
},
349348
{
350349
"key": "NGSILD-Tenant",
@@ -512,7 +511,7 @@
512511
"header": [
513512
{
514513
"key": "Link",
515-
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json"
514+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\""
516515
},
517516
{
518517
"key": "NGSILD-Tenant",
@@ -605,7 +604,7 @@
605604
"header": [
606605
{
607606
"key": "Link",
608-
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json"
607+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\""
609608
},
610609
{
611610
"key": "NGSILD-Tenant",
@@ -808,7 +807,7 @@
808807
"header": [
809808
{
810809
"key": "Link",
811-
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json"
810+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\""
812811
},
813812
{
814813
"key": "NGSILD-Tenant",
@@ -848,7 +847,7 @@
848847
"header": [
849848
{
850849
"key": "Link",
851-
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json"
850+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\""
852851
},
853852
{
854853
"key": "NGSILD-Tenant",
@@ -878,7 +877,7 @@
878877
"header": [
879878
{
880879
"key": "Link",
881-
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json"
880+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\""
882881
},
883882
{
884883
"key": "NGSILD-Tenant",
@@ -908,7 +907,7 @@
908907
"header": [
909908
{
910909
"key": "Link",
911-
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json"
910+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\""
912911
},
913912
{
914913
"key": "NGSILD-Tenant",
@@ -939,7 +938,7 @@
939938
"header": [
940939
{
941940
"key": "Link",
942-
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json"
941+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\""
943942
},
944943
{
945944
"key": "NGSILD-Tenant",
@@ -968,6 +967,7 @@
968967
"listen": "prerequest",
969968
"script": {
970969
"type": "text/javascript",
970+
"requests": {},
971971
"exec": [
972972
""
973973
]
@@ -977,6 +977,7 @@
977977
"listen": "test",
978978
"script": {
979979
"type": "text/javascript",
980+
"requests": {},
980981
"exec": [
981982
""
982983
]
@@ -994,28 +995,23 @@
994995
},
995996
{
996997
"key": "farmer",
997-
"value": "localhost:1027",
998-
"type": "string"
998+
"value": "localhost:1027"
999999
},
10001000
{
10011001
"key": "vet",
1002-
"value": "localhost:1030",
1003-
"type": "string"
1002+
"value": "localhost:1030"
10041003
},
10051004
{
10061005
"key": "contractor",
1007-
"value": "localhost:1029",
1008-
"type": "string"
1006+
"value": "localhost:1029"
10091007
},
10101008
{
10111009
"key": "devices",
1012-
"value": "localhost:1028",
1013-
"type": "string"
1010+
"value": "localhost:1028"
10141011
},
10151012
{
10161013
"key": "weather",
1017-
"value": "localhost:1031",
1018-
"type": "string"
1014+
"value": "localhost:1031"
10191015
}
10201016
]
10211017
}

data/agri-crop.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
id,type,name,description,hasAgriSoil,hasAgriPest
2+
urn:ngsi-ld:AgriCrop:BuckWheat,AgriCrop,BuckWheat,"Buckwheat is a small, dark grain used for feeding animals and for making flour","[""urn:ngsi-ld:AgriSoil:clay""]","[""urn:ngsi-ld:AgriPest:aster-yellows"",""urn:ngsi-ld:AgriPest:root-rot""]"
3+
urn:ngsi-ld:AgriCrop:Corn,AgriCrop,Corn,"Corn is a cereal plant that yields large grains set in rows on a cob. Its origins trace back to the Americas, where ancient civilizations began cultivating it over 9,000 years ago. Corn is of significant economic importance as a staple food in many parts of the world and is also used as livestock feed, raw material in industry, and a component in biofuel production.","[""urn:ngsi-ld:AgriSoil:loam""]","[""urn:ngsi-ld:AgriPest:aster-yellows"",""urn:ngsi-ld:AgriPest:root-rot"",""urn:ngsi-ld:AgriPest:powdery-mildew""]"
4+
urn:ngsi-ld:AgriCrop:Grass,AgriCrop,Grass,"Crop grass refers to various grass species cultivated and harvested for agricultural purposes. These grasses are grown for their high nutritional content and versatility, typically used for fodder, silage, and sometimes for grain production. ","[""urn:ngsi-ld:AgriSoil:silt"",""urn:ngsi-ld:AgriSoil:sand"",""urn:ngsi-ld:AgriSoil:loam""]","[""urn:ngsi-ld:AgriPest:aphid"",""urn:ngsi-ld:AgriPest:cutworm"",""urn:ngsi-ld:AgriPest:thistle""]"

data/agri-farm.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
id,type,addressLocality,addressRegion,postalCode,streetAddress,name,owner,location_type,lng,lat,alternateName,hasAgriParcel,hasBuilding
2+
urn:ngsi-ld:AgriFarm:farm001,AgriFarm,Tiergarten,Berlin,10557,Großer Stern 1,Victory Farm,urn:ngsi-ld:Person:person001,Point,13.3505,52.5144,,"[""urn:ngsi-ld:AgriParcel:001"",""urn:ngsi-ld:AgriParcel:002""]","[""urn:ngsi-ld:Building:tower003"",""urn:ngsi-ld:Building:farm001"",""urn:ngsi-ld:Building:barn002""]"
3+
urn:ngsi-ld:AgriFarm:farm002,AgriFarm,Tiergarten,Berlin,10787,Hardenbergplatz 8,Animal Farm,urn:ngsi-ld:Person:person002,Point,13.3368,52.5078,Manor Farm,"[""urn:ngsi-ld:AgriParcel:003"",""urn:ngsi-ld:AgriParcel:004"",""urn:ngsi-ld:AgriParcel:005"",""urn:ngsi-ld:AgriParcel:006""]","[""urn:ngsi-ld:Building:farm002""]"

data/agri-parcel.csv

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id,type,name,cropStatus,soilTextureType,hasAgriSoil,hasAgriCrop,observation,prediction,temperature,humidity,hasDevices,providedBy,ownedBy
2+
urn:ngsi-ld:AgriParcel:001,AgriParcel,Wheatfield,seeded,Clay Loam,urn:ngsi-ld:AgriSoil:clay,urn:ngsi-ld:AgriCrop:BuckWheat,urn:ngsi-ld:WeatherObserved:001,urn:ngsi-ld:WeatherForecast:001,15.4,0.5,"[""urn:ngsi-ld:SoilSensor:humidity001"",""urn:ngsi-ld:Thermometer:temp001""]",urn:ngsi-ld:SoilSensor:humidity001,urn:ngsi-ld:Person:person001
3+
urn:ngsi-ld:AgriParcel:002,AgriParcel,Cornfield,growing,Loam,urn:ngsi-ld:AgriSoil:loam,urn:ngsi-ld:AgriCrop:Corn,urn:ngsi-ld:WeatherObserved:002,urn:ngsi-ld:WeatherForecast:001,,0.6,"[""urn:ngsi-ld:SoilSensor:humidity002""]",urn:ngsi-ld:SoilSensor:humidity002,urn:ngsi-ld:Person:person001
4+
urn:ngsi-ld:AgriParcel:005,AgriParcel,Water Meadow,maturing,Sandy Loam,urn:ngsi-ld:AgriSoil:sand,urn:ngsi-ld:AgriCrop:Grass,urn:ngsi-ld:WeatherObserved:004,urn:ngsi-ld:WeatherForecast:002,,0.7,"[""urn:ngsi-ld:SoilSensor:humidity003""]",urn:ngsi-ld:SoilSensor:humidity003,urn:ngsi-ld:Person:person002
5+
urn:ngsi-ld:AgriParcel:006,AgriParcel,The Paddock,maturing,Loam,urn:ngsi-ld:AgriSoil:loam,urn:ngsi-ld:AgriCrop:Grass,urn:ngsi-ld:WeatherObserved:005,urn:ngsi-ld:WeatherForecast:002,,0.6,"[""urn:ngsi-ld:SoilSensor:humidity004""]",urn:ngsi-ld:SoilSensor:humidity004,urn:ngsi-ld:Person:person002
6+
urn:ngsi-ld:AgriParcel:003,AgriParcel,North Pasture,maturing,Loam,urn:ngsi-ld:AgriSoil:loam,urn:ngsi-ld:AgriCrop:Grass,urn:ngsi-ld:WeatherObserved:003,urn:ngsi-ld:WeatherForecast:002,,0.6,"[""urn:ngsi-ld:SoilSensor:humidity005""]",urn:ngsi-ld:SoilSensor:humidity005,urn:ngsi-ld:Person:person002
7+
urn:ngsi-ld:AgriParcel:004,AgriParcel,East Pasture,maturing,Silt loam,urn:ngsi-ld:AgriSoil:silt,urn:ngsi-ld:AgriCrop:Grass,,,,0.6,"[""urn:ngsi-ld:SoilSensor:humidity006""]",urn:ngsi-ld:SoilSensor:humidity006,urn:ngsi-ld:Person:person002

data/agri-pest.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
id,type,name,alternateName,description,agroVocConcept
2+
urn:ngsi-ld:AgriPest:aster-yellows,AgriPest,Aster yellows,Solidaster luteus,"Aster yellows is a chronic, systemic plant disease caused by several bacteria called phytoplasma.",http://aims.fao.org/aos/agrovoc/c_31924
3+
urn:ngsi-ld:AgriPest:root-rot,AgriPest,Root rot,Heterobasidion annosum,Root rot is a condition in which anoxic conditions in the soil or potting media around the roots of a plant cause them to rot. ,http://aims.fao.org/aos/agrovoc/f_10024
4+
urn:ngsi-ld:AgriPest:powdery-mildew,AgriPest,Powdery mildew,Golovinomyces cichoracearum,Powdery mildew is a fungal disease that appears as white powdery spots on the leaves and stems of many plants,http://aims.fao.org/aos/agrovoc/f_32224
5+
urn:ngsi-ld:AgriPest:aphid,AgriPest,Aphids,Aphididae,"Aphids are soft-bodied pear-shaped insects that come in a variety of colors like black, brown, red, pink, or green, and may even have transparent wings. ",http://aims.fao.org/aos/agrovoc/i_87345
6+
urn:ngsi-ld:AgriPest:cutworm,AgriPest,Cutworms,Noctuidae,"Cutworms are moth larvae that hide under litter or soil during the day, coming out in the dark to feed on plants. A larva typically attacks the first part of the plant it encounters, namely the stem, often of a seedling, and consequently cuts it down",http://aims.fao.org/aos/agrovoc/i_98898
7+
urn:ngsi-ld:AgriPest:grasshopper,AgriPest,Grasshoppers,horthippus parallelus,"Grasshoppers occur in greatest numbers in lowland tropical forests, semiarid regions, and grasslands. Although most grasshoppers are herbivorous, only a few species are important economically as crop pests. ",http://aims.fao.org/aos/agrovoc/c_89873
8+
urn:ngsi-ld:AgriPest:horse-fly,AgriPest,Horse Fly,Tabanidae,"Horse flies are large, stout-bodied flies that bite mammals, especially horses.",http://aims.fao.org/aos/agrovoc/p_978667
9+
urn:ngsi-ld:AgriPest:ear-tick,AgriPest,Ear Tick,Otobius megnini,"The spinose ear tick, is a soft-bodied tick that is only parasitic in the larval and nymphal stages. As its common name suggests, the spinose ear tick's parasitic forms are usually found within the ears of the host. This tick has a worldwide distribution, with common hosts that include horses, cattle, sheep, goats, and dogs",http://aims.fao.org/aos/agrovoc/p_978457
10+
urn:ngsi-ld:AgriPest:tick,AgriPest,Tick,Ixodes ricinus,"Ticks are parasitic arachnids of the order Ixodida. They are part of the mite superorder Parasitiformes. Adult ticks are approximately 3 to 5 mm in length depending on age, sex, and species, but can become larger when engorged. Ticks are external parasites, living by feeding on the blood of mammals",http://aims.fao.org/aos/agrovoc/p_97722
11+
urn:ngsi-ld:AgriPest:thistle,AgriPest,Thistles,Carduus nutans,Thistle is the common name of a group of flowering plants characterized by leaves with sharp spikes on the margins. Prickles can also occur all over the plant – on the stem and on the flat parts of the leaves. These prickles protect the plant from herbivores,http://aims.fao.org/aos/agrovoc/p_19245

data/agri-soil.csv

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id,type,name,alternateName,description,agroVocConcept
2+
urn:ngsi-ld:AgriSoil:clay,AgriSoil,Clay,Heavy Soil,"Fine grained, poor draining soil. Particle size less than 0.002mm",http://aims.fao.org/aos/agrovoc/s_2452
3+
urn:ngsi-ld:AgriSoil:loam,AgriSoil,Loamy,,"an even mix of sand, silt, and clay",http://aims.fao.org/aos/agrovoc/s_0112
4+
urn:ngsi-ld:AgriSoil:sand,AgriSoil,Sandy,,"Sandy soil is mostly sand particles. It feels gritty to the touch. Because sand particles don’t absorb water but create a lot of space in between for water to move, sandy soil drains quickly and nutrients wash away. On the plus side, sandy soil doesn’t suffer much from compaction and is very good for plants that like loose soil",http://aims.fao.org/aos/agrovoc/s_9921
5+
urn:ngsi-ld:AgriSoil:silt,AgriSoil,Silty,,"Silt is between sand and clay in terms of particle size, and it’s mostly composed of quartz. Silty soil is comprised of at least 80% silt. When dry, silty soil feels like flour. When wet, it’s loose like sand, making it prone to erosion. Silty soil can be the most fertile soil in the world, but without roots and other components to hold it down, it’s likely to wash awa",http://aims.fao.org/aos/agrovoc/s_4444
6+
urn:ngsi-ld:AgriSoil:chalk,AgriSoil,Chalky,,"Chalk soil contains chalk and limestone. It’s larger grained and stonier than other soils. Because the particles are bigger, it drains really well but doesn’t keep any moisture. It’s basically like sandy soil. Chalk soil also breaks down organic matter much faster, meaning you’ll find it challenging keeping your soil fertile.",http://aims.fao.org/aos/agrovoc/s_1897
7+
urn:ngsi-ld:AgriSoil:peat,AgriSoil,Peaty,,"Peat soil is the opposite of chalk soil, where it’s so acidic that organic matter has difficulty breaking down, and so creates peat. It will feel spongy because of all the organic matter. The high amount of organic matter increases aeration, but because the organic matter is very slow in breaking down, not a lot of nutrients are being released for plants to absorb.",http://aims.fao.org/aos/agrovoc/s_8927

data/building.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
id,type,addressLocality,addressRegion,postalCode,streetAddress,name,category,owner,location_type,lng,lat
2+
urn:ngsi-ld:Building:tower003,Building,Tiergarten,Berlin,10557,John-Foster-Dulles-Allee,Triton Tower,water_tower,urn:ngsi-ld:Person:person001,Point,13.3598,52.5165
3+
urn:ngsi-ld:Building:farm001,Building,Tiergarten,Berlin,10557,Großer Stern 1,Victory Farm,farm,urn:ngsi-ld:Person:person001,Point,13.3505,52.5144
4+
urn:ngsi-ld:Building:farm002,Building,Tiergarten,Berlin,10787,Hardenbergplatz 8,Animal Farm,farm,urn:ngsi-ld:Person:person002,Point,13.3368,52.5078
5+
urn:ngsi-ld:Building:barn002,Building,Tiergarten,Berlin,10557,Straße des 17. Juni,Big Red Barn,barn,urn:ngsi-ld:Person:person001,Point,13.3698,52.5163

0 commit comments

Comments
 (0)