the occurrence of geological disasters can have a large impact on urban safety. protecting people's safety is the most important concern when disasters occur. safety improvement requires a large amount of comprehensive and representative risk analysis and a large collection of information related to geological hazards, including unstructured knowledge and experience. to address the relevant information and support safety risk analysis, a geological hazard knowledge graph is developed automatically based on computer vision and domain-geoscience ontology to identify geological hazards from input images while obeying safety rules and regulations, even when affected by changes. in the implementation of the knowledge graph, we design an ontology schema of geological disasters based on a top-down approach, and by organizing knowledge as a logical semantic expression, it can be shared using ontology technologies and therefore enable semantic interoperability. computer vision approaches are then used to automatically detect a set of entities and attributes, using the data from input images, and object types and their attributes are identified so that they can be stored in neo4j for reasoning and searching. finally, a reasoning model for geological hazard identification was developed using the neo4j database to create nodes, relationships, and their properties for modeling, and geological hazards in the images can be automatically identified by searching the neo4j database. an application on geological hazard is presented. the results show the effectiveness of the proposed approach in terms of identifying possible potential hazards in geological hazards and assisting in formulating targeted preventive measures.