Skip to content
docs
Arxo ↗

Arxo population binding 0.1

For LLMs16 sections

An authoring, pinnable binding of microdata tables to the cases of a case package: the model and its semanticHash, the case package, a source as a closed CSV subset with tables, keys, entities, and parent-child relations, column-to-literal translation via TypeRef, the root population table (rowId, case name, weight, legalTime), and fact entries. It carries no legal meaning: the adapter computes nothing — each cell becomes a literal of an origin case_input fact. The contentHash self-pin is the canonical form without the contentHash field. The runner checks table and column name uniqueness, column existence in the header, and predicates and types against the CLIR (POPULATION_BINDING_INVALID / POPULATION_BINDING_MODEL_MISMATCH); the schema only holds the shape.

Accepted schemaVersion: law.population.binding/0.1.

nametype-or-$refrequireddescription
schemaVersion"law.population.binding/0.1"yes—
idscreen-binding.schema.json#/$defs/StableIdyes—
dataClassenum (2)yesData class of the source: real triggers a POPULATION_BINDING_DATA_CLASS rejection pending a separate decision on storage. The field is required: its absence is not treated as synthetic.
modelobjectyes—
casePackageobjectyes—
sourceobjectyes—
populationobjectyes—
factsarrayyes—
contentHashscreen-binding.schema.json#/$defs/Digestyes—
locationvalues
properties/schemaVersion"law.population.binding/0.1"
properties/dataClass"synthetic", "real"
properties/source/properties/encoding"utf-8"
properties/source/properties/delimiter",", ";", "\t"
properties/source/properties/decimalSeparator".", ","
$defs/Parent/properties/cardinality"one", "many"
$defs/Fact/properties/presence/oneOf/0/properties/kind"row"
$defs/Fact/properties/presence/oneOf/1/properties/kind"boolean_column"
$defs/Argument/oneOf/0/properties/kind"entity"
$defs/Argument/oneOf/1/properties/kind"column"
$defs/Argument/oneOf/2/properties/kind"constant"

https://law.arxo.io/schema/population-binding.schema.json

Type: string.

Type: string.

Type: string.

Name of a CSV header column.

Type: string.

Type: object. Required: pattern.

nametype-or-$refdescription
patternstringText with {column} substitutions; the column’s raw value — NULL triggers the row rejection ROW_KEY_NULL.

Type: object. Required: column.

nametype-or-$refdescription
column#/$defs/ColumnName—

Type: object. Required: name, file, key, entity, columns.

nametype-or-$refdescription
name#/$defs/TableName—
filestringPath to the CSV relative to the binding file.
keyarrayKey columns; uniqueness is a property of the source (POPULATION_SOURCE_INVALID).
entity#/$defs/Entity—
parent#/$defs/Parent—
columnsarray—

Type: object. Required: idPattern, type.

nametype-or-$refdescription
idPatternstringTemplate for the row entity’s identifier (URN/IRI) with {column} substitutions.
typelegal-ir.schema.json#/$defs/TypeRefTypeRef of the model’s nominal entity type; checked against the predicate’s parameter.

Child table: the foreign key column points to the key of table table (a single-column key); an orphan triggers POPULATION_SOURCE_INVALID; more than one row when cardinality is one triggers the row rejection ROW_CARDINALITY.

Type: object. Required: table, column, cardinality.

nametype-or-$refdescription
table#/$defs/TableName—
column#/$defs/ColumnName—
cardinalityenum (2)—

Type: object. Required: name, type.

nametype-or-$refdescription
name#/$defs/ColumnName—
typelegal-ir.schema.json#/$defs/TypeRefTypeRef of a literal type (Integer, Decimal, Money, Boolean, Text, Date, Instant), or the name of a model enumeration (in which case members is required).
currencystringCurrency of a Money literal; required for Money, forbidden otherwise (checked by the tool).
membersobjectEnumeration: source value → model member name.
trueValuesarray—
falseValuesarray—
nullMarkersarray—

Type: object. Required: predicate, table, arguments, presence.

nametype-or-$refdescription
predicatescreen-binding.schema.json#/$defs/StableIdIdentifier of the model’s CLIR symbol_decl (a URN with a #local name).
table#/$defs/TableNameTable whose rows generate the fact; argument entities are this table or its ancestors along the parent chain.
argumentsarray—
presenceoneOf (2)—
requiredbooleanNULL in the column argument triggers the row rejection ROW_REQUIRED_NULL instead of the fact simply being absent.

Definition Argument.

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.