public class OntologyLoader extends Object
Constructor and Description |
---|
OntologyLoader() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deleteOldCache(String cacheName) |
static File |
getDiskCachePath(String name) |
static boolean |
hasChanged(String cacheName) |
static com.hp.hpl.jena.ontology.OntModel |
loadMemoryModel(InputStream is,
String url)
Load an ontology into memory.
|
static com.hp.hpl.jena.ontology.OntModel |
loadMemoryModel(String url)
Load an ontology into memory.
|
static com.hp.hpl.jena.ontology.OntModel |
loadMemoryModel(String url,
String cacheName)
Load an ontology into memory.
|
public static com.hp.hpl.jena.ontology.OntModel loadMemoryModel(InputStream is, String url)
public static com.hp.hpl.jena.ontology.OntModel loadMemoryModel(String url)
loadMemoryModel(String, String)
public static com.hp.hpl.jena.ontology.OntModel loadMemoryModel(String url, String cacheName)
Uses OntModelSpec.OWL_MEM_TRANS_INF
.
url
- a URL where the OWL file is storedcacheName
- unique name of this ontology, will be used to load from disk in case of failed url connectionpublic static boolean hasChanged(String cacheName)
public static boolean deleteOldCache(String cacheName)
Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.