- From: Jeremy Carroll <jjc@hplb.hpl.hp.com>
- Date: Tue, 8 Apr 2003 11:51:21 +0200
- To: "Dave Beckett" <dave.beckett@bristol.ac.uk>, "jimbobbs" <jimbobbs@hotmail.com>
- Cc: "www-rdf-interest" <www-rdf-interest@w3.org>
> >>>Jimmy Cerra said: > > > > I'm trying to figure out a way to simplify the syntax for RDF/XML so I > > can transform it easily with a style sheet. It seems that there are a > > lot of different ways to represent the same graph in RDF/XML - some of > > them more verbose than others. I am increasingly taken by an approach that specifies which grammar rules are not used. I have just implemented this in the jena2 RDF/XML-ABBREV writer, which permits the following rules to be switched off: http://www.w3.org/TR/rdf-syntax-grammar/#parseTypeLiteralPropertyElt http://www.w3.org/TR/rdf-syntax-grammar/#parseTypeResourcePropertyElt http://www.w3.org/TR/rdf-syntax-grammar/#parseTypeCollectionPropertyElt http://www.w3.org/TR/rdf-syntax-grammar/#propertyAttr http://www.w3.org/TR/rdf-syntax-grammar/#idAttr http://www.w3.org/TR/rdf-syntax-grammar/#section-List-Expand http://www.w3.org/TR/rdf-syntax-grammar/#section-Reification (bagID has never been supported by any writer). Other rules that can, plausibly, be switched off are: http://www.w3.org/TR/rdf-syntax-grammar/#resourcePropertyElt http://www.w3.org/TR/rdf-syntax-grammar/#resourceAttr and nodeID within property elements. However, I have not implemented these. Switching a rule off means that the output conforms with the revised syntax with that section deleted. This code will ship later this week or early next week in J2P2 (announcement on jena-dev@yahoogroups.com), it is currently available by anonymous CVS from http://sourceforge.net/projectes/jena Jeremy
Received on Tuesday, 8 April 2003 05:51:48 UTC