An electronic device , the electronic device comprising: a touch screen display ; and at least one processor configured to: identify a task among a plurality of tasks configured in a semantic information-based task ontology, identify functions for each piece of device information corresponding to the identified task based on the semantic information-based task ontology, identify a plurality of devices connectable to the electronic device , identify functions corresponding to the plurality of devices based on a semantic information-based product information ontology, compare the functions corresponding to the plurality of devices with the functions for each piece of device information, identify one or more devices for performing the identified task from among the plurality of devices based on the comparing, display, on the touch screen display, information on the identified task and information on the identified one or more devices, identify whether the identified one or more devices are connected to the electronic device, and based on identifying that at least one device of the identified one or more devices is not connected to the electronic device, display, on the touch screen display, a first message for requesting connection of the at least one device for performing the identified task. a touch screen display ; and at least one processor configured to: identify a task among a plurality of tasks configured in a semantic information-based task ontology, identify functions for each piece of device information corresponding to the identified task based on the semantic information-based task ontology, identify a plurality of devices connectable to the electronic device , identify functions corresponding to the plurality of devices based on a semantic information-based product information ontology, compare the functions corresponding to the plurality of devices with the functions for each piece of device information, identify one or more devices for performing the identified task from among the plurality of devices based on the comparing, display, on the touch screen display, information on the identified task and information on the identified one or more devices, identify whether the identified one or more devices are connected to the electronic device, and based on identifying that at least one device of the identified one or more devices is not connected to the electronic device, display, on the touch screen display, a first message for requesting connection of the at least one device for performing the identified task. identify a task among a plurality of tasks configured in a semantic information-based task ontology, identify functions for each piece of device information corresponding to the identified task based on the semantic information-based task ontology, identify a plurality of devices connectable to the electronic device , identify functions corresponding to the plurality of devices based on a semantic information-based product information ontology, compare the functions corresponding to the plurality of devices with the functions for each piece of device information, identify one or more devices for performing the identified task from among the plurality of devices based on the comparing, display, on the touch screen display, information on the identified task and information on the identified one or more devices, identify whether the identified one or more devices are connected to the electronic device, and based on identifying that at least one device of the identified one or more devices is not connected to the electronic device, display, on the touch screen display, a first message for requesting connection of the at least one device for performing the identified task. <EOS>