W3C home > Mailing lists > Public > www-rdf-interest@w3.org > November 2001

Re: Trying to understand valid RDF [long]

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>
Message-ID: <Pine.LNX.4.30.0111010839170.14190-100000@tux.w3.org>


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:

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

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'

--- reworked rdf/xml

<?xml version = "1.0" encoding = "UTF-8"?>

	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>
      <rdf:Description rdf:about="http://stacks.iop.org/0001-3072//L">
           my:attempted = "1"
           my:available = "1"
           my:result = "1"
           my:verified = "0" />
        <dc:Description>journal search</dc:Description>
	   my:name = "issn"
           my:content="0001-3072" />


--- hope this helps


Received on Thursday, 1 November 2001 08:50:20 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:38 UTC