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

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!

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
|>Sent: Monday, October 20, 2003 10:18 PM
|>To: www-rdf-interest@w3.org
|>Subject: ANNOUNCEMENT: RDFStyles: alternative to XSLT for RDF
|>Hash: SHA1
|>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:
| 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
| Version: GnuPG v1.2.1 (Darwin)
| Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
| xwvzJsBxYaIScW3VPPtJTlc=
| =gGLb
Version: GnuPG v1.2.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

Received on Tuesday, 21 October 2003 03:34:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:47 UTC