diff --git a/README.md b/README.md index 630709988b1440208a8f4549c9619719c101972d..4960aa3877ef6884c05a420f88b603e00eaec355 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,27 @@ -# rdfunl +# rdf-Vocabulary -java library of rdfunl schema +Java library of rdfunl schema includes rdf schema and schemagen the jena tools to generate java file associated to the rdf schema. -Execute schemagen to produce/update RdfUnlSchema.java file +1. Install maven 3 or higher +2. Clone the repository +3. Go to project directory +4. Modify the file "rdf-vocabulary/src/main/vocabs/unlVocabulary.ttl" +5. Run command ```mvn package``` to compile and create package -```{sh} -./apache-jena-3.14.0/bin/schemagen -i rdfunl-schema.ttl -o RdfUnlSchema.java -```` +At the end of 5th steps the command should be equivalent to the following : +```shell script +[INFO] Building jar: <fullDirectoryPathToProjects>/rdf-vocabulary/rdf-vocabulary/target/rdf-vocabulary-1.0-SNAPSHOT.jar +[INFO] ------------------------------------------------------------------------ +[INFO] Reactor Summary for rdf-vocabulary 1.0-SNAPSHOT: +[INFO] +[INFO] rdf-vocabulary ..................................... SUCCESS [ 0.008 s] +[INFO] rdf-vocabulary-classes ............................. SUCCESS [ 6.617 s] +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD SUCCESS +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 6.837 s +[INFO] Finished at: 2020-05-24T17:44:25+02:00 +[INFO] ------------------------------------------------------------------------ +``` \ No newline at end of file