Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Semantic operations and transitions

Authorities: the integral contracts of Query, Analysis, Reasoning and Transformation, the regime boundaries and the R2 amendment are carried verbatim in Capability and regime Authorities — this chapter is pedagogical and does not replace them.

FormaSL’s operations apply semantic contracts to the information of a domain. An operation determines how its inputs are interpreted, which relation it establishes with the results and which conditions must be satisfied for those results to be usable in other computations.

FormaSL gathers queries, analyses, inferences, transformations and governed judgments in the same semantic environment. It also allows declaring acts of assertion, decisions, hypothetical contexts and transitions relating the authoritative source to execution and to the new information obtained in the world. Each capability has its contract, its inputs and its way of producing results.

The metagraph provides the logical structure over which those operations work. Ontologies and theories offer interpretation bases; type and relation contracts determine the formation and participation conditions. Semantic continuity keeps recoverable the qualifications needed when the result of an operation comes to be part of another.

Contracts and semantic applications

An operation is defined by an identified semantic contract and an interpretation basis. The contract establishes the admitted inputs, the meaning of the computation, the nature of the results and the completion conditions. It also determines the relevant dependencies, the negative or inconclusive results and, when applicable, the authority conditions needed for its performance.

A semantic application binds that contract to determined inputs and parameters. It identifies the revision of the contract used, the resolved references and the information that must be available during the evaluation. The declaration of an application in .fsl belongs to the semantic program; its concrete execution happens later, under a realization binding and an execution instance.

Two applications can use the same definition and produce different results by receiving distinct inputs or interpretation bases. The identity of the application, the identity of each execution and the identity of the results remain recoverable according to their respective contracts.

This organization makes it possible to compose operations of different natures. A query can provide elements for an analysis; an inference can produce content for a new query; a validation can provide a judgment used in a decision. The passage between them respects the consuming operation’s contract.

Query

The query, expressed by the match family, selects and relates information under a QueryContract. Its result is a query answer, interpreted over the semantic basis used in the evaluation.

FormaSL queries entities, relation instances, roles and typed references of the metagraph. Patterns can combine relations and conditions over the participants, while projections, groupings, aggregations and orderings organize the answers. Paths can also be queried under contracts determining the admissible steps, the reuse of elements and the selection of routes.

The answer keeps the information needed to interpret its origin, its bindings and its completeness. A projection can present only part of the qualifications available in the queried basis, according to the query’s contract. A graph view produced by a query remains a view over that basis.

For example, a query over the maintenance history of a pumping station can select inspections of an equipment, relate each inspection to its responsible party and identify measurements taken during an interval. The result keeps the references needed for a later analysis to use the measurements and their production conditions.

Analysis and prediction

The analyze family applies an AnalysisContract to inputs interpreted under a defined basis. It covers analytical, statistical, algorithmic and model-based operations, including analyses over relational structures and predictions.

The contract establishes the relation between inputs and outputs, the semantic parameters of the operation and the nature of the result. An analysis can be exact, approximate or stochastic. When estimates, uncertainties, evaluation criteria or reproduction conditions participate in the meaning, those properties accompany the result.

A failure-risk analysis, for example, can use measurements, inspection history and characteristics of an asset to produce an estimate. The result has the interpretation defined by the selected model and analytical basis. It can join other operations as analytical information, keeping its origin and production conditions.

Models, training, evaluation and inference have their own identities and responsibilities. A learned artifact can be referenced by its revision; the use of that artifact in a determined execution produces a result with dependencies on the model version and the data effectively employed.

Semantic reasoning

The infer family produces semantic consequences according to a ReasoningContract. That contract identifies the theory or ontology, the applicable rules, the premise regime and the consequence relation used.

A premise is admitted under the operation’s conditions. A Claim, an observation or an analytical result can participate in an inference when the contract establishes how its content will be interpreted in that position. The produced consequence keeps its relation with the theory, the premises and the pertinent derivation.

FormaSL’s reasoning profiles include positive recursive deduction, stratified reasoning with negative conditions and aggregations, and controlled positive existential rules. Each profile defines its formation, safety, conclusion and witness-production conditions.

A maintenance theory can establish consequences about the need for an inspection from conditions observed in equipments. The inference produces the derived content under that theory. A possible intervention decision uses the result according to the deciding operation’s policy and authority.

