Klasse LanguageSpecificString

java.lang.Object
alps.java.api.util.StringWithExtra
alps.java.api.util.LanguageSpecificString
Alle implementierten Schnittstellen:
IStringWithExtra

public class LanguageSpecificString extends StringWithExtra
A class to represent a string along with a specified language identifier This class is useful to represent an object (in a triple store context), where the literal node might contain an additional language information. The language is stored as extra. If no extra is given, a default language identifier is used (such as en).
  • Felddetails

    • standardLang

      protected String standardLang
  • Konstruktordetails

    • LanguageSpecificString

      public LanguageSpecificString(String content)
      Takes a label as string to create a new language specified string. The label might be passed as label@lang (i.e. "someSubj@en") to be parsed correctly. The label must not contain an @. If not, the standard language is saved for the label.
      Parameter:
      content - the label
    • LanguageSpecificString

      public LanguageSpecificString(String content, String lang)
      Creates a new label, specifying the label and the language in different strings. If label and lang are currently together in one string, separated via @ (i.e. parsed from an owl file), use the other constructor instead.
      Parameter:
      content - the label
      lang - the language
  • Methodendetails