diff mbox series

[bug#64934,20/42] gnu: Add java-eclipse-rdf4j-rio-jsonld.

Message ID 99bdb5a10d4e3ba83118dbd5aedbdbf0cfe7293e.1690646441.git.liliana.prikler@gmail.com
State New
Headers show
Series I tried to semantic the web, and after downloading half the Internet, these are some packages I came up with | expand

Commit Message

Liliana Marie Prikler July 29, 2023, 2:59 p.m. UTC
* gnu/packages/java-rdf.scm (java-eclipse-rdf4j-rio-jsonld): New variable.
---
 gnu/packages/java-rdf.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/java-rdf.scm b/gnu/packages/java-rdf.scm
index 7329efb5d3..52c4b4c69b 100644
--- a/gnu/packages/java-rdf.scm
+++ b/gnu/packages/java-rdf.scm
@@ -264,6 +264,39 @@  (define-public java-eclipse-rdf4j-rio-datatypes
     (description "This package provides datatype handlers used in RDF4J.")
     (license license:epl1.0)))
 
+(define-public java-eclipse-rdf4j-rio-jsonld
+  (package
+    (name "java-eclipse-rdf4j-rio-jsonld")
+    (version %rdf4j-version)
+    (source %rdf4j-source)
+    (build-system ant-build-system)
+    (arguments
+     (substitute-keyword-arguments
+         (rdf4j-common-arguments "rdf4j-rio-jsonld.jar"
+                                 "core/rio/jsonld")
+       ((#:phases phases)
+        #~(modify-phases #$phases
+            (add-before 'install 'generate-pom.xml
+              (generate-pom.xml "guix-pom.xml"
+                                "org.eclipse.rdf4j"
+                                "rdf4j-rio-jsonld" #$version))
+            (replace 'install
+              (install-from-pom "guix-pom.xml"))))))
+    (inputs (list java-commons-io
+                  java-slf4j-api
+                  java-fasterxml-jackson-core
+                  java-fasterxml-jackson-databind
+                  java-jsonld-java))
+    (propagated-inputs (list java-eclipse-rdf4j-rio-api
+                             java-eclipse-rdf4j-rio-datatypes
+                             java-eclipse-rdf4j-rio-languages
+                             java-eclipse-rdf4j-model))
+    (home-page "https://rdf4j.org/")
+    (synopsis "RDF JSON-LD serialization")
+    (description "This package provides an implementation of the RDF4J Rio API,
+which reads and writes JSON-LD.")
+    (license license:epl1.0)))
+
 (define-public java-eclipse-rdf4j-rio-languages
   (package
     (name "java-eclipse-rdf4j-rio-languages")