-
Notifications
You must be signed in to change notification settings - Fork 36
/
ConvSpec-720+740to755.xspec
50 lines (44 loc) · 5.14 KB
/
ConvSpec-720+740to755.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
<?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="720 - ADDED ENTRY--UNCONTROLLED NAME">
<x:context href="data/ConvSpec-720+740to755/marc.xml"/>
<x:expect label="720 creates a contribution/Contribution/agent/Agent property of the Work" test="//bf:Work[1]/bf:contribution[1]/bf:Contribution/bf:agent/bf:Agent/rdfs:label = 'Theodore K. Hepburn'"/>
<x:expect label="ind1=1 adds the Person Class to the Agent" test="//bf:Work[1]/bf:contribution[1]/bf:Contribution/bf:agent/bf:Agent/rdf:type/@rdf:resource='http://id.loc.gov/ontologies/bibframe/Person'"/>
</x:scenario>
<x:scenario label="740 - ADDED ENTRY--UNCONTROLLED RELATED/ANALYTICAL TITLE">
<x:context href="data/ConvSpec-720+740to755/marc.xml"/>
<x:expect label="2 740s creates two relations" test="count(//bf:Work[1]/bf:relation) = 2"/>
<x:expect label="First 740 is a hasPart of the main Work" test="//bf:Work[1]/bf:relation[1]/bf:Relation/bf:relationship/@rdf:resource='http://id.loc.gov/vocabulary/relationship/part'"/>
<x:expect label="Second 740 is a relatedTo of the main Work" test="//bf:Work[1]/bf:relation[2]/bf:Relation/bf:relationship/@rdf:resource='http://id.loc.gov/vocabulary/relationship/relatedwork'"/>
<x:expect label="Brief work description has rdf:type bflc:Uncontrolled" test="//bf:Work[1]/bf:relation[2]/bf:Relation/bf:associatedResource/bf:Work/rdf:type/@rdf:resource = 'http://id.loc.gov/ontologies/bflc/Uncontrolled'"/>
<x:expect label="ind1 generates title/Title/nonSortNum of the brief work" test="//bf:Work[1]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Work/bf:title/bf:Title/bflc:nonSortNum = '4'"/>
<x:expect label="$a generates title/Title/mainTitle of the brief work" test="//bf:Work[1]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Work/bf:title/bf:Title/bf:mainTitle = 'Joint Legislative Committee on Matrimonial and Family Laws, proposed statute'"/>
<x:expect label="$n generates partNumber of brief work" test="//bf:Work[1]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Work/bf:partNumber = 'Part 1'"/>
<x:expect label="$p generates partName of brief work" test="//bf:Work[1]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Work/bf:partName = 'Economic aspects, custody, taxes'"/>
<x:expect label="$5 generates bflc:applicableInstitution property of brief work" test="//bf:Work[1]/bf:relation[1]/bf:Relation/bf:associatedResource/bf:Work/bflc:applicableInstitution/bf:Agent/bf:code = 'MnMHCL'"/>
</x:scenario>
<x:scenario label="752 - ADDED ENTRY--HIERARCHICAL PLACE NAME">
<x:context href="data/ConvSpec-720+740to755/marc.xml"/>
<x:expect label="752 creates a place/Place property of the Work" test="//bf:Work[1]/bf:place[1]/bf:Place/rdfs:label = 'England--Greater London--London'"/>
<x:expect label="...with a madsrdf:HierarchicalGeographic Class" test="//bf:Work[1]/bf:place[1]/bf:Place/rdf:type/@rdf:resource = 'http://www.loc.gov/mads/rdf/v1#HierarchicalGeographic'"/>
<x:expect label="$abcdfgh become part of the madsrdf:componentList of the Place" test="//bf:Work[1]/bf:place[1]/bf:Place/madsrdf:componentList/*[3]/rdfs:label = 'London'"/>
<x:expect label="...with the appropriate madsrdf Class" test="//bf:Work[1]/bf:place[1]/bf:Place/madsrdf:componentList/madsrdf:County/rdfs:label = 'Greater London'"/>
</x:scenario>
<x:scenario label="753 - SYSTEM DETAILS ACCESS TO COMPUTER FILES">
<x:context href="data/ConvSpec-720+740to755/marc.xml"/>
<x:expect label="$a creates a systemRequirement/bflc:MachineModel property of the Instance" test="//bf:Instance[1]/bf:systemRequirement[1]/bflc:MachineModel/rdfs:label = 'IBM PC'"/>
<x:expect label="$b creates a systemRequirement/bflc:ProgrammingLanguage property of the Instance" test="//bf:Instance[1]/bf:systemRequirement[2]/bflc:ProgrammingLanguage/rdfs:label = 'Pascal'"/>
<x:expect label="$c creates a systemRequirement/bflc:OperatingSystem property of the Instance" test="//bf:Instance[1]/bf:systemRequirement[3]/bflc:OperatingSystem/rdfs:label = 'DOS 1.1'"/>
<x:expect label="First $0 with a URI after a subfield sets the URI of the object" test="//bf:Instance[1]/bf:systemRequirement[3]/bflc:OperatingSystem/@rdf:about = 'http://example.org/platform/obsolete'"/>
<x:expect label="Additional $0s create bf:identifiedBy properties of the object" test="//bf:Instance[1]/bf:systemRequirement[3]/bflc:OperatingSystem/madsrdf:hasRelatedAuthority/@rdf:resource = 'http://example.com/platform/obsolete'"/>
<x:expect label="$2 creates a source property of the object" test="//bf:Instance[1]/bf:systemRequirement[2]/bflc:ProgrammingLanguage/bf:source/bf:Source/bf:code = 'exampleplatform'"/>
</x:scenario>
</x:description>