This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rustc --crate-type=staticlib jexl_evaluator.rs | |
g++ main.cpp -L. -ljexl_evaluator -o main | |
./main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rustc --crate-type=staticlib hello.rs | |
g++ main.cpp -L. -lhello -o main | |
./main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require('http') | |
const data = JSON.stringify({"id":"E","type":"T","location":{"type":"geo:json","value":{"type":"Point","coordinates":[32.124,-5.218]}},"address":{"type":"String","value":"House"},"TimeInstant":{"type":"DateTime","value":"2021-03-22T08:26:49.566Z"}}) | |
const data2 = JSON.stringify({"id":"E","type":"T","TimeInstant":{"type":"DateTime","value":"2021-03-22T08:26:49.530Z"}}) | |
const options = { | |
hostname: 'localhost', | |
port: 1026, | |
path: '/v2/entities?options=upsert', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl localhost:1026/v2/entities -H 'content-type: application/json' -d @- <<EOF | |
{"contextElements": [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl localhost:1026/v2/entities -H 'content-type: application/json' -d @- <<EOF | |
{"id": "urn:ngsi-ld:Store:123", "type": "Store", "address": {"type": "PostalAddress", "value": {"streetAddress": "Bornholmer Straße 65", "addressRegion": "Berlin", "addressLocality": "Prenzlauer Berg", "postalCode": "10439"}, "metadata": {"verified": {"value": "true", "type": ": Boolean"}}}, "location": {"type": "geo:json", "value": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point", "coordinates": {"type": "Point |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl localhost:1026/v2/entities -H 'content-type: application/json' -d @- <<EOF | |
{"id": "urn:ngsi-ld:Store:123", "type": "Store", "address": {"type": "PostalAddress", "value": {"streetAddress": "Bornholmer Straße 65", "addressRegion": "Berlin", "addressLocality": "Prenzlauer Berg", "postalCode": "18446744073709551615"}, "metadata": {"verified": {"value": "true", "type": ": Boolean"}}}, "location": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "va |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl localhost:1026/v2/entities -H 'content-type: application/json' -d @- <<EOF | |
{"id": "urn:ngsi-ld:Store:123", "type": "Store", "address": {"type": "PostalAddress", "value": {"streetAddress": "Bornholmer Straße 65", "addressRegion": "Berlin", "addressLocality": "Prenzlauer Berg", "postalCode": "10439"}, "metadata": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"verified": {"ve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use your favorite diff program | |
DIFF=meld | |
for file in $(ls cases/3068_cprs_full_functional/*.test) | |
do | |
# Remove fwd_v2 prefix | |
old_file=$(echo $file | awk -F 'fwd_v2_' '{print $2}') | |
echo $DIFF cases/0787_cprs_full_functional/$old_file $file | |
$DIFF cases/0787_cprs_full_functional/$old_file $file | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ diff -u ngsiv2-draft-schema.orig.json ngsiv2-draft-schema.json | |
--- ngsiv2-draft-schema.orig.json 2019-04-08 12:23:44.103171653 +0200 | |
+++ ngsiv2-draft-schema.json 2019-04-09 13:05:47.637837620 +0200 | |
@@ -10,26 +10,6 @@ | |
"maxLength": 256, | |
"pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" | |
}, | |
- "Name": { | |
- "allOf": [ | |
- { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "foo", | |
"type": "geo:distance", | |
"A": { | |
"type": "Number", | |
"value": 4 | |
} | |
} |
NewerOlder