| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package it.cnr.istc.pst.cognition.koala.reasoner.owl.jena; |
||
| 13 | public class OWLKoalaModel extends OWLModel |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * |
||
| 17 | * @param ontologyFile |
||
| 18 | * @param inferenceRuleFile |
||
| 19 | */ |
||
| 20 | public OWLKoalaModel(String ontologyFile, String inferenceRuleFile) { |
||
| 21 | // call super constructor |
||
| 22 | super(ontologyFile, inferenceRuleFile, OWLKoalaNameSpace.KOALA.getNs()); |
||
| 23 | } |
||
| 24 | |||
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * |
||
| 29 | * @param model |
||
| 30 | */ |
||
| 31 | public void setup(Model model) { |
||
| 32 | // setup the encapsulated semantic model |
||
| 33 | super.setup(model, OWLKoalaNameSpace.KOALA.getNs()); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * |
||
| 38 | * @return |
||
| 39 | */ |
||
| 40 | public Model getModel() { |
||
| 41 | // get the encapsulated semantic model |
||
| 42 | return super.getModel(OWLKoalaNameSpace.KOALA.getNs()); |
||
| 43 | } |
||
| 44 | |||
| 45 | |||
| 46 | |||
| 47 | /** |
||
| 48 | * |
||
| 49 | * @param id |
||
| 50 | * @return |
||
| 51 | * @throws Exception |
||
| 52 | */ |
||
| 53 | public Resource getResourceById(Long id) |
||
| 54 | throws Exception { |
||
| 55 | return super.getResourceById(id, OWLKoalaNameSpace.KOALA.getNs()); |
||
| 56 | } |
||
| 58 |