[Pellet-users] Importing SPARQL in Jython?

Margaret A Mitchell itallow at u.washington.edu
Sun Apr 20 01:56:07 UTC 2008


Hello,

I'm trying to access Pellet with Python, so I'm using Jython, but it doesn't seem to be working very well...


This is what I have so far.

import sys
import java
from java import *

print "**********************"
print
print java.lang.System.getProperties()['java.class.path']
print
print sys.path
print
print "***********************"
print

import jena
from jena import sparql


It chokes on that last line.
'sparql' here is the 'sparql.java' file.

Any ideas?


Thanks,
M



More information about the Pellet-users mailing list