Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix of http://bugs.librdf.org/mantis/view.php?id=626 build bug #11

Open
wants to merge 1,210 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1210 commits
Select commit Hold shift + click to select a range
de63ead
fix
vporton Jan 13, 2019
2293706
to/from Raptor
vporton Jan 13, 2019
6bb3a32
encode()
vporton Jan 13, 2019
0f12656
node equality
vporton Jan 13, 2019
353c4cf
some functions
vporton Jan 13, 2019
c90d0f4
some functions
vporton Jan 13, 2019
bac04f9
some functions
vporton Jan 13, 2019
092a9f2
some functions
vporton Jan 13, 2019
249fb54
some functions
vporton Jan 13, 2019
3085c85
is* properties
vporton Jan 13, 2019
23fe70c
some functions
vporton Jan 13, 2019
209f8cb
some functions
vporton Jan 13, 2019
8db5b01
some functions
vporton Jan 13, 2019
8f8ea4a
some functions
vporton Jan 13, 2019
067a2e4
from*
vporton Jan 13, 2019
7b271bd
redland/node.d implemented
vporton Jan 13, 2019
f52a53a
started work on rdf/redland/statement.d
vporton Jan 13, 2019
31cbb42
from/to Raptor
vporton Jan 13, 2019
7b3e30f
flags
vporton Jan 13, 2019
a33b75c
getting/setting nodes of an RDF statement
vporton Jan 13, 2019
2bb8ec9
isComplete
vporton Jan 13, 2019
19df074
print()
vporton Jan 13, 2019
260c761
equality comparison
vporton Jan 13, 2019
38ba29d
match
vporton Jan 13, 2019
b03b328
working
vporton Jan 13, 2019
8a95bd8
redland/statement.d implemented
vporton Jan 13, 2019
eae742a
started log.d
vporton Jan 14, 2019
99c8848
some properties
vporton Jan 14, 2019
7a1c94f
locator() property
vporton Jan 14, 2019
9f77378
redland/log.d implemented
vporton Jan 14, 2019
9576b53
removed a file from TODO list
vporton Jan 14, 2019
87e5a67
started work on iterator
vporton Jan 14, 2019
6cd69a2
iterator
vporton Jan 14, 2019
7558d8d
iterators implemented
vporton Jan 14, 2019
1c0ed0d
removed outdated TODO comment
vporton Jan 14, 2019
cbcaabf
redland/node_iterator.d implemented
vporton Jan 14, 2019
54b2b51
TODO comment
vporton Jan 14, 2019
d03b22c
renamed some properties
vporton Jan 14, 2019
c6ae838
removed a wrong TODO comment
vporton Jan 14, 2019
79b577b
working on statement streams
vporton Jan 14, 2019
5e25be5
working on streams
vporton Jan 14, 2019
10fa792
statement streams implemented
vporton Jan 14, 2019
04bfee7
started work on redland/query.d
vporton Jan 14, 2019
1211cbe
TODO comment
vporton Jan 14, 2019
47a54f2
working on redland/query.d
vporton Jan 14, 2019
b8754f8
redland/query.d implemented
vporton Jan 14, 2019
19e4e76
bug fix
vporton Jan 14, 2019
1f0157b
started work on redland/query_results.d
vporton Jan 14, 2019
8ca9fda
working on redland/query_results.d
vporton Jan 14, 2019
930d0b7
removed wrong code
vporton Jan 14, 2019
687457d
working
vporton Jan 14, 2019
3476a4e
currentCount
vporton Jan 14, 2019
6f3988b
several functions
vporton Jan 14, 2019
c8de4a8
some implemented
vporton Jan 14, 2019
6e8cd27
iterator done
vporton Jan 14, 2019
678ab97
redland/query_results.d implemented
vporton Jan 14, 2019
12ef2a0
dub.json reorganized
vporton Jan 14, 2019
5f89cb7
added some "in" contracts
vporton Jan 14, 2019
01f9c46
started work on Redland model
vporton Jan 15, 2019
c5f6306
TODO comment
vporton Jan 15, 2019
74460a0
enumerateModels()
vporton Jan 15, 2019
c616db5
models enumerate
vporton Jan 15, 2019
288c523
some functions
vporton Jan 15, 2019
4e7e065
add() functions
vporton Jan 15, 2019
4b3e138
remove() from model
vporton Jan 15, 2019
81d89b4
contains()
vporton Jan 15, 2019
8af3c94
arcs
vporton Jan 15, 2019
e13e9a2
asStream()
vporton Jan 15, 2019
896fb19
working
vporton Jan 15, 2019
5675577
getSources()
vporton Jan 15, 2019
e9383de
some functions
vporton Jan 15, 2019
1f8a458
some functions
vporton Jan 15, 2019
e4e36d9
some functions
vporton Jan 15, 2019
fe83d40
some functions
vporton Jan 15, 2019
89016b6
some functions
vporton Jan 15, 2019
ffac8ef
some functions
vporton Jan 15, 2019
ae99ac4
working
vporton Jan 15, 2019
90f0d01
load()
vporton Jan 15, 2019
2061a20
toString()
vporton Jan 15, 2019
46e2e2d
findInContext()
vporton Jan 15, 2019
21be13b
some entities
vporton Jan 15, 2019
c2254d6
get/set features
vporton Jan 15, 2019
72751ad
some functions
vporton Jan 15, 2019
8450b57
some function
vporton Jan 15, 2019
89ec4ef
Redland model implemented
vporton Jan 15, 2019
cd8a246
started work on storage
vporton Jan 15, 2019
e5c7f2c
TODO comment
vporton Jan 15, 2019
2840e79
enumerate storages
vporton Jan 15, 2019
3de1d32
bug fix
vporton Jan 15, 2019
21c1f6c
redland/storage.d implemented
vporton Jan 15, 2019
bb0594c
comment corrected
vporton Jan 15, 2019
01ad63f
TODO.txt
vporton Jan 16, 2019
92b779c
started work on Redland parser
vporton Jan 16, 2019
95c0bad
TODO comment
vporton Jan 16, 2019
be838f0
parserCheckName()
vporton Jan 16, 2019
c11ad21
working on parser.d
vporton Jan 16, 2019
947f773
working on parser
vporton Jan 16, 2019
dce3ada
working on Redland
vporton Jan 16, 2019
6ecea1a
working on redland/parser.d
vporton Jan 16, 2019
d682037
working
vporton Jan 16, 2019
0d3b84d
working on Redland parser
vporton Jan 16, 2019
dcb2ea4
working on Redland parser
vporton Jan 16, 2019
745f53f
working
vporton Jan 16, 2019
79da215
working on redland/parser.d
vporton Jan 16, 2019
5f48dfb
working on Redland parser
vporton Jan 16, 2019
8e886c0
redland/parser.d implemented
vporton Jan 16, 2019
f04b3b6
started work on Redland serializer
vporton Jan 16, 2019
0bfcf71
implemented
vporton Jan 16, 2019
6f0d3d6
working
vporton Jan 16, 2019
87dd9b2
some functions
vporton Jan 16, 2019
eddd6e2
some functions
vporton Jan 16, 2019
041cdbc
TODO.txt bug fix
vporton Jan 16, 2019
1c83a8b
TODO.txt bug fix
vporton Jan 16, 2019
276da62
bug
vporton Jan 16, 2019
652296b
get back
vporton Jan 16, 2019
e661db6
constants unittest
vporton Jan 16, 2019
84b74df
count_test.adb rewritten in D
vporton Jan 16, 2019
ee1647d
a unittest added, causes segfault
vporton Jan 17, 2019
6119672
compiled, but tests do not pass
vporton Jan 17, 2019
81436f9
bug fix
vporton Jan 17, 2019
a703e65
empty stream unittest
vporton Jan 17, 2019
6e7b87c
added a unittest (does not pass)
vporton Jan 17, 2019
55c7451
comment
vporton Jan 17, 2019
57fd83e
some source improvement
vporton Jan 17, 2019
ab833a8
bug fix
vporton Jan 18, 2019
d820518
removed debug code
vporton Jan 18, 2019
3b35652
more unittest (does not pass)
vporton Jan 18, 2019
8709cd8
bug fix
vporton Jan 18, 2019
f7cd3ad
source made a little simpler
vporton Jan 18, 2019
875995b
removed a debug aid
vporton Jan 18, 2019
bed9bdf
better comment
vporton Jan 18, 2019
428abaf
source code spacing
vporton Jan 19, 2019
a6a332a
removed an outdated TODO comment
vporton Jan 19, 2019
ddb5efa
added comments
vporton Jan 19, 2019
e3519df
new unittest
vporton Jan 19, 2019
51e39ef
comment
vporton Jan 19, 2019
4e49e98
removed references to unnecessary test files
vporton Jan 19, 2019
a5fc6e0
removed ref to special_test.adb
vporton Jan 19, 2019
d3dbd75
removed an outdated TODO comment
vporton Jan 19, 2019
917c060
statement unittest (does not pass)
vporton Jan 19, 2019
b9fa430
bug fix
vporton Jan 19, 2019
e19c109
stream unittest
vporton Jan 19, 2019
dceac30
more unittests
vporton Jan 19, 2019
a18d644
a unittest does not pass, seems error in libraptor
vporton Jan 19, 2019
bc85706
working on term unittest
vporton Jan 19, 2019
15c3bb2
misc
vporton Jan 19, 2019
b87ee40
stopped translating unittests Ada -> D
vporton Jan 19, 2019
44092f7
identifier casing
vporton Jan 19, 2019
f0574ee
removed unnecessary template argument
vporton Jan 19, 2019
545e197
removed extraneous extern(C)
vporton Jan 19, 2019
a0783cc
added "final" modifier where appropriate
vporton Jan 19, 2019
4f920e4
renamed some enum members
vporton Jan 19, 2019
5b72f47
removed unnecessary extern vars
vporton Jan 19, 2019
a9f3a7c
renamed Raptor constants
vporton Jan 19, 2019
8710e86
renamed Rasqal constants
vporton Jan 19, 2019
ca79dc6
added missing source file
vporton Jan 19, 2019
df5fde7
forgotten parentheses
vporton Jan 19, 2019
8927117
casing of identifiers
vporton Jan 20, 2019
3eee387
spacing
vporton Jan 20, 2019
89e9b12
spacing
vporton Jan 20, 2019
95b0435
method rename
vporton Jan 20, 2019
05fad39
UFCS
vporton Jan 20, 2019
6e72eb4
detecting Rasqal version
vporton Jan 20, 2019
60a3784
Version struct
vporton Jan 20, 2019
202f689
Rasqal 0.9.33 support
vporton Jan 20, 2019
883aaed
QueryResults factory functions
vporton Jan 20, 2019
26a6da3
changed casing of an enum
vporton Jan 20, 2019
841bee5
changed casing of an enum
vporton Jan 20, 2019
1587906
changed casing of an enum
vporton Jan 20, 2019
5a9e9e3
changed casing of several enums
vporton Jan 20, 2019
8d057a9
casing of some enums
vporton Jan 20, 2019
b908e2e
casing of some enums
vporton Jan 20, 2019
1591c9f
casing of enums corrected
vporton Jan 20, 2019
ae43d22
corrected an ID
vporton Jan 20, 2019
58f81d4
casing of yet enums
vporton Jan 20, 2019
c8ebe0b
source spacing
vporton Jan 20, 2019
048d17b
yet enum casing
vporton Jan 20, 2019
19e26f4
a little more efficient code
vporton Jan 20, 2019
294d261
source spacing
vporton Jan 20, 2019
4bc5bd3
source spacing
vporton Jan 20, 2019
df565f5
replaced a deprecated C function
vporton Jan 20, 2019
cddf330
removed outdated TODO comment
vporton Jan 20, 2019
e5448bb
some functions implemented
vporton Jan 20, 2019
d455aa3
removed an outdated TODO comment
vporton Jan 20, 2019
90987e1
removed an outdated TODO comment
vporton Jan 20, 2019
1feabfc
removed unnecessary idup
vporton Jan 20, 2019
feea9b4
removed an outdated TODO comment
vporton Jan 20, 2019
0db5bea
code reworked
vporton Jan 20, 2019
5d90f14
finished implementing Rasqal features iterator
vporton Jan 20, 2019
358db12
comments
vporton Jan 20, 2019
46dbe18
removed a nonsensical TODO comment
vporton Jan 20, 2019
3ebc337
removed the word "TODO" from a comment
vporton Jan 20, 2019
a775fcb
a function parameter renamed
vporton Jan 20, 2019
cc756c2
FIXME comment removed
vporton Jan 20, 2019
1a74588
Rasqal log handler
vporton Jan 20, 2019
47da150
Rasqal warning level
vporton Jan 20, 2019
d9aaf16
guessing format name
vporton Jan 20, 2019
c01ded0
removed FIXME comment
vporton Jan 20, 2019
4d8c3b0
removed "TODO" string from a comment
vporton Jan 20, 2019
55f9082
Turtle writing Raptor functions
vporton Jan 20, 2019
5dcf2cd
TODO comment replaced with doc comment
vporton Jan 20, 2019
ce73dc5
removed outdated TODO comment
vporton Jan 20, 2019
472d5f1
removed wrong TODO comment
vporton Jan 21, 2019
e4345b0
Raptor bug report
vporton Jan 21, 2019
b1332d4
derive IOStreamException from RDFException
vporton Jan 21, 2019
13c25ca
removed FIXME
vporton Jan 21, 2019
21e255f
missing function added
vporton Jan 21, 2019
1d07d47
bug fix
vporton Jan 21, 2019
fc13415
move some TODO comments to TODO.txt
vporton Jan 21, 2019
e939f06
missing function added
vporton Jan 21, 2019
859f4ee
a TODO item done
vporton Jan 21, 2019
f14d258
TODO item fulfilled
vporton Jan 21, 2019
7052146
removed FIXME comment
vporton Jan 22, 2019
705df30
bug fix
vporton Jan 22, 2019
3863eb2
correct behavior on memory alloc failures
vporton Jan 22, 2019
0b91aaf
removed TODO comment
vporton Jan 22, 2019
ad0bb2d
missing check in Ada
vporton Jan 22, 2019
492d90b
removed "TODO" from some comments
vporton Jan 22, 2019
04d1192
Ada bug fixes
vporton Jan 22, 2019
cf8684c
removed unnecessary unittest code
vporton Jan 22, 2019
5a316a1
working on TODOs
vporton Jan 22, 2019
e362e61
working on TODO comments
vporton Jan 22, 2019
2a8dfdb
misc source code corrections
vporton Jan 22, 2019
450a02c
added "const" modifiers (does not compile now!)
vporton Jan 22, 2019
25f0c50
simplified after rewrite
vporton Jan 22, 2019
5e4ff38
made it compilable again
vporton Jan 22, 2019
e0ba546
TODO.txt
vporton Jan 22, 2019
4d94c1a
working on adding "const" modifiers
vporton Jan 22, 2019
9c395ac
added "const" in Rasqal where appropriate
vporton Jan 22, 2019
41093e3
finished adding "const" modifier to structs
vporton Jan 22, 2019
4c4a56f
now will release
vporton Jan 22, 2019
5d942da
will send code to review
vporton Jan 22, 2019
6495e6c
TODO.txt
vporton Jan 22, 2019
30d9454
identifier casing
vporton Jan 23, 2019
fff39c8
installation of .d files
vporton Jan 29, 2019
c198555
if -> static if
vporton Feb 6, 2019
f71bcee
do not install main.d file
vporton Feb 9, 2019
a977e80
changed installation
vporton Feb 9, 2019
b61f41a
Ada2012 and D support
vporton Dec 7, 2019
3d30be4
conceptual bug fix
vporton Dec 8, 2019
f07e317
future compatibility
vporton Dec 8, 2019
163474e
bug workaround
vporton Dec 8, 2019
ae9624c
list container
vporton Dec 8, 2019
8d0849d
added a test (not checked)
vporton Dec 8, 2019
36e8459
compatibility with old version of Rasqal in Ubuntu
vporton Dec 8, 2019
a27994f
bug fix
vporton Dec 8, 2019
28ca152
bug fix
vporton Dec 12, 2019
e3ec019
equality/comparison bug fix
vporton Dec 12, 2019
3aafdce
bug fix
vporton Dec 12, 2019
3ddb6f0
bug fix
vporton Dec 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,16 @@ old
redland-bindings.spec
releases
stamp*
dlang/source/rdf/config.d
**/.Rproj.user
**/.Rhistory
**/*.RData
**/*.Rproj
**/*.o
**/*.so
**/.Rproj.user
**/redland-stamp
**/test-out.rdf
.Rproj.user
Makevars
ltmain.sh
14 changes: 7 additions & 7 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
#
# Copyright (C) 2000-2007, David Beckett http://www.dajobe.org/
# Copyright (C) 2000-2005 University of Bristol, UK http://www.bristol.ac.uk/
#
#
# This package is Free Software and part of Redland http://librdf.org/
#
#
# It is licensed under the following three licenses as alternatives:
# 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
# 2. GNU General Public License (GPL) V2 or any newer version
# 3. Apache License, V2.0 or any newer version
#
#
# You may not use this file except in compliance with at least one of
# the above three licenses.
#
#
# See LICENSE.html or LICENSE.txt at the top of this package for the
# complete terms and further detail along with the license texts for
# the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively.
#
#
#
#

