fix name error
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 07 Jul 2009 11:36:18 +0200
changeset 2295 4bad4fb08f2e
parent 2294 e846aa2824dd
child 2296 f1b74a34da40
fix name error
web/views/owl.py
--- a/web/views/owl.py	Mon Jul 06 20:11:21 2009 -0700
+++ b/web/views/owl.py	Tue Jul 07 11:36:18 2009 +0200
@@ -128,11 +128,10 @@
             if not self.should_display_rschema(rschema):
                 continue
             for oeschema in targetschemas:
-                label = rschema.type
                 self.w(u'''<owl:ObjectProperty rdf:ID="%s">
  <rdfs:domain rdf:resource="#%s"/>
  <rdfs:range rdf:resource="#%s"/>
-</owl:ObjectProperty>''' % (label, eschema, oeschema.type))
+</owl:ObjectProperty>''' % (rschema, eschema, oeschema.type))
 
     def visit_property_object_schema(self, eschema):
         for rschema, aschema in eschema.attribute_definitions():
@@ -141,7 +140,7 @@
             self.w(u'''<owl:DatatypeProperty rdf:ID="%s">
   <rdfs:domain rdf:resource="#%s"/>
   <rdfs:range rdf:resource="%s"/>
-</owl:DatatypeProperty>''' % (aname, eschema, OWL_TYPE_MAP[aschema.type]))
+</owl:DatatypeProperty>''' % (rschema, eschema, OWL_TYPE_MAP[aschema.type]))
 
 
 class OWLABOXView(EntityView):