Skip to content

Commit

Permalink
Added initial model files
Browse files Browse the repository at this point in the history
  • Loading branch information
hylkevds committed May 8, 2024
1 parent a129035 commit bf8e359
Show file tree
Hide file tree
Showing 9 changed files with 992 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
{
"conformance": [],
"simplePropertyTypes": [],
"entityTypes": [
{
"name": "Datastream",
"plural": "Datastreams",
"adminOnly": false,
"table": "datastreams",
"orderByDflt": [],
"entityProperties": [
{
"name": "id",
"aliases": [
"@iot.id"
],
"type": "Id",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperId",
"field": "id"
}
],
"annotations": []
},
{
"name": "name",
"type": "Edm.String",
"required": true,
"nullable": false,
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperString",
"field": "name"
}
],
"annotations": []
},
{
"name": "description",
"type": "Edm.String",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperString",
"field": "description"
}
],
"annotations": []
},
{
"name": "resultType",
"type": "Object",
"required": true,
"nullable": false,
"hasCustomProperties": true,
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperJson",
"field": "result_type",
"isMap": true
}
],
"annotations": []
},
{
"name": "properties",
"type": "Object",
"hasCustomProperties": true,
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperJson",
"field": "properties",
"isMap": true
}
],
"annotations": []
},
{
"name": "observedArea",
"type": "Edm.Geometry",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperGeometry",
"fieldSource": "",
"fieldGeom": "observed_area"
}
],
"annotations": []
},
{
"name": "phenomenonTime",
"type": "TimeInterval",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperTimeInterval",
"fieldStart": "phenomenon_time_start",
"fieldEnd": "phenomenon_time_end"
}
],
"annotations": []
},
{
"name": "resultTime",
"type": "TimeInterval",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperTimeInterval",
"fieldStart": "result_time_start",
"fieldEnd": "result_time_end"
}
],
"annotations": []
}
],
"navigationProperties": [
{
"name": "Sensor",
"entitySet": false,
"entityType": "Sensor",
"required": true,
"symmetrical": false,
"priority": 0,
"inverse": {
"name": "Datastreams",
"entitySet": true,
"required": false,
"priority": 0,
"annotations": []
},
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperOneToMany",
"field": "sensor_id",
"otherTable": "sensors",
"otherField": "id"
}
],
"annotations": []
},
{
"name": "Thing",
"entitySet": false,
"entityType": "Thing",
"required": true,
"symmetrical": false,
"priority": 0,
"inverse": {
"name": "Datastreams",
"entitySet": true,
"required": false,
"priority": 0,
"annotations": []
},
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperOneToMany",
"field": "thing_id",
"otherTable": "things",
"otherField": "id"
}
],
"annotations": []
}
],
"annotations": []
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"conformance": [],
"simplePropertyTypes": [],
"entityTypes": [
{
"name": "Feature",
"plural": "Features",
"adminOnly": false,
"table": "features",
"orderByDflt": [],
"entityProperties": [
{
"name": "id",
"aliases": [
"@iot.id"
],
"type": "Id",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperId",
"field": "id"
}
],
"annotations": []
},
{
"name": "name",
"type": "Edm.String",
"required": true,
"nullable": false,
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperString",
"field": "name"
}
],
"annotations": []
},
{
"name": "description",
"type": "Edm.String",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperString",
"field": "description"
}
],
"annotations": []
},
{
"name": "encodingType",
"type": "Edm.String",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperString",
"field": "encoding_type"
}
],
"annotations": []
},
{
"name": "feature",
"type": "Geometry",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperGeometry",
"fieldSource": "feature",
"fieldGeom": "geom"
}
],
"annotations": []
},
{
"name": "properties",
"type": "Object",
"hasCustomProperties": true,
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperJson",
"field": "properties",
"isMap": true
}
],
"annotations": []
}
],
"navigationProperties": [
{
"name": "FeatureTypes",
"entitySet": true,
"entityType": "FeatureType",
"required": false,
"symmetrical": false,
"priority": 0,
"inverse": {
"name": "Features",
"entitySet": true,
"required": false,
"priority": 0,
"annotations": []
},
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperManyToMany",
"field": "id",
"linkTable": "features_feature_types",
"linkOurField": "feature_id",
"linkOtherField": "feature_type_id",
"otherTable": "feature_types",
"otherField": "id"
}
],
"annotations": []
}
],
"annotations": []
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"conformance": [],
"simplePropertyTypes": [],
"entityTypes": [
{
"name": "FeatureType",
"plural": "FeatureTypes",
"adminOnly": false,
"table": "feature_types",
"orderByDflt": [],
"entityProperties": [
{
"name": "id",
"aliases": [
"@iot.id"
],
"type": "Id",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperId",
"field": "id"
}
],
"annotations": []
},
{
"name": "name",
"type": "Edm.String",
"required": true,
"nullable": false,
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperString",
"field": "name"
}
],
"annotations": []
},
{
"name": "description",
"type": "Edm.String",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperString",
"field": "description"
}
],
"annotations": []
},
{
"name": "definition",
"type": "Edm.String",
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperString",
"field": "definition"
}
],
"annotations": []
},
{
"name": "properties",
"type": "Object",
"hasCustomProperties": true,
"handlers": [
{
"@class": "de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.utils.fieldmapper.FieldMapperJson",
"field": "properties",
"isMap": true
}
],
"annotations": []
}
],
"navigationProperties": [],
"annotations": []
}
]
}
Loading

0 comments on commit bf8e359

Please sign in to comment.