RE: ANNOUNCEMENT: RDFStyles: alternative to XSLT for RDF

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-----

Received on Monday, 20 October 2003 18:22:08 UTC