Ensure that .rdf file extensions are changed to .ttl for MT test manifest
authorGregg Kellogg <gregg@kellogg-assoc.com>
Sat, 28 Sep 2013 18:42:05 -0700
changeset 1116 68d68502a9da
parent 1115 b02866fcb433
child 1117 a3a19532aee8
Ensure that .rdf file extensions are changed to .ttl for MT test manifest
rdf-mt/tests/convert-manifest.rb
rdf-mt/tests/manifest.ttl
--- a/rdf-mt/tests/convert-manifest.rb	Sat Sep 28 18:20:06 2013 -0700
+++ b/rdf-mt/tests/convert-manifest.rb	Sat Sep 28 18:42:05 2013 -0700
@@ -73,7 +73,9 @@
         parts = path.split('/')
 
         FileUtils.mkdir(parts.first) unless Dir.exist?(parts.first)
-        unless File.exist?(path.sub('.rdf', '.ttl'))
+        if File.exist?(path.sub('.rdf', '.ttl'))
+          path.sub!('.rdf', '.ttl')
+        else
           if parts.last =~ /\.rdf/
             puts "Transform 2004-test-suite/#{path} to #{path.sub('.rdf', '.ttl')}"
             RDF::RDFXML::Reader.open("2004-test-suite/#{path}") do |reader|
--- a/rdf-mt/tests/manifest.ttl	Sat Sep 28 18:20:06 2013 -0700
+++ b/rdf-mt/tests/manifest.ttl	Sat Sep 28 18:42:05 2013 -0700
@@ -186,8 +186,8 @@
     rdfs:subClassOf has intensional semantics, not extensional.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <horst-01/test001.rdf>;
-  mf:result <horst-01/test002.rdf> .
+  mf:action <horst-01/test001.ttl>;
+  mf:result <horst-01/test002.ttl> .
     
 <#horst-01-subPropertyOf-intensional> a mf:NegativeEntailmentTest;
   mf:name "horst-01-subPropertyOf-intensional";
@@ -195,8 +195,8 @@
     rdfs:subPropertyOf has intensional semantics, not extensional.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <horst-01/test003.rdf>;
-  mf:result <horst-01/test004.rdf> .
+  mf:action <horst-01/test003.ttl>;
+  mf:result <horst-01/test004.ttl> .
     
 <#pfps-10-non-well-formed-literal-1> a mf:PositiveEntailmentTest;
   mf:name "pfps-10-non-well-formed-literal-1";
@@ -215,8 +215,8 @@
     holds between them.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <rdf-charmod-uris/test001.rdf>;
-  mf:result <rdf-charmod-uris/test002.rdf> .
+  mf:action <rdf-charmod-uris/test001.ttl>;
+  mf:result <rdf-charmod-uris/test002.ttl> .
     
 <#rdf-charmod-uris-test004> a mf:NegativeEntailmentTest;
   mf:name "rdf-charmod-uris-test004";
@@ -226,8 +226,8 @@
     holds between them.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <rdf-charmod-uris/test002.rdf>;
-  mf:result <rdf-charmod-uris/test001.rdf> .
+  mf:action <rdf-charmod-uris/test002.ttl>;
+  mf:result <rdf-charmod-uris/test001.ttl> .
     
 <#rdfms-seq-representation-test002> a mf:PositiveEntailmentTest;
   mf:name "rdfms-seq-representation-test002";
@@ -293,8 +293,8 @@
     _:b . does NOT entail _:a <rdf:_n> _:b . for any _n.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <rdfs-container-membership-superProperty/not1P.rdf>;
-  mf:result <rdfs-container-membership-superProperty/not1C.rdf> .
+  mf:action <rdfs-container-membership-superProperty/not1P.ttl>;
+  mf:result <rdfs-container-membership-superProperty/not1C.ttl> .
     
 <#rdfs-domain-and-range-intensionality-range> a mf:NegativeEntailmentTest;
   mf:name "rdfs-domain-and-range-intensionality-range";
@@ -306,8 +306,8 @@
     extensions.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <rdfs-domain-and-range/premises005.rdf>;
