第三章 Structure工程模型
3.1 Structure的工程定义
在WSaiOS结构智能(WSaiOS-SI)理论中,Element是基本结构单位,而Structure是对Element及其关系进行组织以后形成的结构整体。
基本关系:
Structure={Element,Relation}Structure=\{Element,Relation\}
因此:
Element→StructureElement\rightarrow Structure
但Structure并不是Element的简单集合。
如果若干Element只是被保存到同一个数据文件中,而彼此没有明确关系,那么它们仍然只是数据集合,而不是完整的结构。
只有当:
Elementi↔Relation↔ElementjElement_i \leftrightarrow Relation \leftrightarrow Element_j
以后,才形成具有明确结构意义的Structure。
因此:
Structure的本质不是“保存了多少数据”,而是“这些Element按照什么关系被组织起来”。
从工程角度看,Structure必须解决:
定义→保存→组合→匹配→运行→更新→删除定义 \rightarrow 保存 \rightarrow 组合 \rightarrow 匹配 \rightarrow 运行 \rightarrow 更新 \rightarrow 删除
以及:
多结构并存多结构并存
和:
结构删除后的关联数据处理结构删除后的关联数据处理
等问题。
3.2 Structure的基本组成
一个完整Structure至少可以表示为:
Structure={ID,Name,Elements,Relations,Rules,Status,Version}Structure= \{ ID, Name, Elements, Relations, Rules, Status, Version \}
其中:
- IDID:结构唯一标识;
- NameName:结构名称;
- ElementsElements:结构中的Element集合;
- RelationsRelations:Element之间的关系;
- RulesRules:结构运行和验证规则;
- StatusStatus:结构当前状态;
- VersionVersion:结构版本。
进一步:
Elements={E1,E2,…,En}Elements=\{E_1,E_2,\ldots,E_n\} Relations={R1,R2,…,Rm}Relations=\{R_1,R_2,\ldots,R_m\}
因此:
Structure={E1,E2,…,En,R1,R2,…,Rm}Structure= \{ E_1,E_2,\ldots,E_n, R_1,R_2,\ldots,R_m \}
Structure本身还可以继续成为更高层Structure的组成部分。
所以:
Structurei→StructurejStructure_i \rightarrow Structure_j
可以形成复杂结构。
3.3 Structure Definition与Structure Instance
工程系统中必须区分:
StructureDefinitionStructureDefinition
和:
StructureInstanceStructureInstance
StructureDefinition描述:
应该具有什么结构。
StructureInstance描述:
当前实际形成了什么结构。
例如:
StructureDefinition={Object=Product,Attribute={Brand,Price,Function,Certification}}StructureDefinition= \{ Object=Product, Attribute= \{ Brand, Price, Function, Certification \} \}
实际资料进入以后,可以形成:
StructureInstance={ElectricToothbrush,Brand=Philips,Price=29.99,Function=Charging}StructureInstance= \{ ElectricToothbrush, Brand=Philips, Price=29.99, Function=Charging \}
因此:
Definition≠InstanceDefinition\neq Instance
这一区别对于结构学习系统非常重要。
系统首先根据需求建立或选择结构定义,然后再将信息中的Element匹配到该结构中。
3.4 结构定义的来源
WSaiOS-SI中的结构不是系统预先规定整个世界以后再让数据去匹配。
结构可以来自:
RequirementRequirement
即:
Requirement→StructureRequirement→StructureDefinitionRequirement \rightarrow StructureRequirement \rightarrow StructureDefinition
例如需求要求分析一种产品,那么系统可以根据用户定义建立:
ProductStructureProductStructure
其中:
Object=ElectricToothbrushObject=ElectricToothbrush
属性:
{Brand,Price,Certification,Function,Manufacturer,TargetBuyer}\{ Brand, Price, Certification, Function, Manufacturer, TargetBuyer \}
这里必须保持一个重要边界:
系统提供结构定义能力,但不应在没有用户或需求依据的情况下擅自创造行业、类别、对象和属性结构。
因此:
System≠AutomaticPresetStructureGeneratorSystem \neq AutomaticPresetStructureGenerator
而是:
User/Requirement→StructureDefinitionUser/Requirement \rightarrow StructureDefinition
系统负责保存、识别、执行和管理该结构。
3.5 结构定义模型
一个结构定义可以抽象为:
SD={ObjectDefinition,AttributeDefinitions,RelationDefinitions,RuleDefinitions,MethodDefinitions}SD= \{ ObjectDefinition, AttributeDefinitions, RelationDefinitions, RuleDefinitions, MethodDefinitions \}
例如:
ObjectDefinition=ProductObjectDefinition=Product AttributeDefinitions={Brand,Price,Certification,Function,Manufacturer,TargetBuyer}AttributeDefinitions= \{ Brand, Price, Certification, Function, Manufacturer, TargetBuyer \}
进一步:
RelationDefinitionsRelationDefinitions
规定对象、属性和其他结构之间的关系。
RuleDefinitionsRuleDefinitions
规定属性值的验证、判断或处理规则。
MethodDefinitionsMethodDefinitions
规定结构可以支持的相关方法。
因此结构定义并不只是:
Object+FieldsObject+Fields
而是:
StructureDefinition=Object+Attribute+Relation+Rule+MethodStructureDefinition = Object+ Attribute+ Relation+ Rule+ Method
3.6 Structure中的Object
Object是Structure的重要组成部分。
基本关系:
Structure→ObjectStructure \rightarrow Object
对象再具有属性:
Object→AttributeObject \rightarrow Attribute
属性具有值:
Attribute→ValueAttribute \rightarrow Value
因此:
Structure→Object→Attribute→ValueStructure \rightarrow Object \rightarrow Attribute \rightarrow Value
例如:
Structure=ProductStructure=Product Object=ElectricToothbrushObject=ElectricToothbrush Attribute=PriceAttribute=Price Value=29.99Value=29.99
形成:
ElectricToothbrush.Price=29.99ElectricToothbrush.Price=29.99
Structure由此成为对象及其属性关系的组织框架。
3.7 Structure中的Relation
Structure不仅定义Element,还定义Element之间如何关联。
例如:
Object→hasAttribute→AttributeObject \rightarrow hasAttribute \rightarrow Attribute
以及:
Attribute→hasValue→ValueAttribute \rightarrow hasValue \rightarrow Value
进一步:
Object1→Relation→Object2Object_1 \rightarrow Relation \rightarrow Object_2
因此:
Structure=Elements+RelationsStructure= Elements+ Relations
如果没有Relation:
{E1,E2,E3}\{E_1,E_2,E_3\}
只是三个Element。
有了:
E1→R1→E2E_1\rightarrow R_1\rightarrow E_2 E2→R2→E3E_2\rightarrow R_2\rightarrow E_3
才形成结构。
3.8 Structure的规则
Structure可以具有与自身结构相关的规则。
例如:
Price→NumberPrice\rightarrow Number
表示Price的Value应当符合Number结构。
也可以有:
Price>0Price>0
表示价格不能小于等于零。
还可以有:
Function∈FunctionSetFunction\in FunctionSet
表示Function必须符合规定的功能值结构。
因此:
StructureRule→ElementValidationStructureRule \rightarrow ElementValidation
以及:
StructureRule→StructureValidationStructureRule \rightarrow StructureValidation
结构规则不是知识本身,而是对结构进行验证和处理的规则。
3.9 Structure的保存
Structure必须具有独立的工程身份。
可以定义:
StructureIDStructureID
例如:
StructureID=SD001StructureID=SD001
系统通过StructureID识别一个结构。
基本保存形式可以抽象为:
StructureStorage={SD1,SD2,SD3,…}StructureStorage= \{ SD_1, SD_2, SD_3,\ldots \}
每个结构独立保存:
SDi={ID,Name,Definition,Rules,Status,Version}SD_i= \{ ID, Name, Definition, Rules, Status, Version \}
具体Element数据则根据结构关系进入相应结构实例。
因此:
StructureDefinitionStorage≠KnowledgeStorageStructureDefinitionStorage \neq KnowledgeStorage
结构定义描述“结构应该怎样”。
知识保存描述“当前已经获得什么结构化知识”。
3.10 多结构并存
结构智能系统不能只允许一个结构存在。
实际世界中的需求通常具有多个结构。
因此:
Structures={S1,S2,S3,…,Sn}Structures= \{S_1,S_2,S_3,\ldots,S_n\}
多个Structure可以同时存在:
S1∥S2∥S3S_1\parallel S_2\parallel S_3
例如系统同时可以具有:
ProductStructureProductStructure CompanyStructureCompanyStructure CertificationStructureCertificationStructure SupplierStructureSupplierStructure
它们并不需要被强制合并成一个结构。
因此:
结构智能系统是多结构并存系统,而不是单一结构系统。
3.11 多结构之间的独立性
多个结构同时存在时,每个结构应当保持自己的结构身份。
例如:
S1.ID=SD001S_1.ID=SD001 S2.ID=SD002S_2.ID=SD002
即使:
S1∩S2≠∅S_1\cap S_2\neq\varnothing
也不能因此自动认为:
S1=S2S_1=S_2
因为两个结构可以共享某些Element,但结构关系不同。
例如:
S1:Product→PriceS_1: Product\rightarrow Price
而:
S2:Supplier→PriceS_2: Supplier\rightarrow Price
两者都可能使用:
PricePrice
但结构意义不同。
因此:
SharedElement≠SharedStructureSharedElement\neq SharedStructure
3.12 多结构之间的共享Element
不同Structure可以引用同一个基础Element。
例如:
EPriceE_{Price}
可以同时属于:
SProductS_{Product}
和:
SSupplierS_{Supplier}
形成:
SProduct←EPrice→SSupplierS_{Product} \leftarrow E_{Price} \rightarrow S_{Supplier}
这体现了Element层与Structure层之间的区别。
Element可以被结构复用,而Structure保持自己的独立关系。
因此:
ElementReuse≠StructureMergeElementReuse \neq StructureMerge
系统可以通过ElementID或关系标识维护这种共享。
3.13 结构组合
多个结构可以在需求需要时组合。
基本关系:
S1+S2→ScombinedS_1+S_2 \rightarrow S_{combined}
例如:
ProductStructureProductStructure
和:
CertificationStructureCertificationStructure
可以根据需求形成:
ProductCertificationStructureProductCertificationStructure
但是结构组合不是简单字段相加。
需要处理:
- 相同Element;
- 相同Attribute;
- 冲突Relation;
- 冲突Rule;
- 重复结构;
- 结构层级;
- 结构身份。
因此:
StructureCombination=ElementMatching+RelationMatching+ConflictHandling+StructureIntegrationStructureCombination = ElementMatching + RelationMatching + ConflictHandling + StructureIntegration
3.14 结构组合的基本过程
结构组合可以按照:
S1→ElementMatchingS_1 \rightarrow ElementMatching S2→ElementMatchingS_2 \rightarrow ElementMatching
然后:
Matching→RelationIntegrationMatching \rightarrow RelationIntegration
进一步:
RelationIntegration→RuleIntegrationRelationIntegration \rightarrow RuleIntegration
最后:
S1+S2→S3S_1+S_2 \rightarrow S_3
形成新的结构。
即:
Structure1+Structure2→Structurenew\boxed{ Structure_1 + Structure_2 \rightarrow Structure_{new} }
但是:
S1,S2S_1,S_2
原结构是否保留,必须由系统的结构管理规则决定。
结构组合不等于自动删除原结构。
3.15 结构组合与需求
结构组合必须由需求驱动。
例如需求:
同时分析产品、生产厂家和认证信息。
可能需要:
ProductStructureProductStructure ManufacturerStructureManufacturerStructure CertificationStructureCertificationStructure
于是:
Requirement→StructureSelection→StructureCombinationRequirement \rightarrow StructureSelection \rightarrow StructureCombination
形成当前任务所需要的综合结构。
因此:
MultiStructure→Requirement→SelectedStructuresMultiStructure \rightarrow Requirement \rightarrow SelectedStructures
而不是系统默认永远维护一个巨型结构。
3.16 多结构同时参与一个任务
多个结构可以同时参与一个需求。
例如:
D={Product,Manufacturer,Certification}D= \{ Product, Manufacturer, Certification \}
系统可以调用:
S1=ProductStructureS_1=ProductStructure S2=ManufacturerStructureS_2=ManufacturerStructure S3=CertificationStructureS_3=CertificationStructure
形成:
D→{S1,S2,S3}D\rightarrow \{S_1,S_2,S_3\}
然后通过Relation建立跨结构联系:
Product→ManufacturerProduct \rightarrow Manufacturer Product→CertificationProduct \rightarrow Certification
这使系统可以在保持结构独立的同时完成综合处理。
3.17 综合结构与原始结构的区别
综合结构不是原始结构的简单替代。
应区分:
OriginalStructureOriginalStructure
和:
CompositeStructureCompositeStructure
例如:
S1S_1
和:
S2S_2
组合形成:
SCS_C
则:
SC≠S1S_C\neq S_1 SC≠S2S_C\neq S_2
而:
SC=f(S1,S2,Requirement)S_C=f(S_1,S_2,Requirement)
综合结构是当前需求下形成的新的结构关系。
3.18 Structure版本
结构会发生变化,因此必须具有版本概念。
S(1)→S(2)→S(3)S^{(1)} \rightarrow S^{(2)} \rightarrow S^{(3)}
例如:
第一版本:
S(1)={Brand,Price,Function}S^{(1)}= \{Brand,Price,Function\}
更新以后:
S(2)={Brand,Price,Function,Certification}S^{(2)}= \{Brand,Price,Function,Certification\}
这不是简单增加字段,而是结构发生了变化。
因此:
StructureUpdateStructureUpdate
必须能够记录:
OldStructure→NewStructureOldStructure \rightarrow NewStructure
版本机制可以支持结构变化的追踪和验证。
3.19 Structure状态
结构需要具有运行状态。
例如:
StructureStatus={Active,Paused}StructureStatus= \{ Active, Paused \}
Active表示当前结构可以参与结构化、知识形成和相关处理。
Paused表示结构暂时停止参与当前运行。
因此:
Active→UseActive\rightarrow Use Paused→SuspendPaused\rightarrow Suspend
暂停与删除完全不同。
Paused≠DeletedPaused\neq Deleted
暂停不会自动消灭结构,也不等于删除该结构已经产生的历史结果。
3.20 Structure修改
结构修改可能涉及:
- 对象定义;
- 属性定义;
- 属性关系;
- 结构规则;
- 方法关系;
- 结构状态。
因此:
StructureModification=DefinitionModification+RelationModification+RuleModificationStructureModification = DefinitionModification + RelationModification + RuleModification
例如:
S1={Brand,Price,Function}S_1= \{ Brand, Price, Function \}
修改为:
S2={Brand,Price,Function,Certification}S_2= \{ Brand, Price, Function, Certification \}
形成:
S1→S2S_1\rightarrow S_2
修改后的结构与原知识之间可能产生不一致。
因此:
StructureUpdate→KnowledgeValidationStructureUpdate \rightarrow KnowledgeValidation
如果旧知识不能满足新结构,则必须重新结构化。
3.21 结构修改与知识重新生成
结构定义变化以后,原有知识不一定仍然完整适用。
例如原结构只有:
{Brand,Price,Function}\{Brand,Price,Function\}
修改以后:
{Brand,Price,Function,Certification}\{Brand,Price,Function,Certification\}
原知识:
KnowledgeoldKnowledge_{old}
只能覆盖旧结构。
因此:
StructureChange→KnowledgeRevalidationStructureChange \rightarrow KnowledgeRevalidation
必要时:
OriginalInformation→NewStructure→NewKnowledgeOriginalInformation \rightarrow NewStructure \rightarrow NewKnowledge
这体现了结构智能学习系统的重要特点:
知识是结构化结果,而结构发生根本变化以后,知识应当能够按照新的结构重新形成。
3.22 Structure删除
结构删除是结构工程模型中的重要操作。
基本关系:
Structure→DeleteStructure \rightarrow Delete
但是结构删除不能仅仅理解为:
Delete(StructureRecord)Delete(StructureRecord)
因为该结构可能已经产生了:
- 结构化知识;
- 结构实例;
- Element关系;
- 学习结果;
- 方法依赖;
- 任务结果。
因此:
DeleteStructureDeleteStructure
必须首先确定:
删除的是结构定义,还是同时删除该结构产生的结构化知识和关联结果。
对于当前结构智能学习模型,应建立明确的结构归属关系,使结构删除可以找到其产生的数据。
3.23 结构删除与知识删除
如果某一批知识是按照某个Structure产生的:
StructureA→KnowledgeAStructure_A \rightarrow Knowledge_A
那么删除:
StructureAStructure_A
以后,如果该知识完全属于:
StructureAStructure_A
则:
Delete(StructureA)→Delete(KnowledgeA)Delete(Structure_A) \rightarrow Delete(Knowledge_A)
这样系统才能保证:
删除结构以后,原来的综合知识清理掉,系统再按照当前结构重新生成新的知识。
因此:
StructureDeletion→KnowledgeCleanup\boxed{ StructureDeletion \rightarrow KnowledgeCleanup }
然后:
CurrentStructure→OriginalInformation→NewKnowledge\boxed{ CurrentStructure \rightarrow OriginalInformation \rightarrow NewKnowledge }
这不是普通数据库删除,而是结构驱动的数据生命周期管理。
3.24 结构删除与原始信息
结构删除不应该等同于原始资料删除。
必须区分:
OriginalInformationOriginalInformation
和:
StructuredKnowledgeStructuredKnowledge
结构删除可以删除:
StructuredKnowledgeStructuredKnowledge
但原始信息是否删除,应当根据原始资料自身的生命周期规则决定。
因此:
Delete(Structure)≠Delete(OriginalInformation)Delete(Structure) \neq Delete(OriginalInformation)
基本关系可以表示为:
OriginalInformation→Structure→KnowledgeOriginalInformation \rightarrow Structure \rightarrow Knowledge
删除结构以后:
Structure→Knowledge CleanupStructure \rightarrow Knowledge\ Cleanup
而:
OriginalInformationOriginalInformation
仍可以作为新的结构化输入。
这样才能实现:
OldStructure→DeleteOldStructure \rightarrow Delete
然后:
NewStructure→ReStructure→NewKnowledgeNewStructure \rightarrow ReStructure \rightarrow NewKnowledge
3.25 结构删除后的重新结构化
这是Structure工程模型最重要的运行机制之一。
假设原始资料为:
II
旧结构:
S1S_1
生成:
K1=Structure(I,S1)K_1=Structure(I,S_1)
现在删除:
S1S_1
则清理:
K1K_1
随后建立:
S2S_2
重新处理原始资料:
K2=Structure(I,S2)K_2=Structure(I,S_2)
最终:
I⟶S1K1\boxed{ I \overset{S_1}{\longrightarrow} K_1 }
旧结构删除:
S1→DeleteS_1\rightarrow Delete
旧知识清理:
K1→DeleteK_1\rightarrow Delete
重新结构化:
I⟶S2K2\boxed{ I \overset{S_2}{\longrightarrow} K_2 }
这样,知识始终对应当前有效结构。
3.26 批量删除结构
如果系统存在:
S1,S2,S3,…,SnS_1,S_2,S_3,\ldots,S_n
则可以进行批量删除:
Delete({S1,S2,…,Sk})Delete(\{S_1,S_2,\ldots,S_k\})
系统需要分别处理:
StructureIDStructureID
以及:
KnowledgeByStructureIDKnowledgeByStructureID
最终:
BatchDelete→StructureCleanup+KnowledgeCleanupBatchDelete \rightarrow StructureCleanup + KnowledgeCleanup
但是共享Element不能因为某一个Structure删除就无条件删除。
例如:
E1E_1
同时被:
S1S_1
和:
S2S_2
使用。
删除:
S1S_1
以后:
E1E_1
如果仍属于:
S2S_2
则不能直接物理删除。
因此:
StructureDelete→ReferenceCheck→ElementDelete/RetainStructureDelete \rightarrow ReferenceCheck \rightarrow ElementDelete/Retain
这保证多结构并存时的数据安全。
3.27 Structure与Element删除的关系
结构删除和Element删除不是同一个操作。
DeleteStructure≠DeleteElementDeleteStructure\neq DeleteElement
结构删除主要删除:
StructureDefinitionStructureDefinition
以及其专属结构化成果。
Element只有在没有其他有效结构引用、且符合生命周期规则时,才可以进一步清理。
因此:
Structure→ElementReferenceStructure \rightarrow ElementReference
删除结构:
Structure→DeleteStructure\rightarrow Delete
然后:
ElementReferenceCount=0ElementReferenceCount=0
才可能:
Element→DeleteElement\rightarrow Delete
这使Element成为可以被多个结构复用的基础资源。
3.28 Structure与Knowledge的归属关系
为了支持结构删除和重新生成,Knowledge必须能够知道自己依据哪个结构形成。
因此:
Knowledge→StructureIDKnowledge \rightarrow StructureID
可以形成:
KnowledgeOrigin={StructureID,SourceID,ElementIDs,CreatedAt,Version}KnowledgeOrigin= \{ StructureID, SourceID, ElementIDs, CreatedAt, Version \}
于是:
StructureID→KnowledgeSetStructureID \rightarrow KnowledgeSet
系统可以准确找到:
哪些知识是由这个结构产生的。
这也是结构删除可以安全清理知识的工程基础。
3.29 Structure与Source的关系
原始资料和结构之间也需要建立关系。
Source→StructureSource \rightarrow Structure
表示:
某份资料按照某个结构进行处理。
进一步:
Source→Structure→KnowledgeSource \rightarrow Structure \rightarrow Knowledge
当结构变化时:
Source→NewStructure→NewKnowledgeSource \rightarrow NewStructure \rightarrow NewKnowledge
这样原始资料不需要被重复保存成多份,只需要在不同结构下重新处理。
因此:
Source≠StructureSource\neq Structure Source≠KnowledgeSource\neq Knowledge
三者职责不同:
- Source保存原始信息来源;
- Structure规定如何组织信息;
- Knowledge保存按照结构形成的知识成果。
3.30 Structure与Learning
Structure是学习系统中的核心中间层。
学习过程:
Information→Element→Structure→KnowledgeInformation \rightarrow Element \rightarrow Structure \rightarrow Knowledge
因此:
Learning→StructureLearning \rightarrow Structure
结构决定知识如何形成。
如果结构发生变化:
StructureUpdate→LearningUpdateStructureUpdate \rightarrow LearningUpdate
如果发现当前结构无法满足需求:
Requirement→StructureGapRequirement \rightarrow StructureGap
进一步:
StructureGap→StructureModificationStructureGap \rightarrow StructureModification
所以学习并不是只更新Knowledge。
学习还可能更新:
StructureStructure
3.31 Structure与需求变化
需求变化可能导致结构变化。
例如原需求:
D1={Product,Price}D_1= \{ Product, Price \}
形成:
S1={Product,Price}S_1= \{ Product, Price \}
新的需求:
D2={Product,Price,Certification,Function}D_2= \{ Product, Price, Certification, Function \}
则:
D2→S2D_2 \rightarrow S_2
形成:
S1→S2S_1\rightarrow S_2
然后:
OriginalInformation→S2→NewKnowledgeOriginalInformation \rightarrow S_2 \rightarrow NewKnowledge
因此:
Requirement→StructureRequirement \rightarrow Structure
是结构智能系统持续适应需求的基本机制。
3.32 Structure的结构匹配
结构本身也可以被匹配。
例如:
S1={Brand,Price,Function}S_1= \{Brand,Price,Function\}
需求:
D={Price,Function}D= \{Price,Function\}
可以进行:
Match(D,S1)Match(D,S_1)
判断:
S1S_1
是否能够满足当前需求。
因此:
StructureMatchStructureMatch
可以用于:
- 结构选择;
- 知识结构匹配;
- 多结构组合;
- 需求解析;
- 能力匹配;
- 结构更新。
结构匹配是Structure进入运行过程的重要运算。
3.33 Structure与Capability
能力结构也属于结构的一种高层形式。
基本关系:
KnowledgeStructure↔CapabilityStructureKnowledgeStructure \leftrightarrow CapabilityStructure
因此Structure工程模型最终需要支持:
Structure→KnowledgeStructure \rightarrow Knowledge
以及:
Knowledge↔CapabilityKnowledge \leftrightarrow Capability
能力形成:
KnowledgeStructure+CapabilityStructureMatching+Operation+Validation→CapabilityKnowledgeStructure + CapabilityStructureMatching + Operation + Validation \rightarrow Capability
所以Structure不是学习系统的孤立层,而是后续能力形成的基础。
3.34 Structure与Cognition
认知需要当前信息结构与知识结构进行匹配。
Information→Element→Structure↔Knowledge→CognitionInformation \rightarrow Element \rightarrow Structure \leftrightarrow Knowledge \rightarrow Cognition
因此Structure在认知中承担:
把当前信息组织成可与知识比较的结构。
如果没有Structure:
InformationInformation
只能停留在原始信息层。
有了Structure:
Information→StructureInformation \rightarrow Structure
才能进一步:
Structure↔KnowledgeStructure\leftrightarrow Knowledge
形成知识语义理解。
3.35 Structure与Operation
Structure必须能够被运算。
例如:
Match(S1,S2)Match(S_1,S_2)
比较两个结构。
Combine(S1,S2)Combine(S_1,S_2)
组合两个结构。
Filter(S)Filter(S)
筛选结构。
Verify(S)Verify(S)
验证结构。
Transform(S)Transform(S)
转换结构。
因此:
Structure⟶MethodOperation→ResultStructure \overset{Method}{\longrightarrow} Operation \rightarrow Result
结构本身是可计算对象。
这也是统一运算模型中:
ComputableStructure=Structure+Method+OperationComputableStructure=Structure+Method+Operation
的工程基础。
3.36 Structure的动态生命周期
完整的结构生命周期可以表示为:
Requirement→Define→Create→Activate→Use→Update→Pause→Combine→DeleteRequirement \rightarrow Define \rightarrow Create \rightarrow Activate \rightarrow Use \rightarrow Update \rightarrow Pause \rightarrow Combine \rightarrow Delete
其中不同路径不一定全部发生。
例如:
Create→Active→Update→ActiveCreate\rightarrow Active\rightarrow Update\rightarrow Active
或者:
Active→Paused→ActiveActive\rightarrow Paused\rightarrow Active
也可以:
Active→DeleteActive\rightarrow Delete
组合结构则:
S1+S2→SCS_1+S_2\rightarrow S_C
最终:
SC→DeleteS_C\rightarrow Delete
因此Structure是具有完整生命周期的工程实体。
3.37 Structure工程模型的统一关系
综合本章,可以建立:
Structure={ID,Definition,Element,Relation,Rule,Status,Version}\boxed{ Structure= \{ ID, Definition, Element, Relation, Rule, Status, Version \} }
其核心关系为:
Element+Relation→Structure\boxed{ Element+Relation\rightarrow Structure }
结构定义:
Requirement→StructureDefinition\boxed{ Requirement\rightarrow StructureDefinition }
结构实例:
StructureDefinition+Element→StructureInstance\boxed{ StructureDefinition+Element\rightarrow StructureInstance }
多结构:
S1∥S2∥⋯∥Sn\boxed{ S_1\parallel S_2\parallel\cdots\parallel S_n }
结构组合:
S1+S2→SComposite\boxed{ S_1+S_2\rightarrow S_{Composite} }
结构删除:
Delete(S)→Cleanup(KS)→ReferenceCheck\boxed{ Delete(S) \rightarrow Cleanup(K_S) \rightarrow ReferenceCheck }
重新生成:
OriginalInformation⟶NewStructureNewKnowledge\boxed{ OriginalInformation \overset{NewStructure}{\longrightarrow} NewKnowledge }
3.38 Structure工程模型的完整系统链
Structure在整个WSaiOS-SI系统中的位置可以表示为:
Requirement→StructureDefinitionRequirement \rightarrow StructureDefinition Information→ElementInformation \rightarrow Element Element+Relation→StructureInstanceElement+Relation \rightarrow StructureInstance StructureInstance→KnowledgeStructureInstance \rightarrow Knowledge Knowledge↔CapabilityKnowledge \leftrightarrow Capability Structure↔Knowledge→CognitionStructure \leftrightarrow Knowledge \rightarrow Cognition Cognition→Decision→Method→ExecutionCognition \rightarrow Decision \rightarrow Method \rightarrow Execution Execution→Result→FeedbackExecution \rightarrow Result \rightarrow Feedback Feedback→LearningFeedback \rightarrow Learning Learning→StructureUpdateLearning \rightarrow StructureUpdate
最终:
StructureUpdate→KnowledgeUpdate→CapabilityUpdate→MethodUpdate→EvolutionStructureUpdate \rightarrow KnowledgeUpdate \rightarrow CapabilityUpdate \rightarrow MethodUpdate \rightarrow Evolution
形成完整闭环:
Requirement→Structure→Knowledge→Capability→Cognition→Decision→Method→Execution→Feedback→Learning→StructureUpdate→Evolution\boxed{ Requirement \rightarrow Structure \rightarrow Knowledge \rightarrow Capability \rightarrow Cognition \rightarrow Decision \rightarrow Method \rightarrow Execution \rightarrow Feedback \rightarrow Learning \rightarrow StructureUpdate \rightarrow Evolution }
3.39 Structure工程模型的核心边界
为了避免系统工程实现过程中概念混乱,必须保持以下边界。
Element≠StructureElement\neq Structure
Element是基本单位,Structure是Element及Relation形成的整体。
Structure≠KnowledgeStructure\neq Knowledge
Structure规定组织形式,Knowledge是结构化并经过验证的知识成果。
Structure≠SourceStructure\neq Source
Source提供原始信息,Structure规定如何组织信息。
Structure≠CapabilityStructure\neq Capability
普通Structure是结构组织形式,Capability是具有目标、输入、方法、运算和验证能力的可执行结构。
Structure≠MethodStructure\neq Method
Method是实现目标的执行路径结构。
DeleteStructure≠DeleteSourceDeleteStructure\neq DeleteSource
删除结构不能自动等同于删除原始资料。
PauseStructure≠DeleteStructurePauseStructure\neq DeleteStructure
暂停结构只是停止使用,删除才改变其生命周期状态。
StructureCombination≠AutomaticMergeStructureCombination\neq AutomaticMerge
结构组合必须进行Element、Relation、Rule等结构处理。
3.40 本章结论
Structure是WSaiOS结构智能从基本Element进入复杂知识和智能运行的核心工程结构。
其基本定义为:
Structure={Element,Relation}\boxed{ Structure=\{Element,Relation\} }
但完整的工程Structure还需要具有:
IDID DefinitionDefinition ElementElement RelationRelation RuleRule StatusStatus VersionVersion
因此:
Structure={ID,Definition,Element,Relation,Rule,Status,Version}\boxed{ Structure= \{ ID, Definition, Element, Relation, Rule, Status, Version \} }
Structure首先由需求确定:
Requirement→StructureDefinitionRequirement \rightarrow StructureDefinition
然后由Element和Relation形成具体结构:
Element+Relation→StructureElement+Relation \rightarrow Structure
多个结构可以同时存在:
S1∥S2∥⋯∥SnS_1\parallel S_2\parallel\cdots\parallel S_n
结构之间可以根据需求进行组合:
S1+S2→SCS_1+S_2\rightarrow S_C
结构也可以暂停、修改、更新和删除。
尤其是结构删除必须保持结构化知识与原始信息之间的边界:
Delete(Structure)→Cleanup(StructuredKnowledge)Delete(Structure) \rightarrow Cleanup(StructuredKnowledge)
而:
OriginalInformationOriginalInformation
仍然可以作为新的结构输入。
因此:
OriginalInformation⟶OldStructureOldKnowledge\boxed{ OriginalInformation \overset{OldStructure}{\longrightarrow} OldKnowledge }
旧结构删除:
OldStructure→DeleteOldStructure\rightarrow Delete
旧知识清理:
OldKnowledge→DeleteOldKnowledge\rightarrow Delete
重新定义结构:
NewStructureNewStructure
重新结构化:
OriginalInformation⟶NewStructureNewKnowledge\boxed{ OriginalInformation \overset{NewStructure}{\longrightarrow} NewKnowledge }
这使结构真正成为知识生命周期的控制中心。
最终,Structure在WSaiOS-SI中的完整作用可以归纳为:
Element→Relation→Structure→Knowledge→Capability→Cognition→Decision→Method→Execution→Result→Feedback→Learning→StructureUpdate→Evolution\boxed{ Element \rightarrow Relation \rightarrow Structure \rightarrow Knowledge \rightarrow Capability \rightarrow Cognition \rightarrow Decision \rightarrow Method \rightarrow Execution \rightarrow Result \rightarrow Feedback \rightarrow Learning \rightarrow StructureUpdate \rightarrow Evolution }
因此:
Element是结构智能的基本结构单位,Structure是Element及其关系的组织形式;结构定义决定信息如何进入知识,结构组合决定多个结构如何形成更高层结构,结构并存保证系统能够同时处理不同需求,结构删除则控制由该结构产生的知识生命周期。
Structure由此成为WSaiOS结构智能理论从基本元素模型走向知识模型、能力模型、认知模型和学习演化模型的核心工程桥梁。