The goal is to build a general framework for ad hoc applications over large networks using semantics and complex systems analysis. The first part deals with semantics because applications need to be described. Ontologies are used to achieve it. They systematize application knowledge in a graph. Sometimes, the amount of information can be huge, in other words, the graph could be a large network. This is the reason why in the second part called complex systems analysis, statistical analysis is used to extract properties from the graph. It allows to discover new knowledge because some structures appear in the graph as connections degree, clustering and "small world". For instance, this information will show which application components are highly and poorly connected and it is translated to a vulnerability to attacks. Finally, a telecommunication project is used as benchmark to validate the previous work.