Java Doc for JModel.java in  » Search-Engine » semweb4j » org » ontoware » rdfreactor » generator » java » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Search Engine » semweb4j » org.ontoware.rdfreactor.generator.java 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ontoware.rdfreactor.generator.java.JModel

JModel
public class JModel (Code)
A JModel is the result of the translation of a given RDFS/OWL ontology, and is used as an internal representation of the ontology. This model of the ontology can then be used to generate the source code through a Apache Velocity template. Every JModel consists of one or more JPackage instances, a root JClass and a Mapping of Java Objects to JClass Objects representing them in the JModel. A JModel, which is represented through the classes JModel, JPackage, JClass and JProperty is much more expressive then the object oriented Model internaly used by Java. A JModel allows class cycles, multiple inheritance, properties without a type. Inverse Properties can be explicitly stated for a property. This expressiveness is the result of the need to transform the RDF Model into the the Object Oriented Model of Java. Therefore a JModel must be able to express both the Java and the RDF Model. The Transformation from an ontology into a JModel is initiated in CodeGenerator.generate(...), the Apache Velocity template engine is invoked in SourceCodeWriter.write(...) In the future EMF/Ecore of the Eclipse Project might be used instead of JModel, because Ecore is an UML dialect and has a far superior tool support over JModel.
author:
   $Author: xamde $
version:
   $Id: JModel.java,v 1.9 2006/09/11 10:07:57 xamde Exp $
version:
   TODO enable anonymous objects as class and property identifiers for OWL support


Field Summary
public  Map<Resource, JClass>classMap
    
public  Set<URI>knownProperties
    

Constructor Summary
public  JModel(JClass root)
    

Method Summary
public  voidaddInverseProperties()
    
public  voidaddMapping(Resource id, JClass jc)
    
public  voidaddPackage(JPackage jp)
    
public  voidflattenInheritanceHierarchy(JPackage jp)
     remove self-references and circles.
public  JClassgetMapping(Resource resource)
    
public  List<JPackage>getPackages()
    
public  JClassgetRoot()
    
public  booleanhasMapping(Object id)
    
public  booleanisConsistent()
     apply consistency checks to this JModel and all instances of JPackage, JClass and JProperty in it.
public  voidsetRoot(JClass root)
    
public  StringtoReport()
    
public  StringtoString()
    

Field Detail
classMap
public Map<Resource, JClass> classMap(Code)
a Map of Java Objects to the JClass representing them in the JModel TODO: make private



knownProperties
public Set<URI> knownProperties(Code)




Constructor Detail
JModel
public JModel(JClass root)(Code)
the only constructor:
Parameters:
  root - is the root JClass of the new JModel
Parameters:
  writetostore - -if genertaed classes should write to the rdf model




Method Detail
addInverseProperties
public void addInverseProperties()(Code)
generates artificial inverse properties, named propertyName + "_Inverse" TODO read inverse props from OWL, this generates ALL inverse



addMapping
public void addMapping(Resource id, JClass jc)(Code)
Add a mapping to the JModel
Parameters:
  id - is a Java Object
Parameters:
  jc - is the JClass in this JModel to which the Java Object shouldbe mapped



addPackage
public void addPackage(JPackage jp)(Code)



flattenInheritanceHierarchy
public void flattenInheritanceHierarchy(JPackage jp)(Code)
remove self-references and circles. Reducing to a maximally nested inheritance tree. circles always are of length two, due to RDFS and OWL sematics



getMapping
public JClass getMapping(Resource resource)(Code)

Parameters:
  resource - is a Java Object the JClass to which the Java Object is mapped in this JModel



getPackages
public List<JPackage> getPackages()(Code)



getRoot
public JClass getRoot()(Code)
the root JClass of the JModel



hasMapping
public boolean hasMapping(Object id)(Code)

Parameters:
  id - is a Java Object true if the given Java Object has a mapping to a JClass in thisJModel



isConsistent
public boolean isConsistent()(Code)
apply consistency checks to this JModel and all instances of JPackage, JClass and JProperty in it. true if the JModel and all its parts are consistent



setRoot
public void setRoot(JClass root)(Code)
Set the root of this JModel
Parameters:
  root - is the new root JClass



toReport
public String toReport()(Code)
generate a verbose report of this JModel and its parts



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.