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