veudastore standalone rdf store
Dec 28th, 2004 by Phil Dawes
I keep meaning to perfect these packages, but it doesnt happen so here’s another ‘release-early’ package.
Veudastore is a standalone version of the mysql RDF backend store that runs the veudas knowledge manager. It can be downloaded from the veudas sf project page.
From the readme:
INSTALL:
——–- Install mysql and create an empty database
USAGE:
——import veudastore
ctx = veudastore.init()
ctx.setDatabaseConnectParams(USER,PASSWD,DB,HOST)
ctx.createTables()ctx.importFromURISource(sourceuri, graphuri)
q = “”"
prefix foaf: <http://xmlns.com/foaf/0.1/>
prefix wnet: <http://xmlns.com/wordnet/1.6/>
select ?p
where (?p foaf:nick “danbri”)
(?p rdf:type wnet:Person)
“”")cols, rows = ctx.querySPARQL(q)
for p, in rows:
. print p

Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment