- From: Fabien Gandon <Fabien.Gandon@sophia.inria.fr>
- Date: Tue, 13 Jun 2006 11:45:30 +0200
- To: public-rdf-in-xhtml task force <public-rdf-in-xhtml-tf@w3.org>
Hi, I quickly scanned the archives of the list and could not find an answer to the following question so I take the risk of asking it again. We are using RDFa and GRDDL in SweetWiki [1]: a wiki here persistence is in XHTML+RDFa and navigation is done through SPARQL queries on the RDF extracted from the pages by a GRDDL stylesheet. The current stylesheet is domain dependent in the sense that it includes the namespaces of the OWL Lite schemas used in the wiki. Before releasing the stylesheet I wanted to make it schema-independent. Unfortunately I got stuck by the fact that: 1 - RDFa uses standard xmlns attributes to declare its namespaces [2]; 2 - In XPath "There are no attribute nodes corresponding to attributes that declare namespaces" [3] Therefore, unless I missed a point, in XSLT I can easily extract property and class QName from XHTML+RDFa and get their ns prefix an local name, but there seems to be no way of accessing the ns declaration (i.e. the URI associated to the prefix) and therefore no way of being independent from the ns used in the RDFa. Did I miss something? Is there an RDFa syntax for RDFa ns declaration? e.g. <link rel="xmlns:dc" href="http://purl.org/dc/elements/1.1/" /> (don't scream; I know it's ugly.) Fabien [1] http://miageprojet.unice.fr:8080/wiki [2] http://www.w3.org/2001/sw/BestPractices/HTML/2005-rdfa-syntax [3] http://www.w3.org/TR/1999/REC-xpath-19991116#attribute-nodes -- "One never goes so far as when one doesn't know where one is going." -- J. W. Von Goethe. ____________ |__ _ |_ http://www-sop.inria.fr/acacia/personnel/Fabien.Gandon/ | (_||_) INRIA Sophia Antipolis - ph# (33)(0)4 92 38 77 88
Received on Tuesday, 13 June 2006 09:45:45 UTC