For CIRCULOOS data model we will utilize components of the Smart Data Models
@context file is needed from Orion-LD to correctly link the data
- Go to Smart Data models and find select the data models that you need
- From each model, copy the RAW URL of the context.jsonld ie for https://github.com/smart-data-models/dataModel.Device/tree/master
https://raw.githubusercontent.com/smart-data-models/dataModel.Device/master/context.jsonld - Create a new json file with one line per data model ie for device: "dataModel.Device": "https://raw.githubusercontent.com/smart-data-models/dataModel.Device/master/context.jsonld",
- Upload it on-line (github or webserver)
- Go to Generate a local @context
- Save the json file and check for conflicts
See files under folder custom_data_model.
- Edit schema.json and all files in /examples to represent the new schema
- Upload it to Git or webserver
- For generating the model.yaml Edit and run utils/10_model.yaml_v10.py, Line 129: schemaUrl="" to point to the repository or webserver of the custom_data_model folder
- Move generated yaml to custom_data_model and sync with Git or webserver
- For generating the spec.md Edit and run utils/20_create_spec_v11.0.py L230: customRepository="" to point to the repository or webserver of the custom_data_model folder
- Copy generated file to custom_data_model/doc
- For generating the context.jsonld Edit and run 25_create_subject_context_V7.py, L323: customRepository="" to point to the repository or webserver of the custom_data_model folder
- For updating the url for each properties with the SmartDataModel webpage. Run update_urls_to_show_smart_data_model.py.
You can use the docker-compose.yml file located on the utils folder for a local webserver based on NGINX
unitCode : https://docs.peppol.eu/poacc/billing/3.0/codelist/UNECERec20/
Fiware dictionary/terms with for data models: https://github.com/smart-data-models/data-models/blob/master/terms.jsonld