⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 conceptassertion.java

📁 Semantic Web Ontology Editor
💻 JAVA
字号:
package org.mindswap.swoop.racer;

/** This class provides an easy representation for concept assertions. */
 
public class ConceptAssertion extends Assertion {

	/** The individual. */

	private String individual;
	

	/** The concept. */

	private String concept;


/** The constructor builds a concept assertion from an individual name and a concept term. */

public ConceptAssertion(String x,String c) {
	super();
	individual=x;
	concept=c;
}
/** This method returns the concept corresponding to the assertion. */

public String getConcept() { return concept; }
/** This method returns the individual corresponding to the assertion. */

public String getIndividual() { return individual; }
/** This method returns a string representation of the assertion. */

public String toString() {
	return "(instance "+individual+" "+concept+")";
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -