Skip to content

Instantly share code, notes, and snippets.

@dajobe
Last active August 29, 2015 13:59
Show Gist options
  • Save dajobe/10894019 to your computer and use it in GitHub Desktop.
Save dajobe/10894019 to your computer and use it in GitHub Desktop.
rdfproc print
$ mkdir x
$ cd x
$ rdfproc test parse http://librdf.org/NEWS.rdf
rdfproc: Parsing URI http://librdf.org/NEWS.rdf with default parser
$ ls -l test*
-rw-r--r-- 1 dajobe dajobe 225280 Apr 16 08:26 test-po2s.db
-rw-r--r-- 1 dajobe dajobe 163840 Apr 16 08:26 test-so2p.db
-rw-r--r-- 1 dajobe dajobe 262144 Apr 16 08:26 test-sp2o.db
$ rdfproc test print | head
[[
_:r1397662015r30134r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> <http://librdf.org/NEWS.html#D2013-12-28-V1.0.17>.
_:r1397662015r30134r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> <http://librdf.org/NEWS.html#D2012-12-29-V1.0.16>.
_:r1397662015r30134r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> <http://librdf.org/NEWS.html#D2011-12-03-V1.0.15>.
_:r1397662015r30134r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_4> <http://librdf.org/NEWS.html#D2011-07-23-V1.0.14>.
_:r1397662015r30134r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_5> <http://librdf.org/NEWS.html#D2011-02-01-V1.0.13>.
_:r1397662015r30134r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_6> <http://librdf.org/NEWS.html#D2010-10-13-V1.0.12>.
_:r1397662015r30134r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_7> <http://librdf.org/NEWS.html#D2010-09-25-V1.0.11>.
_:r1397662015r30134r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_8> <http://librdf.org/NEWS.html#D2009-12-16-V1.0.10>.
_:r1397662015r30134r1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_9> <http://librdf.org/NEWS.html#D2009-04-12-V1.0.9>.
$ rdfproc -s help
rdfproc: Valid storage names are:
hashes Indexed hashes
trees Balanced trees
memory In memory lists
file Local file based store
uri URI store (read-only)
sqlite SQLite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment