Skip to content

A C++ tool that converts RDF/XML ontologies into graph structures to enable traversal and search using standard graph algorithms.

License

Notifications You must be signed in to change notification settings

HokageM/OntoGraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OntoGraph

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.

Features

  • 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.

Installation

Prerequisites

  • C++20 compatible compiler
  • CMake >= 3.22
  • Conan (for dependency management)
  • tinyxml2 (handled via Conan)

Build Steps

  1. Clone the repository:

    git clone <repo-url>
    cd OntoGraph
  2. Install dependencies with Conan:

    conan install . --output-folder=build --build=missing
  3. 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.

Usage

Command-Line Example

Need to be implemented ... Currently: Edit app/main.cpp to point to your RDF/XML file and adjust traversal as needed.

Running the CLI

After building, run:

./build/app/ontograph_cli

License

This project is licensed under the MIT License. See LICENSE for details.

About

A C++ tool that converts RDF/XML ontologies into graph structures to enable traversal and search using standard graph algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published