gnu: leveldb: Update home page.
[jackhill/guix/guix.git] / gnu / packages / rdf.scm
CommitLineData
c0798488 1;;; GNU Guix --- Functional package management for GNU
4bb49be2 2;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
d212ed2f 3;;; Copyright © 2015, 2016, 2018 Ricardo Wurmus <rekado@elephly.net>
ef421791 4;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
baa78774 5;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
c0798488
AE
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
07cec9a5 22(define-module (gnu packages rdf)
4bb49be2 23 #:use-module ((guix licenses)
baa78774 24 #:select (non-copyleft asl2.0 isc gpl2 lgpl2.1 lgpl2.1+ lgpl3+))
c0798488 25 #:use-module (guix packages)
d212ed2f 26 #:use-module (guix git-download)
c0798488
AE
27 #:use-module (guix download)
28 #:use-module (guix build-system cmake)
2c4e4d25 29 #:use-module (guix build-system gnu)
4bb49be2 30 #:use-module (guix build-system python)
f65784d5 31 #:use-module (guix build-system waf)
7051054a 32 #:use-module (gnu packages)
bfe26beb 33 #:use-module (gnu packages autotools)
8a79ec41 34 #:use-module (gnu packages boost)
ac257f12 35 #:use-module (gnu packages check)
2c4e4d25
AE
36 #:use-module (gnu packages compression)
37 #:use-module (gnu packages curl)
bfe26beb 38 #:use-module (gnu packages cyrus-sasl)
99828fa7 39 #:use-module (gnu packages documentation)
255d1bbe 40 #:use-module (gnu packages dbm)
1634c042
AE
41 #:use-module (gnu packages gnupg)
42 #:use-module (gnu packages linux)
43 #:use-module (gnu packages multiprecision)
44 #:use-module (gnu packages pcre)
45 #:use-module (gnu packages perl)
c0798488 46 #:use-module (gnu packages pkg-config)
4bb49be2 47 #:use-module (gnu packages python)
1b2f753d 48 #:use-module (gnu packages python-web)
44d10b1f 49 #:use-module (gnu packages python-xyz)
2c4e4d25 50 #:use-module (gnu packages qt)
33dc54b0 51 #:use-module (gnu packages time)
cc2b77df 52 #:use-module (gnu packages tls)
2c4e4d25
AE
53 #:use-module (gnu packages xml))
54
55(define-public raptor2
56 (package
57 (name "raptor2")
f4ee08d8 58 (version "2.0.15")
2c4e4d25
AE
59 (source (origin
60 (method url-fetch)
61 (uri (string-append "http://download.librdf.org/source/" name
62 "-" version ".tar.gz"))
099c9fda
MB
63 (patches
64 (search-patches "raptor2-heap-overflow.patch"))
2c4e4d25
AE
65 (sha256
66 (base32
f4ee08d8 67 "1vc02im4mpc28zxzgli68k6j0dakh0k3s389bm436yvqajxg19xd"))))
2c4e4d25
AE
68 (build-system gnu-build-system)
69 (inputs
70 `(("curl" ,curl)
71 ("libxml2" ,libxml2)
72 ("libxslt" ,libxslt)
73 ("zlib" ,zlib)))
0e6260a4
AE
74 (arguments
75 `(#:parallel-tests? #f))
2c4e4d25
AE
76 (home-page "http://librdf.org/raptor/")
77 (synopsis "RDF syntax library")
78 (description "Raptor is a C library providing a set of parsers and
79serialisers that generate Resource Description Framework (RDF) triples
80by parsing syntaxes or serialise the triples into a syntax. The supported
81parsing syntaxes are RDF/XML, N-Quads, N-Triples 1.0 and 1.1, TRiG,
82Turtle 2008 and 2013, RDFa 1.0 and 1.1, RSS tag soup including all versions
83of RSS, Atom 1.0 and 0.3, GRDDL and microformats for HTML, XHTML and
84XML. The serialising syntaxes are RDF/XML (regular, abbreviated, XMP),
85Turtle 2013, N-Quads, N-Triples 1.1, Atom 1.0, RSS 1.0, GraphViz DOT,
86HTML and JSON.")
87 (license lgpl2.1+))) ; or any choice of gpl2+ or asl2.0
c0798488 88
8a79ec41
AE
89(define-public clucene
90 (package
91 (name "clucene")
92 (version "2.3.3.4")
93 (source (origin
94 (method url-fetch)
95 (uri (string-append "mirror://sourceforge/clucene/"
96 "clucene-core-unstable/2.3/clucene-core-"
97 version ".tar.gz"))
98 (sha256
99 (base32
7051054a 100 "1arffdwivig88kkx685pldr784njm0249k0rb1f1plwavlrw9zfx"))
fc1adab1
AK
101 (patches (search-patches "clucene-pkgconfig.patch"
102 "clucene-contribs-lib.patch"))))
8a79ec41
AE
103 (build-system cmake-build-system)
104 (inputs
105 `(("boost" ,boost) ; could also use bundled copy
106 ("zlib" ,zlib)))
107 (arguments
108 `(#:test-target "cl_test"
80059f54 109 #:configure-flags '("-DBUILD_CONTRIBS_LIB=ON")
8a79ec41
AE
110 #:tests? #f)) ; Tests do not compile, as TestIndexSearcher.cpp uses
111 ; undeclared usleep. After fixing this, one needs to run
112 ; "make test" in addition to "make cl_test", then
113 ; SimpleTest fails.
114 ; Notice that the library appears to be unmaintained
115 ; with no reaction to bug reports.
116 (home-page "http://clucene.sourceforge.net/")
117 (synopsis "C text indexing and searching library")
118 (description "CLucene is a high-performance, scalable, cross platform,
119full-featured indexing and searching API. It is a port of the very popular
120Java Lucene text search engine API to C++.")
121 (license lgpl2.1)))
122
baa78774
JL
123(define-public lucene++
124 (package
125 (name "lucene++")
126 (version "3.0.7")
127 (source (origin
128 (method git-fetch)
129 (uri (git-reference
130 (url "https://github.com/luceneplusplus/LucenePlusPlus")
131 (commit (string-append "rel_" version))))
132 (file-name (git-file-name name version))
133 (sha256
134 (base32
135 "06b37fly6l27zc6kbm93f6khfsv61w792j8xihfagpcm9cfz2zi1"))))
136 (build-system cmake-build-system)
137 (arguments
138 `(#:configure-flags
139 ;; CXX_FLAGS suggested in a closed issue on github:
140 ;; https://github.com/luceneplusplus/LucenePlusPlus/issues/100
141 (list "-Wno-dev" "-DCMAKE_CXX_FLAGS=-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT"
142 ;; Install in lib64 break rpath
143 "-DCMAKE_INSTALL_LIBDIR:PATH=lib")))
144 (native-inputs
145 `(("pkg-config" ,pkg-config)))
146 (inputs
147 `(("boost" ,boost)))
148 (home-page "https://github.com/luceneplusplus/LucenePlusPlus")
149 (synopsis "Text search engine")
150 (description "Lucene++ is an up to date C++ port of the popular Java
151Lucene library, a high-performance, full-featured text search engine.")
152 (license (list asl2.0 lgpl3+)))); either asl or lgpl.
153
bfe26beb
RW
154(define-public lrdf
155 (package
156 (name "lrdf")
384efbc2 157 (version "0.6.1")
bfe26beb 158 (source (origin
d212ed2f
RW
159 (method git-fetch)
160 (uri (git-reference
161 (url "https://github.com/swh/LRDF.git")
162 (commit (string-append "v" version))))
163 (file-name (git-file-name name version))
bfe26beb
RW
164 (sha256
165 (base32
d212ed2f 166 "00wzkfb8y0aqd519ypz067cq099dpc89w69zw8ln39vl6f9x2pd4"))))
bfe26beb
RW
167 (build-system gnu-build-system)
168 (arguments
dc1d3cde
KK
169 '(#:phases
170 (modify-phases %standard-phases
dc1d3cde
KK
171 (add-after 'unpack 'remove-out-of-tree-references
172 (lambda _
dc1d3cde
KK
173 ;; remove_test depends on an out-of-tree RDF file
174 (substitute* "examples/Makefile.am"
175 (("instances_test remove_test") "instances_test")
176 (("\\$\\(TESTS\\) remove_test") "$(TESTS)"))
4f27a333 177 #t))
a69cc70d
RW
178 ;; The default bootstrap phase executes autogen.sh, which fails.
179 (replace 'bootstrap
180 (lambda _ (invoke "autoreconf" "-vif") #t)))))
bfe26beb
RW
181 (inputs
182 `(("raptor" ,raptor2)
183 ("cyrus-sasl" ,cyrus-sasl)
bfe26beb
RW
184 ("zlib" ,zlib)))
185 (native-inputs
186 `(("autoconf" ,autoconf)
187 ("automake" ,automake)
188 ("libtool" ,libtool)
189 ("pkg-config" ,pkg-config)))
190 (home-page "https://github.com/swh/LRDF")
191 (synopsis "Lightweight RDF library for accessing LADSPA plugin metadata")
192 (description
193 "LRDF is a library to make it easy to manipulate RDF files describing
194LADSPA plugins. It can also be used for general RDF manipulation. It can
195read RDF/XLM and N3 files and export N3 files, and it also has a light
e881752c 196taxonomic inference capability.")
bfe26beb
RW
197 (license gpl2)))
198
1634c042
AE
199(define-public rasqal
200 (package
201 (name "rasqal")
ca1071e1 202 (version "0.9.33")
1634c042
AE
203 (source (origin
204 (method url-fetch)
205 (uri (string-append "http://download.librdf.org/source/" name
206 "-" version ".tar.gz"))
207 (sha256
208 (base32
ca1071e1 209 "0z6rrwn4jsagvarg8d5zf0j352kjgi33py39jqd29gbhcnncj939"))))
1634c042
AE
210 (build-system gnu-build-system)
211 (native-inputs
212 `(("perl" ,perl)
213 ("perl-xml-dom" ,perl-xml-dom) ; for the tests
214 ("pkg-config" ,pkg-config)))
215 (inputs
216 `(("libgcrypt" ,libgcrypt)
217 ("libxml2" ,libxml2)
218 ("mpfr" ,mpfr)
219 ("pcre" ,pcre)
1634c042 220 ("util-linux" ,util-linux)))
85d83c3b
AE
221 (propagated-inputs
222 `(("raptor2" ,raptor2))) ; stipulated by rasqal.pc
1634c042
AE
223 (arguments
224 `(#:parallel-tests? #f
225 ; test failure reported upstream, see
226 ; http://bugs.librdf.org/mantis/view.php?id=571
227 #:tests? #f))
228 (home-page "http://librdf.org/rasqal/")
229 (synopsis "RDF query library")
230 (description "Rasqal is a C library that handles Resource Description
231Framework (RDF) query language syntaxes, query construction and execution
232of queries returning results as bindings, boolean, RDF graphs/triples or
233syntaxes. The supported query languages are SPARQL Query 1.0,
234SPARQL Query 1.1, SPARQL Update 1.1 (no executing) and the Experimental
235SPARQL extensions (LAQRS). Rasqal can write binding query results in the
236SPARQL XML, SPARQL JSON, CSV, TSV, HTML, ASCII tables, RDF/XML and
af6fce0f
AE
237Turtle/N3 and read them in SPARQL XML, RDF/XML and Turtle/N3.")
238 (license lgpl2.1+))) ; or any choice of gpl2+ or asl2.0
239
240(define-public redland
241 (package
242 (name "redland")
243 (version "1.0.17")
244 (source (origin
245 (method url-fetch)
246 (uri (string-append "http://download.librdf.org/source/" name
247 "-" version ".tar.gz"))
248 (sha256
249 (base32
250 "109n0kp39p966dpiasad2bb7q66rwbcb9avjvimw28chnpvlf66y"))))
251 (build-system gnu-build-system)
252 (native-inputs
253 `(("perl" ,perl) ; needed for installation
254 ("pkg-config" ,pkg-config)))
0390a520
AE
255 (propagated-inputs
256 `(("rasqal" ,rasqal))) ; in Requires.private field of .pc
af6fce0f 257 (inputs
0390a520 258 `(("bdb" ,bdb)))
af6fce0f
AE
259 (home-page "http://librdf.org/")
260 (synopsis "RDF library")
261 (description "The Redland RDF Library (librdf) provides the RDF API
262and triple stores.")
1634c042
AE
263 (license lgpl2.1+))) ; or any choice of gpl2+ or asl2.0
264
f65784d5
RW
265(define-public serd
266 (package
267 (name "serd")
3416f65f 268 (version "0.30.0")
f65784d5
RW
269 (source (origin
270 (method url-fetch)
0d0252e4 271 (uri (string-append "https://download.drobilla.net/serd-"
7421467a 272 version ".tar.bz2"))
f65784d5
RW
273 (sha256
274 (base32
3416f65f 275 "1yyfyvc6kwagi5w43ljp1bbjdvdpmgpds74lmjxycm91bkx0xyvf"))))
f65784d5 276 (build-system waf-build-system)
90ea9863
TUBK
277 (arguments
278 `(#:tests? #f ; no check target
279 #:phases
280 (modify-phases %standard-phases
281 (add-before
282 'configure 'set-ldflags
283 (lambda* (#:key outputs #:allow-other-keys)
284 (setenv "LDFLAGS"
285 (string-append "-Wl,-rpath="
a4197ad2
MW
286 (assoc-ref outputs "out") "/lib"))
287 #t)))))
0d0252e4 288 (home-page "https://drobilla.net/software/serd/")
f65784d5
RW
289 (synopsis "Library for RDF syntax supporting Turtle and NTriples")
290 (description
291 "Serd is a lightweight C library for RDF syntax which supports reading
292and writing Turtle and NTriples. Serd is not intended to be a swiss-army
293knife of RDF syntax, but rather is suited to resource limited or performance
294critical applications (e.g. converting many gigabytes of NTriples to Turtle),
295or situations where a simple reader/writer with minimal dependencies is
296ideal (e.g. in LV2 implementations or embedded applications).")
297 (license isc)))
298
a035e6ff
RW
299(define-public sord
300 (package
301 (name "sord")
ad2f7b8c 302 (version "0.16.2")
a035e6ff
RW
303 (source (origin
304 (method url-fetch)
0d0252e4 305 (uri (string-append "https://download.drobilla.net/sord-"
a1d419c7 306 version ".tar.bz2"))
a035e6ff
RW
307 (sha256
308 (base32
ad2f7b8c 309 "13fshxwpipjrvsah1m2jw1kf022z2q5vpw24bzcznglgvms13x89"))))
a035e6ff 310 (build-system waf-build-system)
7e81a761 311 (arguments
ef421791 312 `(#:tests? #f ; no check target
7e81a761
TUBK
313 #:phases
314 (modify-phases %standard-phases
315 (add-before
316 'configure 'set-ldflags
317 (lambda* (#:key outputs #:allow-other-keys)
318 (setenv "LDFLAGS"
319 (string-append "-Wl,-rpath="
c2f93fc0
MW
320 (assoc-ref outputs "out") "/lib"))
321 #t)))))
a035e6ff
RW
322 (native-inputs
323 `(("pkg-config" ,pkg-config)))
ef421791
TGR
324 (propagated-inputs
325 `(("serd" ,serd))) ; required by sord-0.pc
0d0252e4 326 (home-page "https://drobilla.net/software/sord/")
a035e6ff
RW
327 (synopsis "C library for storing RDF data in memory")
328 (description
329 "Sord is a lightweight C library for storing RDF data in memory.")
330 (license isc)))
331
4bb49be2
AE
332(define-public python-rdflib
333 (package
334 (name "python-rdflib")
aba36819 335 (version "4.2.2")
4bb49be2
AE
336 (source
337 (origin
338 (method url-fetch)
4255818d 339 (uri (pypi-uri "rdflib" version))
4bb49be2 340 (sha256
4255818d
RW
341 (base32
342 "0398c714znnhaa2x7v51b269hk20iz073knq2mvmqp2ma92z27fs"))))
4bb49be2 343 (build-system python-build-system)
ee472241 344 (arguments
aba36819 345 '(;; FIXME: Three test failures. Should be fixed next release.
ee472241
MB
346 #:tests? #f))
347 ;; #:phases
348 ;; (modify-phases %standard-phases
349 ;; (replace 'check
350 ;; (lambda _
351 ;; ;; Run tests from the build directory so python3 only
352 ;; ;; sees the installed 2to3 version.
4255818d 353 ;; (invoke "nosetests" "--where=./build/src"))))))
ee472241
MB
354 (native-inputs
355 `(("python-nose" ,python-nose)))
f22efa01 356 (propagated-inputs
4219f48f 357 `(("python-html5lib" ,python-html5lib)
4bb49be2 358 ("python-isodate" ,python-isodate)
f3b98f4f 359 ("python-pyparsing" ,python-pyparsing)))
4bb49be2 360 (home-page "https://github.com/RDFLib/rdflib")
4255818d 361 (synopsis "Python RDF library")
4bb49be2
AE
362 (description
363 "RDFLib is a Python library for working with RDF, a simple yet
364powerful language for representing information.")
166191b3 365 (license (non-copyleft "file://LICENSE"
4255818d 366 "See LICENSE in the distribution."))))
da71f145
AE
367
368(define-public python2-rdflib
ee472241 369 (package-with-python2 python-rdflib))