236311a3becbbf2b9fc13499773b915003b03871
TP1 PDS - Traducteur RDF/Turtle vers RDF/Ntriples
Réalisé par Thibaut ROCHAS et Tuan Minh VU
Implémentation du ASD
turtle ::= Turtle(phrase*)
phrase ::= Phrase(entity, aff*)
phrase.ent = entity.val
phrase.aff = union(phrase.aff,aff.comp)
aff ::= Aff(ntity, complement*)
aff.ent = enity.val
aff.comp = union(aff.comp,complement.ent)
complement ::= Complement(entity)
complement.ent = entity.val
| Complement_Text(String)
complement.ent = String.self
entity ::= Entity(String)
entity.val=String.self
TAD Nom Type Polarité Descp turtel val list(phrase) H phrase ent String H aff list(String,list(String)) H aff ent String H comp list(String) H complement ent String H txt String S entity val String S
Ntriples ::= Ntriples(phrase*)
phrase ::= Phrases(entity1,entity2,complement)
phrase.s = entity1.val
phrase.v = entity2.val
phrase.c = complent.ent
complement ::= Complement(entity)
complement.ent = entity.val
| Complement_Text(String)
complement.ent = String.self
entity ::= Entity(String)
entity.val=String.self
TAD Nom Type Polarité Descp Ntriples val list(phrase) H phrase s String H v String H c String H complement ent String H/S entity val String S
Compatibilité
- Java JDK 21
- ANTLR3 3.5.2
- Gradle 8.5
Construction, exécution
Pour construire le projet, depuis la racine du projet :
./gradlew build
Pour exécuter le programme Java TP1.Main, depuis la racine du projet :
java -jar /build/libs/TP1.jar [args]
Structure du projet
Fichiers de code source et de tests
src/main/java/: fichiers sources Java à complétersrc/main/antlr/: fichier sources ANTLR à complétertests/: fichiers textes à utiliser pour les tests
Moteur de production Gradle
settings.gradle,build.gradle: configuration Gradlegradle/wrapper: exécutable de Wrapper Gradlegradlew,gradlew.bat: scripts (unix/windows) à exécuter depuis le terminal pour lancer le moteur de production
Environnement VSCode
.vscode: configuration de VSCodeeclipse-formatter.xml: formatage de code source Java, optionnel
Git
.gitignore: configuration pour ignorer certains fichiers et répertoires
Description
Languages
Java
78.6%
GAP
21.4%