RDFReactor/Maven2 Plugin
From semanticweb.org
back to RDFReactor.
| RDFReactor Maven2 Plugin | |
|---|---|
| Status: | beta |
| Last release: | 0.0.3 (2009-01-16) |
| License: | BSD licenses |
| Affiliation: | Steffen Ryll |
| Web resources | |
This Maven2 plugin allows you to put a RDF Schema into your project and have RDFReactor generate the corresponding Java code from it, whenever the schema changes.
With the following POM snippets, you can include the plugin into a project:
<pluginRepositories>
<pluginRepository>
<id>sryll-plugins</id>
<name>Steffen's own small Maven repository</name>
<url>http://myhpi.de/~sryll/maven-repo/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<plugin>
<groupId>org.semweb4j</groupId>
<artifactId>maven-rdfreactor-plugin</artifactId>
<configuration>
<schemaFile>src/schema/bpmnq-schema.rdf</schemaFile>
<packageName>com.bpmnq.rdf</packageName>
<methodPrefix>Bpmnq</methodPrefix>
</configuration>
<executions>
<execution>
<goals>
<goal>rdfs-classes</goal>
</goals>
</execution>
</executions>
</plugin>
In addition to the shown configuration options schemaFile, packageName (default: POM groupId), methodPrefix (default: empty string), you can specify
skipBuiltins (default: true) and
outputDirectory (default: ${project.build.directory}/generated-sources/rdfs-classes)
The meaning of these options is the same as in RDFReactor.
TODO: Code will be moved to Semweb4j repository - as soon as any other person has used it (sorry, have no time to try myself)
