Problem
Building domain-specific semantic graphs by hand is slow, and standard text-to-graph pipelines ignore the spatial coordinate data and multi-view imagery that industrial maintenance settings actually produce.
B.Sc. thesis · Graded 1.4 · 2025
Generating RDF/OWL knowledge graphs automatically from object detection output, so LLMs can answer spatial questions about machinery. Graded 1.4.
My thesis bridges 2D computer vision and symbolic spatial reasoning. The pipeline takes raw bounding box coordinates from industrial machinery, applies geometric heuristics, and compiles standard-compliant RDF/OWL knowledge graphs. The graph then serves as a structured context layer for LLMs, improving spatial question answering and reducing hallucinations.
Building domain-specific semantic graphs by hand is slow, and standard text-to-graph pipelines ignore the spatial coordinate data and multi-view imagery that industrial maintenance settings actually produce.
Designed an extraction pipeline that parses the pixel coordinates of detected objects, translates them into deterministic spatial relations (left of, inside of, above), and populates formal OWL ontologies with owlready2. A multi-view fusion algorithm consolidates 2D geometric inputs from several camera angles into one coherent 3D semantic model.
Showed that a deterministic geometric-to-semantic pipeline can match or beat large end-to-end multi-modal models on structured spatial reasoning in industrial contexts. The thesis and its defense received a grade of 1.4.
The system processes annotated image data in tabular form. It computes the center of each detected object and applies threshold-based logic to derive spatial relationships, then uses owlready2 to emit standard-compliant RDF triples. The output was evaluated against four LLMs (DeepSeek-R1, DeepSeek-V3, Llama 3.1, and Qwen 2.5) with metrics for correctness and completeness.
Algorithms that derive above, below, left-of, and inside-of relations from pixel coordinates.
Merges object detection data from multiple angles into a single consistent knowledge graph.
Compared graph compactness against semantic completeness for LLM consumption.
Evaluated OWL versus plain triples to find the format LLMs reason over best.
Surveyed the state of the art in Semantic Web architectures and object detection.
Built the Python generator and the spatial relationship extraction algorithms.
Finished the quantitative LLM evaluation and submitted the thesis at TU Dresden.
Defended the thesis at TU Dresden; final grade 1.4.