summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2023-07-29 17:58:17 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-08-05 13:51:19 +0200
commitea17bc5b20ca781bca6231506e2ffd329f53a266 (patch)
treea182809a01fa87a075c694539f2fd4e1461f5994
parent5e18b94a78f6acf1e94d591a357eeecd057d103f (diff)
gnu: Add java-commons-rdf-rdf4j.
* gnu/packages/java-rdf.scm (java-commons-rdf-rdf4j): New variable.
-rw-r--r--gnu/packages/java-rdf.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/java-rdf.scm b/gnu/packages/java-rdf.scm
index 97606b1b10..7c400643bc 100644
--- a/gnu/packages/java-rdf.scm
+++ b/gnu/packages/java-rdf.scm
@@ -113,6 +113,51 @@
(description "This package provides common test classes for packages
implementing java-commons-rdf-api.")))
+(define-public java-commons-rdf-rdf4j
+ (package
+ (inherit java-commons-rdf-api)
+ (name "java-commons-rdf-rdf4j")
+ (version "0.5.0")
+ (arguments
+ (list #:jar-name "commons-rdf-rdf4j.jar"
+ #:source-dir "src/main/java"
+ #:test-dir "src/test"
+ #:test-exclude (list "**/RDF4JServiceLoaderTest.java")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "commons-rdf-rdf4j")))
+ (add-before 'install 'fix-pom
+ (lambda _
+ (substitute* "pom.xml"
+ (("\\$\\{project\\.parent\\.groupId\\}")
+ "org.apache.commons"))))
+ (replace 'install
+ (install-from-pom "pom.xml")))))
+ (inputs (list java-guava
+ java-commons-io
+ java-commons-lang3
+ java-commons-text
+ java-fasterxml-jackson-annotations
+ java-fasterxml-jackson-core
+ java-fasterxml-jackson-databind
+ java-mapdb))
+ (propagated-inputs (list java-commons-rdf-api
+ java-commons-rdf-simple
+ java-eclipse-rdf4j-model
+ java-eclipse-rdf4j-repository-api
+ java-eclipse-rdf4j-repository-sail
+ java-eclipse-rdf4j-rio-turtle
+ java-eclipse-rdf4j-rio-nquads
+ java-eclipse-rdf4j-rio-jsonld
+ java-eclipse-rdf4j-rio-rdfxml
+ java-eclipse-rdf4j-sail-memory
+ java-eclipse-rdf4j-sail-nativerdf))
+ (native-inputs (list java-commons-rdf-api-tests unzip))
+ (synopsis "Implementation RDF 1.1 concepts backed by RDF4J")
+ (description "This package provides an RDF4J-based implementation of RDF 1.1
+concepts.")))
+
(define-public java-commons-rdf-simple
(package
(inherit java-commons-rdf-api)