-
Notifications
You must be signed in to change notification settings - Fork 36
/
ConvSpec-490-510-Links.xspec
24 lines (20 loc) · 1.94 KB
/
ConvSpec-490-510-Links.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
<?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="510 - CITATION/REFERENCES NOTE">
<x:context href="data/ConvSpec-490-510-Links/marc.xml"/>
<x:expect label="ind 1 determines the Instance property to create with a Work object" test="count(//bf:Work[1]/bf:references/bf:Work) = 1"/>
<x:expect label="$a creates a title property of the Work object" test="//bf:Work[1]/bf:references/bf:Work/bf:title/bf:Title/bf:mainTitle = 'Index Medicus'"/>
<x:expect label="$b creates a note property of the Work object with rdf:type 'http://id.loc.gov/vocabulary/mnotetype/coverage'" test="//bf:Work[1]/bf:references/bf:Work/bf:note/bf:Note[rdf:type/@rdf:resource = 'http://id.loc.gov/vocabulary/mnotetype/coverage']/rdfs:label = 'v1n1, 1984-'"/>
<x:expect label="$c creates a note property of the Work object with rdf:type 'http://id.loc.gov/vocabulary/mnotetype/loc'" test="//bf:Work[1]/bf:references/bf:Work/bf:note/bf:Note[rdf:type/@rdf:resource = 'http://id.loc.gov/vocabulary/mnotetype/loc']/rdfs:label = 'p. 10, 50, and iii'"/>
<x:expect label="$x creates an identifiedBy/Issn property of the Work object" test="//bf:Work[1]/bf:references/bf:Work/bf:identifiedBy/bf:Issn/rdf:value = '0019-3879'"/>
<x:expect label="$u creates an electronicLocator property of the Work" test="//bf:Work[1]/bf:electronicLocator/@rdf:resource = 'https://portal.issn.org/resource/ISSN/0019-3879'"/>
</x:scenario>
</x:description>