W3C home > Mailing lists > Public > www-rdf-interest@w3.org > April 2000

Some questions on properties

From: Jan Wielemaker <jan@swi.psy.uva.nl>
Date: Tue, 25 Apr 2000 12:20:12 +0200
To: www-rdf-interest@w3.org
Message-Id: <00042512411503.16193@gollem>

I'm rather new to RDF.  Trying to interpret RDF in Prolog and
struggling with the definition I have troubles with two aspects
of properties.

I refer to the rule 6.12 fromREC-rdf-syntax-19990105:

 [6.12] propertyElt    ::= '<' propName idAttr? '>' value '</' propName '>'
                         | '<' propName idAttr? parseLiteral '>'
                               literal '</' propName '>'
                         | '<' propName idAttr? parseResource '>'
                               propertyElt* '</' propName '>'
                         | '<' propName idRefAttr? bagIdAttr? propAttr* '/>'

First of all, I cannot find what it means to give a property an ID? 
Does somebody has an example?

Also, I have little clue on the meaning of the various possibilities
implied by the last rule.  It suggests I can write

<?xml version='1.0'?>

<rdf:RDF xmlns:rdf="http://w3.org/TR/1999/PR-rdf-syntax-19990105#">
  <rdf:Description rdf:ID="t1">
    <a1 a2="hello" a3="world"/>    

The online parser at http://www.pro-solutions.com/rdfdemo/rdf.cgi

resource('genid1') predicate('a2') literal('hello')
resource('genid1') predicate('a3') literal('world')
resource('genid0') predicate('a1') literal('')
resource('genid0') predicate('http://w3.org/TR/1999/PR-rdf-syntax-19990105#ID')
resource('genid0') predicate('http://www.w3.org/1999/02/22-rdf-syntax-ns#type')

This doesn't really make much sense to me!?

	Please help!

		--- Jan
Received on Tuesday, 25 April 2000 06:41:17 UTC

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