Skip to content

Commit

Permalink
Creates manifests and READMEs for each RDF 1.2 spec referencing the R…
Browse files Browse the repository at this point in the history
…DF 1.1 manifests as well.
  • Loading branch information
gkellogg committed Nov 2, 2023
1 parent a238425 commit c6fccba
Show file tree
Hide file tree
Showing 33 changed files with 801 additions and 348 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ task index: MANIFESTS.

MANIFESTS.each do |ttl|
html = ttl.sub(/manifest(.*)\.ttl$/, 'index\1.html')
base = 'https://w3c.github.io/rdf-tests/' + ttl.sub('manifest.ttl', '')

# Find frame closest to file
frame_path, template_path = nil, nil
Expand All @@ -35,8 +36,8 @@ MANIFESTS.each do |ttl|

ttl_path, ttl_file = File.dirname(ttl), File.basename(ttl)
Dir.chdir(ttl_path) do
RDF::Reader.open(ttl_file, base_uri: '') do |reader|
out = JSON::LD::Writer.buffer(frame: JSON.parse(frame), simple_compact_iris: true) do |writer|
RDF::Reader.open(ttl_file, base_uri: base) do |reader|
out = JSON::LD::Writer.buffer(frame: JSON.parse(frame), base_uri: base, simple_compact_iris: true) do |writer|
writer << reader
end

Expand Down
2 changes: 1 addition & 1 deletion rdf/rdf11/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
.error {color: red;}
</style>
</head>
<body resource='' typeof='mf:Manifest'>
<body resource='./' typeof='mf:Manifest'>
<p>
<a href='http://www.w3.org/'>
<img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
Expand Down
2 changes: 1 addition & 1 deletion rdf/rdf11/rdf-mt/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
.error {color: red;}
</style>
</head>
<body resource='' typeof='mf:Manifest'>
<body resource='./' typeof='mf:Manifest'>
<p>
<a href='http://www.w3.org/'>
<img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
Expand Down
2 changes: 1 addition & 1 deletion rdf/rdf11/rdf-n-quads/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
.error {color: red;}
</style>
</head>
<body resource='' typeof='mf:Manifest'>
<body resource='./' typeof='mf:Manifest'>
<p>
<a href='http://www.w3.org/'>
<img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
Expand Down
2 changes: 1 addition & 1 deletion rdf/rdf11/rdf-n-triples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
.error {color: red;}
</style>
</head>
<body resource='' typeof='mf:Manifest'>
<body resource='./' typeof='mf:Manifest'>
<p>
<a href='http://www.w3.org/'>
<img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
Expand Down
4 changes: 2 additions & 2 deletions rdf/rdf11/rdf-n-triples/manifest.ttl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# N-Triples Syntax tests

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .

@prefix rdft: <http://www.w3.org/ns/rdftest#> .
Expand Down
2 changes: 1 addition & 1 deletion rdf/rdf11/rdf-trig/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
.error {color: red;}
</style>
</head>
<body resource='' typeof='mf:Manifest'>
<body resource='./' typeof='mf:Manifest'>
<p>
<a href='http://www.w3.org/'>
<img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
Expand Down
2 changes: 1 addition & 1 deletion rdf/rdf11/rdf-turtle/README
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tests have a name (mf:name) and an input (mf:action). The Evaluation
tests have an expected result (mf:result).

• An implementation passes an Evaluation test if it parses the input
into a graph, parses the expecte result into another graph, and
into a graph, parses the expected result into another graph, and
those two graphs are isomorphic (see
<http://www.w3.org/TR/rdf11-concepts/#graph-isomorphism>).

Expand Down
2 changes: 1 addition & 1 deletion rdf/rdf11/rdf-turtle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
.error {color: red;}
</style>
</head>
<body resource='' typeof='mf:Manifest'>
<body resource='./' typeof='mf:Manifest'>
<p>
<a href='http://www.w3.org/'>
<img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
Expand Down
2 changes: 1 addition & 1 deletion rdf/rdf11/rdf-xml/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
.error {color: red;}
</style>
</head>
<body resource='' typeof='mf:Manifest'>
<body resource='./' typeof='mf:Manifest'>
<p>
<a href='http://www.w3.org/'>
<img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
Expand Down
17 changes: 4 additions & 13 deletions rdf/rdf12/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
.error {color: red;}
</style>
</head>
<body resource='https://w3c.github.io/rdf-tests/rdf/rdf12#manifest' typeof='mf:Manifest'>
<body resource='../rdf12#manifest' typeof='mf:Manifest'>
<p>
<a href='http://www.w3.org/'>
<img alt='W3C' height='48' src='http://www.w3.org/Icons/w3c_home' width='72'>
Expand Down Expand Up @@ -82,25 +82,16 @@ <h2>
</h2>
<ul>
<li>
<a href='rdf-n-triples/c14n/index.html' inlist='true' property='mf:include'>rdf-n-triples/c14n/</a>
</li>
<li>
<a href='rdf-n-triples/syntax/index.html' inlist='true' property='mf:include'>rdf-n-triples/syntax/</a>
<a href='rdf-n-triples/index.html' inlist='true' property='mf:include'>rdf-n-triples/</a>
</li>
<li>
<a href='rdf-semantics/index.html' inlist='true' property='mf:include'>rdf-semantics/</a>
</li>
<li>
<a href='rdf-turtle/syntax/index.html' inlist='true' property='mf:include'>rdf-turtle/syntax/</a>
</li>
<li>
<a href='rdf-turtle/eval/index.html' inlist='true' property='mf:include'>rdf-turtle/eval/</a>
</li>
<li>
<a href='rdf-trig/syntax/index.html' inlist='true' property='mf:include'>rdf-trig/syntax/</a>
<a href='rdf-turtle/index.html' inlist='true' property='mf:include'>rdf-turtle/</a>
</li>
<li>
<a href='rdf-trig/eval/index.html' inlist='true' property='mf:include'>rdf-trig/eval/</a>
<a href='rdf-trig/index.html' inlist='true' property='mf:include'>rdf-trig/</a>
</li>
</ul>
</div>
Expand Down
Loading

0 comments on commit c6fccba

Please sign in to comment.