def text_description(self) -> str:
     prop = stylize_property(get_uri(self.name_space, self.property_id))
     from_str = stylize_property(
         get_uri(self.name_space, self.from_property_id))
     to_str = stylize_property(get_uri(self.name_space,
                                       self.to_property_id))
     return f"Property {prop} used to be a type of {from_str}, is now a type of {to_str}."
Пример #2
0
 def text_description(self) -> str:
     from_prop = stylize_property(
         get_uri(self.from_name_space, self.from_name))
     to_prop = stylize_property(get_uri(self.to_name_space, self.to_name))
     from_class = stylize_class(
         get_uri(self.from_name_space, self.from_class))
     to_class = stylize_class(get_uri(self.to_name_space, self.to_class))
     return f"Property {from_prop} (ranging over {from_class}) was renamed to {to_prop} (ranging over {to_class})."
    def __init__(self, data: ChangePropertyRange):
        self.data = data

        self.prop_uri = get_uri(self.data.prop_name_space, self.data.prop_name)
        self.from_uri = get_uri(self.data.from_name_space,
                                self.data.from_range)
        self.to_uri = get_uri(self.data.to_name_space, self.data.to_range)

        self.prop_str = stylize_property(self.prop_uri)
        self.from_str = stylize_class(self.from_uri)
        self.to_str = stylize_class(self.to_uri)
Пример #4
0
 def __init__(self, data: RenameProperty):
     self.data = data
     self.from_uri = get_uri(self.data.from_name_space, self.data.from_name)
     self.to_uri = get_uri(self.data.to_name_space, self.data.to_name)
     self.from_str = stylize_property(self.from_uri)
     self.to_str = stylize_property(self.to_uri)
Пример #5
0
 def __init__(self, data: RenameClass):
     self.data = data
     self.from_uri = get_uri(data.from_name_space, data.from_name)
     self.to_uri = get_uri(data.to_name_space, data.to_name)
     self.from_str = stylize_class(self.from_uri)
     self.to_str = stylize_class(self.to_uri)
Пример #6
0
 def text_description(self) -> str:
     from_class = stylize_class(get_uri(self.from_name_space, self.from_name))
     to_class = stylize_class(get_uri(self.to_name_space, self.to_name))
     return f"Class {from_class} was renamed to {to_class}"
Пример #7
0
 def text_description(self) -> str:
     prop = stylize_property(get_uri(self.name_space, self.property_id))
     class_str = stylize_class(get_uri(self.name_space, self.class_id))
     return f"Property {prop} (ranging over {class_str}) changed cardinality to {self.to_cardinality.text_description()}."
Пример #8
0
 def __init__(self, data: DeleteProperty):
     self.data = data
     self.uri = get_uri(self.data.name_space, self.data.property_id)
Пример #9
0
 def text_description(self) -> str:
     prop = stylize_property(get_uri(self.name_space, self.property_id))
     return f"Property {prop} was deleted."
Пример #10
0
 def text_description(self) -> str:
     prop = stylize_property(get_uri(self.name_space, self.property_id))
     range_str = stylize_property(get_uri(self.range_name_space,
                                          self.range))
     return f"Property {prop} is now a type of {range_str}."
Пример #11
0
 def text_description(self) -> str:
     class_str = stylize_class(get_uri(self.name_space, self.class_id))
     return f"Class {class_str} was created."
Пример #12
0
 def text_description(self) -> str:
     class_str = stylize_class(get_uri(self.name_space, self.class_id))
     from_str = stylize_class(get_uri(self.name_space, self.from_class_id))
     to_str = stylize_class(get_uri(self.name_space, self.to_class_id))
     return f"Class {class_str} used to be a type of {from_str}, is now a type of {to_str}."
 def text_description(self) -> str:
     prop = stylize_property(get_uri(self.prop_name_space, self.prop_name))
     from_range = stylize_class(
         get_uri(self.from_name_space, self.from_range))
     to_range = stylize_class(get_uri(self.to_name_space, self.to_range))
     return f"Range of property {prop} was changed from {from_range} to {to_range}"
Пример #14
0
 def __init__(self, data: DeleteClass):
     self.data = data
     self.uri = get_uri(self.data.name_space, self.data.class_id)
Пример #15
0
 def text_description(self) -> str:
     class_ = stylize_property(get_uri(self.name_space, self.class_id))
     return f"Class {class_} was deleted."
Пример #16
0
 def text_description(self) -> str:
     prop = stylize_property(get_uri(self.name_space, self.property_id))
     return f"{DeleteProperty.__name__} {prop}"