Open format
CEXF guide: full example file
Downloads (Markdown, JSON Schema, test vectors, zip): see the overview.
12. Full example file
This example demonstrates:
- a person with multiple derived charts (Johanna: solar return, composite,
secondary-progressionwithparametersincludingdirection: "converse", relocation, electional, and group composite); - a composite chart with two parents from different subjects (Johanna + Mark), and a group composite with three parents from three different subjects (Johanna + Mark + Els);
- a relocation chart with a source reference (
role: "source") to Johanna's own natal chart, the sameutc, a different place (New York instead of Amsterdam); - a planetary return (Mark, Jupiter) with the
bodyparameter; - a log note on a chart, with and without
createdAt, and a subject note (two different things); - the optional members of a recorded birth:
time.dstOffset(summer time, §7.11),sourcewith akind(§5.2), andlocation.regionwithlocation.countryCode(§7a); - a chart with an unknown time (Sanne, and again for the country below, with
second-level precision in
utcOffsetto show a historical local-mean-time offset: Münster doesn't sit on a round time-zone boundary); - a non-person subject (
kind: "country").
The timestamps were chosen by hand to be arithmetically consistent (utc + utcOffset =
localTime, see §7.3) but have not been verified against an ephemeris: they illustrate
the format, not astronomical correctness.
{
"format": "cexf",
"version": 1,
"generatedAt": "2026-07-26T10:00:00Z",
"generator": "Celestium Exchange 1.7.0",
"folders": [
{ "id": 1, "name": "Clients" }
],
"subjects": [
{
"id": 1,
"displayName": "Johanna van der Berg",
"givenName": "Johanna",
"namePrefix": "van der",
"familyName": "Berg",
"folderId": 1,
"notes": "Friend of Mark's; first consultation March 3, 2024.",
"charts": [
{
"sequence": 0,
"label": "Radix",
"time": {
"utc": "1990-04-12T08:15:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1990-04-12T10:15:00",
"utcOffset": "+02:00",
"dstOffset": 3600,
"unknown": false
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"altitude": 0,
"placeName": "Amsterdam",
"region": "Noord-Holland",
"country": "Netherlands",
"countryCode": "NL"
},
"source": {
"rating": "A",
"kind": "civil-record",
"text": "Birth certificate, seen by the astrologer."
},
"notes": [
{
"title": "First impression",
"text": "Strong Moon-Pluto in the 8th house; works as a grief counselor.",
"createdAt": "2024-03-03T14:00:00Z"
},
{
"title": "Rectification",
"text": "The recorded time was checked against the birth certificate."
}
]
},
{
"sequence": 1,
"type": "solar-return",
"label": "Solar return 2026",
"time": {
"utc": "2026-04-12T09:03:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "2026-04-12T11:03:00",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam",
"country": "Netherlands"
}
},
{
"sequence": 2,
"type": "composite",
"label": "Composite with Mark",
"time": {
"utc": "1989-07-23T03:57:30Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1989-07-23T05:57:30",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.2305,
"longitude": 5.0083,
"placeName": "Composite point (Amsterdam/Utrecht)"
},
"parents": [
{ "subject": 1, "sequence": 0, "role": "parent" },
{ "subject": 2, "sequence": 0, "role": "parent" }
]
},
{
"sequence": 3,
"type": "secondary-progression",
"label": "Secondary progression 2026 (converse)",
"time": {
"utc": "2026-06-24T02:40:24Z",
"timeZone": "Europe/Amsterdam",
"localTime": "2026-06-24T04:40:24",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam",
"country": "Netherlands"
},
"parameters": {
"age": "36.200000",
"direction": "converse"
}
},
{
"sequence": 4,
"type": "relocation",
"label": "Relocation New York",
"time": {
"utc": "1990-04-12T08:15:00Z",
"timeZone": "America/New_York",
"localTime": "1990-04-12T04:15:00",
"utcOffset": "-04:00"
},
"location": {
"latitude": 40.7128,
"longitude": -74.006,
"placeName": "New York",
"country": "United States"
},
"parents": [
{ "subject": 1, "sequence": 0, "role": "source" }
]
},
{
"sequence": 5,
"type": "electional",
"label": "When to sign the lease?",
"time": {
"utc": "2026-06-15T09:00:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "2026-06-15T11:00:00",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam",
"country": "Netherlands"
},
"parameters": {
"question": "Best moment to sign the lease"
},
"houseSystem": "regiomontanus"
},
{
"sequence": 6,
"type": "group-composite",
"label": "Group composite: Johanna, Mark and Els",
"time": {
"utc": "1990-06-02T06:58:20Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1990-06-02T08:58:20",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.5601,
"longitude": 5.5277,
"placeName": "Group composite point"
},
"parents": [
{ "subject": 1, "sequence": 0, "role": "parent" },
{ "subject": 2, "sequence": 0, "role": "parent" },
{ "subject": 5, "sequence": 0, "role": "parent" }
]
}
]
},
{
"id": 2,
"displayName": "Mark de Groot",
"givenName": "Mark",
"namePrefix": "de",
"familyName": "Groot",
"folderId": 1,
"charts": [
{
"sequence": 0,
"label": "Radix",
"time": {
"utc": "1988-11-01T23:40:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1988-11-02T00:40:00",
"utcOffset": "+01:00"
},
"location": {
"latitude": 52.0907,
"longitude": 5.1214,
"placeName": "Utrecht",
"country": "Netherlands"
},
"zodiacSystem": "sidereal",
"ayanamsa": "lahiri"
},
{
"sequence": 1,
"type": "planet-return",
"label": "Jupiter return 2024",
"time": {
"utc": "2024-11-10T15:00:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "2024-11-10T16:00:00",
"utcOffset": "+01:00"
},
"location": {
"latitude": 51.9244,
"longitude": 4.4777,
"placeName": "Rotterdam",
"country": "Netherlands"
},
"parameters": {
"body": "jupiter"
}
}
]
},
{
"id": 5,
"displayName": "Els Jansen",
"givenName": "Els",
"familyName": "Jansen",
"folderId": 1,
"charts": [
{
"sequence": 0,
"label": "Radix",
"time": {
"utc": "1992-02-20T13:00:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1992-02-20T14:00:00",
"utcOffset": "+01:00"
},
"location": {
"latitude": 53.2194,
"longitude": 6.5665,
"placeName": "Groningen",
"country": "Netherlands"
}
}
]
},
{
"id": 3,
"displayName": "Sanne Bakker",
"givenName": "Sanne",
"familyName": "Bakker",
"charts": [
{
"sequence": 0,
"label": "Radix",
"time": {
"utc": "1975-07-01T11:00:00Z",
"timeZone": "Europe/Brussels",
"localTime": "1975-07-01T12:00:00",
"utcOffset": "+01:00",
"unknown": true
},
"location": {
"latitude": 50.8503,
"longitude": 4.3517,
"placeName": "Brussels",
"country": "Belgium"
}
}
]
},
{
"id": 4,
"kind": "country",
"displayName": "Netherlands",
"charts": [
{
"sequence": 0,
"label": "Peace of Münster",
"time": {
"utc": "1648-01-30T11:29:30Z",
"timeZone": "Europe/Berlin",
"localTime": "1648-01-30T12:00:00",
"utcOffset": "+00:30:30",
"standard": "lmt",
"unknown": true
},
"location": {
"latitude": 51.9607,
"longitude": 7.6261,
"placeName": "Münster",
"country": "Holy Roman Empire"
}
}
]
}
]
}
Reading notes for the example:
- Subject 4 (Netherlands) shows why
utcOffsetallows second-level precision:+00:30:30is not a round time zone but a local-mean-time offset: Münster lies at 7.6261 degrees east, which is 7.6261 x 240 = 1830.264 seconds, rounded to 1830 seconds, andstandardislmt(§7.9). It is exactly the kind of pre-1970 uncertainty from §7.1;timeZonenames the region that now contains the place (§7.8).unknown: truehere stands for "no exactly recorded time of the event," not a birth time: the same flag, applied more broadly than Celestium's current usage (which only sets it on birth charts, see §7.5). - Subject 1's third chart (
composite) refers, withrole: "parent", to{"subject": 2, "sequence": 0}, Mark's natal chart. A reference like that to another subject is exactly what a chart reference makes possible (§8). Itstimeandlocationare the midpoints of the parents' moments and places, attached for display (§7.7). - Subject 1's fourth chart (
secondary-progression) demonstratesparameterswith bothageanddirection(§6.4): a converse direction at age 36.2 is written here asage: "36.200000"+direction: "converse", six decimals, the floor from §6.4, even though the last four here are zeros.directionis required and present here, as with every chart of these six kinds (see the table in §6.4 and §10); a writer never omits it, not even in the non-conversive case. Itstimeis the real-life moment to which the direction applies, 36.2 years after the birth (§7.7). - Subject 1's fifth chart (
relocation, sequence 4) has the sametime.utcas her natal chart (1990-04-12T08:15:00Z) but a different place (New York) and therefore a differenttimeZone/localTime/utcOffset; theparentsreference usesrole: "source", not"parent". See §8, "Relocation: the sameutc, a different place." - Subject 1's sixth chart (
electional, sequence 5) uses thequestionparameter for the purpose of the election, not for a horary question: the same key ashorary, a different meaning, see §6.4. It also carrieshouseSystem: "regiomontanus", traditional for this kind of moment chart, and unlike the natal charts in this file, which carry nohouseSystem(Celestium, after all, only supplies that field as a writer's choice for a different program, see §7c). - Subject 2's natal chart (Mark) carries
zodiacSystem: "sidereal"+ayanamsa: "lahiri", the only sidereal example in this file. See §7c for why this is its own field and not a parameter. - Subject 1's seventh chart (
group-composite, sequence 6) has threeparentsitems (roleparent), from three different subjects (Johanna, Mark, Els): exactly the casecomposite(exactly two) cannot express. See §6.3 and §8. - Subject 2 (Mark) gets a second chart,
planet-returnwithparameters.body: "jupiter", a planetary return that is neither Sun nor Moon, cast for a different place (Rotterdam) than his birthplace (Utrecht), as return charts often are (§6.3). - Subject 5 (Els Jansen) exists solely to supply the third parent of the group composite: a subject with no further derived charts is just as valid as any other.
Validation against the schema
This example validates against cexf-schema.json. With the Python jsonschema package
(Draft 2020-12), for instance:
$ python -c "
import json, jsonschema
schema = json.load(open('cexf-schema.json', encoding='utf-8'))
example = json.load(open('example.cexf', encoding='utf-8'))
jsonschema.Draft202012Validator.check_schema(schema) # the schema itself is a valid schema
jsonschema.Draft202012Validator(schema).validate(example)
print('OK')
"
OK
The schema does not vacuously allow anything at all: a series of deliberately invalid variants
is rejected. They include a derived chart with no type, a harmonic chart
with no parameters.number, a wrong format value, a latitude out of range, a malformed
utcOffset, a utc timestamp with eight fractional digits (beyond the 1-7 limit from §7.2), a
relocation with the wrong role (parent instead of source) or with two source references
(at most one is allowed), a composite with three parents
(at most two are allowed), a planet-return with no body, a direction value outside
direct/converse, a secondary-progression chart where direction is entirely absent (invalid,
see §6.4/§10, since direction is required), a negative age (invalid: the
direction belongs in direction, not in the sign), and an age with only two decimals
("34.50", invalid: the floor from §6.4 is 6). Each of these is correctly rejected; the
matching valid counterparts (a group-composite with three parents, a planet-return
with body, a secondary-progression with direction: "converse", a
sidereal-minor-progression and a minor-progression with both age+direction present, an
electional with or without question, an age with 6 decimals, and an age with 15 decimals
carrying a bit-exact double value) are correctly accepted. The test vectors in §12a
systematise this.
Five points about the validator you use. None of them comes from the seven independent
implementations; they come from running validators against cexf-schema.json.
- A schema validator that calculates with decimals (on .NET, JsonSchema.Net does). A bound such
as
latitude90 is compared as binary64 (Terms, "Comparison of numbers"). A validator that compares the decimal value of the text rejects90.0000000000000001, which the specification reads as 90. Convert the number to the nearest binary64 value before you validate; TV-301 tests this. - A number that overflows binary64 (TV-308, TV-327, TV-348, TV-349, TV-350) is outside every range, except in the value of a key of
extensionsormodifierExtensions, where it is not checked (Terms, "Comparison of numbers"). Validators differ on such a number, so the rule of the specification decides, andschemaResultfollows it (§12a). - Ajv compiles
cexf-schema.jsonin strict mode (strict: true). - The regular expressions in
cexf-schema.jsonare ECMA-262 patterns. An engine with another dialect (Python'sreis one) reads two things differently. In Python'sreand in .NET\dalso matches digits of other scripts, so write it as[0-9]there, and$at the end also matches before a final line feed. In Python'sre, validate against a copy of the schema in which every\dis written[0-9]and the closing$of everypatternis written\Z(there the absolute end of the text). In another dialect use its anchor for the absolute end:\zin .NET, Java and PCRE, where\Zalso matches before a final line feed. - Python reads text that is not JSON, and numbers that are not finite. Read the text with
json.loads(text, parse_float=f, parse_int=h, parse_constant=g), wheregraises an error forNaN,Infinityand-Infinity, which are not JSON (row F1); without it Python returnsnanandinf. The hooksfandhdo not know where a number stands, and the specification does not look at every number: a number in the value of a key ofextensionsormodifierExtensionsis not checked, also when it converts to infinity (Terms, "Comparison of numbers"). So letfreturnfloat('inf')(that is,float(s)) for such a number, lethdo the same for a whole number that does not fit in binary64 (lambda s: float(s) if math.isinf(float(s)) else int(s), which keeps every other whole number exact), and after reading reject the document when an infinite value stands anywhere outside the value of a key ofextensionsormodifierExtensions, because such a number is outside every range. With these settings and the copy of the schema, theschemaResultcolumn of the test vectors is a short check (TV-350 comes outvalid).
Worked example files for the sections
Each example below is a complete file that validates against cexf-schema.json. It belongs to the section named in its heading. It is informative: an example is never a rule.
X4.4 A standalone horary chart (§4.4)
A standalone horary chart: a subject of kind horary, whose primary chart is the chart of the question. The subject carries no birth data of the querent:
{
"format": "cexf",
"version": 1,
"subjects": [
{
"id": 1,
"kind": "horary",
"displayName": "Kees Bakker",
"charts": [
{
"sequence": 0,
"time": {
"utc": "2026-03-14T18:30:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "2026-03-14T19:30:00",
"utcOffset": "+01:00"
},
"location": {
"latitude": 52.0907,
"longitude": 5.1214,
"placeName": "Utrecht"
},
"parameters": {
"question": "Will I find my keys again?"
}
}
]
}
]
}
X5.2 A chart with all three members of source (§5.2)
A complete file in which the radix carries all three members of source:
{
"format": "cexf",
"version": 1,
"subjects": [
{
"id": 1,
"displayName": "Anna Jansen",
"givenName": "Anna",
"familyName": "Jansen",
"charts": [
{
"sequence": 0,
"time": {
"utc": "1990-04-12T08:15:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1990-04-12T10:15:00",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam"
},
"source": {
"rating": "AA",
"kind": "civil-record",
"text": "Birth certificate, seen by the astrologer."
}
}
]
}
]
}
X7.7 A composite chart without time and location (§7.7)
A composite chart without time and location: the writer has no moment to attach to it, and the positions come from the two parents. The chart is a derived chart of one of the two subjects, here the first, with the other as its second parent:
{
"format": "cexf",
"version": 1,
"subjects": [
{
"id": 1,
"displayName": "Anna Jansen",
"givenName": "Anna",
"familyName": "Jansen",
"charts": [
{
"sequence": 0,
"time": {
"utc": "1990-04-12T08:15:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1990-04-12T10:15:00",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam"
}
},
{
"sequence": 1,
"type": "composite",
"parents": [
{
"subject": 1,
"sequence": 0,
"role": "parent"
},
{
"subject": 2,
"sequence": 0,
"role": "parent"
}
]
}
]
},
{
"id": 2,
"displayName": "Bart de Vries",
"givenName": "Bart",
"familyName": "de Vries",
"charts": [
{
"sequence": 0,
"time": {
"utc": "1988-11-02T10:30:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1988-11-02T11:30:00",
"utcOffset": "+01:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam"
}
}
]
}
]
}
X7.11 A birth in summer time (§7.11)
A birth in summer time. utcOffset is the whole offset; dstOffset says that 3600 seconds of it are summer time, so the clock without summer time runs at +01:00:
{
"format": "cexf",
"version": 1,
"subjects": [
{
"id": 1,
"displayName": "Bart de Vries",
"givenName": "Bart",
"familyName": "de Vries",
"charts": [
{
"sequence": 0,
"time": {
"utc": "1990-07-01T12:00:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1990-07-01T14:00:00",
"utcOffset": "+02:00",
"dstOffset": 3600
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam"
}
}
]
}
]
}
X7a A place with region and countryCode (§7a)
A place with the two optional members that name the country and the region in a form a program can use:
{
"format": "cexf",
"version": 1,
"subjects": [
{
"id": 1,
"displayName": "Anna Jansen",
"givenName": "Anna",
"familyName": "Jansen",
"charts": [
{
"sequence": 0,
"time": {
"utc": "1990-04-12T08:15:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1990-04-12T10:15:00",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam",
"region": "Noord-Holland",
"country": "Nederland",
"countryCode": "NL"
}
}
]
}
]
}
X7b A note without createdAt (§7b)
A note without createdAt. Absence means that it is not recorded; a writer does not invent a moment:
{
"format": "cexf",
"version": 1,
"subjects": [
{
"id": 1,
"displayName": "Anna Jansen",
"givenName": "Anna",
"familyName": "Jansen",
"charts": [
{
"sequence": 0,
"time": {
"utc": "1990-04-12T08:15:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1990-04-12T10:15:00",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam"
},
"notes": [
{
"title": "Rectification",
"text": "The time was rectified on the events of 1998."
}
]
}
]
}
]
}
X7c.3 A transit chart with the frame barycentric (§7c.3)
A transit chart cast as seen from the centre of mass of the solar system. The registered value is written as it stands in the register:
{
"format": "cexf",
"version": 1,
"subjects": [
{
"id": 1,
"displayName": "Anna Jansen",
"givenName": "Anna",
"familyName": "Jansen",
"charts": [
{
"sequence": 0,
"time": {
"utc": "1990-04-12T08:15:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1990-04-12T10:15:00",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam"
}
},
{
"sequence": 1,
"type": "transit",
"time": {
"utc": "2026-01-01T12:00:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "2026-01-01T13:00:00",
"utcOffset": "+01:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam"
},
"frame": "barycentric"
}
]
}
]
}
X7c.4 A chart in the draconic zodiac of the mean node (§7c.4)
A chart in the draconic zodiac of the mean node:
{
"format": "cexf",
"version": 1,
"subjects": [
{
"id": 1,
"displayName": "Anna Jansen",
"givenName": "Anna",
"familyName": "Jansen",
"charts": [
{
"sequence": 0,
"time": {
"utc": "1990-04-12T08:15:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1990-04-12T10:15:00",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam"
},
"zodiacSystem": "draconic-mean-node"
}
]
}
]
}
X7c.5 A sidereal chart with a customAyanamsa (§7c.5)
A sidereal chart with an ayanamsa that has no name in the register, a value at an epoch plus a constant rate:
{
"format": "cexf",
"version": 1,
"subjects": [
{
"id": 1,
"displayName": "Anna Jansen",
"givenName": "Anna",
"familyName": "Jansen",
"charts": [
{
"sequence": 0,
"time": {
"utc": "1990-04-12T08:15:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1990-04-12T10:15:00",
"utcOffset": "+02:00"
},
"location": {
"latitude": 52.3702,
"longitude": 4.8952,
"placeName": "Amsterdam"
},
"zodiacSystem": "sidereal",
"customAyanamsa": {
"model": "linear",
"valueDeg": 23.85,
"epochJdTt": 2451545.0,
"rateArcsecPerYear": 50.29
}
}
]
}
]
}
X7c.6 A primary chart that records lunarNode and blackMoon (§7c.6)
A primary chart that records both variants:
{
"format": "cexf",
"version": 1,
"subjects": [
{
"id": 1,
"displayName": "Anna Jansen",
"charts": [
{
"sequence": 0,
"time": {
"utc": "1990-04-12T08:15:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "1990-04-12T10:15:00",
"utcOffset": "+02:00"
},
"location": { "latitude": 52.3702, "longitude": 4.8952 },
"lunarNode": "true",
"blackMoon": "osculating-apogee"
}
]
}
]
}