US8595621B2ActiveUtilityA1
Truncating character strings to generate a list of unique character strings
Est. expiryNov 13, 2028(~2.3 yrs left)· nominal 20-yr term from priority
G06F 40/103
49
PatentIndex Score
0
Cited by
17
References
21
Claims
Abstract
A method and system for truncating character strings in a computing environment. One implementation involves receiving a list including plural character strings, truncating one or more of the character strings to generate a display list of unique character strings based on determining a truncation location within each string by: for each character string, comparing the string and corresponding Uniform Resource Identifier (URI), if the string is different from the URI, then truncating the beginning of the string, otherwise if the string matches the URI, then truncating the end of the string.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A method of truncating character strings in a computing environment, comprising:
receiving a list including plural character strings; and
truncating one or more of the character strings to generate a display list of unique character strings based on determining a truncation location within each string by:
for each character string, comparing the string and corresponding Uniform Resource Identifier (URI), if the string is different from the URI, then truncating the beginning of the string, otherwise if the string matches the URI, then truncating the end of the string.
2. The method of claim 1 , wherein truncating each character string further includes determining the truncation location at the start of the string or at the end of the string or in between, for generating a display list of character strings where each string is unique in relation to other strings.
3. The method of claim 1 , wherein truncating each character string further includes truncating each of the character strings for generating a display list of unique truncated character strings.
4. The method of claim 3 , further comprising scoring each character in the string for similarity to the other characters in the display list and then finding the lowest scoring N characters where N is the length of the truncated string.
5. The method of claim 1 , further comprising displaying the character strings of the display list in context with each other on a user interface.
6. The method of claim 5 , wherein each displayed character string is unique in relation to the other displayed character strings, enabling a user to more easily differentiate between the displayed character string.
7. The method of claim 1 , wherein if centering the truncated part causes the truncated part to not reach either end of the string, then truncating at that location.
8. The method of claim 1 , wherein the computing environment comprises a service oriented architecture (SOA) computing environment including a service registry of character strings.
9. A computer program product for truncating character strings in a computing environment, comprising a non-transitory computer usable medium including a computer readable program including program instructions, wherein the computer readable program when executed on a computer causes the computer to:
receive a list including plural character strings;
truncate one or more of the character strings to generate a display list of unique character strings based on determining a truncation location within each string, including:
for each character string, comparing the string and corresponding Uniform Resource Identifier (URI), if the string is different from the URI, then truncating the beginning of the string, otherwise if the string matches the URI, then truncating the end of the string.
10. The computer program product of claim 9 , further including program instructions for scoring each character in the string for similarity to the other characters in the display list and then finding the lowest scoring N characters where N is the length of the truncated string.
11. The computer program product of claim 9 , further including program instructions for displaying the character strings of the display list in context with each other on a user interface, wherein each displayed character string is unique in relation to the other displayed character strings, enabling a user to more easily differentiate between the displayed character string.
12. The computer program product of claim 9 , wherein if centering the truncated part causes the truncated part to not reach either end of the string, then truncating at that location.
13. The computer program product of claim 9 , wherein the computing environment comprises a service oriented architecture (SOA) computing environment including a service registry of character strings.
14. A computer program product for truncating character strings in a computing environment, comprising a non-transitory computer usable medium including a computer readable program including program instructions, wherein the computer readable program when executed on a computer causes the computer to:
receive a list including plural character strings; and
truncate one or more of the character strings to generate a display list of unique character strings based on determining a truncation location within each string, including:
placing the original character strings to be displayed in an original list, creating a new END list from the strings by truncating each original string at the end of the string, scoring each truncated string in the END list for similarity to other strings in the END list, creating a new BEGIN list of strings by truncating each original string at the beginning of the string, scoring each truncated string in the BEGIN list for similarity to other strings in the BEGIN list, creating a new MIX list of strings from the best scoring truncated strings, scoring each string in the MIX list for similarity to other strings in the MIX list, summing the scores in each list to create a total score for each list, and selecting the list with the lowest score as the display list.
15. The computer program product of claim 14 , further including program instructions for scoring each character in the string for similarity to the other characters in the display list and then finding the lowest scoring N characters where N is the length of the truncated string.
16. The computer program product of claim 14 , further including program instructions for displaying the character strings of the display list in context with each other on a user interface, wherein each displayed character string is unique in relation to the other displayed character strings, enabling a user to more easily differentiate between the displayed character string.
17. A system for truncating character strings in a computing environment, comprising:
a hardware processor; and
a user interface device that uses the hardware processor for receiving a list including plural character strings, and truncating one or more of the character strings for generating a display list of unique character strings based on determining a truncation location within each string by:
for each character string, comparing the string and corresponding Uniform Resource Identifier (URI), if the string is different from the URI, then truncating the beginning of the string, otherwise if the string matches the URI, then truncating the end of the string;
wherein the user interface device uses the hardware processor to display the character strings of the display list in context with each other on a user interface.
18. The system of claim 17 , wherein the user interface device uses the hardware processor to score each character in the string for similarity to the other characters in the display list and then finding the lowest scoring N characters where N is the length of the truncated string.
19. The system of claim 17 , wherein each displayed character string is unique in relation to the other displayed character strings, enabling a user to more easily differentiate between the displayed character string.
20. The system of claim 17 , wherein determining truncation location within each string includes: placing the original character strings to be displayed in an original list, creating a new END list from the strings by truncating each original string at the end of the string, scoring each truncated string in the END list for similarity to other strings in the END list, creating a new BEGIN list of strings by truncating each original string at the beginning of the string, scoring each truncated string in the BEGIN list for similarity to other strings in the BEGIN list, creating a new MIX list of strings from the best scoring truncated strings, scoring each string in the MIX list for similarity to other strings in the MIX list, summing the scores in each list to create a total score for each list, and selecting the list with the lowest score as the display list.
21. The system of claim 17 , wherein the computing environment comprises a service oriented architecture (SOA) computing environment including a service registry of character strings.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.