-  mf:result <rdfs-domain-and-range/nonconclusions005.rdf> .
+  mf:action <rdfs-domain-and-range/premises005.ttl>;
+  mf:result <rdfs-domain-and-range/nonconclusions005.ttl> .
     
 <#rdfs-domain-and-range-intensionality-domain> a mf:NegativeEntailmentTest;
   mf:name "rdfs-domain-and-range-intensionality-domain";
@@ -319,8 +319,8 @@
     extensions.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <rdfs-domain-and-range/premises006.rdf>;
-  mf:result <rdfs-domain-and-range/nonconclusions006.rdf> .
+  mf:action <rdfs-domain-and-range/premises006.ttl>;
+  mf:result <rdfs-domain-and-range/nonconclusions006.ttl> .
     
 <#rdfs-entailment-test001> a mf:PositiveEntailmentTest;
   mf:name "rdfs-entailment-test001";
@@ -350,7 +350,7 @@
     and the following entailment holds trivially.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <rdfs-no-cycles-in-subClassOf/test001.rdf>;
+  mf:action <rdfs-no-cycles-in-subClassOf/test001.ttl>;
   mf:result <rdfs-no-cycles-in-subClassOf/test001.nt> .
     
 <#rdfs-no-cycles-in-subPropertyOf-test001> a mf:PositiveEntailmentTest;
@@ -360,7 +360,7 @@
     occurs and the following entailment holds trivially.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <rdfs-no-cycles-in-subPropertyOf/test001.rdf>;
+  mf:action <rdfs-no-cycles-in-subPropertyOf/test001.ttl>;
   mf:result <rdfs-no-cycles-in-subPropertyOf/test001.nt> .
     
 <#rdfs-subClassOf-a-Property-test001> a mf:NegativeEntailmentTest;
@@ -439,8 +439,8 @@
     The case of the language tag is not significant.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <tex-01/test001.rdf>;
-  mf:result <tex-01/test002.rdf> .
+  mf:action <tex-01/test001.ttl>;
+  mf:result <tex-01/test002.ttl> .
     
 <#tex-01-language-tag-case-2> a mf:PositiveEntailmentTest;
   mf:name "tex-01-language-tag-case-2";
@@ -448,8 +448,8 @@
     The case of the language tag is not significant.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <tex-01/test002.rdf>;
-  mf:result <tex-01/test001.rdf> .
+  mf:action <tex-01/test002.ttl>;
+  mf:result <tex-01/test001.ttl> .
     
 <#xmlsch-02-whitespace-facet-1> a mf:NegativeEntailmentTest;
   mf:name "xmlsch-02-whitespace-facet-1";
@@ -458,8 +458,8 @@
     literal. Even if they only differ by whitespace.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <xmlsch-02/test001.rdf>;
-  mf:result <xmlsch-02/test002.rdf> .
+  mf:action <xmlsch-02/test001.ttl>;
+  mf:result <xmlsch-02/test002.ttl> .
     
 <#xmlsch-02-whitespace-facet-2> a mf:NegativeEntailmentTest;
   mf:name "xmlsch-02-whitespace-facet-2";
@@ -468,8 +468,8 @@
     literal. Even if they only differ by whitespace.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <xmlsch-02/test002.rdf>;
-  mf:result <xmlsch-02/test001.rdf> .
+  mf:action <xmlsch-02/test002.ttl>;
+  mf:result <xmlsch-02/test001.ttl> .
     
 <#xmlsch-02-whitespace-facet-3> a mf:PositiveEntailmentTest;
   mf:name "xmlsch-02-whitespace-facet-3";
@@ -477,8 +477,8 @@
     A simple test for well-formedness of a typed literal.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <xmlsch-02/test001.rdf>;
-  mf:result <xmlsch-02/test003.rdf> .
+  mf:action <xmlsch-02/test001.ttl>;
+  mf:result <xmlsch-02/test003.ttl> .
     
 <#xmlsch-02-whitespace-facet-4> a mf:NegativeEntailmentTest;
   mf:name "xmlsch-02-whitespace-facet-4";
@@ -486,6 +486,6 @@
     An integer with whitespace is ill-formed.
   """;
   rdfs:approval rdft:Approved;
-  mf:action <xmlsch-02/test002.rdf>;
-  mf:result <xmlsch-02/test003.rdf> .
+  mf:action <xmlsch-02/test002.ttl>;
+  mf:result <xmlsch-02/test003.ttl> .