Re: Multiple GRDDL results in a single transform??? GRDDL and Named Graphs

Booth, David (HP Software - Boston) wrote:

> Can you please show an example?  If the input for test case
> http://www.w3.org/2001/sw/grddl-wg/td/grddl-tests#grddlonrdf
> were converted to this form, what would it look like?
> 
Sorry for delay in replying ...
http://www.w3.org/2001/sw/grddl-wg/td/grddlonrdf.rdf doesn't include a 
typed node ...

This means that we can't use the namespace doc method but
(referring to
http://www.w3.org/TR/rdf-syntax-grammar/#start
)
We can serve the following doc with mimetype application/rdf+xml:

<rdf:Description
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
xmlns:foaf="http://xmlns.com/foaf/0.1/" 
xmlns:con="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns:data-view="http://www.w3.org/2003/g/data-view#"
data-view:transformation="foaf2con.xsl"
rdf:about="http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2">
<foaf:maker>
<foaf:Agent 
rdf:about="http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9">
<foaf:name>The Jimi Hendrix Experience</foaf:name>
</foaf:Agent>
</foaf:maker>

</rdf:Description>

This has one extra triple over and above the original, since the 
data-view:transformation is treated as a property attribute.

Adding a type triple instead, we could also serve the following as rdf/xml:


<eg:DummyType
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
xmlns:foaf="http://xmlns.com/foaf/0.1/" 
xmlns:con="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns:eg="http://example.org/namespace#"
rdf:about="http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2">
<foaf:maker>
<foaf:Agent 
rdf:about="http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9">
<foaf:name>The Jimi Hendrix Experience</foaf:name>
</foaf:Agent>
</foaf:maker>

</eg:DummyType>

And at http://example.org/namespace.rdf we have a namespace doc 
including the triple

<http://example.org/namespace#>
  dataview:namespaceTransformation
  <????/foaf2con.xsl> .

Jeremy

Received on Wednesday, 23 January 2008 11:01:14 UTC