Skip to content

Commit 781045f

Browse files
committed
Normalize manifests to use rdfs:label instead of mf:name (which has a different domain).
1 parent ea103e5 commit 781045f

File tree

62 files changed

+108
-38
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+108
-38
lines changed

manifest-frame.jsonld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"comment": "rdfs:comment",
1212
"entries": {"@id": "mf:entries", "@container": "@list", "@type": "@id"},
1313
"include": {"@id": "mf:include", "@container": "@list", "@type": "@id"},
14+
"label": "rdfs:label",
1415
"name": "mf:name",
1516
"result": {"@id": "mf:result", "@type": "@id"}
1617
},

nquads/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353
<img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
5454
</a>
5555
</p>
56-
<h1 property='mf:name'>N-Quads tests</h1>
56+
<h1 property='rdfs:label'>N-Quads tests</h1>
57+
<p property='rdfs:comment'>
58+
59+
</p>
5760
<p>This page describes W3C RDF Working Group&#39;s N-Quads test suite. This test suite contains two kinds of tests:</p>
5861

5962
<ul>

nquads/manifest.jsonld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@container": "@list",
2525
"@type": "@id"
2626
},
27+
"label": "rdfs:label",
2728
"name": "mf:name",
2829
"result": {
2930
"@id": "mf:result",
@@ -714,5 +715,5 @@
714715
"name": "minimal_whitespace"
715716
}
716717
],
717-
"name": "N-Quads tests"
718+
"label": "N-Quads tests"
718719
}

nquads/manifest.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@prefix rdft: <http://www.w3.org/ns/rdftest#> .
88

99
<> a mf:Manifest ;
10-
mf:name "N-Quads tests" ;
10+
rdfs:label "N-Quads tests" ;
1111
mf:entries
1212
(
1313
<#nq-syntax-uri-01>

nquads/template.haml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
dd code {display: inline;}
2727
footer {text-align: center;}
2828
%title
29-
= man['name']
29+
= man['label']
3030
:css
3131
em.rfc2119 {
3232
text-transform: lowercase;
@@ -48,7 +48,9 @@
4848
%p
4949
%a{href: "http://www.w3.org/"}
5050
%img{src: "http://www.w3.org/Icons/w3c_home", alt: "W3C", height: 48, width: 72}
51-
%h1{property: "mf:name"}<= man['name']
51+
%h1{property: "rdfs:label"}<= man['label']
52+
%p{property: "rdfs:comment"}
53+
= Array(man['comment']).join(' ').gsub(/\s+/m, ' ').strip.gsub(/(MUST|SHOULD|MAY)/, '<em class="rfc2119">\\1</em>')
5254
:markdown
5355
This page describes W3C RDF Working Group's N-Quads test suite. This test suite contains two kinds of tests:
5456

ntriples/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353
<img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
5454
</a>
5555
</p>
56-
<h1 property='mf:name'>N-Triples tests</h1>
56+
<h1 property='rdfs:label'>N-Triples tests</h1>
57+
<p property='rdfs:comment'>
58+
59+
</p>
5760
<p>This page describes W3C RDF Working Group&#39;s N-Triples test suite. This test suite contains two kinds of tests:</p>
5861

5962
<ul>

ntriples/manifest.jsonld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@container": "@list",
2525
"@type": "@id"
2626
},
27+
"label": "rdfs:label",
2728
"name": "mf:name",
2829
"result": {
2930
"@id": "mf:result",
@@ -532,5 +533,5 @@
532533
"name": "minimal_whitespace"
533534
}
534535
],
535-
"name": "N-Triples tests"
536+
"label": "N-Triples tests"
536537
}

ntriples/manifest.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@prefix rdft: <http://www.w3.org/ns/rdftest#> .
99

1010
<> rdf:type mf:Manifest ;
11-
mf:name "N-Triples tests" ;
11+
rdfs:label "N-Triples tests" ;
1212
mf:entries
1313
(
1414
<#nt-syntax-file-01>

ntriples/template.haml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
dd code {display: inline;}
2727
footer {text-align: center;}
2828
%title
29-
= man['name']
29+
= man['label']
3030
:css
3131
em.rfc2119 {
3232
text-transform: lowercase;
@@ -48,7 +48,9 @@
4848
%p
4949
%a{href: "http://www.w3.org/"}
5050
%img{src: "http://www.w3.org/Icons/w3c_home", alt: "W3C", height: 48, width: 72}
51-
%h1{property: "mf:name"}<= man['name']
51+
%h1{property: "rdfs:label"}<= man['label']
52+
%p{property: "rdfs:comment"}
53+
= Array(man['comment']).join(' ').gsub(/\s+/m, ' ').strip.gsub(/(MUST|SHOULD|MAY)/, '<em class="rfc2119">\\1</em>')
5254
:markdown
5355
This page describes W3C RDF Working Group's N-Triples test suite. This test suite contains two kinds of tests:
5456

rdf-mt/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353
<img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
5454
</a>
5555
</p>
56-
<h1 property='mf:name'>RDF Schema and Semantics tests</h1>
56+
<h1 property='rdfs:label'>RDF Schema and Semantics tests</h1>
57+
<p property='rdfs:comment'>
58+
59+
</p>
5760
<p>This page describes W3C RDF Working Group&#39;s Entailment test suite. This test suite contains two kinds of tests:</p>
5861

5962
<ul>

0 commit comments

Comments
 (0)