forked from lcnetdev/marc2bibframe2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConvSpec-648-662.xspec
68 lines (59 loc) · 5.73 KB
/
ConvSpec-648-662.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?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="648 - SUBJECT ADDED ENTRY--CHRONOLOGICAL TERM">
<x:context href="data/ConvSpec-648-662/marc.xml"/>
<x:expect label="648 creates a subject/Temporal property of the Work" test="count(//bf:Work[1]/bf:subject/bf:Temporal) = 1"/>
<x:expect label="ind2 creates a source property of the Temporal" test="//bf:Work[1]/bf:subject[1]/bf:Temporal/bf:source/bf:Source/bf:code='fast'"/>
<x:expect label="Temporal also has Class from MADSRDF" test="//bf:Work[1]/bf:subject[1]/bf:Temporal/rdf:type/@rdf:resource = 'http://www.loc.gov/mads/rdf/v1#Temporal'"/>
<x:expect label="$avxyz create the rdfs:label property of the Topic" test="//bf:Work[1]/bf:subject[1]/bf:Temporal/rdfs:label = '1900-1999'"/>
<x:expect label="...and the madsrdf:authoritativeLabel property" test="//bf:Work[1]/bf:subject[1]/bf:Temporal/madsrdf:authoritativeLabel = '1900-1999'"/>
</x:scenario>
<x:scenario label="650 - SUBJECT ADDED ENTRY--TOPICAL TERM">
<x:context href="data/ConvSpec-648-662/marc.xml"/>
<x:expect label="650 creates a subject/Topic property of the Work" test="count(//bf:Work[1]/bf:subject/bf:Topic) = 3"/>
<x:expect label="$abcdvxyz create the rdfs:label property of the Topic" test="//bf:Work[1]/bf:subject[2]/bf:Topic/rdfs:label = 'Caracas--Bolivar Statue--Far away--Long ago--History'"/>
<x:expect label="$e creates a bflc:relationship property of the Topic" test="//bf:Work[1]/bf:subject[2]/bf:Topic/bflc:relationship/bflc:Relationship/bflc:relation/rdfs:Resource/rdfs:label = 'depicted'"/>
<x:expect label="$g creates a note property of the Topic" test="//bf:Work[1]/bf:subject[2]/bf:Topic/bf:note/bf:Note/rdfs:label = 'Miscellania'"/>
<x:expect label="$abcdvxyz create a madsrdf:componentList property of the Topic" test="count(//bf:Work[1]/bf:subject[2]/bf:Topic/madsrdf:componentList) = 1"/>
<x:expect label="...with components from the subfields" test="//bf:Work[1]/bf:subject[2]/bf:Topic/madsrdf:componentList/madsrdf:Topic[2]/madsrdf:authoritativeLabel = 'Bolivar Statue'"/>
</x:scenario>
<x:scenario label="651 - SUBJECT ADDED ENTRY--GEOGRAPHIC NAME">
<x:context href="data/ConvSpec-648-662/marc.xml"/>
<x:expect label="651 creates a subject/Place property of the Work" test="count(//bf:Work[1]/bf:subject/bf:Place) = 2"/>
<x:expect label="...with a Class from MADSRDF" test="//bf:Work[1]/bf:subject[3]/bf:Place/rdf:type/@rdf:resource = 'http://www.loc.gov/mads/rdf/v1#Geographic'"/>
<x:expect label="$0 with a URI sets the rdf:about property of the Place" test="//bf:Work[1]/bf:subject[3]/bf:Place/@rdf:about = 'http://id.loc.gov/authorities/names/n97057532'"/>
</x:scenario>
<x:scenario label="653 - INDEX TERM--UNCONTROLLED">
<x:context href="data/ConvSpec-648-662/marc.xml"/>
<x:expect label="653 creates a subject property of the Work" test="count(//bf:Work[1]/bf:subject/bf:Topic) = 3"/>
<x:expect label="$a (repeated) creates an rdfs:label property of the Topic" test="//bf:Work[1]/bf:subject[4]/bf:Topic/rdfs:label = 'Man--Eye--Diseases'"/>
</x:scenario>
<x:scenario label="655 - INDEX TERM--GENRE/FORM">
<x:context href="data/ConvSpec-648-662/marc.xml"/>
<x:expect label="655 creates a genreForm/GenreForm property of the Work" test="count(//bf:Work[1]/bf:genreForm/bf:GenreForm) = 1"/>
<x:expect label="...with a Class from MADSRDF" test="//bf:Work[1]/bf:genreForm[1]/bf:GenreForm/rdf:type/@rdf:resource = 'http://www.loc.gov/mads/rdf/v1#GenreForm'"/>
</x:scenario>
<x:scenario label="656 - INDEX TERM--OCCUPATION">
<x:context href="data/ConvSpec-648-662/marc.xml"/>
<x:expect label="656 creates a subject/Topic property of the work" test="count(//bf:Work[1]/bf:subject/bf:Topic) = 3"/>
<x:expect label="...with rdf:type of madsrdf:ComplexSubject" test="//bf:Work[1]/bf:subject[5]/bf:Topic/rdf:type/@rdf:resource = 'http://www.loc.gov/mads/rdf/v1#ComplexSubject'"/>
<x:expect label="$akvxyz creates an rdfs:label property of the Topic" test="//bf:Work[1]/bf:subject[5]/bf:Topic/rdfs:label = 'Chauffeurs--France.'"/>
<x:expect label="...and become components in the madsrdf:componentList of the Topic" test="//bf:Work[1]/bf:subject[5]/bf:Topic/madsrdf:componentList/madsrdf:Occupation/rdfs:label = 'Chauffeurs'"/>
<x:expect label="$2 creates a source property of the Topic" test="//bf:Work[1]/bf:subject[5]/bf:Topic/bf:source/bf:Source/rdfs:label = 'someCode'"/>
</x:scenario>
<x:scenario label="662 - SUBJECT ADDED ENTRY--HIERARCHICAL PLACE NAME">
<x:context href="data/ConvSpec-648-662/marc.xml"/>
<x:expect label="662 creates a subject/Place property of the work" test="count(//bf:Work[1]/bf:subject/bf:Place) = 2"/>
<x:expect label="...with rdf:type of madsrdf:HierarchicalGeographic" test="//bf:Work[1]/bf:subject[6]/bf:Place/rdf:type/@rdf:resource = 'http://www.loc.gov/mads/rdf/v1#HierarchicalGeographic'"/>
<x:expect label="$abcdfgh creates an rdfs:label property of the Topic" test="//bf:Work[1]/bf:subject[6]/bf:Place/rdfs:label = 'Japan--Hokkaido--Asahi-dake.'"/>
<x:expect label="...and become components in the madsrdf:componentList of the Topic" test="//bf:Work[1]/bf:subject[6]/bf:Place/madsrdf:componentList/*[3]/rdfs:label = 'Asahi-dake'"/>
</x:scenario>
</x:description>