com.att.gs.codip.ograph.imp
Class OWLOntologyFactoryImp

java.lang.Object
  |
  +--com.att.gs.codip.ograph.imp.OWLOntologyFactoryImp
All Implemented Interfaces:
OntologyFactory

public class OWLOntologyFactoryImp
extends java.lang.Object
implements OntologyFactory

OWL Ontology Factory


Constructor Summary
OWLOntologyFactoryImp()
          Creators and Initializers
 
Method Summary
protected  void addOntologyToRDFModel(OGOntology theWorkingOntology, edu.unika.aifb.rdf.api.model.Model theRDFModel)
           
protected  void addRDFPropertyStatement(OGOntologyImp theWorkingOntology, edu.unika.aifb.rdf.api.model.Statement s)
           
protected  void addResourceToRDFModel(OGOntology theWorkingOntology, edu.unika.aifb.rdf.api.model.Model theRDFModel, OGResource theSrcResource)
           
protected  void commonInitialization(java.lang.String theURI)
           
 OGOntology createFromRDF(edu.unika.aifb.rdf.api.model.Model theRDF)
          Builds ontologies from RDF models.
 OGOntology createFromURI(java.lang.String theURI)
          Factory Methods.
 OGOntology createFromURI(java.lang.String theURI, java.io.InputStream inStream)
           
 OGOntology createFromURI(java.lang.String theURI, java.lang.String theXSLTURI)
          Builds ontologies from an ontology identified by the URI, after applying the XSL transformation specified in the XSL URI.
 OGOntology createFromURI(java.lang.String theURI, java.lang.String theXSLTURI, java.io.InputStream transIn)
           
protected  void createResourceByType(OGOntologyImp theWorkingOntology, edu.unika.aifb.rdf.api.model.Statement s, OGResource r)
           
static void RDFParse(java.lang.String fileNameOrURL, java.io.InputStream inStream, edu.unika.aifb.rdf.api.syntax.RDFParser parser, edu.unika.aifb.rdf.api.model.Model model)
          RDF Model Methods.
 void setApplyToImports(boolean pTransform)
          Boolen to determin if transforms are applied to imports.
 edu.unika.aifb.rdf.api.model.Model toRDFModel(OGOntology theWorkingOntology)
          Creates an RDF model from an ontology.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLOntologyFactoryImp

public OWLOntologyFactoryImp()
Creators and Initializers

Method Detail

commonInitialization

protected void commonInitialization(java.lang.String theURI)

setApplyToImports

public void setApplyToImports(boolean pTransform)
Description copied from interface: OntologyFactory
Boolen to determin if transforms are applied to imports.

Specified by:
setApplyToImports in interface OntologyFactory

createFromURI

public OGOntology createFromURI(java.lang.String theURI)
Factory Methods.

Specified by:
createFromURI in interface OntologyFactory
Parameters:
theURI - The URI of the ontology to use.

createFromURI

public OGOntology createFromURI(java.lang.String theURI,
                                java.lang.String theXSLTURI)
Description copied from interface: OntologyFactory
Builds ontologies from an ontology identified by the URI, after applying the XSL transformation specified in the XSL URI.

Specified by:
createFromURI in interface OntologyFactory
Parameters:
theURI - The URI of the ontology to use.
theXSLTURI - The URI of the XSL specification to use.

createFromURI

public OGOntology createFromURI(java.lang.String theURI,
                                java.lang.String theXSLTURI,
                                java.io.InputStream transIn)

createFromURI

public OGOntology createFromURI(java.lang.String theURI,
                                java.io.InputStream inStream)

createFromRDF

public OGOntology createFromRDF(edu.unika.aifb.rdf.api.model.Model theRDF)
Description copied from interface: OntologyFactory
Builds ontologies from RDF models. Adds the triples in an RDF model to this ontology.

Specified by:
createFromRDF in interface OntologyFactory
Parameters:
theRDF - The RDF Model to use.

createResourceByType

protected void createResourceByType(OGOntologyImp theWorkingOntology,
                                    edu.unika.aifb.rdf.api.model.Statement s,
                                    OGResource r)
                             throws java.lang.Exception
java.lang.Exception

addRDFPropertyStatement

protected void addRDFPropertyStatement(OGOntologyImp theWorkingOntology,
                                       edu.unika.aifb.rdf.api.model.Statement s)
                                throws java.lang.Exception
java.lang.Exception

RDFParse

public static void RDFParse(java.lang.String fileNameOrURL,
                            java.io.InputStream inStream,
                            edu.unika.aifb.rdf.api.syntax.RDFParser parser,
                            edu.unika.aifb.rdf.api.model.Model model)
                     throws java.io.IOException,
                            org.xml.sax.SAXException,
                            java.net.MalformedURLException,
                            edu.unika.aifb.rdf.api.model.ModelException
RDF Model Methods.

java.io.IOException
org.xml.sax.SAXException
java.net.MalformedURLException
edu.unika.aifb.rdf.api.model.ModelException

toRDFModel

public edu.unika.aifb.rdf.api.model.Model toRDFModel(OGOntology theWorkingOntology)
                                              throws java.lang.Exception
Description copied from interface: OntologyFactory
Creates an RDF model from an ontology.

Specified by:
toRDFModel in interface OntologyFactory
Returns:
The RDF model.
java.lang.Exception

addOntologyToRDFModel

protected void addOntologyToRDFModel(OGOntology theWorkingOntology,
                                     edu.unika.aifb.rdf.api.model.Model theRDFModel)
                              throws java.lang.Exception
java.lang.Exception

addResourceToRDFModel

protected void addResourceToRDFModel(OGOntology theWorkingOntology,
                                     edu.unika.aifb.rdf.api.model.Model theRDFModel,
                                     OGResource theSrcResource)
                              throws java.lang.Exception
java.lang.Exception


CODIP AT&T Government Solutions, Inc.