There was an error while loading. Please reload this page.
There are 2 ways to add language tag to a literal:
construct {foaf:s1 foaf:p1 "o1"@{"en"}.}
construct {foaf:s1 foaf:p1 "o1"@en.}
Please note that the language tag will always be overridden if a data-type(excluding xs:string and xs:untypedAtomic) is present. Example:
declare function local:rdf_analysis ($url) as xs:string { let $url := $url construct { foaf:sdsa foaf:analysis {$url}@{"bg"}. } }; let $check := xs:gYearMonth("2016-12") return local:rdf_analysis($check)
output: foaf:sdsa foaf:analysis "2016-12"^^xs:gYearMonth .
foaf:sdsa foaf:analysis "2016-12"^^xs:gYearMonth .
<Name xml:lang="en">patzo</Name>
foaf:s1 foaf:p1 {$parent/Name}.}
foaf:s1 foaf:p1 "patzo"@en .
foaf:s1 foaf:p1 {$parent/Name}@{"bg-latn"}.}
foaf:s1 foaf:p1 "patzo"@bg-latn .
<ContentDate xml:lang="en">2016-11-21T02:54:53.885Z</ContentDate>
foaf:s1 foaf:p1 {$parent/ContentDate/text()}.}
foaf:s1 foaf:p1 "2016-11-21T02:54:53.885Z" .