Richard,
If I am well informed multiple typing, i.e. multiple inheritance, is normal
practice in RDF/RDFS/OWL.
Would using rdf:about the 2nd to nth time inside a triple store help to
solve this problem?
Regards,
Hans
____________________
OntoConsult
Hans Teijgeler
ISO 15926 specialist
Netherlands
+31-72-509 2005
www.InfowebML.ws
han...@qu...
---------- Forwarded message ----------
From: Richard Cyganiak <ri...@cy...>
Date: Aug 23, 2006 5:00 PM
Subject: Re: [Rdfapi-php-interest] Double rdf:type gives bug in RAP netapi?
To: Benjamin Nowack <bn...@ap...>
Cc: rdfapi-php-interest <rdf...@li...>,
Onno Paap <onn...@gm...>
You are right Benjamin, and I was wrong. The spec says that the rdf:ID must
indeed be unique. Apologies for spreading misinformation ...
(The full rule is: The same combination of rdf:ID and xml:base must never
occur twice in a document, taking into account that xml:base is inherited to
XML child elements.)
So it's indeed a RAP bug.
Richard
On 23 Aug 2006, at 15:46, Benjamin Nowack wrote:
> On 23.08.2006 14:27:37, Richard Cyganiak wrote:
>> Vowlidator seems to dislike the fact that RAP uses rdf:ID twice with
>> the same value. That's allowed by the specs, although admittedly you
>> could argue that it's bad style. (And indeed it's just a warning in
>> Vowlidator, not an error.)
> AFAIK, redundant node rdf:IDs are not allowed in a shared
> scope/document. It's similar to the id attribute in html.
> It's a bug in both RAP and Vowlidator, the latter should issue an
> error, not a warning ;)
>
> hth,
> ben
>
>>
>> So it's not a RAP bug, but it's an indication that Vowlidator is a
>> bit too picky :-)
>>
>> You can safely ignore the warning.
>>
>> Yours,
>> Richard
>>
>>
>> On 23 Aug 2006, at 13:28, Onno Paap wrote:
>>
>>> Dear rdfapi-php team,
>>> The following examples are snippets from much larger OWL constructs.
>>> They have no meaning by themselves, just as illustration of the way
>>> the RAP netapi handles this.
>>> My question: does this example show an RAP bug?
>>> Onno Paap
>>>
>>> This piece of OWL code has no errors in Vowlidator:
>>> ============
>>> <rdf:RDF
>>> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>>> xmlns:owl="http://www.w3.org/2002/07/owl#"
>>> xml:base="http://www.15926.org/2006/02/onnopaap1">
>>> <owl:Class rdf:ID="AbstractObject">
>>> <rdf:type rdf:resource="#ClassOfAbstractObject"/>
>>> </owl:Class>
>>> <owl:Class rdf:ID="ClassOfAbstractObject"/> </rdf:RDF> ============
>>>
>>> Loaded in RAP gives 3 triples:
>>> ============
>>> 1.
>>> Resource: http://www.15926.org/2006/02/onnopaap1#AbstractObject
>>> RDF Node: rdf:type
>>> RDF Node: owl:Class
>>> 2.
>>> Resource: http://www.15926.org/2006/02/onnopaap1#AbstractObject
>>> RDF Node: rdf:type
>>> Resource: http://www.15926.org/2006/02/
>>> onnopaap1#ClassOfAbstractObject 3.
>>> Resource: http://www.15926.org/2006/02/
>>> onnopaap1#ClassOfAbstractObject RDF Node: rdf:type RDF Node:
>>> owl:Class ============
>>>
>>> The RAP netapi makes this out of it:
>>> ============
>>> <?xml version="1.0" encoding="UTF-8" ?>
>>> <!--
>>> Generated by RdfSerializer.php from RDF RAP.
>>> # http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/index.html !
>>> -->
>>> <rdf:RDF xml:base="http://www.15926.org/2006/02/onnopaap1#"
>>> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>>> xmlns:owl="http://www.w3.org/2002/07/owl#"
>>> xmlns:ns1="http://www.15926.org/2006/02/onnopaap1#">
>>> <owl:Class rdf:ID="AbstractObject" /> <ns1:ClassOfAbstractObject
>>> rdf:ID="AbstractObject" /> <owl:Class rdf:ID="ClassOfAbstractObject"
>>> /> </rdf:RDF> ============
>>>
>>> Which gives errors in Vowlidator:
>>> ============
>>> [1] WARNING - Parser Indication: http://www.15926.org/2006/02/
>>> onnopaap1#[15:53]:
>>> {W105} Redefinition of ID: AbstractObject
>>>
>>> [2] WARNING - Parser Indication: http://www.15926.org/2006/02/
>>> onnopaap1#[13:37]:
>>> {W105} Previous definition of 'AbstractObject'.
>>> ============
>>>
>>> --------------------------------------------------------------------
>>> --
>>> ---
>>> Using Tomcat but need to do more? Need to support web services,
>>> security?
>>> Get stuff done quickly with pre-integrated technology to make your
>>> job easier Download IBM WebSphere Application Server v.1.0.1 based
>>> on Apache Geronimo http://sel.as-us.falkag.net/sel?
>>> cmd=lnk&kid=120709&bid=263057&dat=121642
>>> _______________________________________________
>>> Rdfapi-php-interest mailing list
>>> Rdf...@li...
>>> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest
>>>
--
Onno Paap
Fluor corporation
+31 23 5432116 (work)
+31 6 21625149 (mobile)
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.0.405 / Virus Database: 268.11.5/425 - Release Date: 22-Aug-06
|