RE: xsi:type test case

> > >Are the two documents descriptions of the same graph?
> > >
> > ><rdf:RDF>
> > >   <rdf:Description>
> > >     <eg:prop xsi:type="xsd:decimal">2.0</eg:prop>
> > >   </rdf:Description>
> > ></rdf:RDF>
> > >
> > >
> > >
> > ><rdf:RDF>
> > >   <rdf:Description>
> > >     <eg:prop xsi:type="xsd:decimal">2.00</eg:prop>
> > >   </rdf:Description>
> > ></rdf:RDF>
> > >
> > >I think I heard yes.
> >
> > If the literal is intended to be a number, then I think yes.
>
> A few questions:
>
> 1. What triples are generated from the above?

for
  <rdf:RDF>
    <rdf:Description>
      <eg:prop xsi:type="xsd:decimal">2.0</eg:prop>
    </rdf:Description>
  </rdf:RDF>

I'm still tempted to say (in NTriples)
  _:aaa eg:prop _:bbb .
  _:bbb xsd:decimal "2.0" .

but I guess one wants to see
  _:aaa eg:prop xsd:decimal"2.0" .

(I'm not yet "more comfortable with it as each day goes by")

> 2. Will this work with non-XML Schema datatypes?

I guess so

> 3. Will this work with arbitrarily/user defined primitive types?

I guess so

> 4. How does this relate to defining datatype ranges of properties?

well I guess global range constraints
could be used to detect inconsistencies, no?

(too much guesses I guess)

-- ,
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/

Received on Wednesday, 7 August 2002 06:03:13 UTC