--- a/ontologies/specgen/libvocab.py Thu Oct 20 11:28:10 2011 +0200
+++ b/ontologies/specgen/libvocab.py Thu Oct 20 11:30:15 2011 +0200
@@ -253,11 +253,11 @@
self.filename = os.path.join(dir, f)
# print "ontology file name ", self.filename
if (self.filename.endswith(".n3")):
- self.graph.parse(self.filename, format="n3")
+ self.graph.parse(self.filename, publicID=uri, format="n3")
elif(self.filename.endswith(".rdf")):
- self.graph.parse(self.filename, format="xml")
+ self.graph.parse(self.filename, publicID=uri, format="xml")
else:
- self.graph.parse(self.filename)
+ self.graph.parse(self.filename, publicID=uri)
self.terms = []
self.uterms = []
# should also load translations here?