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}."
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: 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)
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: prop = stylize_property(get_uri(self.name_space, self.property_id)) return f"Property {prop} was deleted."
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}."
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}"
def text_description(self) -> str: prop = stylize_property(self.property_id) from_str = stylize_property(self.from_property_id) to_str = stylize_property(self.to_property_id) return f"Property {prop} used to be a type of {from_str}, is now a type of {to_str}"
def text_description(self) -> str: class_ = stylize_property(get_uri(self.name_space, self.class_id)) return f"Class {class_} was deleted."
def text_description(self) -> str: prop = stylize_property(get_uri(self.name_space, self.property_id)) return f"{DeleteProperty.__name__} {prop}"
def text_description(self) -> str: prop = stylize_property(self.property_id) range_str = stylize_property(self.range_id) return f"Property {prop} used to be a type of {range_str}, no longer."