FormaSL: purpose and scope
Normative authority: the integral normative text of this foundation is carried verbatim in Foundations — this chapter is pedagogical and does not replace it.
FormaSL (Forma Semantic Language) is a computable semantic specification language. It allows declaring entities, relations and semantic contracts, besides representing and operating over assertions, evaluations, decisions and other structures of a domain. That information participates in queries, transformations and composed operations with its own identity and qualifications.
The language gathers meaning definition and computation in the same semantic contract. A piece of information can cross different operations and applications keeping the conditions needed to be interpreted: what it refers to, who produced it, in which context it applies, which information it depends on and what its semantic status is.
FormaSL joins the Forma system, which uses those contracts to build and realize applications over concrete execution mechanisms and infrastructure.
Meaning across applications
Different applications often work with parts of the same domain. One system registers an operation, another verifies its conditions and a third uses the result to take a decision. The data can circulate among them through well-defined interfaces, while part of their meaning stays expressed in local rules, procedures and conventions.
Consider the delivery of goods. The supplier records the dispatch, the carrier informs the arrival at the destination and the recipient confirms the receipt. The three records relate to the same load, but describe different events. For a logistics application, the arrival can end a transport stage; for a commercial application, the confirmed receipt can be a condition for concluding another stage.
FormaSL lets those relations, their participants and the conditions distinguishing each event be declared. Thus, applications can share the domain’s structures and use them in their own operations, keeping explicit the interpretation differences each process requires.
Sharing happens at the semantic level. It covers more than data formats or service signatures: it includes the relations and commitments making the information usable by different components.
Situated information
FormaSL works with information produced and interpreted by situated agents. An assertion has an attributable issuer, content and semantic qualifications. An observation records a form of access to an event or state. An evaluation expresses an agent’s position towards determined information. Each of those structures has its own meaning.
An assertion, called a Claim, records an act of asserting; the reality its content refers to stays distinct from that act. Two Claims can have the same content and different identities, while a single Claim can circulate through several systems without losing its identity.
Context, time, perspective and authority participate in the interpretation when relevant. One agent can accept information another rejects; an authorization can hold only in a determined scope; a decision can produce applicable conditions from a specific instant. The model keeps those qualifications associated with the structures and operations depending on them.
That organization makes it possible to relate different perspectives within a shared domain. Divergences can be queried, evaluated and resolved by explicit operations, with preservation of the involved positions and grounds.
Semantic structure and relations
FormaSL’s logical representation uses a typed role-incidence metagraph. Relations are identifiable semantic instances, to which participants bind through roles defined in the applicable contract.
A delivery, for example, can relate goods, supplier, carrier and recipient in the same relational structure. Its participants take different roles, and other relations can refer to the delivery or to its stages without dissolving its identity.
The model admits relations with multiple participants, typed references to semantic elements and compositions of relations. Multiplicity, ordering and participation conditions follow each relation’s contract.
That representation belongs to the language’s logical architecture. Storage and processing can use tables, indexes, key-value structures, graphs or other mechanisms capable of realizing the semantic contract.
Computation and semantic continuity
The structures declared in FormaSL are used by semantically defined operations. Queries select and relate information; inferences produce derived results; transformations build new structures; evaluations and other operations apply the pertinent domain contracts.
Each operation has input, result and interpretation conditions. Beyond the produced values, the elements’ identity, the information’s origin, their temporal qualifications, the involved authority and the dependencies used in the computation can matter.
Semantic continuity organizes the preservation of those properties across operations. Relevant information can accompany the result, stay available by reference, be derived from preserved elements or be explicitly transformed. When an operation restricts scope or discards information, that behavior belongs to its contract.
Continuity also applies to composition. A query’s result can feed an analysis, which in turn grounds a decision. The qualifications needed to interpret the decision remain reconstructible along that path.
The same principle reaches the limits of execution. A decision, the execution following it, the associated effects and the later observations constitute semantically distinct stages. The language lets them be related keeping the identity and responsibility of each passage.
Contract, realization and execution
FormaSL’s architecture distinguishes the declared meaning from the mechanisms used to realize it.
| Plane | Responsibility |
|---|---|
| Semantic contract | Defines the structures, operations and conditions constituting the declared meaning. |
| Realization | Binds the semantic requirements to concrete capabilities, resources and mechanisms. |
| Execution | Evaluates or executes operations under determined conditions. |
| Physical representation | Organizes data and artifacts in the effective storage and processing mechanisms. |
The .fsl files constitute the authoritative semantic source plane, including authoritative source meaning and data. The .fsp files specify realization aspects, such as the binding to capabilities and resources.
That separation lets the language be combined with databases, services, analysis engines and other specialized components. Realization establishes how to satisfy the contract’s requirements; execution produces results under its mechanisms’ guarantees and conditions.
Computational results, execution records and information incorporated into the source have different responsibilities. An update of the authoritative source happens through an incorporation transition appropriate to the information’s type, preserving the relevant history and semantic bindings.
Applications over shared structures
By using shareable semantic structures, applications can work over common references, relations and definitions without needing to concentrate all domain logic in a single service.
A logistics application can track the transport of goods; another can verify the contractual conditions of receipt; a third can relate the delivery confirmation to payment rules. Each application uses the structures that interest it and adds the evaluations and decisions proper to its responsibility.
FormaSL provides the language and contracts for that composition. The world model defines the fundamental semantic categories; the invariants and semantic continuity determine how its distinctions are kept during computation; the realization architecture connects those contracts to the platform’s operational capabilities.