没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > modtool |
modtool
|
0 | 0 | 5 |
贡献者 | 讨论 | 代码提交 |
ModTool allows ontology modules to be extracted from an ontology based on a user supplied concept.
ModTool was created by the University of Liverpool's Semantic Web Lab. More information on ModTool can be found here
RequirementsYou will need the following on the classpath to use ModTool:
Jena Pellet
Example public static void main(String args[]) {
//The concept you want to extract a module about.
String concept = "Concept URI"
parentModel = ModelFactory
.createOntologyModel(PelletReasonerFactory.THE_SPEC);
//The ontology the module will be extracted from
parentModel.read("Ontology URI");
//The OntologyModel that will contain the module.
moduleModel = ModelFactory
.createOntologyModel(PelletReasonerFactory.THE_SPEC);
moduleModel.createOntology(concept);
//Instantiate the class that does the extraction.
StmtBasedExtraction sbe = new StmtBasedExtraction(parentModel,
moduleModel, Exclusion.OWL_DL_EXCLUSION);
//Start the extraction.
sbe.start(parentModel.getResource(concept));
}