simpletype2class.java
来自「normkit is a set of tools supporting ont」· Java 代码 · 共 40 行
JAVA
40 行
package it.itc.ectrl.normkit.cnorm.heuristics;
import oracle.xml.parser.schema.*;
import java.util.Vector;
import it.itc.ectrl.normkit.common.*;
import it.itc.ectrl.normkit.cnorm.impl.C_NormalisationImpl;
/**
* Governs addition of a property domain to property extracted out of Attribute Declaration XML Schema component. The domain information is extracted from the parent of attribute declaration or reference in the XML Schema.
* @author Oliver Fodor (fodor@itc.it)
*/
public class SimpleType2Class extends NormalisationHeuristic {
XSDSimpleType m_simpleTxpe;
int m_hashCode;
public SimpleType2Class(XSDSimpleType simpleType, C_NormalisationImpl c_norm) throws Exception {
super( c_norm );
m_simpleTxpe = simpleType;
m_hashCode = TransformationUtil.getHashCode(m_simpleTxpe);
}
public void run() throws Exception {
runConceptExtraction();
}
public void runConceptExtraction() throws Exception {
Vector createdURIs = new Vector();
createdURIs.add(CNOVocabulary.URI_RDFS_LITERAL);
m_c_norm.addEntryToCNormTable(m_hashCode, createdURIs);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?