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)
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)
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}"
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()}."
def text_description(self) -> str: class_str = stylize_class(get_uri(self.name_space, self.class_id)) return f"Class {class_str} was created."
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}"