W3C home > Mailing lists > Public > www-rdf-interest@w3.org > October 2003

Re: ANNOUNCEMENT: RDFStyles: alternative to XSLT for RDF

From: Reto Bachmann-Gmuer <reto@gmuer.ch>
Date: Tue, 21 Oct 2003 09:30:50 +0200
Message-ID: <3F94E0AA.4050009@gmuer.ch>
To: leo@gnowsis.com, www-rdf-interest@w3.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Indeed, this is probably the most basic point: is it useful to have a
special (or xml based) syntax for defining rdf styling or can this be
done with pure rdf. I wanted to try out the second approach to better
see what it could do. Of course, from an xml point of view the rdf/xml
serialisation of the style is awkward, on the other hand the processor
does not need to do any parsing and the styles can come along with the
actual rdf encoded data or with the ontology.

I'm not sure how the two approaches compare in terms of flexibility in
contexts where different styles are available and can be selected basing
on context of the resource, target medium and user preferences, i think
having an architecture for cascading styles is important.

So, should I just try to simplify the schema or is a special syntax for
rdfs more appropriate?

thanks for the feedback!
reto

Leo Sauermann wrote:

| Finally another good approach into this needed sector.
|
|
| That XSLT does not work with RDF is clear and sad.
|
| but your syntax looks quite different from XSLT,
| and takes much more space.
| If you would be closer to XSLT you could reuse the existing open source
| parsers and style machines (apache xalan et al)
|
| wouldn't it be easier to create some kind of XPATH for RDF (this has
| somebody done, uhm, have to search) and then do standard
| <xslt:value-of="dc:author"> things ?
|
| I think of something like this (rsl = xslt):
| <rsl:template match="[rdf:type=http://purl.org/rss/1.0/channel]">
| 	<p>
| 		<rsl:value-of select="http://purl.org/rss/1.0/title"/>
| 	</p>
| 	<rsl:if test="string(http://purl.org/rss/1.0/description)">
| 		<div class="blabla">
| 		<rsl:apply-templates
| select="triple(http://purl.org/rss/1.0/description)" />
| 		</div>
| 	</rsl:if>
| </rsl:template>
|
| <rsl:template match="(?s http://purl.org/rss/1.0/description ?o)">
| 	Description: <rsl:value-of select="?o"/>
| </rsl:template>
|
|
|
| This contains some bogus queries etc.
| 	
|
| what do you think about simplifying your syntax and bringing it nearer
| to XSLT ?
|
| greetings,
| keep up the good work
| Leo Sauermann
| www.gnowsis.com
|
|
|>-----Original Message-----
|>From: www-rdf-interest-request@w3.org
|>[mailto:www-rdf-interest-request@w3.org] On Behalf Of Reto
|>Bachmann-Gmuer
|>Sent: Monday, October 20, 2003 10:18 PM
|>To: www-rdf-interest@w3.org
|>Subject: ANNOUNCEMENT: RDFStyles: alternative to XSLT for RDF
|>
|>
|>
|>-----BEGIN PGP SIGNED MESSAGE-----
|>Hash: SHA1
|>
|>hello
|>
|>I'm trying to develop a tool for rendering RDF-Resource to text based
|>formats such as HTML or XML.
|>
|>The first alpha-implementation written in java is available
|>for download at:
|>http://prdownloads.sourceforge.net/knobot/wymiwyg-rdfstyles.zi
|
| p?download
|
| The rdf-schema can be found at:
| http://wymiwyg.org/ontologies/rdfstyles.rdf
|
| An example-style for rendering rss-1.0 channels to html is at:
| http://knobot.sourceforge.net/rdfstyles/examples/html-style.rdf
|
| An online demo is at: http://test.wymiwyg.org/rdfstyles/
|
| Documentation is not yet there but some examples are in the
| distribution, so I hope you'll get the idea.
|
| I'm looking forward to your comments.
|
| cheers,
| reto
| -----BEGIN PGP SIGNATURE-----
| Version: GnuPG v1.2.1 (Darwin)
| Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
|
| iD8DBQE/lELpD1pReGFYfq4RAkxZAJ9U8t0Xg/R1KjNkAEF0d+8FHCZAGACgprLk
| xwvzJsBxYaIScW3VPPtJTlc=
| =gGLb
| -----END PGP SIGNATURE-----
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/lOCqD1pReGFYfq4RAljmAJ93La4+G7Iq5v5Za4xmsJlR3F2zXgCgk5HI
pxy3STaddGf4ORlG5tOCsS4=
=0XqV
-----END PGP SIGNATURE-----
Received on Tuesday, 21 October 2003 03:34:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:52:02 GMT