Reasoning can also produce derivation artifacts, references to the dependencies and completeness information. Those elements make it possible to query and use the consequences without confusing the inference’s result with a new act of assertion attributable to an agent.

Semantic transformation

The transform family builds target semantic artifacts from source information, according to a TransformationContract. The contract describes the correspondence between origin and target, the formation of the new content and the treatment of the relevant qualifications.

A transformation can gather information, reorganize relations, build new instances or produce structures destined for another application. The resulting artifact has its own meaning, bound to the transformation that produced it.

The difference between query and transformation appears in the result’s contract. A query that builds a view or presents derived values continues producing a query answer. A transformation constitutes its own stage when it establishes a target artifact under a semantic correspondence between origin and target.

The transformation also declares how it treats identity, provenance, dependencies and the other material qualifications. The result can preserve properties, derive new information, explicitly change determined conditions or restrict content according to the contract.

A transformation between an inspections model and an operational evaluation structure, for example, can relate different records to a tracking artifact of an equipment. The correspondence between the source information and the built elements remains recoverable for later use.

Results and completion conditions

Each operation produces results whose semantic status follows from its contract. A query answer, an analytical value, a reasoning consequence and a conformance judgment have their own interpretations.

The result gathers, according to its nature, content, interpretation basis, dependencies, provenance and completeness information. Those dimensions form the semantic interface that lets the result be used in compositions. The presence of similar fields or structures in two results does not, by itself, establish that they can be consumed under the same contract.

Completeness indicates whether the completion criterion defined by the operation was satisfied for the considered basis. A query can end with a complete set of answers, an evaluation can remain inconclusive and an inference can produce partial results under a bounded budget. Completeness states accompany results when relevant to their use.

Gas bounds the logical computational work. Its exhaustion ends or limits an execution according to the applicable rules and keeps that condition distinguishable from semantic completion. An execution can end operationally without the operation having satisfied its completeness criterion.

Likewise, an empty query, a negative judgment, unknown information, an inconclusive result and a mechanism failure have different meanings. The producer’s contract determines which results are admissible and how they can be routed to the next operation.

Validation and governed judgments

The validate family examines a target under a ValidationContract. The evaluation considers a validation world, selection criteria and admitted restrictions, producing results and findings according to that contract’s conformance conditions.

Validation uses the world and criteria of its own operation. A conformance judgment can be used by governance processes, keeping the identity of the criteria, the evaluated information and the considered basis.

The admit, authorize and decide families perform the other roles:

  • Admission examines a candidate’s passage through a governed boundary, under the applicable policies and conditions.
  • Authorization evaluates an agent’s position towards a determined action or capability, considering its authority and the relevant scope.
  • Decision records an attributable act of selection or adjudication under a determined normative and informational basis.

These operations can share information and judgments without losing their responsibilities. An inspection can meet an equipment’s quality restrictions, while its use in a determined activity depends on admission and on the responsible agent’s authorization. The operational decision associates the pertinent conditions to the result assumed by the decider.

The normative effectiveness of a decision is determined by the applicable governance relations. Its record constitutes an identifiable semantic event, with its own subject, responsible party, basis and time.

Assertions, revisions and semantic positions

FormaSL also has transitions that introduce or modify attributable positions.

The issuance of a Claim creates the identity of an act of assertion, binding content, issuer and interpretation conditions. The adoption of information or a result as one’s own assertion introduces a new Claim when it constitutes a new attributable act. The communication and reception of an already existing Claim keep its identity.

A position can be revised over time. Retraction, correction and replacement by succession have their own historical relations. Retraction records the position change under the pertinent authority; correction can introduce new content associated with the earlier one; succession establishes how one position comes to be considered in relation to another.

These transitions preserve the history of the assertions and the conditions in which they were used. A query over the current state can select the applicable position, while a historical query recovers the assertions and revisions that contributed to earlier decisions.

The revise family participates in the revision semantic transitions according to the corresponding contract. The evolution of the authoritative source, treated below, is an additional responsibility.

Scenarios and hypothetical evaluations

The scenario family establishes an evaluation context from a determined basis and local premises or changes. The resulting context allows executing operations over hypothetical information, keeping their relation to the origin basis.

