- From: Leo Sauermann <leo@gnowsis.com>
- Date: Thu, 30 Oct 2003 15:27:08 +0100
- To: "'Emmanuel Pietriga'" <epietriga@yahoo.fr>, <www-rdf-interest@w3.org>
Yes, I misunderstood you. I have not been coding XSL for the last year, so my brain got a little fuzzy here. > I think there is some kind of misunderstanding here. What you are > describing is, in my opinion, closer to what the following > would do for > XPath on an XML tree: > <xsl:apply-templates select="//*" /> > > What I was considering was an equivalent of: > <xsl:apply-templates select="*" /> > > which only selects children of the context node and thus limits the > scope of application of the XSLT instruction. > > The question is, can we even conceptually define an > equivalent of this > for a general directed graph? Ok, for this we have to go deeper into existing work and should base on that. What is "*" to an actual resource ? perhaps something like Patrick Sticklers' "Concise Bounded Resource Description" ? In RDFTwig, the problem was solved with the "twig" or "branch" etc. definitions, our "*" equivalent would be the "leaf" thing. http://rdftwig.sourceforge.net/paper/index.html#leaf I have not used this yet and think, the syntax is a bit long. But the idea in RDFTwig is very fine, a good combination of XSLT and RDF. In Treehugger this would mean to select f.e. all properties of the Resource http://rdfweb.org/people/damian/treehugger/introduction.html <xsl:value-of select="./foaf:name/text()"/> will return the foaf:name property of the current node, in textual form. I haven't found out exactly how to select all subnodes, but you will generally do something like "./*/text()" In RDFPath http://web.sfc.keio.ac.jp/~km/rpath-eng/rpath.html this would go into the direction (out:-). and I can't guess the correct syntax, I don't understand their paper fully but it looks good. probably the "*" would be a "*" in their view. vertic A - property b - Vertic C (A is context) "@*" i think selects C.... So there are a lot attempts to do the "*" selection and as Damian Steer has pointed out in Section 5 of http://rdfweb.org/people/damian/treehugger/introduction.html it is good to use some XPAth like syntax (RDFPath) and then convert it to RDQL statemtnes, this approach sounds solid to me. interesting topic ! greetings Leo Sauermann www.gnowsis.com > > Emmanuel > > -- > Emmanuel Pietriga (epietriga@nuxeo.com) > tel (mobile): +33 6 88 51 94 98 > http://claribole.net >
Received on Thursday, 30 October 2003 09:21:48 UTC