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

Ontologies and semantic theories

FormaSL uses ontologies to organize a domain’s concepts and interpretation commitments. An ontology establishes an identifiable semantic basis under which categories, relations and statements can be declared, related and used by applications and computational operations.

Ontologies coexist with other structures of the language. The world model establishes the fundamental semantic categories; the metagraph provides the logical organization of entities, relations, roles and references; ontologies and theories define conceptual commitments under their own interpretation bases. FormaSL’s operations use those elements according to their contracts.

This organization lets different applications share structures and referents without concentrating their interpretations in a single ontology.

Ontology as a semantic artifact

An ontology is an intensional semantic artifact, identified and referenciable, interpreted under an ontology or theory contract. The intensional character concerns the concepts and commitments organizing a domain: what its categories express, which relations are recognized and how determined statements must be interpreted.

In FormaSL, ontologies belong to the family of theory-like artifacts. A semantic theory organizes declarations, sentences, premises, rules, restrictions and other contents under an identified formalism basis. The ontology is a form of that artifact devoted to the conceptualization of a domain, with the meaning of its contents determined by the corresponding contract.

The artifact has identity and can be referenced by other declarations. Its contents are interpreted according to the applicable revision and basis. Program composition can use that reference without confusing the ontology with the module providing it or the package distributing it.

A logistics ontology, for example, can organize the concepts of shipment, load, custody, delivery and receipt. Its interpretation establishes the distinctions pertinent to the logistics domain. Different applications can use those concepts to query movements, evaluate transport conditions or relate events to contractual obligations.

Concepts and classification schemes

Concepts identify categories and meanings used in organizing a domain. A concept scheme gathers classifications and relations between concepts under a common reference, allowing different schemes to coexist.

The std::world::classification library offers a reusable basis for that modeling. It defines Concept and ConceptScheme, plus the relations ConceptInScheme, ClassifiedAs, BroaderConcept and RelatedConcept.

ClassifiedAs relates a subject, a concept and the scheme the classification belongs to. BroaderConcept represents a relation between broader and more specific concepts within a scheme; RelatedConcept associates related concepts in the same scheme. The module also contains rules deriving concept participation in their schemes from those relations and making RelatedConcept symmetric.

Consider a batch of medicine. In a regulatory scheme, it can be classified as a pharmaceutical product. In a logistics scheme, it can receive the classification of thermosensitive load. The two classifications refer to the same batch and serve different purposes. A regulatory conformance operation and a transport planning query can use those classifications under their respective schemes.

Classification and ontology have related functions. The scheme organizes concepts and classificatory associations; the ontology gathers broader commitments about the domain, possibly including sentences, relations and axioms interpreted under a formalism. An ontology’s vocabulary can be expressed by declarations and references admitted in its basis.

Ontological categories and type contracts

FormaSL distinguishes the category attributed to something in the domain from the static contracts governing the language’s constructs.

An ontological category expresses a classification or conceptual commitment within an ontology. A situated classification relates a referent to a category under determined conditions and can be part of a Claim’s content. A semantic type contract establishes the guarantees the language uses for formation, compatibility and substitution of constructs.

The same separation appears in relations. A relation’s contract defines typed roles, admissible participants and participation rules. An ontological category of a relation or role expresses a domain interpretation. A transport relation can have sender and recipient roles defined by the language contract, while a commercial ontology interprets the responsibilities those participants assume in a determined process.

A classification judgment can be revised, contested or situated in a specific ontology. The type system keeps its own identity and formation rules. The two structures can be related by explicit contracts when an operation needs to consider both.

Ontologies over the metagraph

The metagraph is the common logical representation of FormaSL’s semantic structures. It organizes relation instances, participants, roles, typed references and higher-order structures. Ontologies use that infrastructure to declare and relate their intensional content.

A shipment relation represented in the metagraph can connect the lot, the sender, the carrier and the recipient. A logistics ontology interprets that relation as part of a transport process; a contractual ontology can use the same referent to establish the meaning of delivery, acceptance and responsibility. The commitments of each ontology remain identified by their interpretation bases.

The metagraph also makes it possible to reference elements of an ontology, assertions about those elements and results depending on them. Thus an evaluation can point to a classification, a revision can refer to an earlier commitment and an inference operation can keep the declarations used as basis.

An element’s membership in the graph, its adoption by an ontology and its classification under a scheme are relations with distinct functions. Each one’s contract determines which information it adds to the interpretation.

Ontological scope

