History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-957
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Arjohn Kampman
Reporter: Jeen Broekstra
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sesame

RDF/XML parser accepts multiple property elements without parseType="collection"

Created: 12/Mar/12 09:17 PM   Updated: 12/Jul/12 07:44 AM
Component/s: Rio
Affects Version/s: 2.6.3, 2.6.4
Fix Version/s: 2.7.0

File Attachments: 1. File PropElemIllegalSyntax.rdf (0.6 kb)



 Description   
See attached RDF/XML file. It contains illegal syntax: you can not have two children (ext_an:Y6) of a property element (an:LL4) like this (see http://www.w3.org/TR/REC-rdf-syntax/#resourcePropertyElt ). The rio rdf/xml parser accepts the above fragment without warning however, creating two blank nodes of type ext_an:Y6.

 All   Comments   Change History      Sort Order:
Change by Jeen Broekstra [12/Mar/12 09:27 PM]
Field Original Value New Value
Attachment PropElemIllegalSyntax.rdf [ 10500 ]

Change by Jeen Broekstra [12/Mar/12 09:28 PM]
Field Original Value New Value
Description Example RDF fragment:

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xml:lang="en"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:an="http://www.animals.fake/animals#"
    xmlns:ext_an="http://www.animals.fake/ext_animals#">

    <an:X2 rdf:about="X2_subject">
<an:LL4>
<ext_an:Y6>
<an:LL4> <ext_an:X3 rdf:about="X3"/> </an:LL4>
<an:LL5> <ext_an:Y7 rdf:about="Y7"/> </an:LL5>
</ext_an:Y6>
<ext_an:Y6>
<an:LL5> <ext_an:Y7 rdf:about="Y8"/> </an:LL5>
</ext_an:Y6>
</an:LL4>
    </an:X2>
</rdf:RDF>

This is illegal syntax: you can not have two children of a property element like this (see http://www.w3.org/TR/REC-rdf-syntax/#resourcePropertyElt ). The rio rdf/xml parser accepts the above fragment without warning however, creating two blank nodes of type ext_an:Y6.
See attached RDF/XML file. It contains illegal syntax: you can not have two children (ext_an:Y6) of a property element (an:LL4) like this (see http://www.w3.org/TR/REC-rdf-syntax/#resourcePropertyElt ). The rio rdf/xml parser accepts the above fragment without warning however, creating two blank nodes of type ext_an:Y6.

Change by Jeen Broekstra [04/Apr/12 07:07 AM]
Field Original Value New Value
Fix Version/s 2.6.6 [ 10710 ]
Fix Version/s 2.6.5 [ 10690 ]

Change by Jeen Broekstra [31/May/12 04:57 AM]
Field Original Value New Value
Fix Version/s 2.6.7 [ 10720 ]
Fix Version/s 2.6.6 [ 10710 ]

Change by Jeen Broekstra [03/Jul/12 08:51 AM]
Field Original Value New Value
Fix Version/s 2.6.8 [ 10740 ]
Fix Version/s 2.6.7 [ 10720 ]

Change by Jeen Broekstra [12/Jul/12 07:44 AM]
Field Original Value New Value
Fix Version/s 2.7.0 [ 10630 ]
Fix Version/s 2.6.8 [ 10740 ]