.q
3 claimants
2 primary
0 secondary
shared primary (2)
SWH popularity
From the SWH-MSR-ARV dataset (Desmazières, Di Cosmo, Lorentz, MSR 2025; file nb_extensions_alphanum.csv) — one row per (ext, year) in the full SWH archive. Case-aggregated. citation.
806.0K
total occurrences
182.6K
since 2019 (22.7%)
1970–2023
years active
Case variants in archive: .q (795.2K), .Q (10.8K) — aggregated above.
Attribution status
This extension is attributed to HiveQL; q; q as primary by 3 authoritative claims.
Claimants (4)
Languages that list
.q among their extensions. Strength reflects whether the upstream source treated it as their primary extension.| Language | Source | Strength |
|---|---|---|
| HiveQL | linguist | primary |
| q | linguist | primary |
| q | pygments | primary |
| Qore | wikipedia | proposed |
Wikidata says… (1)
File formats, image formats, audio codecs and other non-PL
entities that claim
.q on Wikidata
(property P1195) or in the Wikipedia infobox.
Source: data/derived/external_extension_index.csv.
Click Use as new PL on any row to open the
Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata
URL, and this extension — one submission creates the PL + claim.
| Format | Class (Wikidata P31) | Suggested label | MIME | Notes | Action |
|---|---|---|---|---|---|
| Quantum compressed archive Q29151494 file format | file format | — | application/octet-stream | — | Use as new PL ↗ |
Disambiguation rules (2)
Linguist heuristics that decide, by content, which language a
.q file actually is.| Rule | Predicts | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.q/0 | q | predicates | [{"kind": "any", "regexes": ["((?i:[A-Z.][\\w.]*:\\{)|^\\\\(cd?|d|l|p|ts?) )"]}] |
h/linguist/.q/1 | HiveQL | predicates | [{"kind": "any", "regexes": ["(?i:SELECT\\s+[\\w*,]+\\s+FROM|(CREATE|ALTER|DROP)\\s(DATABASE|SCHEMA|TABLE))"]}] |
SWH-mined examples (0)
No archived examples for .q in our local mirror yet.