当前位置: 首页>>代码示例>>Java>>正文


Java OntModelSpec.OWL_MEM_RDFS_INF属性代码示例

本文整理汇总了Java中com.hp.hpl.jena.ontology.OntModelSpec.OWL_MEM_RDFS_INF属性的典型用法代码示例。如果您正苦于以下问题:Java OntModelSpec.OWL_MEM_RDFS_INF属性的具体用法?Java OntModelSpec.OWL_MEM_RDFS_INF怎么用?Java OntModelSpec.OWL_MEM_RDFS_INF使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.hp.hpl.jena.ontology.OntModelSpec的用法示例。


在下文中一共展示了OntModelSpec.OWL_MEM_RDFS_INF属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: updatePartitions

public void updatePartitions() {
	//Use OntModelSpec.OWL_MEM_RDFS_INF to ensure all default classes and properties are also discovered.
	OntModelSpec partitionModelSpec = new OntModelSpec(OntModelSpec.OWL_MEM_RDFS_INF);
	partitionModelSpec.setDocumentManager(voidInstance.getVoidModel().getDocumentManager());
	partitionModelSpec.getDocumentManager().setProcessImports(true);

	OntModel partitionModel = ModelFactory
			.createOntologyModel(partitionModelSpec);

	for (OntResource vocabulary : this.getVocabularies()) {
		try {
			partitionModel.read(vocabulary.getURI());
		} catch (Exception e) {
			Log.debug(Void.class, "Failed to locate dataset vocabulary: "
					+ vocabulary + "  " + e.getMessage());
		}
	}
	updateClassPartition(partitionModel);
	updatePropertyPartition(partitionModel);
}
 
开发者ID:peterjohnlawrence,项目名称:com.inova8.remediator,代码行数:20,代码来源:Dataset.java

示例2: setUp

/**
	 */
	@BeforeClass
	public void setUp()  {
		
//		Config.read(TestConceptMatcher.class.getResourceAsStream("ExpertFinder.properties"));
		
		ontologyAccessor = new JenaOntologyAccessor(
				"http://www.ag-csw.de/ontologies/test#", 
				TestConceptMatcher.class.getResource("test2.owl").toExternalForm(), 
				"http://www.ag-csw.de/ontologies/test#",
				"http://www.ag-csw.de/ontologies/test#Test", 
				OntModelSpec.OWL_MEM_RDFS_INF);
	}
 
开发者ID:ag-csw,项目名称:ExpertFinder,代码行数:14,代码来源:TestConceptMatcher.java

示例3: getModelSpec

protected OntModelSpec getModelSpec(String modelSpecID) {
	if (modelSpecID.equals(OWL_DL_MEM)) {
		return OntModelSpec.OWL_DL_MEM;
	}
	else if (modelSpecID.equals(OWL_DL_MEM_RDFS)) {
		return OntModelSpec.OWL_DL_MEM_RDFS_INF;
	}
	else if (modelSpecID.equals(OWL_DL_MEM_RULE)) {
		return OntModelSpec.OWL_DL_MEM_RULE_INF;
	}
	else if (modelSpecID.equals(OWL_DL_MEM_TRANS)) {
		return OntModelSpec.OWL_DL_MEM_TRANS_INF;
	}
	else if (modelSpecID.equals(OWL_LITE_MEM)) {
		return OntModelSpec.OWL_LITE_MEM;
	}
	else if (modelSpecID.equals(OWL_LITE_MEM_RDFS)) {
		return OntModelSpec.OWL_LITE_MEM_RDFS_INF;
	}
	else if (modelSpecID.equals(OWL_LITE_MEM_RULE)) {
		return OntModelSpec.OWL_LITE_MEM_RULES_INF;
	}
	else if (modelSpecID.equals(OWL_LITE_MEM_TRANS)) {
		return OntModelSpec.OWL_LITE_MEM_TRANS_INF;
	}
	else if (modelSpecID.equals(OWL_MEM)) {
		return OntModelSpec.OWL_MEM;
	}
	else if (modelSpecID.equals(OWL_MEM_MICRO_RULE)) {
		return OntModelSpec.OWL_MEM_MICRO_RULE_INF;
	}
	else if (modelSpecID.equals(OWL_MEM_MINI_RULE)) {
		return OntModelSpec.OWL_MEM_MINI_RULE_INF;
	}
	else if (modelSpecID.equals(OWL_MEM_RDFS)) {
		return OntModelSpec.OWL_MEM_RDFS_INF;
	}
	else if (modelSpecID.equals(OWL_MEM_RULE)) {
		return OntModelSpec.OWL_MEM_RULE_INF;
	}
	else if (modelSpecID.equals(OWL_MEM_TRANS)) {
		return OntModelSpec.OWL_MEM_TRANS_INF;
	}
	else if (modelSpecID.equals(RDFS_MEM)) {
		return OntModelSpec.RDFS_MEM;
	}
	else if (modelSpecID.equals(RDFS_MEM_RDFS)) {
		return OntModelSpec.RDFS_MEM_RDFS_INF;
	}
	else if (modelSpecID.equals(RDFS_MEM_TRANS)) {
		return OntModelSpec.RDFS_MEM_TRANS_INF;
	}
	return OntModelSpec.OWL_MEM;
}
 
开发者ID:crapo,项目名称:sadlos2,代码行数:54,代码来源:JenaReasonerPlugin.java


注:本文中的com.hp.hpl.jena.ontology.OntModelSpec.OWL_MEM_RDFS_INF属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。