Towards Semantically Structuring GitHub

Dennis Oliver Kubitza, Matthias Böckmann, Damien GrauxISWC (Satellites) 2019

Abstract

The open-source ecosystem is characterized by a vast amount of fragmented data across various hosting platforms. SemanGit introduces a new OWL (Web Ontology Language) framework designed to unify this data. By employing a three-layered semantic architecture, SemanGit links core version-control data with the social and platform-specific features of sites like GitHub and GitLab. This approach transforms siloed code repositories into a queryable, interoperable web of Linked Data, facilitating cross-domain research and analysis.

Introduction

While the git protocol serves as a universal standard for tracking code changes, the platforms built around it—such as GitHub, GitLab, and BitBucket—operate as "walled gardens" regarding metadata. Each platform utilizes proprietary APIs and distinct methods for managing social features like user follows, project stars, and pull requests.

This fragmentation creates significant hurdles for researchers. For instance, tracking a developer’s contributions across multiple platforms or correlating coding activity with geographic or professional data requires navigating incompatible data structures. Currently, there is no common semantic language to describe these complex relationships, limiting the potential for large-scale analysis of the open-source landscape.

Methodology: The SemanGit Framework

To address these challenges, the authors propose SemanGit, an ontology built using OWL. The framework utilizes a three-layered architecture to ensure both stability and extensibility:

  1. The Git Protocol Layer: This foundational layer represents entities strictly defined by the git protocol, such as commits, repositories, and basic user identification (name and email).
  2. The Abstraction Layer: This layer models features common to most hosting platforms that are not part of the core git protocol, including social "following" relationships and the concept of "organizations."
  3. The Provider-Specific Layer: This layer houses platform-specific metadata. Features unique to GitHub, such as "issue labels," "milestones," or "user avatars," are defined here using specific prefixes (e.g., github_) to prevent collisions with other providers.
A visualization of the SemanGit ontology showing the hierarchical relationship between core git concepts and platform-specific GitHub entities.

This hierarchical approach allows a "GitHub User" to inherit properties from a generic "User" class, maintaining data consistency across diverse sources while preserving platform-specific nuances.

Data Interoperability and Insights

A critical insight of the SemanGit project is the distinction between a git author and a platform-specific user. In the base git protocol, an author is merely a string containing a name and email. In contrast, a GitHub user is a complex entity with a biography, location, and social network. SemanGit manages this by allowing the complex entity to inherit from the simpler git author.

By transitioning from flat JSON API responses to a semantic graph, SemanGit enables "cross-domain" queries. Researchers can perform complex searches, such as identifying developers who contribute to specific language projects, reside in a particular city, and possess profiles in external datasets like DBpedia. The ontology is designed to interlink with established resources including LinkedGeoData (spatial information) and ScienceGRAPH (researcher data).

Results and Future Directions

The primary output of this work is the SemanGit Ontology, a functional OWL model that maps GitHub's complexities into a structured hierarchy. The authors have demonstrated that disparate approaches from various social coding platforms can be successfully agglomerated into a single, unified model.

The ontology and its associated datasets are publicly available, providing a robust foundation for the software engineering research community. Future work aims to expand the provider-specific layer to fully support platforms like GitLab and BitBucket. Additionally, the authors are working toward integrating SemanGit into LOV (Linked Open Vocabularies) to establish it as a standard tool for the Semantic Web community. While the potential for deep interlinking with professional networks like LinkedIn exists, large-scale empirical studies leveraging these links remain a key area for future exploration.

Summary updated

BibTeX
@inproceedings{kubitza2019towards,
  author = {Dennis Oliver Kubitza and Matthias Böckmann and Damien Graux},
  title = {{Towards Semantically Structuring GitHub}},
  booktitle = {ISWC (Satellites)},
  year = {2019},
}
Figure