當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。