Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
430 commits
Select commit Hold shift + click to select a range
4e1fc0b
ajouter une classe constants
abdessamad-abdoun Jun 12, 2025
3d7c2fd
correction java Doc et ajouter n triples format
abdessamad-abdoun Jun 12, 2025
6c2a1a9
Correction de la JavaDoc et ajout des tests unitaires pour NTriplesFo…
abdessamad-abdoun Jun 12, 2025
23b1395
correction les erreur de sonar sur TUs
abdessamad-abdoun Jun 12, 2025
f5bbfcf
correction les erreur de sonar
abdessamad-abdoun Jun 12, 2025
015d246
Remove AbstractBNode class as part of code cleanup
remiceres Jun 12, 2025
cdcee5c
Add FileFormat and RdfFormat classes for RDF serialization support
remiceres Jun 12, 2025
42d2b3e
Merge branch 'feature/152_NTriples_NQuads_Serializer' of github.com:c…
remiceres Jun 12, 2025
c0cb9c0
Json parser redone ffrom scratch using Jsonld-java
MaillPierre Jun 12, 2025
0e61739
Create NTriples/NQuads Serializer
abdessamad-abdoun Jun 12, 2025
4a8fcb4
ajouter test unitaire sur Serializer
abdessamad-abdoun Jun 13, 2025
dd48b2e
Add unit tests for FileFormat class
remiceres Jun 13, 2025
d273449
ajouter test unitaire sur Serializer et fusionner rdfFormet
abdessamad-abdoun Jun 13, 2025
896cd43
ajouter test unitaire sur rdfFormet
abdessamad-abdoun Jun 13, 2025
72bf0b7
Unit tests
MaillPierre Jun 13, 2025
a33d70b
fix literal typing during parsing
MaillPierre Jun 16, 2025
4a404ab
Refactor FormatSerializer and FileFormat documentation; update Serial…
remiceres Jun 19, 2025
a55d790
Merge pull request #163 from corese-stack/feature/152_NTriples_NQuads…
remiceres Jun 19, 2025
4012ee7
TurtleParser and turtle g4
prbblrypier Jun 20, 2025
95caa2f
Remove module-info.java and clean Gradle config (remove extra-java-mo…
remiceres Jun 20, 2025
fb2b2ec
Merge remote-tracking branch 'origin/feature/corese-next' into featur…
MaillPierre Jun 20, 2025
f286b90
basic JSONLD implementation with titanium
MaillPierre Jun 23, 2025
9c06cfc
better package organization
MaillPierre Jun 24, 2025
ad06072
Basic jsonld serializer
MaillPierre Jun 25, 2025
6a97a73
better config
MaillPierre Jun 25, 2025
00eb748
TurtleParser and turtle g4
prbblrypier Jun 25, 2025
c9b2f73
- changes in the package structure
prbblrypier Jun 27, 2025
58cc1aa
Format log4j2 configuration files for consistency and readability
remiceres Jun 30, 2025
7fbc674
Update dependencies and refactor code for consistency
remiceres Jun 30, 2025
df57629
Merge remote-tracking branch 'origin/feature/87_parsers' into feature…
MaillPierre Jun 30, 2025
737fe5c
Unifying PR and A implementations
MaillPierre Jun 30, 2025
59ca47e
Merge develop into feature/corese-next and resolve conflicts
remiceres Jun 30, 2025
af11856
UT test with graph probem to solve before push
MaillPierre Jun 30, 2025
a24d3da
RDF formats
MaillPierre Jun 4, 2025
46eccb8
Barebone RDFParser Factory
MaillPierre Jun 5, 2025
2b19ee8
barebone parser interface
MaillPierre Jun 5, 2025
b7f8e7f
TurtleParser and turtle g4
prbblrypier Jun 20, 2025
1070c1b
TurtleParser and turtle g4
prbblrypier Jun 25, 2025
274b1d9
- changes in the package structure
prbblrypier Jun 27, 2025
21ad8ff
Fixing Object handling in json parsing
MaillPierre Jul 3, 2025
700ccb5
Merge pull request #166 from corese-stack/feature/87_parsers
MaillPierre Jul 3, 2025
5614afa
Merge remote-tracking branch 'origin/feature/corese-next' into featur…
MaillPierre Jul 3, 2025
fc6e4c1
Merge develop into feature/corese-next
remiceres Jul 3, 2025
de37817
Merge remote-tracking branch 'origin/feature/corese-next' into featur…
MaillPierre Jul 4, 2025
cf087aa
Merge branch 'develop' into feature/corese-next
remiceres Jul 4, 2025
294ed6a
Merge branch 'develop' into feature/corese-next
remiceres Jul 4, 2025
57d2dcb
Spring prunning of the package tree and UTs
MaillPierre Jul 4, 2025
0915c25
remove old shex file
MaillPierre Jul 7, 2025
924243a
Paser with UT
MaillPierre Jul 7, 2025
02801d4
ajouter formtConfig sur Turtle / triG /ntriples
abdessamad-abdoun Jun 17, 2025
f726517
Create turtles Serializer
abdessamad-abdoun Jun 18, 2025
796e45b
Create turtles Serializer
abdessamad-abdoun Jun 18, 2025
84919a2
Create turtles Serializer et correction sonar
abdessamad-abdoun Jun 19, 2025
ef539be
Create Trig Serializer
abdessamad-abdoun Jun 19, 2025
516aa3b
ajouté les tests unitaires pour Turtle et réorganisé le fichier de co…
abdessamad-abdoun Jun 19, 2025
0287b2b
ajouté les tests unitaires pour Turtle
abdessamad-abdoun Jun 19, 2025
09509b9
ajouté les tests unitaires pour trig
abdessamad-abdoun Jun 19, 2025
5ba963c
ajouter RDF.LANGSTRING.getIRI().stringValue()
abdessamad-abdoun Jun 19, 2025
57fe4d8
Serializer to be separated into a factory class for serializers.
abdessamad-abdoun Jun 20, 2025
6267288
ajouter le BufferedWriter directement dans votre méthode write() et i…
abdessamad-abdoun Jun 20, 2025
675a0ac
Serializer to be separated into a factory class for serializers.
abdessamad-abdoun Jun 24, 2025
beff6d8
ajouter xml serializer
abdessamad-abdoun Jun 24, 2025
58dc11d
ajouter xml DefaultSerializerFactoryTest
abdessamad-abdoun Jun 25, 2025
0d567ba
ajouter test unitaire xml serializer
abdessamad-abdoun Jun 26, 2025
bff224c
ajouter plus de test unitaire xml serializer
abdessamad-abdoun Jun 27, 2025
0c39531
Ajout du vocabulaire OWL et refactorisation des constantes de sériali…
abdessamad-abdoun Jun 27, 2025
97a494f
refactor(serialization): Extract common base for line-based serializers
remiceres Jul 1, 2025
7f9c408
Correction des noms d'interfaces (suppression du préfixe "I") et ajou…
abdessamad-abdoun Jul 1, 2025
ba063ca
ajouter une classe commun trig et turtles
abdessamad-abdoun Jul 1, 2025
ebdb7d1
la configuration de la sérialisation
abdessamad-abdoun Jul 4, 2025
c43fa3a
java Doc anglais
abdessamad-abdoun Jul 4, 2025
1967d7e
A factory class to create mocked components
abdessamad-abdoun Jul 4, 2025
ff73b85
ajouter n quads config test
abdessamad-abdoun Jul 4, 2025
47c15ba
ajouter TU de Ntriples config
abdessamad-abdoun Jul 7, 2025
0e11974
ajouter TU de turtle et trig config
abdessamad-abdoun Jul 7, 2025
3783b50
ajouter TU de XML config
abdessamad-abdoun Jul 7, 2025
170eca8
jsonld UT init
MaillPierre Jul 7, 2025
b65464f
Merge pull request #165 from corese-stack:feature/147_Serializer_Turt…
remiceres Jul 9, 2025
11b6e4d
fix my personal page
MaillPierre Jul 9, 2025
e4b1fb9
refining json serializer
MaillPierre Jul 9, 2025
99e5e34
Fixed Typed Literal bug
MaillPierre Jul 9, 2025
fc1ba51
Merge branch 'feature/corese-next' into feature/89_json_parser
MaillPierre Jul 10, 2025
9a35945
fixing Exception heritage
MaillPierre Jul 10, 2025
0f9221d
Reorganizing and standardizing classes and packages
MaillPierre Jul 10, 2025
baed5bc
Fixing test names and packages following review
MaillPierre Jul 10, 2025
ee89ae2
WIP on feature/89_json_parser
MaillPierre Jul 15, 2025
86d966e
Merge pull request #172
prbblrypier Jul 16, 2025
cf4f824
removing unwanted file
MaillPierre Jul 16, 2025
cd1ac3b
Comments, comments everywhere
MaillPierre Jul 17, 2025
2ee6236
Merge branch 'develop' of github.com:corese-stack/corese-core into fe…
remiceres Jul 18, 2025
9cd6442
Refactor build.gradle.kts to enhance JavaCC and Antlr source generati…
remiceres Jul 21, 2025
5922dce
Merge pull request #171 from corese-stack/feature/89_json_parser
remiceres Jul 21, 2025
9a7caec
Final modifications before merge - code formatting and documentation
remiceres Jul 21, 2025
7ffe3a4
Merge feature/89_json_parser into feature/corese-next
remiceres Jul 21, 2025
d949f7e
Fix regex pattern formatting in IRIUtils class
remiceres Jul 21, 2025
73d99bf
Corriger les erreurs dans la Javadoc
abdessamad-abdoun Jul 22, 2025
adff4a5
l’issue 88 (parseur NTriples/NQuads)
abdessamad-abdoun Jun 30, 2025
3e85eac
l’issue 88 parseur NTriples ANTLRNTriplesParser
abdessamad-abdoun Jul 9, 2025
3f85d74
solution pour garantit que vos fichiers générés auront une seule décl…
abdessamad-abdoun Jul 9, 2025
428a908
Ajouter ANTLRNTriplesParser et NTriplesListener
abdessamad-abdoun Jul 10, 2025
31d8c7e
Ajouter ANTLRNQuadsParser
abdessamad-abdoun Jul 10, 2025
5ff60c8
Ajouter NQuadsListener et paser FactoryTest
abdessamad-abdoun Jul 11, 2025
25cfd89
TU N-Triples
abdessamad-abdoun Jul 15, 2025
60a292f
TU parse N-Quads
abdessamad-abdoun Jul 16, 2025
bb0e9df
correction le Warning: Output directory "C:\DEV\corese-core\build\gen…
abdessamad-abdoun Jul 16, 2025
9270058
adapte après avoir effectué le rebase
abdessamad-abdoun Jul 16, 2025
8bee900
correction le Warning: Output directory "C:\DEV\corese-core\build\gen…
abdessamad-abdoun Jul 22, 2025
41c3def
Refactor JavaCC and Antlr task dependencies and output directories
remiceres Jul 22, 2025
062d3a7
Add constructors with configuration options for ANTLRNQuadsParser and…
remiceres Jul 22, 2025
20709b2
Refactor import statements in NQuadsListener and NTriplesListener for…
remiceres Jul 22, 2025
f92fa73
Refactor import statements across multiple serializers for improved o…
remiceres Jul 22, 2025
e8859fa
Merge pull request #177 from corese-stack/feature/88_NTriples_NQuads_…
MaillPierre Jul 22, 2025
8c575cb
factory
prbblrypier Jul 1, 2025
4d5d09e
build with Alpakka
prbblrypier Jul 7, 2025
acba4ae
xml parser setup
prbblrypier Jul 8, 2025
7bcf316
rdf xml parser
prbblrypier Jul 10, 2025
8d8193e
rdf xml parser
prbblrypier Jul 10, 2025
fd35962
rdf xml parser test
prbblrypier Jul 10, 2025
6ac245b
abstractstatement
prbblrypier Jul 16, 2025
ae75342
build
prbblrypier Jul 16, 2025
72fbf4f
adding RDF-XML Context and Utils
prbblrypier Jul 18, 2025
786eda2
refactor RdfXmlParser
prbblrypier Jul 18, 2025
7a34f4c
Add RDFXML support to ParserFactory and remove RdfXmlParserFactory
remiceres Jul 22, 2025
1e8aad5
Refactor RdfXmlParser to extend AbstractRDFParser and update test cases
remiceres Jul 22, 2025
a2e5dee
ANTLRTrig
prbblrypier Jul 25, 2025
efd937b
Fixing 181 bug on IRIs
MaillPierre Jul 25, 2025
d587cba
minor fix
MaillPierre Jul 25, 2025
d0a685d
ANTLRTrig parser
prbblrypier Jul 25, 2025
480d5cf
Merge pull request #182
prbblrypier Jul 28, 2025
ed5bdd9
Fixing 181 bug on IRIs
MaillPierre Jul 25, 2025
0d6c95b
minor fix
MaillPierre Jul 25, 2025
3451889
comments and code cleaning
prbblrypier Jul 29, 2025
2fa8a84
Merge pull request #183 from corese-stack/feature/trig_87
MaillPierre Jul 30, 2025
68030d5
fixing missing factory for trig parser
MaillPierre Jul 30, 2025
4227d22
Merge branch 'develop' into feature/corese-next
remiceres Jul 30, 2025
8056835
update: change JDK version from 11 to 21 in GitHub workflows
remiceres Jul 30, 2025
34571e5
Corriger les bugs signalés comme bloquants
abdessamad-abdoun Jul 18, 2025
b62aab7
Corriger les bugs signalés comme critiques
abdessamad-abdoun Jul 18, 2025
6bbce7c
Corriger les bugs signalés comme critiques
abdessamad-abdoun Jul 18, 2025
cf9cbc4
Corriger les bugs signalés comme critiques
abdessamad-abdoun Jul 18, 2025
7472012
Corriger les bugs signalés comme critiques
abdessamad-abdoun Jul 18, 2025
4ed8b3b
Corriger les bugs signalés comme majour
abdessamad-abdoun Jul 21, 2025
d8cec94
Changed from HashMap to ConcurrentHashMap
abdessamad-abdoun Jul 21, 2025
78da786
Corriger les bugs signalés comme securite et majore
abdessamad-abdoun Jul 23, 2025
d85ac9c
Rename field "system" to prevent any misunderstanding/clash with fiel…
abdessamad-abdoun Jul 23, 2025
43f355c
correction Make sure publicly writable directories are used safely here
abdessamad-abdoun Jul 24, 2025
865e38b
Corriger les bugs signalés comme majour
abdessamad-abdoun Jul 24, 2025
80ad3e3
Corriger les bugs signalés comme majour
abdessamad-abdoun Jul 24, 2025
e073266
change LinkedHashMap on HashMap
abdessamad-abdoun Jul 25, 2025
1533281
Strings should not be concatenated using '+' in a loop
abdessamad-abdoun Jul 25, 2025
a6cb302
Corriger les bugs signalés comme majour
abdessamad-abdoun Jul 25, 2025
c5ded56
Corriger les bugs signalés comme mineurs
abdessamad-abdoun Jul 28, 2025
35f94fc
Corriger les bugs signalés comme majour
abdessamad-abdoun Jul 28, 2025
f1aa2f4
correction sonar Make sure publicly writable directories are used saf…
abdessamad-abdoun Jul 29, 2025
d09e102
ajouter TransformerUtils - Méthodes utilitaires statiques réduire la …
abdessamad-abdoun Jul 30, 2025
dc628f0
ajouter ContextManager dédié au contexte d'exécution
abdessamad-abdoun Jul 30, 2025
814f766
Rename field "transform" to prevent any misunderstanding/clash with f…
abdessamad-abdoun Jul 30, 2025
fd7e89e
correction sonar Make sure publicly writable directories are used saf…
abdessamad-abdoun Jul 30, 2025
f4ca82a
factory
prbblrypier Jul 1, 2025
40ca925
xml parser setup
prbblrypier Jul 8, 2025
479e7cd
rdf xml parser
prbblrypier Jul 10, 2025
1288b1b
rdf xml parser
prbblrypier Jul 10, 2025
87aabfd
rdf xml parser test
prbblrypier Jul 10, 2025
f0e6483
abstractstatement
prbblrypier Jul 16, 2025
6e4dfa2
adding RDF-XML Context and Utils
prbblrypier Jul 18, 2025
203fb93
refactor RdfXmlParser
prbblrypier Jul 18, 2025
12ca855
Add RDFXML support to ParserFactory and remove RdfXmlParserFactory
remiceres Jul 22, 2025
f14740a
Refactor RdfXmlParser to extend AbstractRDFParser and update test cases
remiceres Jul 22, 2025
6099cb2
Parser RDFXML refactoring
prbblrypier Jul 25, 2025
6edb354
build exemple
prbblrypier Jul 25, 2025
5255aa8
ANTLRTrig
prbblrypier Jul 25, 2025
ca66b5b
new test suit
prbblrypier Jul 29, 2025
d17a65c
comments and code cleaning
prbblrypier Aug 1, 2025
d06ed9a
Merge remote-tracking branch 'origin/feature/86-RDFXML-parser' into f…
prbblrypier Aug 1, 2025
249b769
comments and code cleaning
prbblrypier Aug 1, 2025
a238d78
Merge pull request #175 from corese-stack:feature/refactoring
remiceres Aug 21, 2025
b96215f
correction parser for the N-Triples format
abdessamad-abdoun Aug 14, 2025
015881b
correction parser for the N-Quads format
abdessamad-abdoun Aug 19, 2025
b9c63a9
correction parser for the N-Quads format
abdessamad-abdoun Aug 19, 2025
d941dd2
correction parser for the N-Triples format
abdessamad-abdoun Aug 20, 2025
d8d141a
correction parser for the N-Quads format
abdessamad-abdoun Aug 20, 2025
305e0f0
fringe test for weird litteral containg forbiden keywords
MaillPierre Aug 28, 2025
4825179
correction parser for the N-Quads format
abdessamad-abdoun Aug 28, 2025
1c240bb
pour éviter les erreurs d'index
abdessamad-abdoun Aug 29, 2025
49942f9
Merge pull request #199 from corese-stack/feature/191_NQuads_NTriples…
MaillPierre Sep 1, 2025
4206d90
remove duplicated SerializationConstants.java
prbblrypier Sep 2, 2025
fa1b4ad
undo SerializationConstants.java deletation and delete the right class
prbblrypier Sep 2, 2025
488b2dc
Merge pull request #176 from corese-stack/feature/86-RDFXML-parser
MaillPierre Sep 3, 2025
3ca1d5d
#187 Implement RDF canonicalization as serializer
abdessamad-abdoun Aug 1, 2025
38409a7
test unitaire de l implement canonicalization as serializer
abdessamad-abdoun Aug 5, 2025
4583df9
#187 Implement RDF canonicalization as serializer
abdessamad-abdoun Aug 28, 2025
d08f2dc
#187 Implement RDF canonicalization as serializer
abdessamad-abdoun Sep 8, 2025
fe7fbd9
#187 Implement RDF canonicalization as serializer
abdessamad-abdoun Sep 9, 2025
4bf4317
#187 Implement RDF canonicalization as serializer
abdessamad-abdoun Sep 10, 2025
8bf67f6
Merge pull request #195 from corese-stack/feature/187_canonalisation_…
remiceres Sep 10, 2025
ef9e8fc
Cutting dependency from core.query to core.index packages
Oct 16, 2025
66dc114
Merge pull request #214 from corese-stack/query-index-dependency
abdessamad-abdoun Oct 16, 2025
247aca1
removed 2nd dependency from core.query to core.index
Oct 16, 2025
130b2fe
Merge pull request #215 from corese-stack/query-index-dependency
MaillPierre Oct 20, 2025
c89425e
Add JSON-LD serializer implementation
remiceres Aug 29, 2025
afc821f
Integrate JSON-LD format into DefaultSerializerFactory
remiceres Aug 29, 2025
2a42ddf
Add Turtle round-trip circular tests
remiceres Aug 29, 2025
3bad778
Add N-Triples round-trip circular tests
remiceres Aug 29, 2025
19d57f5
Add N-Quads round-trip circular tests
remiceres Aug 29, 2025
95e6c79
Add TriG round-trip circular tests
remiceres Aug 29, 2025
c0cc93d
Add RDF/XML round-trip circular tests (disabled)
remiceres Aug 29, 2025
103e5e9
Add JSON-LD round-trip circular tests
remiceres Aug 29, 2025
13da733
TriG Named Graph Round-Trip Test Failures
abdessamad-abdoun Sep 1, 2025
960a629
Ajouter ANTLRTrigParser dans ParserFactory
abdessamad-abdoun Sep 3, 2025
c8e6c57
TriG Named Graph Round-Trip Test Failures
abdessamad-abdoun Sep 3, 2025
ab91a93
1 - bnode correction in serializer
prbblrypier Sep 16, 2025
fe7fc7f
1 - bnode correction in serializer
prbblrypier Sep 16, 2025
c69075e
1 - bnode correction in serializer
prbblrypier Sep 16, 2025
b17f9c5
Integrate JSON-LD format into DefaultSerializerFactory
remiceres Aug 29, 2025
00b9130
1 - bnode correction in serializer
prbblrypier Sep 16, 2025
5519f19
Fixing turtle backslash duplication in serializer
MaillPierre Sep 23, 2025
98ba4e4
fixing blank node serialization
MaillPierre Sep 30, 2025
5bf434d
fix default graph duplication
MaillPierre Sep 30, 2025
5e3190d
fixing lang tagged literal test
MaillPierre Sep 30, 2025
fb0a1c8
fix the old test that was incorrect
MaillPierre Oct 1, 2025
985272a
Integrate JSON-LD format into DefaultSerializerFactory
remiceres Aug 29, 2025
f2b2a6a
Fix Turtle and Trig parser to pass W3C
abdessamad-abdoun Sep 8, 2025
8511a7b
Fix Turtle and Trig parser to pass W3C standard test suite
abdessamad-abdoun Sep 15, 2025
4924ec3
Fix Turtle and Trig parser to pass W3C standard test suite
abdessamad-abdoun Sep 17, 2025
46257f6
Fix Turtle and Trig parser to pass W3C standard test suite
abdessamad-abdoun Sep 24, 2025
84fd969
Fix Turtle parser to pass W3C standard test suite
abdessamad-abdoun Sep 24, 2025
7a17a10
Fix Turtle parser to pass W3C standard test suite
abdessamad-abdoun Sep 26, 2025
2687fca
Fix Turtle parser to pass W3C standard test suite
abdessamad-abdoun Sep 29, 2025
a9c4401
Fix Turtle parser to pass W3C standard test suite
abdessamad-abdoun Sep 29, 2025
8595213
Fix Turtle parser to pass W3C standard test suite
abdessamad-abdoun Sep 30, 2025
44416e2
removing ignore tag
prbblrypier Sep 12, 2025
cd34614
adding qname expension for datatype uri
prbblrypier Sep 12, 2025
10b3e57
removing ignore tag
prbblrypier Sep 12, 2025
6b9f44d
adding qname expension for datatype uri
prbblrypier Sep 12, 2025
d60935e
removing ignore tag
prbblrypier Sep 12, 2025
90cb5eb
adding qname expension for datatype uri
prbblrypier Sep 12, 2025
571373c
Multi-line literals are not permitted in nquads
MaillPierre Oct 2, 2025
cc39bd9
fix: processUnicodeEscape only thows ParsingErrorException
MaillPierre Oct 2, 2025
a33dde2
fix bnode prefix in JSONLD serializer
MaillPierre Oct 27, 2025
b32499b
revue Should be configurable
abdessamad-abdoun Oct 27, 2025
ac0083b
minor fixes in XMLUtils
MaillPierre Oct 27, 2025
673f3b5
Merge pull request #209 from corese-stack/feature/205_Turtle_Trig_par…
remiceres Oct 27, 2025
c865d2b
Fix Turtle and Trig parser to pass W3C standard test suite NullPointe…
abdessamad-abdoun Oct 28, 2025
c67a290
Renaming/refactoring of options classes
MaillPierre Oct 30, 2025
2a9a5d6
Fixing some null value handling
MaillPierre Oct 30, 2025
491ab7b
Merge branch 'develop' into feature/corese-next
remiceres Oct 31, 2025
3f3226f
Putting comment where comment is due
MaillPierre Oct 31, 2025
70d17e7
instanceof pattern, import cleaning and minor fixes
MaillPierre Oct 31, 2025
9b30a8f
Merge pull request #219 from corese-stack/feature/io_option_refactoring
MaillPierre Oct 31, 2025
e7c38e5
Commenting out 107 dead methods & 2 attributes in sparql.triple.parse…
Nov 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 1
target-branch: "develop"
30 changes: 25 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- "main"
- "develop"
- "feature/corese-next"
workflow_dispatch:

permissions:
contents: read
Expand All @@ -24,11 +25,14 @@ jobs:

env:
PACKAGE_TOKEN: ${{ secrets.JLS_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

steps:
- name: Checkout of head
- name: Checkout sources
id: ci-sources-checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up JDK 21
id: ci-java-setup
Expand All @@ -37,16 +41,32 @@ jobs:
java-version: 21
distribution: 'temurin'

- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/gradle.properties') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: Gradle build
id: ci-gradle-build
run: ./gradlew clean assemble

- name: Gradle tests
run: ./gradlew test

- name: Run Coverage
- name: Generate JaCoCo Coverage Report
run: ./gradlew jacocoTestReport

- name: SonarQube analysis
run: |
./gradlew sonar -Dsonar.projectKey=crs-core-new \
-Dsonar.host.url=https://sonarqube.inria.fr/sonarqube \
-Dsonar.login=${{ secrets.SONAR_TOKEN }}

- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.7.0
Expand All @@ -58,7 +78,7 @@ jobs:
min-coverage-changed-files: 60
update-comment: true

- name: Get the Coverage info
- name: Display Coverage info
run: |
echo "Total coverage ${{ steps.jacoco.outputs.coverage-overall }}"
echo "Changed Files coverage ${{ steps.jacoco.outputs.coverage-changed-files }}"
Expand All @@ -70,8 +90,8 @@ jobs:
files: |
build/test-results/**/*.xml

- name: Get test artifacts
if: ${{ failure() }}
- name: Archive test artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
java-version: '21'
cache: 'gradle'

- name: Cache Gradle
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
with:
ref: ${{ github.event.inputs.ref || github.ref_name }}

- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
java-version: '21'
cache: 'gradle'

- name: Cache Gradle
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
with:
ref: ${{ github.event.inputs.ref || github.ref }}

- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
java-version: '21'
cache: 'gradle'

- name: Cache Gradle
Expand Down
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,26 @@ target/
/dist/
/nbdist/
/.nb-gradle/
.continue/

# Logs and coverage reports
*.log
*.out
*.coverage
*.reports

# Generated files
gradle/gradle-daemon-jvm.properties

## #################################################################
## Miscellaneous ignores
## #################################################################

# Other build directories and generated files
/bin/
/out/

# Fichiers de logs
logs/
*.log
.sonarlint/
148 changes: 136 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import java.time.LocalDate
import java.time.format.DateTimeFormatter

plugins {
// Core Gradle plugins
`java-library` // For creating reusable Java libraries
Expand All @@ -9,9 +12,59 @@ plugins {

// Tooling plugins
`jacoco` // For code coverage reports
id("com.gradleup.shadow") version "8.3.7" // Bundles dependencies into a single JAR
id("com.gradleup.shadow") version "8.3.7"
id("org.sonarqube") version "6.1.0.5360" // SonarQube integration
id("com.intershop.gradle.javacc") version "5.0.1" // JavaCC plugin for parsing JavaCC files
id("antlr") // Antlr plugin for generating parsers from grammar files
}

// SonarQube configuration

val currentDate: String = LocalDate.now().format(DateTimeFormatter.ISO_DATE)

sonar {
properties {
property("sonar.projectKey", "crs-core-new")
property("sonar.host.url", "https://sonarqube.inria.fr/sonarqube")
property("sonar.login", System.getenv("SONAR_TOKEN"))
property("sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml")
property("sonar.sourceEncoding", "UTF-8")
property("sonar.projectDate", currentDate)
}
}

// === Generated sources directories ===
val javaccGeneratedDir = layout.buildDirectory.dir("generated-src/javacc").get().asFile
val antlrGeneratedDir = layout.buildDirectory.dir("generated-src/antlr").get().asFile
val antlrPackageDir = layout.buildDirectory.dir("generated-src/antlr/fr/inria/corese/core/next/impl/parser/antlr").get().asFile

// JavaCC configuration
javacc {
configs {
register("sparqlCorese") {
inputFile = file("src/main/java/fr/inria/corese/core/sparql/triple/javacc1/sparql_corese.jj")
packageName = "fr.inria.corese.core.sparql.triple.javacc1"
outputDir = javaccGeneratedDir
}
}
}

// Configure source sets to include generated sources
sourceSets {
main {
java {
srcDir(javaccGeneratedDir)
srcDir(antlrGeneratedDir)
}
}
}

// Ensure JavaCC generation happens before compilation
tasks.named("compileJava") {
dependsOn("javaccSparqlCorese")
}


/////////////////////////
// Project metadata //
/////////////////////////
Expand All @@ -25,7 +78,7 @@ object Meta {
// Project description
const val desc = "Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1 Query and Update, Shacl. STTL. LDScript."
const val githubRepo = "corese-stack/corese-core"

// License information
const val license = "CeCILL-C License"
const val licenseUrl = "https://opensource.org/licenses/CeCILL-C"
Expand All @@ -37,8 +90,11 @@ object Meta {

// Java compilation settings
java {
// Note: withJavadocJar() and withSourcesJar() are handled by com.vanniktech.maven.publish plugin
sourceCompatibility = JavaVersion.VERSION_11 // Configure minimum Java version
withJavadocJar() // Include Javadoc JAR in publications
withSourcesJar() // Include sources JAR in publications
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}

/////////////////////////
Expand All @@ -51,7 +107,6 @@ repositories {
mavenCentral() // Then, check Maven Central
}

// Define dependencies
dependencies {
// === Logging ===
// As a library, corese-core should only depend on the SLF4J API.
Expand All @@ -60,23 +115,41 @@ dependencies {
api("org.slf4j:slf4j-api:2.0.17") // Logging API only (SLF4J)

// === Core dependencies ===
api("fr.com.hp.hpl.jena.rdf.arp:arp:2.2.b") // RDF/XML parser (Jena ARP)
api("fr.com.hp.hpl.jena.rdf.arp:arp:2.2.b") // RDF/XML parser (Jena ARP)
implementation("fr.inria.corese.org.semarglproject:semargl-rdfa:0.7.2") // RDFa parser (Semargl)
implementation("com.github.jsonld-java:jsonld-java:0.13.4") // JSON-LD processing

// === Antlr dependencies ===
antlr("org.antlr:antlr4:4.13.2") // Antlr for parsing (ANTLR 4)
implementation("org.antlr:antlr4-runtime:4.13.2") // Antlr runtime for parsing

// === HTTP and XML ===
implementation("org.glassfish.jersey.core:jersey-client:3.1.10") // HTTP client (Jersey)
implementation("org.glassfish.jersey.inject:jersey-hk2:3.1.10") // Dependency injection for Jersey
implementation("com.sun.activation:jakarta.activation:2.0.1") // MIME type handling (Jakarta Activation)

// === JSONLD Parsing ===
implementation("com.apicatalog:titanium-json-ld:1.6.0") // JSON-LD processing library
implementation("com.apicatalog:titanium-rdf-api:1.0.0") // Titanium RDF API for JSON-LD processing
implementation("org.eclipse.parsson:parsson:1.1.7") // JSON parser for JSON-LD
implementation("jakarta.json:jakarta.json-api:2.1.3") // Jakarta JSON API for JSON processing


// === XML parsing ===
implementation("com.typesafe.akka:akka-stream_2.13:2.6.20") // Akka Streams for reactive streams processing
implementation("com.lightbend.akka:akka-stream-alpakka-xml_2.13:3.0.4") // Alpakka XML for XML processing with Akka Streams

// === Utilities ===
implementation("org.apache.commons:commons-text:1.13.1") // Text manipulation utilities (Commons Text)
implementation("org.json:json:20250517") // JSON processing
implementation("com.typesafe:config:1.4.3") // Configuration library (Typesafe Config)

// === Test dependencies ===
testImplementation("junit:junit:4.13.2") // Unit testing framework
testRuntimeOnly("ch.qos.logback:logback-classic:1.5.20") // Logging implementation for tests and development
testImplementation(platform("org.junit:junit-bom:5.13.2")) // JUnit BOM for consistent test versions
testImplementation("org.junit.jupiter:junit-jupiter:5.13.2") // JUnit Jupiter API and engine
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.13.2") // JUnit platform launcher (runtime)
testImplementation("org.mockito:mockito-core:5.18.0") // Mockito core for mocking in tests
testImplementation("org.mockito:mockito-junit-jupiter:5.18.0") // Mockito integration with JUnit Jupiter
}

/////////////////////////
Expand Down Expand Up @@ -146,7 +219,7 @@ mavenPublishing {
/////////////////////////

// Set UTF-8 encoding for Java compilation tasks
tasks.withType<JavaCompile>() {
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-Xlint:none")
}
Expand All @@ -167,7 +240,7 @@ tasks.withType<Javadoc>().configureEach {
tasks {
shadowJar {
this.archiveClassifier = "jar-with-dependencies"
}
}
}

// Configure the build task to depend on the shadow JAR task.
Expand All @@ -190,10 +263,11 @@ tasks.jacocoTestReport {
// Set the test task to be followed by Jacoco report generation.
// This ensures that test coverage reports are always generated after tests.
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed") // Affiche les résultats des tests
showStandardStreams = true // Affiche les sorties console des tests (y compris les logs)
events("passed", "skipped", "failed")
}
systemProperty("java.util.logging.config.file", "src/test/resources/logging.properties")
finalizedBy(tasks.jacocoTestReport)
}

Expand All @@ -208,3 +282,53 @@ tasks.withType<PublishToMavenLocal>().configureEach {
tasks.withType<PublishToMavenRepository>().configureEach {
dependsOn(tasks.withType<Sign>())
}

// === Antlr generated sources configuration ===

// Configure the Antlr task to generate parser code with specific arguments
tasks.named<AntlrTask>("generateGrammarSource") {
arguments.addAll(listOf("-visitor", "-long-messages", "-package", "fr.inria.corese.core.next.impl.parser.antlr"))
outputDirectory = antlrPackageDir
inputs.files(fileTree("src/main/antlr"))
outputs.dir(antlrPackageDir)
}

// Ensure Java compilation depends on both JavaCC and Antlr code generation
tasks.named("compileJava") {
dependsOn("generateGrammarSource", "javaccSparqlCorese")
}

// Ensure sources JAR includes generated sources and depends on code generation
tasks.named<Jar>("sourcesJar") {
dependsOn("generateGrammarSource", "javaccSparqlCorese")
from(javaccGeneratedDir)
from(antlrGeneratedDir)
includeEmptyDirs = false
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

// Clean up generated sources on clean
tasks.clean {
doLast {
delete(javaccGeneratedDir)
delete(antlrGeneratedDir)
}
}

// Ensure generated directories exist before generation
tasks.register("createGeneratedDirs") {
doLast {
javaccGeneratedDir.mkdirs()
antlrGeneratedDir.mkdirs()
antlrPackageDir.mkdirs()
}
}

// Make generation tasks depend on directory creation
tasks.named("generateGrammarSource") {
dependsOn("createGeneratedDirs")
}

tasks.named("javaccSparqlCorese") {
dependsOn("createGeneratedDirs")
}
Loading