本文整理匯總了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);
}
示例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);
}
示例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;
}