I just made an OWL schema, something I have not done in a long time.

https://gist.github.com/benson-basis/6ab309f661156a532e78

I fed it to schemagen with Maven. The resulting Java class is trivial.

  <plugin>
                <groupId>org.apache.jena</groupId>
                <artifactId>jena-maven-tools</artifactId>
                <version>0.5</version>
                <configuration>
                    <includes>

<include>src/main/ontologies/res.res20140626.owl</include>
                    </includes>
                    <fileOptions>
                        <source>
                            <input>default</input>
                            <package-name>com.basistech.restordf</package-name>
                            <ontology>true</ontology>
                        </source>
                    </fileOptions>
                </configuration>
                <executions>
                    <execution>
                        <id>schemagen</id>
                        <goals>
                            <goal>translate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Here's the sadly trivial output.

?

Reply via email to