Indexers will translate GitHub/Gitlab/Gogs/Gitea/...'s API response into this ontology.
The grammar itself would mostly likely be JSON-LD so it is compatible with our other metadata (CodeMeta/schema.org)
Current options:
* create our own
* pick an existing forge's ontology, and map everything to it -> this would eventually turn into inventing our own ontology anyway
* [[ https://forgefed.peers.community/vocabulary.html | ForgeFed's ontology ]] (and ActivityPub) -> not suitable for us; at the moment it's a disjoint set from what we want (ForgeFed only cares about issues and PRs)
* GHTorrent -> I am told they are working on a generic way to represent data that isn't tied to GitHub, but I cannot find it
* Wikidata (eg. https://www.wikidata.org/wiki/Property:P9100 )
* DOAP
| Description | [[ https://docs.github.com/en/rest/repos/repos#get-a-repository | GitHub ]] | [[ https://docs.gitlab.com/ee/api/projects.html#get-single-project | Gitlab ]] | [[ https://try.gitea.io/api/swagger#/repository/repoGet | Gitea ]] | [[ https://schema.org/docs/schemas.html | schema.org ]] / [[ https://codemeta.github.io/terms/ | Codemeta ]] | [[ https://www.wikidata.org/wiki/Wikidata:Database_reports/List_of_properties/all | Wikidata ]] | [[ http://usefulinc.com/ns/doap | DOAP ]] |
| -- | -- | -- | -- | -- | -- | -- |
| Project name | name | name | name / full_name | schema:name | relies on RDF | relies on RDF + doap:name
| Project avatar | | | avatar_url | schema:image | [[ https://www.wikidata.org/wiki/Property:P18 | P18 ]] (image) |
| Owner name | owner.login | namespace.name | | | |
| Owner avatar | owner.avatar_url | namespace.avatar_url | | | |
| Owner homepage | ? | ? | | | |
| description | description | description | description | schema:description | relies on RDF | doap:shortdesc + doap:description
| | homepage | | website | schema:url | [[ https://www.wikidata.org/wiki/Property:P2699 | P2699 ]] (URL) [[ https://www.wikidata.org/wiki/Property:P856 | P856 ]] (official website, less accurate but more popular) | doap:homepage + old-homepage
| whether it's a fork | fork | | fork | | |
| what it's a fork of | parent + source | | | schema:isBasedOn | [[ https://www.wikidata.org/wiki/Property:P144 | P144 ]] (based on) |
| whether it's a mirror | ? | | | | |
| what it's a mirror of | source? | | | | |
| | forks_count | forks_count | forks_count | | |
| | created_at | created_at | created_at | schema:dateCreated/codemeta:dateCreated | [[ https://www.wikidata.org/wiki/Property:P571 | P571 ]] (inception) | doap:created
| | updated_at | last_activity_at | updated_at | schema:dateModified/codemeta:dateModified | |
| | pushed_at | | | | |
| | | | | schema:datePublished/codemeta:datePublished | [[ https://www.wikidata.org/wiki/Property:P577 | P577 ]] (publication date) |
| | stargazers_count | star_count | stars_count | | |
| | watchers / watchers_count | | watchers_count | | |
| | open_issues / open_issues_count | open_issues_count | open_issues_count | | |
| | | | open_pr_counter | | |
| | visibility (private/internal/public) | visibility (private/internal/public) | internal + private (booleans) | | |
| | default_branch | default_branch | default_branch | | |
| programming language | language | | language | schema:programmingLanguage/codemeta:programmingLanguage | [[ https://www.wikidata.org/wiki/Property:P277 | P277 ]] (programming language) | doap:programming-language
| SPDX id | license.spdx_id | | | | |
| license url (usually on a small set of domains) | | license.html_url / license.source_url | | | |
| license URI | | | | codemeta:license | [[ https://www.wikidata.org/wiki/Property:P275 | P275 ]] (copyright license) | doap:license
| possibly inconsistent | | license.nickname | | | |
| possibly inconsistent | license.key | license.key | | | |
| possibly inconsistent | license.name | license.name | | | |
| Tags/labels | topics | topics | | schema:keywords/codemeta:keywords | [[ https://www.wikidata.org/wiki/Property:P9100 | P9100 ]] (Github topic) |
| | | | | schema:applicationCategorycodemeta:applicationCategory + schema:applicationSubcategory/codemeta:applicationSubcategory | | doap:category
| | has_issues | | has_issues | | |
| | | | | codemeta:issueTracker | [[ https://www.wikidata.org/wiki/Property:P1401 | P1401 ]] bug tracking system | doap:bug-database
| | | | internal_tracker.* + external_tracker.* | | |
| | | | | | | doap:mailing-list
| | | | | | | doap:support-forum
| | | | | | | doap:developer-forum
| | (always true if repo not archived) | merge_request_enabled | has_pull_requests | | |
| | | jobs_enabled | | | |
| | | snippets_enabled | | | |
| | | can_create_merge_request_in | | | |
| | | resolve_outdated_diff_discussions | | | |
| (different semantics) | | merge_method | allow_merge_commits + allow_rebase + allow_rebase_explicit + allow_squash_merge + default_merge_style | | |
| | | squash_option | | | |
| | has_projects | | has_projects | | |
| | has_downloads | | | | |
| | has_wiki | wiki_enabled | has_wiki | | |
| | | | external_wiki.* | | |
| | has_pages | | | | |
| Whether this is a template repository | is_template | template | | | |
| Presumably, what template repository was used to create this one | template_repository | | | | | |
| Whether the repository is archived | archived | archived | archived | | |
| | | | empty | | |
| | | mirror | mirror | | |
| | | | mirror_interval | | |
| | | | mirror_updated | | |
| | | | original_url | | |
| | | merge_commit_template | | | |
| | | squash_commit_template | | | |
| | | marked_for_deletion_on | | | |
| not documented | size | | | | |
| not documented | | | size | | |
| | | statistics.commit_count | | | |
| | | statistics.storage_size | | | |
| | | statistics.repository_size | | | |
| | | statistics.<a few more> | | | |
| | | | release_counter | | |