# Subdirectories to build/install etc.
SUBDIRS=@SD@ data
# Subdirectories to use for distribution
DIST_SUBDIRS=data docs \
lua perl php python ruby
lua perl php python R ruby ada dlang

EXTRA_DIST=\
ChangeLog.1 ChangeLog.2 ChangeLog.3 ChangeLog.4 ChangeLog.5 \
Expand Down
27 changes: 27 additions & 0 deletions R/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM debian:testing

RUN apt-get update && apt-get install -y \
autoconf \
libtool \
python-dev \
librdf0-dev \
librdf0 \
libraptor2-dev \
librasqal3-dev \
librasqal3 \
swig3.0 \
git \
make \
vim \
r-recommended
RUN R --no-save -e 'options(repos = c(CRAN = "http://cran.rstudio.com")); install.packages(c("devtools", "testthat", "roxygen2", "knitr"))'
RUN cd /usr/bin && ln -s swig3.0 swig && cd /
RUN git clone https://github.com/ropensci/redland-bindings.git
RUN cd /redland-bindings && \
./autogen.sh --with-R && \
make
RUN echo "NEXT STEPS:" && \
echo "Build & run the container interactively and make should work:" && \
echo "$ docker build -t redland-bindings ." && \
echo "$ docker run --rm -it redland-bindings /bin/bash" && \
echo "cd /redland-bindings/R && make check-local"
83 changes: 83 additions & 0 deletions R/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# -*- Mode: Makefile -*-
#
# Makefile.am - automake file for R interface to Redland
#
# Copyright (C) 2014 Matthew Jones
# Derived from code that was originally copyrighted:
# Copyright (C) 2010 David Beckett - http://www.dajobe.org/
# And used under the terms of the Apache V2.0 license.
#
# This package is Free Software and part of Redland http://librdf.org/
#
# It is licensed under the following three licenses as alternatives:
# 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
# 2. GNU General Public License (GPL) V2 or any newer version
# 3. Apache License, V2.0 or any newer version
#
# You may not use this file except in compliance with at least one of
# the above three licenses.
#
# See LICENSE.html or LICENSE.txt at the top of this package for the
# full license terms.
#

