@@ -2293,8 +2293,8 @@ abc`)).rejects.toBeTruthy();
2293
2293
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
2294
2294
xmlns:ex="http://example.org/stuff/1.0/">
2295
2295
<rdf:Description rdf:about="http://example.org/item01">
2296
- <ex:prop rdf:parseType="Literal">
2297
- <a:Box required="true" xmlns:a="http://example.org/a#" >
2296
+ <ex:prop rdf:parseType="Literal" xmlns:a="http://example.org/a#" >
2297
+ <a:Box required="true">
2298
2298
<a:widget size="10" />
2299
2299
<a:grommit id="23">abc</a:grommit>
2300
2300
</a:Box>
@@ -2304,7 +2304,7 @@ abc`)).rejects.toBeTruthy();
2304
2304
return expect ( array )
2305
2305
. toBeRdfIsomorphic ( [
2306
2306
quad ( 'http://example.org/item01' , 'http://example.org/stuff/1.0/prop' ,
2307
- '"\n <a:Box required="true " xmlns:a ="http://example. org/a# ">\n' +
2307
+ '"\n <a:Box xmlns:a="http://example.org/a# " xmlns:rdf ="http://www.w3. org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.org/stuff/1.0/" required="true ">\n' +
2308
2308
' <a:widget size="10"></a:widget>\n' +
2309
2309
' <a:grommit id="23">abc</a:grommit>\n' +
2310
2310
' </a:Box>\n' +
@@ -2326,7 +2326,7 @@ abc`)).rejects.toBeTruthy();
2326
2326
return expect ( array )
2327
2327
. toBeRdfIsomorphic ( [
2328
2328
quad ( 'http://example.org/item01' , 'http://example.org/stuff/1.0/prop' ,
2329
- '"\n <Box></Box>\n' +
2329
+ '"\n <Box xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.org/stuff/1.0/" ></Box>\n' +
2330
2330
' "^^http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral' ) ,
2331
2331
] ) ;
2332
2332
} ) ;
@@ -2900,6 +2900,24 @@ abc`)).rejects.toBeTruthy();
2900
2900
quad ( '_:an2' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#rest' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#nil' ) ,
2901
2901
] ) ;
2902
2902
} ) ;
2903
+
2904
+ it ( 'on property elements with rdf:annotation with literal parse type' , async ( ) => {
2905
+ const array = await parse ( parser , `<?xml version="1.0"?>
2906
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
2907
+ xmlns:eg="http://example.org/"
2908
+ xml:base="http://example.com/">
2909
+
2910
+ <rdf:Description rdf:about="http://www.example.org/a">
2911
+ <eg:prop rdf:annotation="http://example.com/triple1" rdf:parseType="Literal"><br /></eg:prop>
2912
+ </rdf:Description>
2913
+
2914
+ </rdf:RDF>` ) ;
2915
+ return expect ( array )
2916
+ . toBeRdfIsomorphic ( [
2917
+ quad ( 'http://www.example.org/a' , 'http://example.org/prop' , '"<br xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:eg="http://example.org/"></br>"^^http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral' ) ,
2918
+ quad ( 'http://example.com/triple1' , 'http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies' , '<<http://www.example.org/a http://example.org/prop "<br xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:eg="http://example.org/"></br>"^^http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>>' ) ,
2919
+ ] ) ;
2920
+ } ) ;
2903
2921
} ) ;
2904
2922
2905
2923
describe ( 'streaming-wise' , ( ) => {
0 commit comments