Skip to content

Commit 0b8c184

Browse files
committed
Added "get_property()" class method to the ContainsMetadata class
1 parent 3034592 commit 0b8c184

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

fairgraph/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ def __setattr__(self, name, value):
157157
prop.check_value(value)
158158
super().__setattr__(name, value)
159159

160+
@classmethod
161+
def get_property(cls, name):
162+
return cls._property_lookup[name]
163+
160164
def to_jsonld(
161165
self,
162166
normalized: bool = True,

0 commit comments

Comments
 (0)