Skip to content

Commit

Permalink
port data models review 2
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoabellagarcia committed Dec 12, 2023
1 parent 46f9a6f commit b84aaed
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 23 deletions.
6 changes: 5 additions & 1 deletion SMARTCITIES/SMARTPORTS/NEW_PORT/PortCallEvent/comments.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@

9.- source is a SDM common attribute, used the common one

10.- 'uuid' tiene un pattern en el comentario pero podría tenerlo en la definción si fuera obligatorio.
10.- 'uuid' tiene un pattern en el comentario pero podría tenerlo en la definción si fuera obligatorio.

11.- The value of eventContext does ot match the definition in the schema

12.- Too many required attributes. removed some of them
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"eventTime": "2023-01-01T07:30:00",
"eventType": "anchorArea.eta.agent",
"locationType": "anchorArea",
"location": "Fondeadero D",
"position": "Fondeadero D",
"port": "ESHUV",
"portcallId": "ESHUV202301296",
"recordTime": "2023-01-01T07:30:00",
Expand Down
15 changes: 4 additions & 11 deletions SMARTCITIES/SMARTPORTS/NEW_PORT/PortCallEvent/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@
"PortCallEvent"
]
},

"eventContext": {
"$ref": "https://raw.githubusercontent.com/smart-data-models/incubated/master/SMARTCITIES/SMARTPORTS/NEW_PORT/MarineTransport-schema.json#/definitions/IEventContext",
"$ref": "https://smart-data-models.github.io/incubated/SMARTCITIES/SMARTPORTS/NEW_PORT/MarineTransport-schema.json#/definitions/IEventContext",
"description": "EventContext is a key-value object in which users are allowed to put custom keys for any purposes. The following keys have pre-defined meanings within the spec. Keys in this object are always optional"
},
"eventTime": {
"description": "Time at which the event occured/will occur. The meaning of this should be interperted according to eventType",
"description": "Time at which the event occurred/will occur. The meaning of this should be interpreted according to eventType",
"format": "date-time",
"type": "string"
},
Expand Down Expand Up @@ -259,7 +258,7 @@
"type": "string"
},
"eventLocation": {
"$ref": "https://raw.githubusercontent.com/smart-data-models/incubated/master/SMARTCITIES/SMARTPORTS/NEW_PORT/MarineTransport-schema.json#/definitions/IEeventLocation",
"$ref": "https://smart-data-models.github.io/incubated/SMARTCITIES/SMARTPORTS/NEW_PORT/MarineTransport-schema.json#/definitions/IEventContext",
"description": "Property. Identifies a physical location at which the event will take place"
},
"port": {
Expand Down Expand Up @@ -302,12 +301,6 @@
"id",
"type",
"eventTime",
"eventType",
"port",
"recordTime",
"ship",
"source",
"uuid",
"version"
"eventType"
]
}
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
{
"id": "urn:mrn:eshuv:portcalls:portcallvessel:id:1234",
"type": "VesselAtPort",
"type": "PortCallVessel",
"masterVesselRef": "urn:mrn:eshuv:portcalls:mastervessel:imo:9863637",
"imo": 9863637,
"mmsi": 210049000,
"callSign": "5BPC3",
"name": "ELEANOR R.",
"portCallNumber": "ESHUV202300123",
"portCallNumber": "ESHUV202300123",
"portCallRef": "urn:mrn:eshuv:portcalls:portcall:id:941",

"portCode": "ESHUV",
"portCode": "ESHUV",
"lastPortCode": "ESPMI",
"nextPortCode": "ESVLC",
"etaAis": "2023-03-01T07:00:00.00Z",
"etaAlgorithm": "2023-03-02T07:00:00.00Z",

"loa": 132,
"gt": 23.200,
"specialManeuverIndicator": 1,
"manager": "Acme MANAGER NAME",

"draught": 4,
"arrivalDraught": 7,
"departureDraught": 4,
"airDraught": 4,

"navigationStatus": 4,

"location": {
"type": "Point",
"coordinates": [
Expand All @@ -35,13 +30,11 @@
]
},
"positionAccuracy": 0,

"speedOverGround": 11.3,
"courseOverGround": 1,
"heading": 1,
"rateOfTurn": 1,
"dataProvider": "PilotSystem",

"createdAt": "2023-06-01T07:00:00",
"modifiedAt": "2022-06-01T07:00:00",
"observedAt": "2022-06-01T07:00:00"
Expand Down

0 comments on commit b84aaed

Please sign in to comment.