net.sourceforge.fluxion.spring
Class OntologyFactoryBean

java.lang.Object
  extended by net.sourceforge.fluxion.spring.OntologyFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean

public class OntologyFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean

Factory bean to create an OWLOntology instance from a resource containing OWL XML

Author:
Tom Oinn

Constructor Summary
OntologyFactoryBean()
           
 
Method Summary
 org.semanticweb.owl.model.OWLOntology getObject()
          Opens the resource as a stream and uses it to attempt to load an OWLOntology instance.
 java.lang.Class<org.semanticweb.owl.model.OWLOntology> getObjectType()
          Return Class<OWLOntology>
 boolean isSingleton()
          Factory method is a singleton
 void setOntologyLocation(org.springframework.core.io.Resource res)
          Set the location of an ontology file in OWL XML format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntologyFactoryBean

public OntologyFactoryBean()
Method Detail

setOntologyLocation

public void setOntologyLocation(org.springframework.core.io.Resource res)
Set the location of an ontology file in OWL XML format


getObject

public org.semanticweb.owl.model.OWLOntology getObject()
                                                throws java.lang.Exception
Opens the resource as a stream and uses it to attempt to load an OWLOntology instance. The resource must contain valid OWL XML.

Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

getObjectType

public java.lang.Class<org.semanticweb.owl.model.OWLOntology> getObjectType()
Return Class<OWLOntology>

Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Factory method is a singleton

Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean


Copyright © 2010. All Rights Reserved.