A scenario can add hypotheses, restrict visible elements, replace information for the evaluation, introduce local content or apply hypothetical transitions authorized by its contract. The applications executed in that context produce results whose dependencies on the premises remain reconstructible.

A team responsible for water supply can evaluate the network’s operation assuming a pumping station stays unavailable during a determined period. The query over distribution routes and an analysis of the remaining capacity are performed under that hypothetical basis. Their results can support a later evaluation, preserving the origin of the premises used.

The definition of a scenario, the context instance created for a determined basis and the obtained results are different elements. The later use of a hypothetical result in an assertion or decision happens through an explicit transition, with the corresponding qualifications and dependencies.

Execution request and observation

Semantic operations can lead to actions performed by external mechanisms. The execution_request family expresses a request bound to an action contract, with inputs, requester and pertinent governance conditions.

The fulfillment of the request involves an operational boundary. An execution attempt has its own identity, executor, start conditions and result. The responsible mechanism can provide records or receipts describing the processing performed under its interface’s guarantees.

The effects occurred in the environment are interpreted by appropriate relations, including the causal basis when necessary. The observe family relates information acquired by agents, instruments or services to what was observed, keeping the relevant method, time, context and provenance.

Consider a decision requesting the shutdown of a pump. The request forwards the action to the responsible system; the execution attempt produces its operational result; a later reading can provide information about the equipment’s state. The decision, the attempt, the external event and the observation join the same semantic history through explicit relations.

The observation can participate in new evaluations, inferences and decisions. Its incorporation into the authoritative corpus follows the applicable source transition.

Evolution and incorporation into the source

The .fsl source constitutes the authoritative plan of meaning and semantic data. The execution of an operation can produce results and artifacts usable in other computations; source evolution introduces a new authoritative state under a change contract.

FormaSL distinguishes the authorship of source material, the evolution of its authoritative state and the revision of the semantic elements represented in it. A file change can produce a new source version without constituting, by itself, a new identity of each element. A semantic revision can relate historical elements without requiring physical mutation of the earlier record.

The evolve source surface describes source changes from an identified basis. The incorporate family performs the governed incorporation of information, according to the authority, acceptance and publication conditions established by the applicable contract. The result of those transitions determines when a new authoritative source comes to exist.

That separation keeps the traceability between the state used in the computation, the produced result, the decision that possibly adopted it and the source revision that received the information. It also allows keeping the different times of occurrence, observation, record and validity.

Composition of operations

A composition relates semantic applications and their dependencies. It defines how results are forwarded between stages, which conditions determine the execution paths and which results or transitions integrate its completion.

The acceptance of an input considers the type and category of the result, its semantic status, the interpretation basis, the relevant dependencies and the completeness condition. Operations with additional requirements, such as premise admission in reasoning or authority for decisions, apply their own criteria.

The composition contract distinguishes the dependency between information from the declared semantic precedence. The effective scheduling belongs to the execution and can use different strategies as long as it preserves the required conditions. When stages need to be introduced in a coupled form, the composition contract establishes that relation.

A composition also determines the treatment of alternative results, conditional stages, inconclusive results and failures. Its semantic completion depends on the results and transitions required by the contract, while the termination of an execution describes the ending of the corresponding processing.

The interruption of a stage does not eliminate already performed semantic events or external effects. Revisions, retractions and compensations are new transitions, whose relation to the earlier history remains identifiable.

Relation between source, computation and world

FormaSL’s operational path connects the semantic source to the applications and mechanisms realizing its contracts. A source is resolved and elaborated into a semantic program; applications select inputs and produce results; judgments and decisions can trigger execution requests; observations and later information can feed new operations.

When there is governed incorporation, that path produces a new source state. Each passage keeps the identities, interpretation bases, authorities and dependencies needed for semantic continuity.

The detailed reference of the language describes the syntax and parameters of each operation family. The specific contracts of query, analysis, reasoning, transformation, validation, governance and lifecycle establish their semantics and execution conditions.

The Logical architecture and metagraph describes the structure of the elements these operations work on. Ontologies and semantic theories presents their conceptual bases. Semantic invariants and Semantic continuity define the properties preserved when information and results cross operations and transitions.