public static final String outdir = "./target/test-gen";
@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);
// deprecated
// JProperty jprop1 = new JProperty("age", new
// JAttribute(Integer.class),
// URIUtils.createURI("schema://age"), 1, 1);