Skip to content

Commit e817a0d

Browse files
committed
Merge branch 'develop' into feature/corese-next
2 parents cf4917f + 95e66e6 commit e817a0d

4 files changed

Lines changed: 31 additions & 24 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Add imports to the Getting Started guide.
1010
- Improved GitHub Actions log messages for the documentation workflow (`run-name` is now clearer).
1111
- Added new GitHub Actions workflow to automatically publish a development pre-release (`dev-prerelease`) on pushes to the `develop` branch.
12+
- Added `slf4j-simple` as a development-only runtime dependency.
1213

1314
### Fixed
1415

build.gradle.kts

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -106,22 +106,29 @@ dependencies {
106106
val jersey_version = "3.0.4"
107107
val semargl_version = "0.7.1"
108108

109-
api("fr.com.hp.hpl.jena.rdf.arp:arp:2.2.b") // RDF parser to handle RDF/XML files
110-
implementation("org.apache.commons:commons-text:1.10.0") // Text manipulation utilities (Apache Commons)
111-
implementation("commons-lang:commons-lang:2.4") // Basic functions for handling strings and objects
112-
implementation("org.json:json:20240303") // JSON processing for reading, writing, and manipulating JSON objects
113-
implementation("fr.inria.lille.shexjava:shexjava-core:1.0") // ShEx implementation for RDF validation
114-
implementation("org.glassfish.jersey.core:jersey-client:${jersey_version}") // REST client for creating HTTP requests
115-
implementation("org.glassfish.jersey.inject:jersey-hk2:${jersey_version}") // Dependency injection for Jersey
116-
implementation("com.sun.activation:jakarta.activation:2.0.1") // JavaBeans Activation Framework for MIME data handling
117-
implementation("javax.xml.bind:jaxb-api:2.3.1") // JAXB API for converting between Java objects and XML
118-
implementation("fr.inria.corese.org.semarglproject:semargl-rdfa:${semargl_version}") // RDFa parser to extract RDF metadata from HTML
119-
implementation("fr.inria.corese.org.semarglproject:semargl-core:${semargl_version}") // Semargl core for RDF parsing and transformation
120-
implementation("com.github.jsonld-java:jsonld-java:0.13.4") // JSON-LD processing for Linked Data in JSON format
121-
implementation("junit:junit:4.13.2") // JUnit framework for unit testing in Java
122-
implementation("com.typesafe:config:1.4.3") // Typesafe config
123-
api("org.slf4j:slf4j-api:2.0.9") // Simple Logging Facade for Java (SLF4J)
124-
testImplementation("org.apache.logging.log4j:log4j-slf4j2-impl:2.24.3")
109+
// === Public API (Corese-Core users must see these classes) ===
110+
api("org.slf4j:slf4j-api:2.0.9") // Exposed: Logging API
111+
112+
// === Internal implementations ===
113+
implementation("fr.com.hp.hpl.jena.rdf.arp:arp:2.2.b") // Exposed: RDF/XML parser
114+
implementation("org.apache.commons:commons-text:1.10.0") // Used internally (text manipulation)
115+
implementation("commons-lang:commons-lang:2.4") // Used internally (basic utilities)
116+
implementation("org.json:json:20240303") // Used internally (JSON)
117+
implementation("fr.inria.lille.shexjava:shexjava-core:1.0") // Used internally (ShEx validation)
118+
implementation("org.glassfish.jersey.core:jersey-client:$jersey_version") // Internal HTTP client
119+
implementation("org.glassfish.jersey.inject:jersey-hk2:$jersey_version") // Internal Jersey injection
120+
implementation("com.sun.activation:jakarta.activation:2.0.1") // Internal MIME handling
121+
implementation("javax.xml.bind:jaxb-api:2.3.1") // Internal XML binding
122+
implementation("fr.inria.corese.org.semarglproject:semargl-rdfa:$semargl_version") // RDFa parsing
123+
implementation("fr.inria.corese.org.semarglproject:semargl-core:$semargl_version") // RDF core parser
124+
implementation("com.github.jsonld-java:jsonld-java:0.13.4") // Internal JSON-LD parser
125+
implementation("com.typesafe:config:1.4.3") // Typesafe config
126+
127+
// === For tests ===
128+
testImplementation("junit:junit:4.13.2") // Unit testing framework
129+
130+
// === For viewing logs during development (DO NOT include in production) ===
131+
runtimeOnly("org.slf4j:slf4j-simple:2.0.9") // Simple SLF4J implementation for logging
125132
}
126133

127134
// Configure extra Java module information for dependencies without module-info
@@ -130,11 +137,11 @@ extraJavaModuleInfo {
130137
failOnMissingModuleInfo.set(false)
131138

132139
// Map automatic module names for non-modular libraries.
133-
automaticModule("fr.com.hp.hpl.jena.rdf.arp:arp", "arp") // Module for Jena RDF ARP
134-
automaticModule("com.github.jsonld-java:jsonld-java", "jsonld.java") // Module for JSON-LD Java
135-
automaticModule("commons-lang:commons-lang", "commons.lang") // Module for Commons Lang
136-
automaticModule("fr.inria.lille.shexjava:shexjava-core", "shexjava.core")
137-
automaticModule("org.eclipse.rdf4j:rdf4j-model", "rdf4j.model")
140+
automaticModule("fr.com.hp.hpl.jena.rdf.arp:arp", "arp") // Module for Jena RDF ARP
141+
automaticModule("com.github.jsonld-java:jsonld-java", "jsonld.java") // Module for JSON-LD Java
142+
automaticModule("commons-lang:commons-lang", "commons.lang") // Module for Commons Lang
143+
automaticModule("fr.inria.lille.shexjava:shexjava-core", "shexjava.core") // Module for ShexJava core
144+
automaticModule("org.eclipse.rdf4j:rdf4j-model", "rdf4j.model") // Module for RDF4J model
138145
}
139146

140147

src/main/java/fr/inria/corese/core/sparql/triple/javacc1/sparql_corese.jj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2971,7 +2971,7 @@ TOKEN:
29712971

29722972
| <QNAME_NS: (<NCNAME_PREFIX>)? ":" >
29732973

2974-
| <QNAME: (<NCNAME_PREFIX>)? ":" (["0"-"9"] | "-")* (<NCNAME>)? >
2974+
| <QNAME: (<NCNAME_PREFIX>)? ":" (["0"-"9"] | "-" | "_" | ".")* (<NCNAME>)? >
29752975

29762976
| <BLANK_NODE_LABEL: "_:" ( ["0"-"9"] | <BLANKNAME> ) ( (<BLANKNAME> | ".")* <BLANKNAME> ) ? >
29772977

@@ -3351,7 +3351,7 @@ TOKEN:
33513351
|
33523352
// With a leading "_", no dot at end of local name.
33533353

3354-
<#NCNAME: <NCCHAR1> ((<NCCHAR> | "." | ":" | "_" | <LOCAL_ESC> | <PERCENT> )* (<NCCHAR> | ":" | <LOCAL_ESC> | <PERCENT> ))? >
3354+
<#NCNAME: <NCCHAR1> ((<NCCHAR> | "." | ":" | "_" | <LOCAL_ESC> | <PERCENT> )* (<NCCHAR> | ":" | <LOCAL_ESC> | <PERCENT> ))? >
33553355
|
33563356

33573357

src/main/java/module-info.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
requires org.json; //
1414
requires org.apache.commons.lang3;
1515
requires org.slf4j;
16-
requires junit;
1716
requires jsonld.java;
1817
requires commons.lang; //
1918
requires typesafe.config; //

0 commit comments

Comments
 (0)