-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstant.py
50 lines (48 loc) · 1.29 KB
/
constant.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
entity_url = 'http://180.179.214.221:9090/ngsi-ld/v1/entities/'
header={'content-type': 'application/ld+json', 'Accept-Charset': 'UTF-8'}
s_url='http://192.168.100.108:8080/ngsi10/subscribeContext'
jsonld_url="https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/coreContext/ngsi-ld-core-context.jsonld"
brand_url="http://example.org/"
id_value="urn:ngsi-ld:"
update_url='http://192.168.100.108:8080/ngsi10/updateContext'
create_status=201
update_status=204
internal_status=500
not_found_status=404
multistatus=207
fog_header={'content-type': 'application/json', 'Accept-Charset': 'UTF-8'}
update_data= \
{
"contextElements": [
{
"entityId": {
"id": "Car31",
"type": "Car",
"isPattern": True
},
"attributes": [
{
"name": "brand40",
"type": "string",
"contextValue": "ford5"
},
{
"name": "brand50",
"type": "string",
"contextValue": "ford6"
}
],
"domainMetadata": [
{
"name": "location",
"type": "point",
"value": {
"latitude": 49.406393,
"longitude": 8.684208
}
}
]
}
],
"updateAction": "UPDATE"
}