Package org.ontoware.rdfreactor.generator.java

Examples of org.ontoware.rdfreactor.generator.java.JModel.addPackage()


        JPackage jp = new JPackage(packagename);
       
        // bootstrapping?
       
        JModel jm = Semantics.getbuiltIns_OWL();
        jm.addPackage(jp);
       
        /**
         * local ontology root
         */
        JClass localRoot = new JClass(jp, "Thing1", OWL.Class);
View Full Code Here


  @Test
  public void testWrite() throws Exception {
    JModel jm = new JModel(JClass.RDFS_CLASS);
    JPackage jp = new JPackage("test");
    jm.addPackage(jp);
    JClass jc1 = new JClass(jp, "Person", new URIImpl("urn:ex:Person"));
    jc1.setComment("All persons in the world");
    jc1.setJavaSuperclass(new JClass(new JPackage(""),"org.ontoware.rdfreactor.runtime.ReactorRuntimeEntity",new URIImpl("urn:ex:object")));
    jp.getClasses().add(jc1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.