gnu: soprano: Upgrade to 2.9.4.
[jackhill/guix/guix.git] / gnu / packages / rdf.scm
CommitLineData
c0798488 1;;; GNU Guix --- Functional package management for GNU
0e6260a4 2;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
c0798488
AE
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
07cec9a5 19(define-module (gnu packages rdf)
8a79ec41 20 #:use-module ((guix licenses) #:select (lgpl2.0+ lgpl2.1 lgpl2.1+))
c0798488
AE
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix build-system cmake)
2c4e4d25 24 #:use-module (guix build-system gnu)
7051054a 25 #:use-module (gnu packages)
8a79ec41 26 #:use-module (gnu packages boost)
2c4e4d25
AE
27 #:use-module (gnu packages compression)
28 #:use-module (gnu packages curl)
5d17cf8e 29 #:use-module (gnu packages doxygen)
c0798488 30 #:use-module (gnu packages pkg-config)
2c4e4d25
AE
31 #:use-module (gnu packages qt)
32 #:use-module (gnu packages xml))
33
34(define-public raptor2
35 (package
36 (name "raptor2")
37 (version "2.0.11")
38 (source (origin
39 (method url-fetch)
40 (uri (string-append "http://download.librdf.org/source/" name
41 "-" version ".tar.gz"))
42 (sha256
43 (base32
44 "1z3i4fs32wcq5y9l7gdn7262h6r0ppdpvx4gw6jgsym8z083w0xf"))))
45 (build-system gnu-build-system)
46 (inputs
47 `(("curl" ,curl)
48 ("libxml2" ,libxml2)
49 ("libxslt" ,libxslt)
50 ("zlib" ,zlib)))
0e6260a4
AE
51 (arguments
52 `(#:parallel-tests? #f))
2c4e4d25
AE
53 (home-page "http://librdf.org/raptor/")
54 (synopsis "RDF syntax library")
55 (description "Raptor is a C library providing a set of parsers and
56serialisers that generate Resource Description Framework (RDF) triples
57by parsing syntaxes or serialise the triples into a syntax. The supported
58parsing syntaxes are RDF/XML, N-Quads, N-Triples 1.0 and 1.1, TRiG,
59Turtle 2008 and 2013, RDFa 1.0 and 1.1, RSS tag soup including all versions
60of RSS, Atom 1.0 and 0.3, GRDDL and microformats for HTML, XHTML and
61XML. The serialising syntaxes are RDF/XML (regular, abbreviated, XMP),
62Turtle 2013, N-Quads, N-Triples 1.1, Atom 1.0, RSS 1.0, GraphViz DOT,
63HTML and JSON.")
64 (license lgpl2.1+))) ; or any choice of gpl2+ or asl2.0
c0798488 65
8a79ec41
AE
66(define-public clucene
67 (package
68 (name "clucene")
69 (version "2.3.3.4")
70 (source (origin
71 (method url-fetch)
72 (uri (string-append "mirror://sourceforge/clucene/"
73 "clucene-core-unstable/2.3/clucene-core-"
74 version ".tar.gz"))
75 (sha256
76 (base32
7051054a
AE
77 "1arffdwivig88kkx685pldr784njm0249k0rb1f1plwavlrw9zfx"))
78 (patches (list (search-patch "clucene-pkgconfig.patch")))))
8a79ec41
AE
79 (build-system cmake-build-system)
80 (inputs
81 `(("boost" ,boost) ; could also use bundled copy
82 ("zlib" ,zlib)))
83 (arguments
84 `(#:test-target "cl_test"
85 #:tests? #f)) ; Tests do not compile, as TestIndexSearcher.cpp uses
86 ; undeclared usleep. After fixing this, one needs to run
87 ; "make test" in addition to "make cl_test", then
88 ; SimpleTest fails.
89 ; Notice that the library appears to be unmaintained
90 ; with no reaction to bug reports.
91 (home-page "http://clucene.sourceforge.net/")
92 (synopsis "C text indexing and searching library")
93 (description "CLucene is a high-performance, scalable, cross platform,
94full-featured indexing and searching API. It is a port of the very popular
95Java Lucene text search engine API to C++.")
96 (license lgpl2.1)))
97
c0798488
AE
98(define-public soprano
99 (package
100 (name "soprano")
c69fe830 101 (version "2.9.4")
c0798488
AE
102 (source (origin
103 (method url-fetch)
104 (uri (string-append "mirror://sourceforge/soprano/Soprano/"
105 version "/"
106 "soprano-" version ".tar.bz2"))
107 (sha256
108 (base32
c69fe830 109 "1rg0x7yg0a1cbnxz7kqk52580wla8jbnj4d4r3j7l7g7ajyny1k4"))))
c0798488 110 (build-system cmake-build-system)
c69fe830 111 ;; FIXME: Add optional dependencies: Redland, odbci.
c4c4cc05 112 (native-inputs
5d17cf8e
AE
113 `(("doxygen" ,doxygen)
114 ("pkg-config" ,pkg-config)))
2a51db7d 115 (inputs
c69fe830
AE
116 `(("clucene" ,clucene) ; is not yet "fully found", but sufficiently
117 ; so to allow for compilation...
118 ("qt" ,qt-4)
2a51db7d 119 ("raptor2" ,raptor2)))
c0798488
AE
120 (home-page "http://soprano.sourceforge.net/")
121 (synopsis "RDF data library for Qt")
122 (description "Soprano (formerly known as QRDF) is a library which
123provides a highly usable object-oriented C++/Qt4 framework for RDF data. It
124uses different RDF storage solutions as backends through a simple plugin
125system.")
126 (license lgpl2.0+)))