- From: Dan Brickley <danbri@w3.org>
- Date: Thu, 1 Nov 2001 08:50:18 -0500 (EST)
- To: Ian Stuart <Ian.Stuart@ed.ac.uk>
- cc: RDF Interest list <www-rdf-interest@w3.org>
hi On 1 Nov 2001, Ian Stuart wrote: > On Thu, 2001-11-01 at 12:49, Dan Brickley wrote: > > > > try removing the parseType=Resource that comes immediately before the 2nd > > rdf:Description > Thanks for the quick reply... > > I have cut my test down to the following code: [snip] > <my:field my:name = "issn">0001-3072</my:field> this was the problem, the rdf grammar doesn't like this mix of attributes and content. In RDF, the my:name="issn" would have to map on to an arc/value pair in the graph. In RDF/XML, literal string values such as '0001-3072' can't themselves have properties (such as name=issn). Yet it seems from your example that you want to associate the 'issn' and the number. I've reworked your first example slightly to support this. The code parses and displays OK at http://www.w3.org/RDF/Validator and is I think consistent with what you're aiming at. What I've done is make the '001-3072' a property (I invented a name, my:content, rdf:value might be a reasonable alternative) of the same resource as the name='issn' construction. --- reworked rdf/xml <?xml version = "1.0" encoding = "UTF-8"?> <rdf:RDF xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns:my = "http://lucas.ucs.ed.ac.uk/"> <rdf:Description rdf:about = "http://stacks.iop.org/"> <dc:Title>Institute of Physics STACKS</dc:Title> <my:query> <rdf:Description rdf:about="http://stacks.iop.org/0001-3072//L"> <my:search my:attempted = "1" my:available = "1" my:result = "1" my:verified = "0" /> <dc:Description>journal search</dc:Description> <my:field my:name = "issn" my:content="0001-3072" /> </rdf:Description> </my:query> </rdf:Description> </rdf:RDF> --- hope this helps dan -- mailto:danbri@w3.org http://www.w3.org/People/DanBri/
Received on Thursday, 1 November 2001 08:50:20 UTC