本文整理汇总了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;
}