Export: cli export {filename}
Writes Things, Locations, Datastreams, Sensors, ObservedProperties and their relations as json to a file. The current logged in host is used to export the entities from. The Observations, HistoricalLocations and FeaturesOfInterest are ignored for now. Requesting of relations should be done with expand but since the GOST version on our demo server is old and does not yet support $expand so this is done differently for now
Import: cli import {filename} {host}
Imports an exported file by sensorthings-cli to a given SensorThings server, linked id's can differ on the host so this is taken care of by mapping the old reference id's to the new ones given by the server. HistoricalLocations are currently not exported so they will be created by the server after posting a location, so keep in mind that the time of the HistoricalLocation is incorrect.
Added first version of import/export function
Export: cli export {filename} Writes Things, Locations, Datastreams, Sensors, ObservedProperties and their relations as json to a file. The current logged in host is used to export the entities from. The Observations, HistoricalLocations and FeaturesOfInterest are ignored for now. Requesting of relations should be done with expand but since the GOST version on our demo server is old and does not yet support $expand so this is done differently for now
Import: cli import {filename} {host} Imports an exported file by sensorthings-cli to a given SensorThings server, linked id's can differ on the host so this is taken care of by mapping the old reference id's to the new ones given by the server. HistoricalLocations are currently not exported so they will be created by the server after posting a location, so keep in mind that the time of the HistoricalLocation is incorrect.