コード例 #1
0
ファイル: label.py プロジェクト: pitcons/amarak
 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
ファイル: concept.py プロジェクト: pitcons/amarak
 def __repr__(self):
     return 'Concept("%s")' % (smart_encode(self.name))
コード例 #3
0
ファイル: relation.py プロジェクト: pitcons/amarak
 def __repr__(self):
     return "Relation('{0}', '{1}')".format(
         smart_encode(self.scheme.id),
         smart_encode(self.name)
     )
コード例 #4
0
ファイル: concept_scheme.py プロジェクト: pitcons/amarak
 def __repr__(self):
     return 'ConceptScheme("%s", ("%s", "%s"))' % (
         smart_encode(self.name),
         smart_encode(self.ns_prefix),
         smart_encode(self.ns_url)
     )