Story[Marc2BF]: Convert marc field 776 to "otherVersion" edge of Work

Description

Update Marc2BF conversion Java library to process record 776

New resources to be created

Resource #1

Create an outgoing edge http://bibfra.me/vocab/relation/otherVersion  from the Work resource with the following properties

 
Type: Type: http://bibfra.me/vocab/lite/Work  
 

 

Resource #2

Create an incoming edge http://bibfra.me/vocab/lite/instantiates to resource#1 with the following properties

Types:
http://bibfra.me/vocab/lite/Instance
All properties of resource #1 plus the following 2 properties
 

 

Resource #3

Create this resource only if $w follows the following regex pattern (OCoLC)\s(?<id>\d+)*

Create an outgoing edge http://library.link/vocab/map from Resource#1 with the following properties

Types:
http://bibfra.me/vocab/lite/Identifier
http://library.link/identifier/OCLCNUM
 

Property

value

http://bibfra.me/vocab/lite/name

$w
 
Only if $w follows the following regex pattern
 
(OCoLC)\s*(?<id>\d+)
 
Extract the "id" from the regex and store it in "oclcNumber" property. 

http://bibfra.me/vocab/lite/link

http://www.worldcat.org/oclc/ + $w (extract id as per the logic mentioned above)

 

 Resource #4

Create an outgoing edge http://library.link/vocab/map from Resource#2 with the following properties

Types:
http://bibfra.me/vocab/lite/Identifier
http://library.link/identifier/ISBN 

 

 

 Resource #5

Create an outgoing edge http://library.link/vocab/map from Resource#2 with the following properties

Types:
http://bibfra.me/vocab/lite/Identifier
http://library.link/identifier/ISSN  

 

Resource #6

Create this edge only if value of $w follows the regex pattern (DLC)\s(?<id>[a-zA-Z0-9-_ ]+)*

LCCN = Extract the "id" from the regex

Create an outgoing edge http://library.link/vocab/map from Resource#2 with the following properties

Types:
http://bibfra.me/vocab/lite/Identifier
http://library.link/identifier/LCCN 

Environment

None

Potential Workaround

None

Attachments

1
  • 17 Jan 2024, 04:10 PM

Checklist

hide

TestRail: Results

Activity

Show:

Punnoose Kutty Jacob Pullolickal June 3, 2024 at 7:31 PM

Duplicate

Details

Assignee

Reporter

Priority

Development Team

Citation

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created January 17, 2024 at 4:07 PM
Updated June 3, 2024 at 7:31 PM
Resolved June 3, 2024 at 7:31 PM
TestRail: Cases
TestRail: Runs