forked from lcnetdev/marc2bibframe2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConvSpec-880.xspec
96 lines (91 loc) · 15 KB
/
ConvSpec-880.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?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="MARC tag 880">
<x:context href="data/ConvSpec-880/marc.xml"/>
<x:expect label="$6 210-xx should make an AbbreviatedTitle" test="//bf:Instance[1]/bf:title[1]/bf:AbbreviatedTitle/bf:mainTitle='東海道五十三次絵卷.'"/>
<x:expect label="$6 222-xx should make a KeyTitle" test="//bf:Work[1]/bf:title[1]/bf:KeyTitle/bf:mainTitle = '東海道五十三次絵卷.'"/>
<x:expect label="$6 242-xx should make a VariantTitle with varientType 'translated'" test="//bf:Instance[1]/bf:title[2]/bf:VariantTitle/bf:variantType = 'translated'"/>
<x:expect label="$6 243-xx should make a CollectiveTitle" test="//bf:Work[1]/bf:title[2]/bf:CollectiveTitle/bf:mainTitle = '東海道五十三次絵卷'"/>
<x:expect label="$6 245-xx should make a Title" test="//bf:Instance[1]/bf:title[3]/bf:Title/bf:mainTitle = '東海道五十三次絵卷'"/>
<x:expect label="$6 246-xx should make a VariantTitle" test="//bf:Work[1]/bf:title[4]/bf:ParallelTitle/bf:mainTitle = '東海道五十三次絵卷'"/>
<x:expect label="$6 247-xx should make a VariantTitle with varientType 'former'" test="//bf:Work[1]/bf:title[5]/bf:VariantTitle/bf:variantType = 'former'"/>
<x:expect label="$6 250 creates an editionStatement property of the Instance" test="//bf:Instance[1]/bf:editionStatement = 'Третий проект / под редакцией Пола Уотсона'"/>
<x:expect label="$6 260 creates a provisionActivity property of the Instance" test="//bf:Instance[1]/bf:provisionActivity[1]/bf:ProvisionActivity/bflc:simplePlace = 'Лондон'"/>
<x:expect label="$6 264 creates a provisionActivity property of the Instance" test="//bf:Instance[1]/bf:provisionActivity[2]/bf:ProvisionActivity/bflc:simplePlace = 'Сиэтл'"/>
<x:expect label="$6 490 creates a has Series relationship on Work" test="//bf:Work[1]/bf:relation/bf:Relation/bf:relationship/bf:Relationship/rdfs:label = 'Has Series'"/>
<x:expect label="...$x creates a related Hub with Issn identifier" test="//bf:Work[1]/bf:relation/bf:Relation/bf:associatedResource/bf:Series/bf:identifiedBy/bf:Issn/rdf:value = '1234-5678'"/>
<x:expect label="$6 500 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[1]/bf:Note/rdfs:label = 'Из работ семьи Chase.'"/>
<x:expect label="$6 501 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[2]/bf:Note/rdfs:label = 'С: реформированная школа / John Дьюри. Лондон: Печатный для Р. Wasnothe, [1850]'"/>
<x:expect label="$6 502 creates a dissertation property of the Work" test="//bf:Work[1]/bf:dissertation[1]/bf:Dissertation/rdfs:label = 'тезис Карла Шмидта (докторская) - Людвиг-Максимилиана Universität, Munich, 1965.'"/>
<x:expect label="$6 504 creates a note with a type property of the Instance" test="//bf:Instance[1]/bf:note[21]/bf:Note/rdfs:label = '"Литература цитируется": стр. 67-68.'"/>
<x:expect label="$6 505 creates a tableOfContents property of the Work" test="//bf:Work[1]/bf:tableOfContents/bf:TableOfContents/rdfs:label = 'Как были обнаружены эти записи - Краткий очерк Талмудов - письмо Константина.'"/>
<x:expect label="$6 506 creates a usageAndAccessPolicy property of the Instance" test="//bf:Instance[1]/bf:usageAndAccessPolicy[1]/bf:AccessPolicy/rdfs:label = 'Классифицированная информация.'"/>
<x:expect label="$6 507 creates a scale property of the Work" test="//bf:Work[1]/bf:scale[1]/bf:Scale/rdfs:label = 'Перспектива карта не в масштабе.'"/>
<x:expect label="$6 508 creates a credits property of the Instance" test="//bf:Instance[1]/bf:credits[1] = 'Музыка, Майкл Фишбейн; камера, Джордж Mo.'"/>
<x:expect label="$6 510 creates a bflc:indexedIn or bf:references property of the Work" test="//bf:Work[1]/bflc:indexedIn[1]/bf:Work/bf:title/bf:Title/bf:mainTitle = 'химический рефераты'"/>
<x:expect label="$6 511 creates a bf:credits property of the Instance" test="//bf:Instance[1]/bf:credits[2] = 'Джеки Гланвилл.'"/>
<x:expect label="$6 513 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[3]/bf:Note/rdfs:label = 'Ежеквартальный отчет технический прогресс; Январь-апрель 1, 1977.'"/>
<x:expect label="$6 515 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[4]/bf:Note/rdfs:label = 'Выпущенные в частях.'"/>
<x:expect label="$6 516 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[5]/bf:Note/rdfs:label = 'Компьютерные программы.'"/>
<x:expect label="$6 518 creates a capture property of the Work" test="//bf:Work[1]/bf:capture/bf:Capture/rdfs:label = 'Работы по звуковым сопровождением диск записан 1955-1963 в различных местах.'"/>
<x:expect label="$6 520 creates a summary property of the Work" test="//bf:Work[1]/bf:summary[1]/bf:Summary/rdfs:label = 'Иллюстрированный сборник потешек на музыку.'"/>
<x:expect label="$6 521 creates an intendedAudience property of the Work" test="//bf:Work[1]/bf:intendedAudience[1]/bf:IntendedAudience/rdfs:label = 'Умеренно мотивировано.'"/>
<x:expect label="$6 522 creates a geographicCoverage/GeographicCoverage property of the Work" test="//bf:Work[1]/bf:geographicCoverage[1]/bf:GeographicCoverage/rdfs:label = 'Канада.'"/>
<x:expect label="$6 524 creates a preferredCitation property of the Instance" test="//bf:Instance[1]/bf:preferredCitation = 'Джеймс Хейзена Hyde Papers, 1891-1941, Нью-Йорк Историческое Общество.'"/>
<x:expect label="$6 525 creates a supplementaryContent/SupplementaryContent property of the Work" test="//bf:Work[1]/bf:supplementaryContent[1]/bf:SupplementaryContent/rdfs:label = 'Имеет многочисленные добавки.'"/>
<x:expect label="$6 530 creates a note/Note property of the Instance" test="//bf:Instance[1]/bf:note[6]/bf:Note/rdfs:label = 'Доступно на микрофиши.'"/>
<x:expect label="$6 532 creates a contentAccessibility/ContentAccessibility property of the Instance" test="//bf:Instance[1]/bf:contentAccessibility[1]/bf:ContentAccessibility/rdfs:label = 'Субтитры на английском языке'"/>
<x:expect label="$6 533 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[7]/bf:Note/rdfs:label = 'Микрофильмов.'"/>
<x:expect label="$6 534 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[8]/bf:Note/rdfs:label = 'Нью-Йорк: Garland, 1987.'"/>
<x:expect label="$6 536 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[9]/bf:Note/rdfs:label = 'При поддержке Всемирной организации здравоохранения'"/>
<x:expect label="$6 538 creates a systemRequirement property of the Instance" test="//bf:Instance[1]/bf:systemRequirement[1]/bf:SystemRequirement/rdfs:label = 'Режим доступа: Интернет.'"/>
<x:expect label="$6 540 creates a usageAndAccessPolicy property of the Instance" test="//bf:Instance[1]/bf:usageAndAccessPolicy[2]/bf:UsePolicy/rdfs:label = 'Литературные права Carrie Chapman Кэтт были посвящены общественности.'"/>
<x:expect label="$6 541 creates an immediateAcquisition/ImmediateAcquisition property of an Item" test="//bf:Instance[1]/bf:hasItem/bf:Item/bf:immediateAcquisition/bf:ImmediateAcquisition = 'Источник неизвестен.'"/>
<x:expect label="$6 544 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[10]/bf:Note/rdfs:label = 'Департамент здравоохранения Fonds, Услуги здравоохранения Отдел файлов.'"/>
<x:expect label="$6 545 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[11]/bf:Note/rdfs:label = 'Автор и реформатор.'"/>
<x:expect label="$6 546 creates a note property of the Work" test="//bf:Work[1]/bf:note/bf:Note/rdfs:label = 'На французском.'"/>
<x:expect label="...with an rdf type of lang note" test="//bf:Work[1]/bf:note/bf:Note/rdf:type/@rdf:resource = 'http://id.loc.gov/vocabulary/mnotetype/lang'"/>
<x:expect label="$6 547 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[12]/bf:Note/rdfs:label = 'Издание меняется: 1916, Нью-Йорк издания.'"/>
<x:expect label="$6 550 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[13]/bf:Note/rdfs:label = 'Орган клуба Потомак на стороне естествоиспытателей.'"/>
<x:expect label="$6 555 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[14]/bf:Note/rdfs:label = 'Совокупный индекс с учетом включенных в каждом томе, -V. 29.'"/>
<x:expect label="$6 556 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[15]/bf:Note/rdfs:label = 'BASIC ссылка. 3-е изд. Бока-Ратон, штат Флорида. : IBM, c1984. (Персональный компьютер аппаратные справочная библиотека); 6361132.'"/>
<x:expect label="$6 561 creates a custodialHistory property on Instance" test="//bf:Instance[1]/bf:custodialHistory = 'На постоянной основе из коллекции Пола Меллона.'"/>
<x:expect label="$6 563 creates a note/Note property on Instance" test="//bf:Instance[1]/bf:note[16]/bf:Note/rdfs:label='Центральный переплет конца XVI века с потайной тиснением, темно-коричневый теленок.'"/>
<x:expect label="$6 580 creates a note property of the Work" test="//bf:Work[1]/bf:note[2]/bf:Note/rdfs:label = 'Формы часть Frances Benjamin Johnston Collection.'"/>
<x:expect label="$6 581 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[17]/bf:Note/rdfs:label = 'Инвентаризация американской скульптуры: ксерокопия. 1982.'"/>
<x:expect label="$6 583 creates a note/Note property of an Item" test="//bf:Instance[1]/bf:note[18]/bf:Note/rdfs:label='пониженный'"/>
<x:expect label="$6 585 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[19]/bf:Note/rdfs:label = 'Выставлены: "Видения City & Country: эстампов и фотографий девятнадцатом веке во Франции", организованной Ворчестер художественного музея и Американской федерации искусств, 1982.'"/>
<x:expect label="$6 586 creates an awards note on the Work" test="//bf:Work[1]/bf:note[3]/bf:Note/rdfs:label = 'Национальная книжная премия, 1981'"/>
<x:expect label="$6 588 creates a note property of the Instance" test="//bf:Instance[1]/bf:note[20]/bf:Note/rdfs:label = 'Том 2.'"/>
<x:expect label="$6 740 creates a related Work linked to the main Work" test="//bf:Work[1]/bf:relation/bf:Relation/bf:associatedResource/bf:Work/bf:title/bf:Title/bf:mainTitle ='Руководство гадалки'"/>
<x:expect label="$6 7XX linking field" test="//bf:Work[1]/bf:relation/bf:Relation[bf:relationship/@rdf:resource='http://id.loc.gov/vocabulary/relationship/absorptionof']/bf:associatedResource/bf:Work/bf:hasInstance/bf:Instance/bf:title/bf:Title/bf:mainTitle = 'Графические уведомления и дополнительные данные'"/>
</x:scenario>
<x:scenario label="xml:lang attributes from 880">
<x:context href="data/ConvSpec-880/marc-lang.xml"/>
<x:expect label="Language from 008 and MARC8 script code from $6 create an xml:lang attribute of the Resource" test="//bf:Work[1]/bf:title[1]/bf:VariantTitle/bf:mainTitle/@xml:lang = 'da-arab'"/>
<x:expect label="Script can come from 4-letter code" test="//bf:Work[1]/bf:title[2]/bf:VariantTitle/bf:mainTitle/@xml:lang = 'da-Arab'"/>
<x:expect label="Script can come from 3-digit numeric code" test="//bf:Work[1]/bf:title[3]/bf:VariantTitle/bf:mainTitle/@xml:lang = 'da-Arab'"/>
</x:scenario>
<x:scenario label="Subfield 6 processing">
<x:context href="data/ConvSpec-880/marc-subfield6-processing.xml"/>
<x:expect label="LDR always processed" test="//bf:Work[1]/bf:adminMetadata/bf:AdminMetadata/bf:status/bf:Status/rdfs:label = 'changed'"/>
<x:expect label="marc:controlfield nodes always processed" test="//bf:Work[1]/bf:adminMetadata/bf:AdminMetadata/bf:identifiedBy/bf:Local/rdf:value = '1'"/>
<x:expect label="Fields without $6 always processed" test="//bf:Instance[1]/bf:identifiedBy/bf:Lccn/rdf:value = ' 2016377151'"/>
<x:expect label="880 fields with no regular field match always processed" test="//bf:Work[1]/bf:contribution/bf:Contribution/bf:agent/bf:Agent/rdfs:label = '许思豪, 1955-'"/>
<x:expect label="245/880 pair create single bf:Title" test="count(//bf:Work[1]/bf:title/bf:Title) = 1"/>
<x:expect label="...with properties drawn from both fields" test="//bf:Work[1]/bf:title/bf:Title/bf:mainTitle = 'Cao Sugong mo ding zhi zuo ji yi' and //bf:Work[1]/bf:title/bf:Title/bf:mainTitle = '曹素功墨锭制作技艺'"/>
<x:expect label="250/880 pair create multiple editionStatement properties of the Instance" test="count(//bf:Instance[1]/bf:editionStatement) = 2"/>
<x:expect label="260 or 264 paired with 880 create single provisionActivity property of the Instance" test="count(//bf:Instance[1]/bf:provisionActivity) = 1"/> <!-- 008 and 260 merged -->
<x:expect label="...with multiple labels on ProvisionActivity property objects" test="count(//bf:Instance[1]/bf:provisionActivity/bf:ProvisionActivity/bflc:simplePlace) = 2"/>
<x:expect label="880 pair configured to convert regular field" test="count(//bf:Work[1]/bf:subject) = 1 and //bf:Work[1]/bf:subject/bf:Topic/madsrdf:authoritativeLabel = 'Cao, Sugong, 1615-1689--Criticism and interpretation.'"/>
<x:expect label="880 pair configured to convert 880" test="count(//bf:Instance[1]/bf:note) = 1 and //bf:Instance[1]/bf:note/bf:Note/rdfs:label = 'Из работ семьи Chase.'"/>
</x:scenario>
</x:description>