/rdf4j-generator-maven-plugin

Maven plugin to generate RDF4J style vocabulary classes

Primary LanguageJavaApache License 2.0Apache-2.0

rdf4j-generator-maven-plugin

Build Status Maven Central

Maven plugin to generate RDF4J style vocabulary classes.

usage

<build>
    ...
    <plugins>
        ...
        <plugin>
            <groupId>com.github.kburger</groupId>
            <artifactId>rdf4j-generator-maven-plugin</artifactId>
            <version>0.2.0</version>
            <executions>
                <execution>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <package>com.example.vocab</package>
                        <vocabularies>
                            <vocabulary>
                                <url>http://purl.org/dc/terms/</url>
                            </vocabulary>
                        </vocabularies>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

See the examples for more usage examples.

changelog

0.2.0

  • added addGeneratedAnnotation parameter to mark the generated classes as 'generated'
  • added cacheFiles parameter to cache remote files locally
  • added includeDeprecated parameter to in/exclude deprecated RDF types/properties.

0.1.0

  • initial release