nl.tudelft.tbm.eeni.owl2java.model.jmodel
Class JModel

java.lang.Object
  extended by nl.tudelft.tbm.eeni.owl2java.model.jmodel.JModel
All Implemented Interfaces:
IReporting, IStatistics

public class JModel
extends Object
implements IReporting, IStatistics


Field Summary
static String BASEPREFIX
           
 
Constructor Summary
JModel()
           
 
Method Summary
 void addNamespacePrefix(String ns, String prefix)
           
 void addOntResourceError(ResourceError error)
           
 void addPackage(String pkgName, JPackage pkg)
           
 void addPackage(String uri, String pkgName)
           
 void createJClass(com.hp.hpl.jena.ontology.OntClass ontClass, String basePackage)
           
 void createJClass(String clsName, String clsUri, String pkgName)
           
 void createJProperty(com.hp.hpl.jena.ontology.OntProperty ontProp)
           
 String createNewPrefix()
           
 JClass getAnonymousJClass(JClass.AnonymousClassType type, List<? extends com.hp.hpl.jena.ontology.OntClass> operands)
           
 String getBaseNamespace()
           
static String getBasePrefix()
           
 JClass getBaseThing()
           
static String getBaseThingName()
           
 String getBaseThingUri()
           
 JInheritanceGraph<JClass,org.jgraph.graph.DefaultEdge> getClassGraph()
           
 JClass getJClass(String uri)
           
 String getJModelReport()
           
 JPackage getJPackage(String packageName)
           
 JProperty getJProperty(String uri)
           
 String getNamespace(String prefix)
           
 com.hp.hpl.jena.ontology.OntModel getOntModel()
           
 String getPrefix(String namespace)
           
 JInheritanceGraph<JProperty,org.jgraph.graph.DefaultEdge> getPropertyGraph()
           
 String getStatistics()
           
 Map<String,JProperty> getUri2property()
           
 boolean hasJClass(String uri)
           
 boolean hasJProperty(String uri)
           
 boolean hasNamespace(String uri)
           
 boolean hasPackage(String packageName)
           
 boolean isBaseThing(JClass cls)
           
 List<String> listImportURIs()
           
 List<JClass> listJClasses()
           
 List<JProperty> listJProperties()
           
 List<String> listNamespaces()
           
 List<String> listNamespaceURIs()
           
 List<JPackage> listPackages()
           
 void setBaseThingUri(String baseThingUri)
           
 void setOntModel(com.hp.hpl.jena.ontology.OntModel ontModel)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASEPREFIX

public static String BASEPREFIX
Constructor Detail

JModel

public JModel()
Method Detail

addOntResourceError

public void addOntResourceError(ResourceError error)

addPackage

public void addPackage(String uri,
                       String pkgName)

isBaseThing

public boolean isBaseThing(JClass cls)

addPackage

public void addPackage(String pkgName,
                       JPackage pkg)

getJPackage

public JPackage getJPackage(String packageName)

getAnonymousJClass

public JClass getAnonymousJClass(JClass.AnonymousClassType type,
                                 List<? extends com.hp.hpl.jena.ontology.OntClass> operands)

hasPackage

public boolean hasPackage(String packageName)

getBaseThingName

public static String getBaseThingName()

listNamespaces

public List<String> listNamespaces()

listPackages

public List<JPackage> listPackages()

listNamespaceURIs

public List<String> listNamespaceURIs()

listImportURIs

public List<String> listImportURIs()

getJModelReport

public String getJModelReport()
Specified by:
getJModelReport in interface IReporting

getPrefix

public String getPrefix(String namespace)

getNamespace

public String getNamespace(String prefix)

addNamespacePrefix

public void addNamespacePrefix(String ns,
                               String prefix)

getBaseNamespace

public String getBaseNamespace()

getBasePrefix

public static String getBasePrefix()

hasJClass

public boolean hasJClass(String uri)

getJClass

public JClass getJClass(String uri)

listJClasses

public List<JClass> listJClasses()

listJProperties

public List<JProperty> listJProperties()

createJClass

public void createJClass(String clsName,
                         String clsUri,
                         String pkgName)

createJClass

public void createJClass(com.hp.hpl.jena.ontology.OntClass ontClass,
                         String basePackage)

hasJProperty

public boolean hasJProperty(String uri)

hasNamespace

public boolean hasNamespace(String uri)

getJProperty

public JProperty getJProperty(String uri)

createJProperty

public void createJProperty(com.hp.hpl.jena.ontology.OntProperty ontProp)

createNewPrefix

public String createNewPrefix()

getStatistics

public String getStatistics()
Specified by:
getStatistics in interface IStatistics

setOntModel

public void setOntModel(com.hp.hpl.jena.ontology.OntModel ontModel)

getOntModel

public com.hp.hpl.jena.ontology.OntModel getOntModel()

getBaseThingUri

public String getBaseThingUri()

setBaseThingUri

public void setBaseThingUri(String baseThingUri)

getPropertyGraph

public JInheritanceGraph<JProperty,org.jgraph.graph.DefaultEdge> getPropertyGraph()

getClassGraph

public JInheritanceGraph<JClass,org.jgraph.graph.DefaultEdge> getClassGraph()

getUri2property

public Map<String,JProperty> getUri2property()

getBaseThing

public JClass getBaseThing()


Copyright © 2011. All Rights Reserved.