Rdf-vocabulary.
Java library of rdfunl schema
It includes rdf schema and the schemagen jena tool to generate java file associated to the rdf schema.
Requirements.
- Maven 3+
How to update unl java class from the schema.
- Install maven 3 or higher (see wiki of your OS)
- Clone the repository :
git clone https://gitlab.tetras-libre.fr/unl/rdf-vocabulary.git
- Modify the file "rdf-vocabulary/src/main/vocabs/unlVocabulary.ttl"
- Run command
mvn package
to compile and create package - Run command
mvn install
to install to your local maven repository the package.
Use the generated jar with maven based project
Insert in the pom.xml
the following lines
<dependencies>
...
<dependency>
<groupId>fr.tetras_libre.rdf.vocabulary</groupId>
<artifactId>rdf-vocabulary</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
...
</dependencies>