@@ -930,16 +930,54 @@ abc`)).rejects.toBeTruthy();
930
930
] ) ;
931
931
} ) ;
932
932
933
-
934
- it ( 'declaration of the namespace on the element' , async ( ) => {
933
+ it ( 'declaration of the default namespace on the property element' , async ( ) => {
935
934
return expect ( await parse ( parser , `<?xml version="1.0"?>
936
935
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
937
- <rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar ">
936
+ <rdf:Description rdf:about="http://example.com ">
938
937
<title xmlns="http://purl.org/dc/terms/" xml:lang="en">RDF1.1 XML Syntax</title>
939
938
</rdf:Description>
940
939
</rdf:RDF>` ) )
941
940
. toBeRdfIsomorphic ( [
942
- quad ( 'http://www.w3.org/TR/rdf-syntax-grammar' ,
941
+ quad ( 'http://example.com' ,
942
+ 'http://purl.org/dc/terms/title' , '"RDF1.1 XML Syntax"@en' ) ,
943
+ ] ) ;
944
+ } ) ;
945
+
946
+ it ( 'declaration of the namespace on the property element' , async ( ) => {
947
+ return expect ( await parse ( parser , `<?xml version="1.0"?>
948
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
949
+ <rdf:Description rdf:about="http://example.com">
950
+ <dct:title xmlns:dct="http://purl.org/dc/terms/" xml:lang="en">RDF1.1 XML Syntax</dct:title>
951
+ </rdf:Description>
952
+ </rdf:RDF>` ) )
953
+ . toBeRdfIsomorphic ( [
954
+ quad ( 'http://example.com' ,
955
+ 'http://purl.org/dc/terms/title' , '"RDF1.1 XML Syntax"@en' ) ,
956
+ ] ) ;
957
+ } ) ;
958
+
959
+ it ( 'declaration of the namespace on the resource element' , async ( ) => {
960
+ return expect ( await parse ( parser , `<?xml version="1.0"?>
961
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
962
+ <rdf:Description rdf:about="http://example.com" xmlns:dct="http://purl.org/dc/terms/">
963
+ <dct:title xml:lang="en">RDF1.1 XML Syntax</dct:title>
964
+ </rdf:Description>
965
+ </rdf:RDF>` ) )
966
+ . toBeRdfIsomorphic ( [
967
+ quad ( 'http://example.com' ,
968
+ 'http://purl.org/dc/terms/title' , '"RDF1.1 XML Syntax"@en' ) ,
969
+ ] ) ;
970
+ } ) ;
971
+
972
+ it ( 'declaration of the default namespace on the resource element' , async ( ) => {
973
+ return expect ( await parse ( parser , `<?xml version="1.0"?>
974
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
975
+ <rdf:Description rdf:about="http://example.com" xmlns="http://purl.org/dc/terms/">
976
+ <title xml:lang="en">RDF1.1 XML Syntax</title>
977
+ </rdf:Description>
978
+ </rdf:RDF>` ) )
979
+ . toBeRdfIsomorphic ( [
980
+ quad ( 'http://example.com' ,
943
981
'http://purl.org/dc/terms/title' , '"RDF1.1 XML Syntax"@en' ) ,
944
982
] ) ;
945
983
} ) ;
0 commit comments