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

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

"lim4j-samples": Example 02

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

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

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

 
sample代码如下:

	public static void main(String[] args) throws Exception {
		Argument a1 = new Argument("① Because the greatest mitochondrial variations occurred in African people, "
				+ "② scientists concluded that they had the longest evolutionary history, "
				+ "③ indicating a probable African origin for modern humans.");
		
		Argument a2 = new Argument("① Because the greatest mitochondrial variations occurred in African people, "
				+ "② scientists concluded that they had the longest evolutionary history,");

		Argument a3 = new Argument("② (scientists concluded that )they had the longest evolutionary history, "
				+ "③ indicating a probable African origin for modern humans.");

		JudgedStatement js1 = new Proposition("the greatest mitochondrial variations occurred in African people,");
		JudgedStatement js2 = new Proposition("scientists concluded that they had the longest evolutionary history,");
		JudgedStatement js3 = new Proposition("(there is )a probable African origin for modern humans.");

		a2.addEvidence(js1);
		a2.addConclusion(js2);
		a3.addEvidence(js2);
		a3.addConclusion(js3);
		a1.addSubArgument(a2, a3);

		Root root = new Root(a1);

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

输出结果:



    
        ① Because the greatest mitochondrial variations occurred in African people, ② scientists concluded that they had the longest evolutionary history, ③ indicating a probable African origin for modern humans.
        
    
    
        
        ① Because the greatest mitochondrial variations occurred in African people, ② scientists concluded that they had the longest evolutionary history,
        
        
        
    
    
        
        ② (scientists concluded that )they had the longest evolutionary history, ③ indicating a probable African origin for modern humans.
        
        
        
    
    
        the greatest mitochondrial variations occurred in African people,
    
    
        scientists concluded that they had the longest evolutionary history,
    
    
        (there is )a probable African origin for modern humans.
    
    
        
            
        
        
    
    
        
        
    
    
        
            
            
        
    
    
        
            
            
        
    
    
        
            
            
        
    
    
        
            
        
    
    
        
            
            
        
    
    
        
            
        
        
    
    
        
        
    
    
        
            
            
        
    
    
        
            
        
    
    
        
            
            
        
    
    
        
            
        
    
    
        
            
        
    
    
        
            
        
        
    
    
        
        
    
    
        
            
            
        
    
    
        
            
            
        
    
    
        
            
            
        
    
    
        
            
        
    
    
        
            
            
        
    
    
        
            
        
        
    
    
        
        
    
    
        
            
            
        
    
    
        
            
        
    
    
        
            
            
        
    
    
        
            
        
    
    
        
            
        
    
    
        
            
            
        
    


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

源代码:

lim4j-samples:https://github.com/CodeJStudio/lim4j-samples

lim4j:        https://github.com/CodeJStudio/lim4j


参考文献:

《逻辑信息模型与逻辑信息网络》 / "Theory of Logical Information Model & Logical Information Network"

《从逻辑信息模型,到逻辑信息网络,直至实现通用人工智能》
 

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