Ontological commitments can have their own scope. The scope identifies the basis under which determined categories, relations and interpretations are applicable.

In the language, that scope is distinct from the context frame, the type environment and the slice of a query or view over the metagraph. Those structures can participate in the same operation, but fulfill specific functions: an ontology establishes conceptual commitments; a frame situates the interpretation; the type environment governs static judgments; a view selects information to present or process.

The batch of medicine can be considered simultaneously by logistics, pharmaceutical and contractual ontologies. Each organizes categories pertinent to its purpose. An operation can consult information under one of them or relate commitments of several, using the involved bases explicitly.

The scope accompanies the interpretation when necessary. Revising an ontology or selecting another conceptual basis can change the conclusions admitted in a determined operation, even when the identities of the queried referents remain the same.

Theories, axioms and rules

The contents of an ontology are interpreted under a theory or formalism basis. That basis establishes the meaning of the sentences and theory relations used by the operations consuming the artifact. The pertinent vocabulary is reconstructed from the admitted declarations and references and the corresponding formal basis.

An ontological axiom expresses a commitment within that formalism. An inference rule participates in a reasoning contract and establishes conditions for producing semantic consequences. A validation restriction defines conditions to examine a target in a validation world. A governance policy establishes normative conditions for judgments and decisions.

These contents can be related and reused by an application. Each keeps the interpretation and effects defined by its function. A cardinality condition, for example, can be formulated as a constitutive guarantee of a role, an axiom of a theory or a validation restriction; its purpose determines the contract governing it.

An ontology can adopt declarations and statements under its own intensional basis. That adoption establishes membership in the artifact and keeps the identity and semantic category of the adopted elements. Situated assertions by agents and conclusions derived by computation have their own production transitions.

Relations and composition between ontologies

Ontologies can be used together through explicit relations between theories. The architecture distinguishes inclusion, extension, mapping, interpretation and refinement. Each relation has a meaning defined by the applicable theory contract.

A mapping can relate the concept of delivery in a logistics ontology to the concept of fulfillment of obligation in a contractual ontology. That relation can establish a partial or conditioned correspondence, letting an operation consider information from both bases. The referents and origin categories keep their identities.

Theory composition is different from language module composition. Importing a module makes declarations available according to visibility and resolution rules; including or relating theories establishes a semantic linkage between their contents. Likewise, an ontological correspondence has a meaning different from a name alias or a referent identity.

The language can express multiple ontologies over shared structures. The operations combining them identify which commitments were used, which relation between theories was applied and how the pertinent dependencies participate in the result.

Ontologies and reasoning

Ontologies can serve as semantic authority bases for reasoning operations. A ReasoningContract determines which premises are admitted, how they are interpreted, which consequence relation applies and under which conditions the operation is considered complete.

FormaSL offers reasoning profiles covering positive recursive deduction, stratified reasoning with negation and controlled aggregations, and positive existential rules under specific restrictions. Those profiles are selected and used according to their contracts, preserving the contents and dependencies of the produced conclusions.

A pharmaceutical ontology can provide concepts and commitments for interpreting information about a batch; an operational theory can associate that information with specific evaluation rules. Reasoning uses the premises admitted under the selected basis and produces semantic consequences attributable to the inference contract.

The consequences can be queried, related to other information and used in later operations. A decision or Claim adopting a determined result introduces its own semantic passage. In existential reasoning, the witness terms used internally by the mechanism remain distinct from the identities of domain referents.

Ontological revisions and evolution

Ontologies can evolve with the domain they describe. New concepts can be introduced, relations can receive another interpretation and earlier commitments can be revised or replaced under appropriate evolution rules.

Revisions keep identifiable bases for historical interpretation. A classification issued under a determined version of an ontology stays associated with that basis. A later operation can use another revision and, when necessary, relate the two by an explicit transition or mapping.

This also applies to theories adopted by applications. The result of an inference depends on the theory, the rules, the premise regime and the interpretation basis used. Those dependencies participate in semantic continuity and make it possible to recover the result’s meaning after changes in the corpus.

The distribution of ontologies through modules and packages is organized by FormaSL’s source and resolution infrastructure. The correspondence between artifact identities across distinct revisions is established by the references and succession relations foreseen in the corresponding contracts.

Language surface

The declarative form and the operational paths are gathered in the surface reference.

The Logical architecture and metagraph describes the structure over which ontological contents are represented. The World model defines the fundamental semantic categories, while Semantic invariants and Semantic continuity specify the preservation of distinctions and dependencies across operations.