May 2009


Installing RDFlib on osX

RDFlib is a Python library for working with RDF, a simple yet powerful language for representing information.


Installing it is easier than what you might think. I googled it and it seems that several people had problems (missing components mainly) with  this.. but in my case it was easy-beasy (well you need to have easy-install):

[mac]@ganimede:~/Code/python/_libs/rdflib-2.4.0>sudo easy_install -U "rdflib>=2.4"
Searching for rdflib>=2.4
Best match: rdflib 2.4.1
Processing rdflib-2.4.1-py2.5-macosx-10.5-i386.egg
Adding rdflib 2.4.1 to easy-install.pth file
Installing rdfpipe script to /usr/local/bin

Using /Library/Python/2.5/site-packages/rdflib-2.4.1-py2.5-macosx-10.5-i386.egg
Processing dependencies for rdflib>=2.4
Finished processing dependencies for rdflib>=2.4
Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import rdflib
>>> from rdflib.Graph import Graph
>>> g.parse("")
<Graph identifier=ooYPCFuN0 ()>
>>> len(g)


Cite this blog post:

Michele Pasin. Installing RDFlib on osX. Blog post on Published on May 7, 2009.

Comments via Github:

See also: