逻辑信息模型(Logical Information Model) for Java:Example 14

逻辑信息模型(Logical Information Model) for Java:Example 14

"lim4j-samples": Example 14

逻辑信息模型(Logical Information Model) for Java:Example 14_第1张图片

 逻辑信息模型(Logical Information Model) for Java:Example 14_第2张图片


sample代码如下:

	public static void main(String[] args) throws Exception {
		InformationSection is1 = new InformationSection("Salviati: \"... How far may one go without geometry for a good philosophical exploration of the natural world?\"\n"
				+ "Sagredo: \"... (And it must be admitted that) trying to deal with physical problems without geometry is attempting the impossible.\"");

		Statement s1 = new HypotheticalProposition("One may go far without geometry for a good philosophical exploration of the natural world.");
		
		Doubt d1 = new Doubt("How far may one go without geometry for a good philosophical exploration of the natural world?");

		d1.setTarget(s1);
		d1.setDoubtType(DoubtType.HOW_FAR);
		
		JudgedStatement js1 = new HypotheticalProposition("Trying to deal with physical problems without geometry is attempting the impossible.");
		
		Explanation ex1 = new Explanation(d1, js1);
		
		Entity e1 = new Entity("Salviati");
		Entity e2 = new Entity("Sagredo");
		
		Proposer p1 = new Proposer(e1);
		Proposer p2 = new Proposer(e2);
		
		d1.setProposer(p1);
		ex1.setProposer(p2);

		is1.addSubInformationElement(d1, ex1);
		
		Root root = new Root(is1);

		root.marshalToXml(true, System.out);
	}


输出结果:



    
        Salviati: "... How far may one go without geometry for a good philosophical exploration of the natural world?"
Sagredo: "... (And it must be admitted that) trying to deal with physical problems without geometry is attempting the impossible."
        
    
    
        One may go far without geometry for a good philosophical exploration of the natural world.
    
    
        
        How far may one go without geometry for a good philosophical exploration of the natural world?
        HOW_FAR
        
        
    
    
        Trying to deal with physical problems without geometry is attempting the impossible.
    
    
        
        
        
    
    
        
            
        
    
    
        
    
    
        
    
    
        
    
    
        
    
    
        
            
        
    
    
        
            
        
    
    
        
            
            
        
    

=============================

源代码:
lim4j-samples:https://github.com/CodeJStudio/lim4j-samples
lim4j:        https://github.com/CodeJStudio/lim4j

参考文献:
《逻辑信息模型与逻辑信息网络》 / "Theory of Logical Information Model & Logical Information Network"
《从逻辑信息模型,到逻辑信息网络,直至实现通用人工智能》
 

你可能感兴趣的:(通用人工智能,Java,逻辑学,java,人工智能,知识图谱,数据结构,图论)