@@ -2175,6 +2175,38 @@ abc`)).rejects.toBeTruthy();
21752175 ] ) ;
21762176 } ) ;
21772177
2178+ it ( 'rdf:parseType="Collection" and rdf:ID' , async ( ) => {
2179+ const array = await parse ( parser , `<?xml version="1.0"?>
2180+ <rdf:RDF
2181+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
2182+ xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
2183+ xmlns:eg="http://example.org/eg#"
2184+ xml:base="http://example.com/">
2185+
2186+ <rdf:Description rdf:about="http://example.org/eg#eric">
2187+ <rdf:type rdf:parseType="Resource">
2188+ <eg:intersectionOf rdf:ID="reif" rdf:parseType="Collection">
2189+ <rdf:Description rdf:about="http://example.org/eg#Person"/>
2190+ <rdf:Description rdf:about="http://example.org/eg#Male"/>
2191+ </eg:intersectionOf>
2192+ </rdf:type>
2193+ </rdf:Description>
2194+ </rdf:RDF>` ) ;
2195+ return expect ( array )
2196+ . toBeRdfIsomorphic ( [
2197+ quad ( 'http://example.org/eg#eric' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' , '_:b99_a0' ) ,
2198+ quad ( '_:b99_a0' , 'http://example.org/eg#intersectionOf' , '_:b99_a1' ) ,
2199+ quad ( 'http://example.com/#reif' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#subject' , '_:b99_a0' ) ,
2200+ quad ( 'http://example.com/#reif' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate' , 'http://example.org/eg#intersectionOf' ) ,
2201+ quad ( 'http://example.com/#reif' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#object' , '_:b99_a1' ) ,
2202+ quad ( 'http://example.com/#reif' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement' ) ,
2203+ quad ( '_:b99_a1' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#first' , 'http://example.org/eg#Person' ) ,
2204+ quad ( '_:b99_a1' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#rest' , '_:b99_a2' ) ,
2205+ quad ( '_:b99_a2' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#first' , 'http://example.org/eg#Male' ) ,
2206+ quad ( '_:b99_a2' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#rest' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#nil' ) ,
2207+ ] ) ;
2208+ } ) ;
2209+
21782210 // 2.17
21792211 it ( 'rdf:ID on a property with a literal to a reified statement' , async ( ) => {
21802212 const array = await parse ( parser , `<?xml version="1.0"?>
0 commit comments