@@ -851,7 +851,8 @@ abc`)).rejects.toBeTruthy();
851
851
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
852
852
xmlns:dc="http://purl.org/dc/elements/1.1/"
853
853
xmlns:ex="http://example.org/stuff/1.0/"
854
- xmlns:its="http://www.w3.org/2005/11/its">
854
+ xmlns:its="http://www.w3.org/2005/11/its"
855
+ rdf:version="1.2">
855
856
<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar" xml:lang="en-us" its:dir="abc">
856
857
<dc:title>RDF 1.1 XML Syntax</dc:title>
857
858
</rdf:Description>
@@ -1470,7 +1471,8 @@ abc`)).rejects.toBeTruthy();
1470
1471
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1471
1472
xmlns:dc="http://purl.org/dc/elements/1.1/"
1472
1473
xmlns:ex="http://example.org/stuff/1.0/"
1473
- xmlns:its="http://www.w3.org/2005/11/its">
1474
+ xmlns:its="http://www.w3.org/2005/11/its"
1475
+ rdf:version="1.2">
1474
1476
<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar" xml:lang="en-us" its:dir="ltr">
1475
1477
<dc:title>RDF 1.1 XML Syntax</dc:title>
1476
1478
</rdf:Description>
@@ -1509,7 +1511,8 @@ abc`)).rejects.toBeTruthy();
1509
1511
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1510
1512
xmlns:dc="http://purl.org/dc/elements/1.1/"
1511
1513
xmlns:ex="http://example.org/stuff/1.0/"
1512
- xmlns:its="http://www.w3.org/2005/11/its">
1514
+ xmlns:its="http://www.w3.org/2005/11/its"
1515
+ rdf:version="1.2">
1513
1516
<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar" xml:lang="en-us" its:dir="ltr">
1514
1517
<ex:editor>
1515
1518
<rdf:Description>
@@ -1591,7 +1594,8 @@ abc`)).rejects.toBeTruthy();
1591
1594
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1592
1595
xmlns:dc="http://purl.org/dc/elements/1.1/"
1593
1596
xmlns:ex="http://example.org/stuff/1.0/"
1594
- xmlns:its="http://www.w3.org/2005/11/its">
1597
+ xmlns:its="http://www.w3.org/2005/11/its"
1598
+ rdf:version="1.2">
1595
1599
<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar">
1596
1600
<dc:title xml:lang="en-us" its:dir="rtl">RDF 1.1 XML Syntax</dc:title>
1597
1601
</rdf:Description>
@@ -1687,7 +1691,8 @@ abc`)).rejects.toBeTruthy();
1687
1691
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1688
1692
xmlns:dc="http://purl.org/dc/elements/1.1/"
1689
1693
xmlns:ex="http://example.org/stuff/1.0/"
1690
- xmlns:its="http://www.w3.org/2005/11/its">
1694
+ xmlns:its="http://www.w3.org/2005/11/its"
1695
+ rdf:version="1.2">
1691
1696
<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar">
1692
1697
<dc:title>RDF 1.1 XML Syntax</dc:title>
1693
1698
<dc:title xml:lang="en" its:dir="ltr">RDF 1.1 XML Syntax</dc:title>
@@ -1717,6 +1722,24 @@ abc`)).rejects.toBeTruthy();
1717
1722
] ) ;
1718
1723
} ) ;
1719
1724
1725
+ // 2.8
1726
+ it ( 'its:dir without rdf:version' , async ( ) => {
1727
+ const array = await parse ( parser , `<?xml version="1.0" ?>
1728
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1729
+ xmlns:ex="http://example.org/"
1730
+ xmlns:its="http://www.w3.org/2005/11/its"
1731
+ its:version="2.0"
1732
+ its:dir="ltr"
1733
+ xml:lang="en">
1734
+ <rdf:Description rdf:about="http://example.org/joe" ex:name="bar" />
1735
+ </rdf:RDF>` ) ;
1736
+ return expect ( array )
1737
+ . toBeRdfIsomorphic ( [
1738
+ quad ( 'http://example.org/joe' , 'http://example.org/name' ,
1739
+ '"bar"@en' ) ,
1740
+ ] ) ;
1741
+ } ) ;
1742
+
1720
1743
// 2.9
1721
1744
it ( 'rdf:datatype on property elements' , async ( ) => {
1722
1745
const array = await parse ( parser , `<?xml version="1.0"?>
0 commit comments