org.nlp2rdf.ontology.impl
Class OntologyCache

java.lang.Object
  extended by org.nlp2rdf.ontology.impl.SimpleLoader
      extended by 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

Constructor Summary
OntologyCache(String cacheDir)
           
 
Method Summary
 void clearCache()
           
 void download(String from, String to)
           
 boolean isOntologyCached(String ontologyUri)
           
 com.hp.hpl.jena.ontology.OntModel loadOntology(String ontologyUri)
           
static void main(String[] args)
           
 
Methods inherited from class org.nlp2rdf.ontology.impl.SimpleLoader
loadImports, loadOntology
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nlp2rdf.ontology.OntologyLoader
loadImports, loadOntology
 

Constructor Detail

OntologyCache

public OntologyCache(String cacheDir)
Method Detail

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.