Lines Matching refs:kb
174 public OWLOntology read(OWLKnowledgeBase kb, URI uri) throws FileNotFoundException {
176 return readInternal(kb, in, uri, uri);
179 public OWLOntology read(OWLKnowledgeBase kb, Reader in, URI baseURI) {
180 return readInternal(kb, new InputSource(in), null, baseURI);
183 public OWLOntology read(OWLKnowledgeBase kb, InputStream in, URI baseURI) {
184 return readInternal(kb, new InputSource(in), null, baseURI);
187 private OWLOntology readInternal(OWLKnowledgeBase kb, InputSource in, URI physicalURI, URI baseURI) {
188 OWLOntology ont = readFile((OWLKnowledgeBaseImpl) kb, in, physicalURI, baseURI);
189 return kb.load(ont);
192 private OWLOntology readImport(OWLKnowledgeBaseImpl kb, URI importURI) throws FileNotFoundException {
195 OWLOntology ont = kb.getOntology(fileURI);
202 return readFile(kb, createInputSource(importURI, true), importURI, importURI);
205 private OWLOntology readFile(OWLKnowledgeBaseImpl kb, InputSource in, URI physicalURI, URI baseURI) {
210 OWLOntology ont = kb.getOntology(fileURI);
231 ont = kb.createOntologyWithoutLoading(fileURI, fileURI, jenaModel);
246 OWLOntology importOnt = readImport(kb, importURI);