AM_CPPFLAGS=@CPPFLAGS@ @LIBRDF_CPPFLAGS@ -DREDLAND_BINDINGS_VERSION=\"@VERSION@\"
AM_CFLAGS=@STANDARD_CFLAGS@ @LIBRDF_CPPFLAGS@

AM_LDFLAGS=@LIBRDF_LDFLAGS@

R=R

R_PACKAGE=redland
R_PACKAGE_SRC=redland/src
R_PACKAGE_BUILD=redland/tools
# If you are rebuilding the wrapper .Rd files for functions defined in
# the SWIG geneated R/redland.R script, you need to have the redland
# source dowloaded and built. Currently the source is available from
# https://github.com/dajobe/librdf. The source dir, for example could
# be "/home/smith/git/redland-1.0.17"
REDLAND_SRC=<enter-your-redland-source-dir-here>

R_CFLAGS=@R_CFLAGS@
R_LDFLAGS=@R_LDFLAGS@
R_SO_SUFFIX=so

SWIG_OUTPUTS=$(R_PACKAGE_SRC)/$(R_PACKAGE).c
SWIG_CRUFT=

TEST_CRUFT=redland/tools/test-out.rdf

EXTRA_DIST= $(SWIG_OUTPUTS)

CLEANFILES=$(R_PACKAGE_SRC)/$(R_PACKAGE).o $(R_PACKAGE)-stamp \
$(R_PACKAGE_SRC)/$(R_PACKAGE).$(R_SO_SUFFIX) $(R_PACKAGE_SRC)/util.o \
$(R_PACKAGE).bundle $(TEST_CRUFT)
MAINTAINERCLEANFILES=$(SWIG_OUTPUTS) $(SWIG_CRUFT) $(R_PACKAGE).c.orig

