A computer-implemented method for processing metadata by an electronic device, the method comprising: providing an ontology database including a plurality of ontologies, each ontology including a plurality of information elements and data defining the relation among the plurality of information elements; obtaining an image; obtaining at least part of recognition information about the image, the recognition information including at least one of identification information about the user included in the image, identification information about a thing included in the image, composition information about objects included in the image, information about text included in the image, and color/chroma/lightness/brightness information about the image; obtaining at least part of information related to the image, the information relating to the image including at least one of context information indicating the capture context/condition for the image, user input information, and the context information may include at least one of time or location captured, ambient sounds when/while being captured, or camera setting information when/while being captured; updating the ontology database using at least part of the recognition information and the information related to the image; integrating the recognition information about the image with the information related to the image based on the ontology database to estimate at least one information element of recognition information or information related to the image failed to obtain during obtaining at least part of recognition information and at least part of information related to the image; and storing the integrated information as the metadata of the image for providing a service or a function using the integrated information. providing an ontology database including a plurality of ontologies, each ontology including a plurality of information elements and data defining the relation among the plurality of information elements; obtaining an image; obtaining at least part of recognition information about the image, the recognition information including at least one of identification information about the user included in the image, identification information about a thing included in the image, composition information about objects included in the image, information about text included in the image, and color/chroma/lightness/brightness information about the image; obtaining at least part of information related to the image, the information relating to the image including at least one of context information indicating the capture context/condition for the image, user input information, and the context information may include at least one of time or location captured, ambient sounds when/while being captured, or camera setting information when/while being captured; updating the ontology database using at least part of the recognition information and the information related to the image; integrating the recognition information about the image with the information related to the image based on the ontology database to estimate at least one information element of recognition information or information related to the image failed to obtain during obtaining at least part of recognition information and at least part of information related to the image; and storing the integrated information as the metadata of the image for providing a service or a function using the integrated information. <EOS>