1. A non-transitory computer-readable storage medium tangibly storing computer-readable instructions thereon, which when executed by the computer, cause the computer to perform operations comprising: generating a memory object graph comprising a plurality of memory objects, the memory objects comprising runtime data for an application framework that runs an application and for the application; creating a semantic tree structure defining context of the application framework with a set of new nodes that represent hierarchical elements of the application framework; defining a first set of memory objects from the plurality of memory objects that are related to the application framework and a second set of memory objects from the plurality of memory objects that are related to the application; based on the context of the application framework, identifying one or more memory objects from the first set of memory objects related to the application framework required by a node from the semantic tree structure; determining a set of edges from edges in the memory object graph between the first set of memory objects and the second set of memory objects by removing an edge from the edges in the memory object graph between a first memory object in the identified one or more memory objects and a second memory object from the second set of memory objects, wherein a second edge connects a third memory object from the second set of memory objects and the first memory object; assigning the identified one or more memory objects to the node from the set of new nodes in the semantic tree structure to generate a semantic graph for detecting dependencies between the application framework and the application; and generating the semantic graph that includes the semantic tree structure in root part, the memory objects, relationships based on the assigning between the semantic tree structure and the first set of memory objects related to the application framework, and the determined set of edges between the first set of memory objects and the second set of memory objects related to the application.