RUN=@REDLAND_RUN@

SWIG_OPTS=-I$(srcdir)

$(R_PACKAGE_SRC)/redland.c: @REDLAND_SWIG@
swig -r -namespace -v $(SWIG_OPTS) -module $(R_PACKAGE) -outdir $(R_PACKAGE)/R -o redland/src/redland.c Redland.i
cat Redland.R.in >> redland/R/redland.R
cat redland/R/redland.R | sed 's/RSWIG_createNewRef/SWIG_createNewRef/' > redland/R/redland.R.fix
mv redland/R/redland.R.fix redland/R/redland.R
cd $(R_PACKAGE) && $(R) --no-save -e 'library(devtools); library(roxygen2); document()'
cp ../data/dc.rdf $(R_PACKAGE)/inst/extdata
chmod 755 $(R_PACKAGE)/inst/extdata/dc.rdf

$(R_PACKAGE_SRC)/redland.so:
R CMD INSTALL --no-multiarch --with-keep.source $(R_PACKAGE)

test-R:
pwd
cd $(R_PACKAGE) && $(R) --no-save -e 'library(devtools); library(testthat); library(roxygen2); load_all(); test()'

librdfDocs:
$(R) --no-save -e 'source("createLibrdfDocs.R") ; mkDocs(redlandDocDir="$(REDLAND_SRC)/docs", verbose=FALSE, librdfDocsURL="http://librdf.org/docs")'

check-local: test-R

all: $(R_PACKAGE_SRC)/redland.c $(R_PACKAGE_SRC)/redland.so

60 changes: 60 additions & 0 deletions R/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
R bindings for Redland
======================

Bind the [Redland librdf library](http://librdf.org) into the R environment, and
expose the librdf API for R. This is accomplished through the use of SWIG to generate
wrapper code in R that links to the underlying C code from librdf and provides
R functions to call that code. This creates surrogate functions in R for all
of the librdf* functions. In addition, there is a higher-level API written
as a series of S4 classes in R that provide a simpler mechanism to access common
functions from librdf. This API mirrors the python class structure for
librdf-bindings.

The main R package is in the `redland` subdirectory, and is all that is required
to build and install the R package. This current directory contains the supporting
build infrastructure to build the SWIG bindings and prepare the `redland` package.
Most users will simply follow the build instruction in the `redland/README.md` file.

## Build notes

To build the package and generate new interfaces to librdf using SWIG, follow the instructions
below. Again, this is typically not needed by most R users, and is mainly available for
regenerating the R interface when new versions of librdf are released.

1. (Optional) Install docker and load the Dockerfile into a container and run it
```bash
docker build -t redland-bindings .
docker run --rm -it redland-bindings /bin/bash
```

2. Run `autoconf` and `make` to generate the shared libraries and compile the R package code, and startup R
```bash
cd /redland-bindings
./autogen.sh --with-R
make
cd R/redland
```

3. Load devtools in R and load the package
```r
> install.packages("devtools")
> library(devtools)
> load_all()
```

4. Run a redland command
```r
> library(redland)
> world <- librdf_new_world()
> world
An object of class "_p_librdf_world_s"
Slot "ref":
<pointer: 0x38bd290>
```

5. Run the existing test suite
```r
> install.packages("testthat")
> library(testthat)
> test()
```
3 changes: 3 additions & 0 deletions R/Redland.R.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
setClass('_p_librdf_query', contains = 'ExternalReference')
setClass('_p_librdf_query_results', contains = 'ExternalReference')

Loading