org.nlp2rdf.ontology.impl
Class OntologyCache
java.lang.Object
org.nlp2rdf.ontology.impl.SimpleLoader
org.nlp2rdf.ontology.impl.OntologyCache
- All Implemented Interfaces:
- OntologyLoader
public class OntologyCache
- extends SimpleLoader
- implements OntologyLoader
Loads and caches Ontologies in cacheDir
Use loadImports to recursively load any models. They will be included as Jena submodels
- Author:
- Sebastian Hellmann
OntologyCache
public OntologyCache(String cacheDir)
loadOntology
public com.hp.hpl.jena.ontology.OntModel loadOntology(String ontologyUri)
- Specified by:
loadOntology in interface OntologyLoader- Overrides:
loadOntology in class SimpleLoader
clearCache
public void clearCache()
download
public void download(String from,
String to)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
isOntologyCached
public boolean isOntologyCached(String ontologyUri)
Copyright © 2011. All Rights Reserved.