Skip to content

Commit d7b82f8

Browse files
committed
Add test fixture files to be used with the link-metadata feature.
1 parent 96c7b1f commit d7b82f8

3 files changed

Lines changed: 45 additions & 0 deletions

File tree

tests/fixtures/.meta

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@prefix dc: <http://purl.org/dc/terms/> .
2+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
3+
@prefix lm: <https://purl.org/pdsinterop/link-metadata#> .
4+
5+
<existingFile.ttl>
6+
dc:title "Top-Level Test document" ;
7+
rdfs:comment "Dummy file for testing metadata file in same directory" .
8+
9+
<nested/parent/childFile.ttl>
10+
dc:title "Nested Test document" ;
11+
rdfs:comment "Dummy file for testing metadata file in a parent directory" .
12+
13+
<deleted.ttl>
14+
dc:title "Deleted Test document" ;
15+
rdfs:comment "Non-existent file for testing metadata that has been deleted" ;
16+
lm:deleted <> .
17+
18+
<forget.ttl>
19+
dc:title "Forget Test document" ;
20+
rdfs:comment "Non-existent file for testing metadata that should be forgotten" ;
21+
lm:forget <> .
22+
23+
<redirectPermanent.ttl>
24+
dc:title "Permanent Redirect Test document" ;
25+
rdfs:comment "Non-existent file for testing metadata that has been redirected permanently " ;
26+
lm:redirectPermanent <existingFile.ttl> .
27+
28+
<redirectTemporary.ttl>
29+
dc:title "Temporary Redirect Test document" ;
30+
rdfs:comment "Non-existent file for testing metadata that has been redirected temporarily" ;
31+
lm:redirectTemporary <nested/parent/childFile.ttl> .

tests/fixtures/deleted.ttl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@prefix dc: <http://purl.org/dc/terms/> .
2+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
3+
4+
</>
5+
dc:title "This content should never be shown" ;
6+
rdfs:comment "Dummy file for testing link-metadata override" ;
7+
rdfs:comment "Instead of this content, you should be seeing a 404" .
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@prefix dc: <http://purl.org/dc/terms/> .
2+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
3+
4+
</>
5+
dc:title "This content should never be shown" ;
6+
rdfs:comment "Dummy file for testing link-metadata override" ;
7+
rdfs:comment "Instead of this content, you should be seeing the content of the file redirected to" .

0 commit comments

Comments
 (0)