Пример #1
0
 def __repr__(self):
     return 'Label("{0}", "{1}", "{2}", id={3})'.format(
         smart_encode(self.lang),
         smart_encode(self.type),
         smart_encode(self.literal),
         smart_encode(self.id)
     )
Пример #2
0
 def __repr__(self):
     return 'Concept("%s")' % (smart_encode(self.name))
Пример #3
0
 def __repr__(self):
     return "Relation('{0}', '{1}')".format(
         smart_encode(self.scheme.id),
         smart_encode(self.name)
     )
Пример #4
0
 def __repr__(self):
     return 'ConceptScheme("%s", ("%s", "%s"))' % (
         smart_encode(self.name),
         smart_encode(self.ns_prefix),
         smart_encode(self.ns_url)
     )