Package alps.java.api.util
Klasse LanguageSpecificString
java.lang.Object
alps.java.api.util.StringWithExtra
alps.java.api.util.LanguageSpecificString
- Alle implementierten Schnittstellen:
IStringWithExtra
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).
-
Feldübersicht
Von Klasse geerbte Felder alps.java.api.util.StringWithExtra
content, extra
-
Konstruktorübersicht
KonstruktorBeschreibungLanguageSpecificString
(String content) Takes a label as string to create a new language specified string.LanguageSpecificString
(String content, String lang) Creates a new label, specifying the label and the language in different strings. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungclone()
Clones the current string with extra to get a new instanceorg.apache.jena.graph.Node
getNodeFromString
(IPASSGraph graph) Creates aRDFNode
from the current string (a literal node) therefor it needs a graph as contextvoid
setContent
(String content) Sets the content, the actual stringvoid
Sets the extra that is specified in addition to the string.toString()
Von Klasse geerbte Methoden alps.java.api.util.StringWithExtra
equals, getContent, getExtra, hashCode
-
Felddetails
-
standardLang
-
-
Konstruktordetails
-
LanguageSpecificString
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
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 labellang
- the language
-
-
Methodendetails
-
clone
Beschreibung aus Schnittstelle kopiert:IStringWithExtra
Clones the current string with extra to get a new instance- Angegeben von:
clone
in SchnittstelleIStringWithExtra
- Angegeben von:
clone
in KlasseStringWithExtra
- Gibt zurück:
- clone of the current String
-
getNodeFromString
Beschreibung aus Schnittstelle kopiert:IStringWithExtra
Creates aRDFNode
from the current string (a literal node) therefor it needs a graph as context- Angegeben von:
getNodeFromString
in SchnittstelleIStringWithExtra
- Angegeben von:
getNodeFromString
in KlasseStringWithExtra
- Parameter:
graph
- the context in which the node is created- Gibt zurück:
- the created Node
-
setContent
Beschreibung aus Schnittstelle kopiert:IStringWithExtra
Sets the content, the actual string- Angegeben von:
setContent
in SchnittstelleIStringWithExtra
- Setzt außer Kraft:
setContent
in KlasseStringWithExtra
-
setExtra
Beschreibung aus Schnittstelle kopiert:IStringWithExtra
Sets the extra that is specified in addition to the string. What this is depends on the concrete implementation.- Angegeben von:
setExtra
in SchnittstelleIStringWithExtra
- Setzt außer Kraft:
setExtra
in KlasseStringWithExtra
-
toString
-