-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
992 additions
and
0 deletions.
There are no files selected for viewing
168 changes: 168 additions & 0 deletions
168
Plugins/CoreModelV2/src/main/resources/plugincoremodelv2/model/Datastream.json
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
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": [] | ||
} | ||
] | ||
} |
119 changes: 119 additions & 0 deletions
119
Plugins/CoreModelV2/src/main/resources/plugincoremodelv2/model/Feature.json
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
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": [] | ||
} | ||
] | ||
} |
79 changes: 79 additions & 0 deletions
79
Plugins/CoreModelV2/src/main/resources/plugincoremodelv2/model/FeatureType.json
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
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": [] | ||
} | ||
] | ||
} |
Oops, something went wrong.