org.nlp2rdf.ontology.impl
Class SimpleLoader

java.lang.Object
  extended by org.nlp2rdf.ontology.impl.SimpleLoader
All Implemented Interfaces:
OntologyLoader
Direct Known Subclasses:
OntologyCache

public class SimpleLoader
extends Object
implements OntologyLoader

Author:
Sebastian Hellmann - http://bis.informatik.uni-leipzig.de/SebastianHellmann

Constructor Summary
SimpleLoader()
           
 
Method Summary
 void loadImports(com.hp.hpl.jena.ontology.OntModel m)
          Recursively loads any imported models.
 com.hp.hpl.jena.ontology.OntModel loadOntology(String ontologyUri)
           
 com.hp.hpl.jena.ontology.OntModel loadOntology(String ontologyUri, com.hp.hpl.jena.ontology.OntModelSpec spec)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLoader

public SimpleLoader()
Method Detail

loadOntology

public com.hp.hpl.jena.ontology.OntModel loadOntology(String ontologyUri)
Specified by:
loadOntology in interface OntologyLoader

loadOntology

public com.hp.hpl.jena.ontology.OntModel loadOntology(String ontologyUri,
                                                      com.hp.hpl.jena.ontology.OntModelSpec spec)
Specified by:
loadOntology in interface OntologyLoader

loadImports

public void loadImports(com.hp.hpl.jena.ontology.OntModel m)
Description copied from interface: OntologyLoader
Recursively loads any imported models. They will be included as Jena submodels

Specified by:
loadImports in interface OntologyLoader


Copyright © 2011. All Rights Reserved.