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 Collection<OntologyResource> |
initialize(String url,
com.hp.hpl.jena.ontology.OntModel model) |
static com.hp.hpl.jena.ontology.OntModel |
loadMemoryModel(InputStream is,
String url,
com.hp.hpl.jena.ontology.OntModelSpec spec)
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,
com.hp.hpl.jena.ontology.OntModelSpec spec)
Load an ontology into memory.
|
static com.hp.hpl.jena.ontology.OntModel |
loadMemoryModel(String url,
com.hp.hpl.jena.ontology.OntModelSpec spec,
String cacheName)
Load an ontology into memory.
|
static com.hp.hpl.jena.ontology.OntModel |
loadMemoryModel(String url,
String cacheName)
Load an ontology into memory.
|
public static Collection<OntologyResource> initialize(String url, com.hp.hpl.jena.ontology.OntModel model)
url
- model
- public static com.hp.hpl.jena.ontology.OntModel loadMemoryModel(InputStream is, String url, com.hp.hpl.jena.ontology.OntModelSpec spec)
is
- url,
- used as a keyspec
- public static com.hp.hpl.jena.ontology.OntModel loadMemoryModel(String url)
url
- public static com.hp.hpl.jena.ontology.OntModel loadMemoryModel(String url, String cacheName)
url
- public static com.hp.hpl.jena.ontology.OntModel loadMemoryModel(String url, com.hp.hpl.jena.ontology.OntModelSpec spec)
url
- public static com.hp.hpl.jena.ontology.OntModel loadMemoryModel(String url, com.hp.hpl.jena.ontology.OntModelSpec spec, String cacheName)
url
- spec
- e.g. OWL_MEM_TRANS_INFcacheName
- 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–2022 UBC Michael Smith Laboratories. All rights reserved.