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

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

"lim4j-samples": Example 05

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

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


sample代码如下:

	public static void main(String[] args) throws Exception {
		Definition df1 = new Definition("Bird is a kind of warm-blooded vertebrate with feathers.");
		
		Concept c1 = new Concept("bird");
		Concept c2 = new Concept("is (be)");
		Concept c3 = new Concept("a kind of warm-blooded vertebrate with feathers");
		
		df1.setDefiniendum(c1);
		df1.setConnectiveOfDefinition(c2);
		df1.setDefiniens(c3);

		Root root = new Root(df1);

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

 
输出结果:



    
        
            
            
            
        
        Bird is a kind of warm-blooded vertebrate with feathers.
    
    
        bird
    
    
        is (be)
    
    
        a kind of warm-blooded vertebrate with feathers
    

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

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

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

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