A method for generating a virtual thing for a machine-to-machine application of a machine-to-machine system, wherein the machine-to-machine system includes a management function, a mashup-manager and one or more databases including at least one of a local database and a database connected to the machine-to-machine system, wherein the one or more database provides one or more member resources for the machine-to-machine applications, the method comprising:
- sending, by the management function, a request for generating a virtual thing to the mashup-manager;
- and
- initiating, by the mashup-manager, the generation of the requested virtual thing based on the information provided in the request on at least one of the databases,
- wherein the request for generating the virtual thing includes virtual thing generation information comprising:
- member resource information, a predefined query for collecting data from one of the member resources according to the member resource information, and semantic logic information that requires the generated virtual thing to be configured to apply logic corresponding to the semantic logic information on the collected data.