Skip to content

Commit 51b6632

Browse files
publish(dataModel.OpenStreetMap): generated files for OSMAeroway
Date: 2026-05-26 23:47 UTC Generated by publish.py (smart-data-models publication pipeline)
1 parent 963eea0 commit 51b6632

27 files changed

Lines changed: 6708 additions & 0 deletions

OSMAeroway/ADOPTERS.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
---

OSMAeroway/README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[![Smart Data Models](https://smartdatamodels.org/wp-content/uploads/2022/01/SmartDataModels_logo.png "Logo")](https://smartdatamodels.org)
2+
# OSMAeroway
3+
Version: 0.0.1
4+
5+
## Description
6+
7+
An aeroway feature from OpenStreetMap tagged with aeroway=*. This data model is a derivative work based on the OpenStreetMap Wiki, licensed under CC BY-SA 2.0 by OpenStreetMap contributors.
8+
### Specification
9+
10+
Link to the [interactive specification](https://swagger.lab.fiware.org/?url=https://smart-data-models.github.io/dataModel.OpenStreetMap/OSMAeroway/swagger.yaml)
11+
12+
Link to the [specification](https://github.com/smart-data-models/dataModel.OpenStreetMap/blob/master/OSMAeroway/doc/spec.md)
13+
14+
Enlace a la [Especificación en español](https://github.com/smart-data-models/dataModel.OpenStreetMap/blob/master/OSMAeroway/doc/spec_ES.md)
15+
16+
Lien vers le [spécification en français](https://github.com/smart-data-models/dataModel.OpenStreetMap/blob/master/OSMAeroway/doc/spec_FR.md)
17+
18+
Link zur [deutschen Spezifikation](https://github.com/smart-data-models/dataModel.OpenStreetMap/blob/master/OSMAeroway/doc/spec_DE.md)
19+
20+
Link alla [specifica](https://github.com/smart-data-models/dataModel.OpenStreetMap/blob/master/OSMAeroway/doc/spec_IT.md)
21+
22+
[仕様へのリンク](https://github.com/smart-data-models/dataModel.OpenStreetMap/blob/master/OSMAeroway/doc/spec_JA.md)
23+
24+
[链接到规范](https://github.com/smart-data-models/dataModel.OpenStreetMap/blob/master/OSMAeroway/doc/spec_ZH.md)
25+
26+
[사양 링크](https://github.com/smart-data-models/dataModel.OpenStreetMap/blob/master/OSMAeroway/doc/spec_KO.md)
27+
### Examples
28+
29+
Link to the [example](https://smart-data-models.github.io/dataModel.OpenStreetMap/OSMAeroway/examples/example.json) (keyvalues) for NGSI v2
30+
31+
Link to the [example](https://smart-data-models.github.io/dataModel.OpenStreetMap/OSMAeroway/examples/example.jsonld) (keyvalues) for NGSI-LD
32+
33+
Link to the [example](https://smart-data-models.github.io/dataModel.OpenStreetMap/OSMAeroway/examples/example-normalized.json) (normalized) for NGSI-V2
34+
35+
Link to the [example](https://smart-data-models.github.io/dataModel.OpenStreetMap/OSMAeroway/examples/example-normalized.jsonld) (normalized) for NGSI-LD
36+
### Dynamic Examples generation
37+
38+
Link to the [Generator](https://smartdatamodels.org/extra/ngsi-ld_generator.php?schemaUrl=https://raw.githubusercontent.com/smart-data-models/dataModel.OpenStreetMap/master/OSMAeroway/schema.json&email=info@smartdatamodels.org) of NGSI-LD normalized payloads compliant with this data model. Refresh for new values
39+
40+
Link to the [Generator](https://smartdatamodels.org/extra/ngsi-ld_generator_keyvalues.php?schemaUrl=https://raw.githubusercontent.com/smart-data-models/dataModel.OpenStreetMap/master/OSMAeroway/schema.json&email=info@smartdatamodels.org) of NGSI-LD keyvalues payloads compliant with this data model. Refresh for new values
41+
42+
Link to the [Generator](https://smartdatamodels.org/extra/geojson_features_generator.php?schemaUrl=https://raw.githubusercontent.com/smart-data-models/dataModel.OpenStreetMap/master/OSMAeroway/schema.json&email=info@smartdatamodels.org) of geojson feature format payloads compliant with this data model. Refresh for new values
43+
### PostgreSQL schema
44+
### Contribution
45+
46+
If you have any issue on this data model you can raise an [issue](https://github.com/smart-data-models/dataModel.OpenStreetMap/issues) or contribute with a [PR](https://github.com/smart-data-models/dataModel.OpenStreetMap/pulls)
47+
48+
If you wish to develop your own data model you can start from [contribution manual](https://bit.ly/contribution_manual). Several services have been developed to help with:
49+
- [Test data model repository](https://smartdatamodels.org/index.php/data-models-contribution-api/) including the schema and example payloads, etc
50+
- [Generate PostgreSQL schema](https://smartdatamodels.org/index.php/sql-service/) to help create a table, create type, etc

OSMAeroway/code/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# OSMAeroway
2+
3+
### List of code samples
4+
5+
<!-- 50-List of code -->
6+
7+
<!-- [code entry](link) -->
8+
[code_for_using_dataModel.OpenStreetMap_OSMAeroway.py](https://github.com/smart-data-models/dataModel.OpenStreetMap/blob/master/OSMAeroway/code/code_for_using_dataModel.OpenStreetMap_OSMAeroway.py)
9+
10+
<!-- /50-List of code -->
11+
12+
### Contribution
13+
You can raise an [issue](https://github.com/smart-data-models/dataModel.OpenStreetMap/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.OpenStreetMap/pulls) on existing data models
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This code allows you to install a orion-ld broker in a linux system
2+
# The manuals are here https://github.com/FIWARE/context.Orion-LD/tree/develop/doc/manuals-ld
3+
#
4+
# INSTALL NGSI LD broker (OrionLD)
5+
# sudo docker pull mongo:3.6
6+
# sudo docker pull fiware/orion-ld
7+
# sudo docker network create fiware_default
8+
# sudo docker run -d --name=mongo-db --network=fiware_default --expose=27017 mongo:3.6 --bind_ip_all --smallfiles
9+
# sudo docker run -d --name fiware-orionld -h orion --network=fiware_default -p 1026:1026 fiware/orion-ld -dbhost mongo-db
10+
#
11+
# TO RELAUNCH (only if you have already installed a broker in the same machine)
12+
# sudo docker stop fiware-orionld
13+
# sudo docker rm fiware-orionld
14+
# sudo docker stop mongo-db
15+
# sudo docker rm mongo-db
16+
# sudo docker network rm fiware_default
17+
#
18+
# CHECK INSTANCES
19+
# curl -X GET 'http://localhost:1026/version'
20+
# curl -X GET http://localhost:1026/ngsi-ld/v1/entities?local=true&limit=1000
21+
#
22+
# now the python code you can use to insert some value in the context broker
23+
24+
from pysmartdatamodels import pysmartdatamodels as sdm
25+
import subprocess
26+
serverUrl = "http://localhost:1026" # Edit to match your broker configuration
27+
dataModel = "OSMAeroway"
28+
subject = "dataModel.OpenStreetMap"
29+
30+
osmId = 123123123
31+
attribute = "osmId"
32+
value = osmId
33+
# Updates the attribute in the broker; creates the entity if it does not exist
34+
print(sdm.update_broker(dataModel, subject, attribute, value, serverUrl=serverUrl, updateThenCreate=True))
35+
36+
osmType = "way"
37+
attribute = "osmType"
38+
value = osmType
39+
# Updates the attribute in the broker; creates the entity if it does not exist
40+
print(sdm.update_broker(dataModel, subject, attribute, value, serverUrl=serverUrl, updateThenCreate=True))
41+
42+
osmLastModified = "2024-03-12T08:00:00Z"
43+
attribute = "osmLastModified"
44+
value = osmLastModified
45+
# Updates the attribute in the broker; creates the entity if it does not exist
46+
print(sdm.update_broker(dataModel, subject, attribute, value, serverUrl=serverUrl, updateThenCreate=True))
47+
48+
print("In case you have installed the orion-ld broker (see header comments)")
49+
print("Execute this to check the entity was inserted:")
50+
command = ['curl', '-X', 'GET', 'http://localhost:1026/ngsi-ld/v1/entities?local=true&limit=1000']
51+
result = subprocess.run(command, capture_output=True, text=True)
52+
print(result.stdout)

0 commit comments

Comments
 (0)