diff mbox series

[bug#64934,32/42] gnu: Add java-eclipse-rdf4j-queryresultio-sparqljson.

Message ID 8ea7ecc30deed18726d755a2becc8cace9e4a99c.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, 3:32 p.m. UTC
* gnu/packages/java-rdf.scm (java-eclipse-rdf4j-queryresultio-sparqljson): New
variable.
---
 gnu/packages/java-rdf.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/java-rdf.scm b/gnu/packages/java-rdf.scm
index 523d0c51ac..3402f79bd5 100644
--- a/gnu/packages/java-rdf.scm
+++ b/gnu/packages/java-rdf.scm
@@ -356,6 +356,34 @@  (define-public java-eclipse-rdf4j-queryresultio-sparqlxml
 RDF queries.")
     (license license:epl1.0)))
 
+(define-public java-eclipse-rdf4j-queryresultio-sparqljson
+  (package
+    (name "java-eclipse-rdf4j-queryresultio-sparqljson")
+    (version %rdf4j-version)
+    (source %rdf4j-source)
+    (build-system ant-build-system)
+    (arguments
+     (substitute-keyword-arguments
+      (rdf4j-common-arguments "rdf4j-queryresultio-sparqljson.jar"
+                              "core/queryresultio/sparqljson")
+      ((#:phases phases)
+       #~(modify-phases #$phases
+           (add-before 'install 'generate-pom.xml
+             (generate-pom.xml "guix-pom.xml"
+                               "org.eclipse.rdf4j"
+                               "rdf4j-queryresultio-sparqljson" #$version))
+           (replace 'install
+             (install-from-pom "guix-pom.xml"))))))
+    (inputs (list java-slf4j-api
+                  java-commons-lang3
+                  java-fasterxml-jackson-core))
+    (propagated-inputs (list java-eclipse-rdf4j-queryresultio-api))
+    (home-page "https://rdf4j.org/")
+    (synopsis "Handling RDF query results")
+    (description "This package provides classes for handling SPARQL/JSON-based
+RDF queries.")
+    (license license:epl1.0)))
+
 (define-public java-eclipse-rdf4j-repository-api
   (package
     (name "java-eclipse-rdf4j-repository-api")