Repolex Core Ontology 1.0

Core Repolex application ontology defining repository analysis vocabulary.

159 triples · Download .ttl · 4 classes · 6 object properties · 23 datatype properties

Classes (4)

ClassSubclass OfDescription
repolex:Blob A content-addressed AST blob representing the parsed syntax tree of a source file. Blobs are identified by git blob hash and contain the complete tree-sitter parse tree in RDF form.
repolex:Dependency An external dependency resolved from a package registry (PyPI, NPM, etc.) to a specific GitHub repository and commit.
repolex:File A file in a repository
repolex:GraphFile A serialized RDF graph file produced by the parser. Contains the path and size of a .nq.gz file in the storage repo.

Object Properties (6)

PropertyDomainRangeDescription
repolex:dependencyRepo git:Commit gh:Repository A repository that this commit depends on. Resolved from package manifest (requirements.txt, pom.xml, etc.) via package registry to GitHub repo. Used in manifest graphs to build the cross-repo dependen...
repolex:graphFile git:Commit repolex:GraphFile Links a commit to one of its output graph files (AST, LSP, repolex, dep, filetree, commit, branch, tag).
repolex:repository git:Commit gh:Repository Back-link from a commit to its repository. Convenience property for navigating from commit manifest to repo manifest.
repolex:root repolex:Blob Points to the root AST node of this blob (typically module or compilation_unit)
repolex:trackedCommit gh:Repository git:Commit Links a repository to a commit that is tracked for parsing (parsed, pending, or failed). Written by forx to the repo manifest.
repolex:usesOntology repolex:Blob owl:Ontology Reference to an ontology URI that this blob uses (e.g., tree-sitter core ontology, language-specific ontology)

Datatype Properties (23)

PropertyDomainRangeDescription
repolex:blobHash repolex:File xsd:string Git blob hash (SHA-1) of the file contents
repolex:blobUri repolex:File xsd:anyURI URI reference to the blob resource
repolex:fileName repolex:File xsd:string Base name of the file (e.g., 'main.py')
repolex:filePath repolex:File xsd:string Relative path of the file within the repository
repolex:fileSize repolex:File xsd:integer Size of the file in bytes
repolex:githubCommit repolex:Dependency xsd:string Git commit SHA-1 hash for the resolved version
repolex:githubLink repolex:Dependency xsd:anyURI Full GitHub URL to the repository
repolex:githubOrg repolex:Dependency xsd:string GitHub organization or user name hosting the dependency
repolex:githubRepo repolex:Dependency xsd:string GitHub repository name
repolex:githubTag repolex:Dependency xsd:string Git tag corresponding to the resolved package version
repolex:githubUri repolex:File xsd:anyURI GitHub web URL for viewing this file
repolex:graphFilePath repolex:GraphFile xsd:string Relative path to the .nq.gz file within the storage repo.
repolex:graphFileSize repolex:GraphFile xsd:integer Size of the .nq.gz file in bytes.
repolex:graphType repolex:GraphFile xsd:string Type of graph: 'ast', 'lsp', 'repolex', 'dep', 'filetree', 'commit', 'branch', 'tag', 'issue', 'pr'.
repolex:language xsd:string Programming language (e.g., 'python', 'javascript', 'rust')
repolex:mimeType repolex:File xsd:string MIME type of the file (e.g., 'text/x-python')
repolex:packageEcosystem repolex:Dependency xsd:string The package ecosystem/registry (e.g., 'PYPI', 'NPM', 'MAVEN')
repolex:packageName repolex:Dependency xsd:string The package name as it appears in the registry (e.g., 'requests', 'express')
repolex:packageVersion repolex:Dependency xsd:string The package version as declared in the dependency specification (e.g., '2.28.0', '^1.0.0')
repolex:parseStatus git:Commit xsd:string Status of the parse for this commit: 'parsed', 'failed', or 'pending'.
repolex:parsedAt git:Commit xsd:dateTime Datetime when this commit was parsed by repolex.
repolex:parserVersion git:Commit xsd:string Version of the repolex parser that produced this parse. Used for tracking which parser version generated which data.
repolex:storageRepo gh:Repository xsd:string GitHub storage repository where parsed data is stored (e.g., 'repolex-forx/TopQuadrant--shacl'). Written by forx.