-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathConvSpec-LDR.xspec
33 lines (30 loc) · 3.43 KB
/
ConvSpec-LDR.xspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:marc="http://www.loc.gov/MARC21/slim"
xmlns:bf="http://id.loc.gov/ontologies/bibframe/"
xmlns:bflc="http://id.loc.gov/ontologies/bflc/"
xmlns:madsrdf="http://www.loc.gov/mads/rdf/v1#"
stylesheet="../xsl/marc2bibframe2.xsl"
xslt-version="1.0">
<x:scenario label="LDR">
<x:context href="data/ConvSpec-LDR/marc.xml"/>
<x:expect label="pos 5 should set the status/Status URI in Work adminMetadata" test="//bf:Work[1]/bf:adminMetadata/bf:AdminMetadata/bf:status/bf:Status/@rdf:about = 'http://id.loc.gov/vocabulary/mstatus/c'"/>
<x:expect label="...along with a label" test="//bf:Work[1]/bf:adminMetadata/bf:AdminMetadata/bf:status/bf:Status/rdfs:label = 'changed'"/>
<x:expect label="pos 6 should set the rdf:type of the Work" test="//bf:Work[2]/rdf:type/@rdf:resource = 'http://id.loc.gov/ontologies/bibframe/NotatedMusic'"/>
<x:expect label="LDR/06=q sets rdf:type to bf:Hub" test="//bf:Work[5]/rdf:type/@rdf:resource = 'http://id.loc.gov/ontologies/bibframe/Hub'"/>
<x:expect label="pos 6 can also set the rdf:type of the Work" test="//bf:Work[2]/rdf:type/@rdf:resource = 'http://id.loc.gov/ontologies/bibframe/Manuscript'"/>
<x:expect label="pos 6 should create a content property of the Work" test="//bf:Work[1]/bf:content/bf:Content/@rdf:about = 'http://id.loc.gov/vocabulary/contentTypes/txt'"/>
<x:expect label="...unless content is derived by 336" test="//bf:Work[3]/bf:content/bf:Content/@rdf:about = 'http://id.loc.gov/vocabulary/contentTypes/prm'"/>
<x:expect label="pos 7 should set the issuance of the Instance" test="//bf:Instance[1]/bf:issuance/@rdf:resource = 'http://id.loc.gov/vocabulary/issuance/mono'"/>
<x:expect label="pos 7 should set the issuance of the Instance" test="//bf:Instance[3]/bf:issuance/@rdf:resource = 'http://id.loc.gov/vocabulary/issuance/mulm'"/>
<x:expect label="pos 7 can set the rdf:type of the Work to Collection" test="//bf:Work[3]/rdf:type/@rdf:resource = 'http://id.loc.gov/ontologies/bibframe/Collection'"/>
<x:expect label="pos 6-7 combination does NOT set the rdf:type of the Instance" test="count(//bf:Instance[1]/rdf:type) = 0"/>
<x:expect label="pos 8 will not set the rdf:type of the Instance" test="count(//bf:Instance[4]/rdf:type) = 0"/>
<x:expect label="pos 17 should set the encodingLevel in Work adminMetadata" test="//bf:Work[1]/bf:adminMetadata/bf:AdminMetadata/bflc:encodingLevel/bflc:EncodingLevel/rdfs:label = 'full'"/>
<x:expect label="...along with an IRI for the EncodingLevel resource" test="//bf:Work[1]/bf:adminMetadata/bf:AdminMetadata/bflc:encodingLevel/bflc:EncodingLevel/@rdf:about = 'http://id.loc.gov/vocabulary/menclvl/f'"/>
<x:expect label="pos 18 should set the descriptionConventions in Work adminMetadata" test="//bf:Work[1]/bf:adminMetadata/bf:AdminMetadata/bf:descriptionConventions/bf:DescriptionConventions/bf:code = 'aacr'"/>
<x:expect label="...along with an IRI for the DescriptionConventions resource" test="//bf:Work[1]/bf:adminMetadata/bf:AdminMetadata/bf:descriptionConventions/bf:DescriptionConventions/@rdf:about = 'http://id.loc.gov/vocabulary/descriptionConventions/aacr'"/>
</x:scenario>
</x:description>