Skip to content
Snippets Groups Projects
Commit 63636ea4 authored by Sebastien's avatar Sebastien
Browse files

creation of script to autogenerate UNL class from unlVocabulary.ttl and...

creation of script to autogenerate UNL class from unlVocabulary.ttl and creation of jar using mvn compile
parent ebe58479
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_13" default="false" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/rdf-vocabulary.iml" filepath="$PROJECT_DIR$/.idea/rdf-vocabulary.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/rdf-vocabulary/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/rdf-vocabulary/src/test/java" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/rdf-vocabulary/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
pom.xml 0 → 100644
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.tetras_libre.rdf.vocabulary</groupId>
<artifactId>rdf-vocabulary-main</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<packaging>pom</packaging>
<name>rdf-vocabulary</name>
<url>http://maven.apache.org</url>
<modules>
<module>rdf-vocabulary</module>
</modules>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.tetras_libre.rdf.vocabulary</groupId>
<artifactId>rdf-vocabulary-main</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>rdf-vocabulary</artifactId>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<name>rdf-vocabulary-classes</name>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<target>
<exec
dir="${project.basedir}"
executable="${project.basedir}/../apache-jena-3.14.0/bin/schemagen"
failonerror="true"
>
<arg line="-i ${project.basedir}/src/main/vocabs/unlVocabulary.ttl -o ${project.basedir}/src/main/java --package fr.tetras_libre.rdf.vocabulary --ontology" />
</exec>
</target>
<!--checking if for windows and non windows OS-->
<target depends="ifOSWindows, ifOSNotWindows" name="checkOS"/>
<condition property="isOSUnix">
<os family="unix" />
</condition>
<condition property="isOSWindows">
<os family="windows" />
</condition>
<!-- if the OS is windows call the target run.script.windows -->
<target name="ifOSWindows" if="isOSWindows">
<echo>is windows........</echo>
<antcall target="runscript.windows"/>
</target>
<!-- if the OS is not windows call the target run.script.unix-->
<target name="ifOSNotWindows" if="isOSUnix">
<echo>is unix........</echo>
<antcall target="runscript.unix"/>
</target>
<target name="runscript.windows">
<echo>This is a Windows machine.</echo>
<exec
dir="${project.basedir}"
executable="${project.basedir}/../apache-jena-3.14.0/bat/schemagen.bat"
failonerror="true"
>
<arg line="-i ${project.basedir}/src/main/vocabs/unlVocabulary.ttl -o ${project.basedir}/src/main/java --package fr.tetras_libre.rdf.vocabulary --ontology -n UNL" />
</exec>
</target>
<target name="runscript.unix">
<echo>This is an Unix machine.</echo>
<exec
dir="${project.basedir}"
executable="${project.basedir}/../apache-jena-3.14.0/bin/schemagen"
failonerror="true"
>
<arg line="-i ${project.basedir}/src/main/vocabs/unlVocabulary.ttl -o ${project.basedir}/src/main/java --package fr.tetras_libre.rdf.vocabulary --ontology -n UNL -e N3" />
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
<executions>
<execution>
<id>generateSources</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>apache-jena-libs</artifactId>
<type>pom</type>
<version>3.14.0</version>
</dependency>
</dependencies>
</project>
This diff is collapsed.
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment