Objective-C wrapper for the Redland RDF libraries https://github.com/p2/Redland-ObjC

Pascal Pfiffner c4f173fcea More documentation fixes 10 years ago
Classes c4f173fcea More documentation fixes 10 years ago
English.lproj e62643a499 Import of version 1.0.2 11 years ago
Redland-source b133e05dad Some cleanup 10 years ago
Redland.xcodeproj 33a395a54d Do actually compile 10 years ago
Tests 405b05eccb Add header switch for the precompiler 10 years ago
.gitignore 7c764bc3ca Add standard Doxyfile 11 years ago
AppledocSettings.plist 7bb0ab34b1 While we're at it -- ditch Doxygen and move to appledoc. Beautiful! 10 years ago
ChangeLog.txt b133e05dad Some cleanup 10 years ago
Info.plist e62643a499 Import of version 1.0.2 11 years ago
LICENSE.txt e62643a499 Import of version 1.0.2 11 years ago
Makefile e62643a499 Import of version 1.0.2 11 years ago
NOTICE.txt e62643a499 Import of version 1.0.2 11 years ago
README.md 33a395a54d Do actually compile 10 years ago
Redland-ObjC.h e62643a499 Import of version 1.0.2 11 years ago
Redland_Prefix.pch a76b59d906 Update WrappedObject, World and URI 11 years ago
Tests-Info.plist e62643a499 Import of version 1.0.2 11 years ago
rdf-schema.rdf e62643a499 Import of version 1.0.2 11 years ago
rdf-syntax.rdf e62643a499 Import of version 1.0.2 11 years ago
version.plist e62643a499 Import of version 1.0.2 11 years ago

README.md

The project is heavily WIP!

STATUS:
[x]  C libraries cross-compile successfully (armv6, armv7)
[x]  Mac build succeeds
[x]  Mac unit tests succeed
[x]  iOS build succeeds
[~]  iOS unit tests succeed (1 exception remaining)
[ ]  Deprecated librdf calls have been replaced
[ ]  Mac framework has been used in a sample application
[x]  iOS framework has been used in a sample app

Redland Objective-C RDF Wrapper

This projects is a resurrection of Rene Puls' Objective-C wrapper for the Redland C libraries for Mac, with the addition of a static library target suitable for iOS. The code now requires Automatic Reference Counting (ARC) to be enabled.

Building the C libraries

There is a Python-script that downloads and (cross-)compiles raptor2, rasqal and librdf, the components you need. The script needs you to have Xcode 4.4 or 4.5 and the iOS SDK 5.1 installed, and make sure you install the command line tools from within Xcode. Then just choose the Build C Library target and hit Run. Alternatively, open the Terminal and execute the script manually:

$ cd Redland-ObjC/Redland-source
$ ./redland.py

Compiling requires pkg-config which you can most easily install via Homebrew:

$ brew install pkg-config

Using the Framework

[more to come]

Building the Documentation

The code is documented using appledoc. If you want to compile the documentation it's best if you grab appledoc from GitHub, build and install it and then run it against the code:

$ git clone git://github.com/tomaz/appledoc.git
$ cd appledoc
$ ./install-appledoc.sh -b /usr/local/bin -t ~/Library/Application\ Support/appledoc
$ cd ..
$ appledoc .

NOTE: appledoc currently does not support the ///< token, so some property documentations are shifted and thus off!

Note that this assumes that you have write permissions for /usr/local, if not you may need to issue this command as root with sudo. The documentation is now available from within Xcode.