OntoGraph is a C++ tool that converts RDF/XML ontologies into graph structures, enabling traversal and search using standard graph algorithms. It is designed for researchers and developers working with ontologies who need to analyze, traverse, or manipulate ontology data as graphs.
- RDF/XML Parsing: Converts RDF/XML files into an in-memory graph.
- Graph Representation: Nodes, edges, and attributes are extracted from ontology data.
- Graph Algorithms: Supports depth-first search (DFS), predicate-based traversal, and exclusion of predicates.
- Attribute Access: Retrieve node attributes and relationships for advanced analysis.
- C++20 compatible compiler
- CMake >= 3.22
- Conan (for dependency management)
- tinyxml2 (handled via Conan)
-
Clone the repository:
git clone <repo-url> cd OntoGraph
-
Install dependencies with Conan:
conan install . --output-folder=build --build=missing
-
Build the project with CMake:
cmake -S . -B build cmake --preset conan-debug cmake --build --preset conan-debug
This will produce the ontograph_cli
executable in the build/app
directory.
Need to be implemented ...
Currently:
Edit app/main.cpp
to point to your RDF/XML file and adjust traversal as needed.
After building, run:
./build/app/ontograph_cli
This project is licensed under the MIT License. See LICENSE for details.