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

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

"lim4j-samples": Example 03

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

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

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


sample代码如下:

	public static void main(String[] args) throws Exception {
		Argument a1 = new Argument("① An outstanding advantage of nuclear over fossil fuel energy is how easy it is to deal with the waste it produces. "
				+ "② Burning fossil fuels produces 27,000 million tons of carbon dioxide yearly, enough to make, if solidified, a mountain nearly one mile high with a base twelve miles in circumference. "
				+ "③ The same quantity of energy produced from nuclear fission reactions would generate two million times less waste, and it would occupy a sixteen-meter cube. "
				+ "④ All of the high-level waste produced in a year from a nuclear power station would occupy a space about a cubic meter in size and would fit safely in a concrete pit.");

		JudgedStatement js1 = new Proposition("An outstanding advantage of nuclear over fossil fuel energy is how easy it is to deal with the waste it produces.");
		JudgedStatement js2 = new Proposition("Burning fossil fuels produces 27,000 million tons of carbon dioxide yearly, enough to make, if solidified, a mountain nearly one mile high with a base twelve miles in circumference.");
		JudgedStatement js3 = new Proposition("The same quantity of energy produced from nuclear fission reactions would generate two million times less waste, and it would occupy a sixteen-meter cube.");
		JudgedStatement js4 = new Proposition("All of the high-level waste produced in a year from a nuclear power station would occupy a space about a cubic meter in size and would fit safely in a concrete pit.");

		a1.addEvidence(js2, js3, js4);
		a1.addConclusion(js1);

		Root root = new Root(a1);

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


输出结果:



    
        
        ① An outstanding advantage of nuclear over fossil fuel energy is how easy it is to deal with the waste it produces. ② Burning fossil fuels produces 27,000 million tons of carbon dioxide yearly, enough to make, if solidified, a mountain nearly one mile high with a base twelve miles in circumference. ③ The same quantity of energy produced from nuclear fission reactions would generate two million times less waste, and it would occupy a sixteen-meter cube. ④ All of the high-level waste produced in a year from a nuclear power station would occupy a space about a cubic meter in size and would fit safely in a concrete pit.
        
        
        
    
    
        An outstanding advantage of nuclear over fossil fuel energy is how easy it is to deal with the waste it produces.
    
    
        Burning fossil fuels produces 27,000 million tons of carbon dioxide yearly, enough to make, if solidified, a mountain nearly one mile high with a base twelve miles in circumference.
    
    
        The same quantity of energy produced from nuclear fission reactions would generate two million times less waste, and it would occupy a sixteen-meter cube.
    
    
        All of the high-level waste produced in a year from a nuclear power station would occupy a space about a cubic meter in size and would fit safely in a concrete pit.
    
    
        
            
            
            
        
        
    
    
        
        
    
    
        
            
            
        
    
    
        
            
            
        
    
    
        
            
            
        
    
    
        
            
        
    
    
        
            
            
            
            
        
    
    
        
            
        
        
    
    
        
        
    
    
        
            
            
        
    
    
        
            
        
    
    
        
            
            
        
    
    
        
            
        
    
    
        
            
        
    

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

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

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

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