sqlite - Using Sqlite3 as Redland RDF storage on iOS with Redland-ObjC -


i'm trying use https://github.com/p2/redland-objc, compiles , runs fine on ios store rdf triples in ios sqlite3 database. however, documentation light, , redland-objc seems use redland storage in-memory hash table.

however, it's mentioned in readme of https://github.com/p2/redland-objc might want include libsqlite3 use persistent storage.

is possible ? if yes, how tell redland use ios's sqlite3 api ? (i don't see code in https://github.com/p2/redland-objc that).

thanks lot.

i haven't used wrapper myself , objective-c rusty, reading source suggests can following:

  • use [redlandstorage initwithfactoryname:@"sqlite" identifier:@"databasename.sqlite" options:@""] create new sqlite storage object.

  • use [redlandmodel initwithstorage:storage] create new model using storage backing store. (the default [redlandmodel init] creates model default in-memory hashes backing store.)

then whatever otherwise model.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -