-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathConvSpec-Process6-Series.xspec
51 lines (46 loc) · 6.46 KB
/
ConvSpec-Process6-Series.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?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="490 - SERIES STATEMENT">
<x:context href="data/ConvSpec-Process6-Series/marc.xml"/>
<x:expect label="Parallel title created." test="//bf:Work[2]/bf:relation[2]/bf:Relation/bf:associatedResource/bf:Series/bf:title/bf:Title/bf:mainTitle = 'Atti di conferenze'"/>
<x:expect label="second hub if 490a[2]." test="//bf:Work[3]/bf:relation[2]/bf:Relation/bf:associatedResource/bf:Series/bf:title/bf:Title/bf:mainTitle = 'Department and Foreign Service series'"/>
<x:expect label="Series is uncontrolled." test="//bf:Work[4]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Series/rdf:type/@rdf:resource = 'http://id.loc.gov/ontologies/bflc/Uncontrolled'" />
<x:expect label="Series has status of transcribed." test="//bf:Work[4]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Series/bf:status/bf:Status/@rdf:about = 'http://id.loc.gov/vocabulary/mstatus/t'" />
<x:expect label="Series title matches expected" test="//bf:Work[4]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Series/bf:title/bf:Title/bf:mainTitle = 'Lund studies in geography'"/>
<x:expect label="Applies to..." test="//bf:Work[4]/bf:relation[1]/bf:Relation/bflc:appliesTo/bflc:AppliesTo/rdfs:label = '1972/73-1975-76'"/>
<x:expect label="Series is uncontrolled." test="//bf:Work[4]/bf:relation[2]/bf:Relation/bf:associatedResource/bf:Series/rdf:type/@rdf:resource = 'http://id.loc.gov/ontologies/bflc/Uncontrolled'" />
<x:expect label="Series has status of transcribed." test="//bf:Work[4]/bf:relation[2]/bf:Relation/bf:associatedResource/bf:Series/bf:status/bf:Status/@rdf:about = 'http://id.loc.gov/vocabulary/mstatus/t'" />
<x:expect label="second hub if 490a[2]." test="//bf:Work[4]/bf:relation[2]/bf:Relation/bf:associatedResource/bf:Series/bf:title/bf:Title/bf:mainTitle = 'Ser. B, Human geography'"/>
<!--<x:expect label="Each $a/$x/$v combination creates a seriesStatement property of the Work" test="count(//bf:Work[1]/bf:relation/bf:Relation/bf:associatedResource/bf:Hub) = 1"/>
<x:expect label="Single $x appended to both $a in parallel title series statements" test="//bf:Work[1]/bf:relation[1]/bf:Relation/bf:seriesStatement[3] = 'Papers and documents of the I.C.I. Series C, Bibliographies ; 1234-5678 ; no. 3'"/>
<x:expect label="$x of a 490 with ind1=1 and no matching 8XX creates a hasSeries property of the Work" test="//bf:Work[1]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Hub/bf:Work/bf:identifiedBy/bf:Issn/rdf:value = '1400-1144'"/>-->
</x:scenario>
<x:scenario label="8XX SERIES STATEMENT and SERIES ADDED ENTRY">
<x:context href="data/ConvSpec-Process6-Series/marc.xml"/>
<x:expect label="Each 8XX creates a hasSeries Hub property of the Work" test="count(//bf:Work[1]/bf:relation/bf:Relation/bf:associatedResource/bf:Hub) = 2"/>
<!--<x:expect label="Each 8XX creates a related (hasSeries) Hub property of the Work" test="count(//bf:Work/bf:relation/bf:Relation/bf:associatedResource/bf:Hub) = 9"/>
<x:expect label="Title subfields become title/Title/mainTitle property of Hub" test="////bf:Work/bf:relation/bf:Relation/bf:associatedResource/bf:Hub/bf:title/bf:Title/bf:mainTitle = 'DHEW publication'"/>
<x:expect label="8XX can create a contribution property of the Hub" test="//bf:Work[4]/bf:relation/bf:Relation/bf:associatedResource/bf:Hub/bf:contribution/bf:Contribution/bf:agent/bf:Agent/rdfs:label = 'United States. Department of State.'"/>
<x:expect label="8XX $w creates an identifiedBy/Identifier property of the Hub" test="//bf:Work[1]/bf:relation/bf:Relation/bf:associatedResource/bf:Hub/bf:identifiedBy/bf:Identifier/rdf:value = '550955267'"/>
<x:expect label="...with an assigner from the prefixed parenthetical" test="//bf:Work[1]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Hub/bf:identifiedBy/bf:Identifier/bf:assigner/bf:Agent/bf:code = 'DE-101'"/>
<x:expect label="...unless the source is DLC, in which case create an identifiedBy/Lccn" test="//bf:Work[2]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Hub/bf:identifiedBy/bf:Lccn/rdf:value = '83641640'"/>
<x:expect label="...with a assigner property with the DLC URI" test="//bf:Work[2]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Hub/bf:identifiedBy/bf:Lccn/bf:assigner/bf:Agent/@rdf:about='http://id.loc.gov/vocabulary/organizations/dlc'"/>
<x:expect label="8XX $x creates an identifiedBy/Issn property of the Hub" test="//bf:Work[2]/bf:relation[2]/bf:Relation/bf:associatedResource/bf:Hub/bf:identifiedBy/bf:Issn/rdf:value = '0276-4733'"/>
<x:expect label="...with fallback to associated 490 $x" test="//bf:Work[3]bf:relation[1]/bf:Relation/bf:associatedResource/bf:Hub/bf:identifiedBy/bf:Issn/rdf:value = '8765-4321'"/>
<x:expect label="8XX $3 creates a bflc:appliesTo property of the Hub" test="//bf:Work[2]/bf:hasSeries[1]/bf:Hub/bflc:appliesTo/bflc:AppliesTo/rdfs:label = '1969-1979'"/>
<x:expect label="8XX $7 sets the rdf:type of the Hub" test="//bf:Work[3]/bf:relation/bf:Relation/bf:associatedResource/bf:Hub/rdf:type/@rdf:resource = 'http://id.loc.gov/ontologies/bibframe/Series'"/>
<x:expect label="8XX $7 sets the issuance of the Hub" test="//bf:Work[3]/bf:relation/bf:Relation/bf:associatedResource/bf:Hub/bf:issuance/bf:Issuance/bf:code = 's'"/>
<x:expect label="Subseries in 490 with repeated $a matches multiple 8XX" test="//bf:Work[4]/bf:relation[2]/bf:Relation/bf:associatedResource/bf:Hub/bf:identifiedBy/bf:Issn/rdf:value = '2345-6789'"/>
<x:expect label="Two 830s, one 490 with $x - Subseries in 490 with single $a matches first 8XX (recursion issue, plus added scenario)" test="//bf:Work[6]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Hub/bf:identifiedBy/bf:Issn/rdf:value = 'issn123456789'"/>
<x:expect label="Obsolete 4XX fields treated like 8XX without 490 match" test="//bf:Work[5]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Hub/bf:title/bf:Title/bf:mainTitle = 'Resource maps of Sri Lanka'"/>
-->
</x:scenario>
</x:description>