Menu

#9 Netapi generates double ID's which is not allowed

open
nobody
None
5
2006-08-23
2006-08-23
Onno Paap
No

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.

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#ClassOfAbstract
Object
3.
Resource:
http://www.15926.org/2006/02/onnopaap1#ClassOfAbstract
Object
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'.
============

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.