WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

RDFString["s","lang"]

represents a string "s" in the language identified by the language tag "lang".

Examples  
Basic Examples  
Scope  
See Also
Related Guides
Cite this Page

RDFString["s","lang"]

represents a string "s" in the language identified by the language tag "lang".

Examples

open all close all

Basic Examples  (1)

Wolfram Language code: Needs["GraphStore`"]

The German word for "bicycle":

Wolfram Language code: RDFString["Fahrrad", "de"]

Scope  (1)

Wolfram Language code: Needs["GraphStore`"]

Specify a graph of objects labeled in different languages:

Wolfram Language code: rdfs[s_] := URL["http://www.w3.org/2000/01/rdf-schema#" <> s]; ex[s_] := URL["http://example.org/" <> s];
Wolfram Language code: objGraph = RDFStore[{ (* towel *) RDFTriple[ex["towl"], rdfs["label"], RDFString["towel", "en"]], RDFTriple[ex["towl"], rdfs["label"], RDFString["Handtuch", "de"]], (* apple *) RDFTriple[ex["apple"], rdfs["label"], RDFString["apple", "en"]], RDFTriple[ex["apple"], rdfs["label"], RDFString["alma", "hu"]], RDFTriple[ex["apple"], rdfs["label"], RDFString["Apfel", "de"]] }];

Translate "alma" from Hungarian to German:

Wolfram Language code: objGraph//SPARQLSelect[{ RDFTriple[SPARQLVariable["obj"], rdfs["label"], RDFString["alma", "hu"]], RDFTriple[SPARQLVariable["obj"], rdfs["label"], SPARQLVariable["labelDe"]] /; SPARQLEvaluation["lang"][SPARQLVariable["labelDe"]] == "de" } -> {"labelDe" -> SPARQLEvaluation["str"][SPARQLVariable["labelDe"]]}]

See Also

RDFLiteral   URL   RDFTriple   RDFStore

Wolfram Research (2019), RDFString, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/RDFString.html.

Text

Wolfram Research (2019), RDFString, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/RDFString.html.

CMS

Wolfram Language. 2019. "RDFString." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/RDFString.html.

APA

Wolfram Language. (2019). RDFString. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/RDFString.html

BibTeX

@misc{reference.wolfram_2026_rdfstring, author="Wolfram Research", title="{RDFString}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/RDFString.html}", note=[Accessed: 16-August-2026]}

BibLaTeX

@online{reference.wolfram_2026_rdfstring, organization={Wolfram Research}, title={RDFString}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/RDFString.html}, note=[Accessed: 16-August-2026]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /