RE: RDF question: accessing xml:lang

> > Any opinions about how xml:lang is to be treated correctly?
>
> Our RDF Parser module [1] associates the language information
> with a Literal node within the data model. This means there
> are no additional arcs and nodes but an additional indicator
> for any Literal node about its language.
>
> Try running the demonstration [2] and adding the xml:lang
> attribute by hand to see how the language is indicated.

Having tried your demo, am I to assume that:

<?xml version="1.0" encoding="ISO-8859-1"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/elements/1.0/"
  xmlns:dcq="http://purl.org/dc/qualifiers/1.0/"
  xmlns:vc="http://imc.org/vCard/3.0#">

  <rdf:Description rdf:about="">
    <dc:subject>
      <rdf:Bag>
        <rdf:li xml:lang="en" parseType="Resource">
          <dcq:subjectType>Keywords</dcq:subjectType>
          <rdf:value>nice keywords; more nice keywords</rdf:value>
        </rdf:li>
      </rdf:Bag>
    </dc:subject>
  </rdf:Description>
</rdf:RDF>

, is wrong - or? I suppose I could do the same but with the xml:lang
attribute in the rdf:value element, but would it be the same? What I want to
do is state that the list item of the Bag itself is of some specified
language, treat the list item as an object of sort, with a language
attribute. Your demo will not in this case show the xml:lang.

Jarno Elovirta
Research & Development
Espoo-Vantaa Institute of Technology
email: jarno.elovirta@evitech.fi
tel: +358 9 511 9845

Received on Monday, 24 January 2000 08:10:10 UTC