SlideShare a Scribd company logo
1 of 2
Download to read offline
Tips for editing BIBFRAME files
2/25/15
Graphs generated from BIBFRAME files can be extremely large and a bit overwhelming. If you want to
focus on a particular aspect of the file you can edit the BIBFRAME RDF/XML document and remove the
parts you are not interested in. When doing so, it is important to keep a few things in mind:
1. Always retain the XML declaration statement
• The first line of every RDF/XML file (including BIBFRAME files) is a declaration basically
stating to humans and computers that what follows is an XML file.
2. Always retain the root element, and any namespace declarations contained within it.
• The second line of an RDF/XML file is the opening tag for the root element <rdf:RDF>,
and it contains several namespace declarations. The last line of the file is the closing tag
for the root element </rdf:RDF>.
3. Always retain the opening and closing tags for the elements you want to focus on.
• Similar to #2, if you want to look at a particular part of the file – such as the Work
portion – you need to keep both the opening <bf:Work> and closing </bf:Work> tags for
the Work element.
4. An additional note on opening and closing tags:
• Not all elements will have distinct opening and closing tags. In these cases, the end of
the element is simply stated with a “/” at the end of the tag.
5. Some data is not found completely inside the element you are looking at. It may refer to a
different part of the file where it is more explicitly stated.
• Rather than elaborating, how about an example? If you want to see what the work title
is for a particular resource, that data is not fully contained within the Work element.
Rather, it simply references a URI that is found further down in the file in a separate
Title element.
Brief glossary (terms adapted from Library Juice Academy)
XML Structure: Here's a simple XML fragment as an example.
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:prefix = "namespace URI">
<parent>
<child>some text</child>
</parent>
<parent>
<child>some more text</child>
</parent>
</root>
<?xml version="1.0" encoding="UTF-8"?>
<booklist xmlns:dc = "http://purl.org/dc/elements/1.1/">
<book1>
<dc:title>The paper mixtape</dc:title>
</book1>
<book2>
<dc:title>Cakeboy</dc:title>
</book2>
</booklist>
Element: An element consists of an opening tag, a closing tag, and anything in between the opening
and closing tag…
Example: <message>It was a dark and stormy night.</message>
In this segment, the opening tag is <message> and the closing tag is </message>
Attribute: An attribute provides more information about an element. [Note that both element and
attribute are terms related to XML, not to linked data. They are only needed because XML is a
commonly-used way to represent linked data graphs.]
Root element, parent element, child element: It's useful to think of XML documents as a hierarchical
tree. The root element is the first element to appear; the root encloses all other elements. Each XML file
must have one and only one root. Below the root are parent, child, and subchild elements.
Declaration: An XML declaration is a processing statement that appear at the top of an XML document.
It must remain in any XML document
Example: <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
Namespace: XML Namespaces provide a way to create uniquely named elements and attributes in an
XML document. Namespaces have two primary uses: to avoid name collisions and to facilitate name
recognition. Namespaces are declared by stating the prefix that will be used and a unique URI
(commonly, but not exclusively, in the form of a URL).

More Related Content

More from NASIG

More from NASIG (20)

Ctrl + Alt + Repeat: Strategies for Regaining Authority Control after a Migra...
Ctrl + Alt + Repeat: Strategies for Regaining Authority Control after a Migra...Ctrl + Alt + Repeat: Strategies for Regaining Authority Control after a Migra...
Ctrl + Alt + Repeat: Strategies for Regaining Authority Control after a Migra...
 
The Serial Cohort: A Confederacy of Catalogers
The Serial Cohort: A Confederacy of CatalogersThe Serial Cohort: A Confederacy of Catalogers
The Serial Cohort: A Confederacy of Catalogers
 
Calculating how much your University spends on Open Access and what to do abo...
Calculating how much your University spends on Open Access and what to do abo...Calculating how much your University spends on Open Access and what to do abo...
Calculating how much your University spends on Open Access and what to do abo...
 
Measure Twice and Cut Once: How a Budget Cut Impacted Subscription Renewals f...
Measure Twice and Cut Once: How a Budget Cut Impacted Subscription Renewals f...Measure Twice and Cut Once: How a Budget Cut Impacted Subscription Renewals f...
Measure Twice and Cut Once: How a Budget Cut Impacted Subscription Renewals f...
 
Analyzing workflows and improving communication across departments
Analyzing workflows and improving communication across departments Analyzing workflows and improving communication across departments
Analyzing workflows and improving communication across departments
 
Supporting Students: OER and Textbook Affordability Initiatives at a Mid-Size...
Supporting Students: OER and Textbook Affordability Initiatives at a Mid-Size...Supporting Students: OER and Textbook Affordability Initiatives at a Mid-Size...
Supporting Students: OER and Textbook Affordability Initiatives at a Mid-Size...
 
Access to Supplemental Journal Article Materials
Access to Supplemental Journal Article Materials Access to Supplemental Journal Article Materials
Access to Supplemental Journal Article Materials
 
Communications and context: strategies for onboarding new e-resources librari...
Communications and context: strategies for onboarding new e-resources librari...Communications and context: strategies for onboarding new e-resources librari...
Communications and context: strategies for onboarding new e-resources librari...
 
Full Text Coverage Ratios: A Simple Method of Article-Level Collections Analy...
Full Text Coverage Ratios: A Simple Method of Article-Level Collections Analy...Full Text Coverage Ratios: A Simple Method of Article-Level Collections Analy...
Full Text Coverage Ratios: A Simple Method of Article-Level Collections Analy...
 
Bloomsbury digital resources
Bloomsbury digital resourcesBloomsbury digital resources
Bloomsbury digital resources
 
Web accessibility in the institutional repository crafting user centered sub...
Web accessibility in the institutional repository  crafting user centered sub...Web accessibility in the institutional repository  crafting user centered sub...
Web accessibility in the institutional repository crafting user centered sub...
 
Linked Data at Smithsonian Libraries
Linked Data at Smithsonian Libraries Linked Data at Smithsonian Libraries
Linked Data at Smithsonian Libraries
 
Walk this way: Online content platform migration experiences and collaboration
Walk this way: Online content platform migration experiences and collaboration Walk this way: Online content platform migration experiences and collaboration
Walk this way: Online content platform migration experiences and collaboration
 
Read & Publish – What It Takes to Implement a Seamless Model?
Read & Publish – What It Takes to Implement a Seamless Model?Read & Publish – What It Takes to Implement a Seamless Model?
Read & Publish – What It Takes to Implement a Seamless Model?
 
Mapping Domain Knowledge for Leading and Managing Change
Mapping Domain Knowledge for Leading and Managing ChangeMapping Domain Knowledge for Leading and Managing Change
Mapping Domain Knowledge for Leading and Managing Change
 
When to hold them when to fold them: reassessing big deals in 2020
When to hold them when to fold them: reassessing big deals in 2020When to hold them when to fold them: reassessing big deals in 2020
When to hold them when to fold them: reassessing big deals in 2020
 
Getting on the Same Page: Aligning ERM and LIbGuides Content
Getting on the Same Page: Aligning ERM and LIbGuides ContentGetting on the Same Page: Aligning ERM and LIbGuides Content
Getting on the Same Page: Aligning ERM and LIbGuides Content
 
A multi-institutional model for advancing open access journals and reclaiming...
A multi-institutional model for advancing open access journals and reclaiming...A multi-institutional model for advancing open access journals and reclaiming...
A multi-institutional model for advancing open access journals and reclaiming...
 
Knowledge Bases: The Heart of Resource Management
Knowledge Bases: The Heart of Resource ManagementKnowledge Bases: The Heart of Resource Management
Knowledge Bases: The Heart of Resource Management
 
Practical approaches to linked data
Practical approaches to linked dataPractical approaches to linked data
Practical approaches to linked data
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

Reimagining Serials handout: Tips for editing BIBFRAME files

  • 1. Tips for editing BIBFRAME files 2/25/15 Graphs generated from BIBFRAME files can be extremely large and a bit overwhelming. If you want to focus on a particular aspect of the file you can edit the BIBFRAME RDF/XML document and remove the parts you are not interested in. When doing so, it is important to keep a few things in mind: 1. Always retain the XML declaration statement • The first line of every RDF/XML file (including BIBFRAME files) is a declaration basically stating to humans and computers that what follows is an XML file. 2. Always retain the root element, and any namespace declarations contained within it. • The second line of an RDF/XML file is the opening tag for the root element <rdf:RDF>, and it contains several namespace declarations. The last line of the file is the closing tag for the root element </rdf:RDF>. 3. Always retain the opening and closing tags for the elements you want to focus on. • Similar to #2, if you want to look at a particular part of the file – such as the Work portion – you need to keep both the opening <bf:Work> and closing </bf:Work> tags for the Work element. 4. An additional note on opening and closing tags: • Not all elements will have distinct opening and closing tags. In these cases, the end of the element is simply stated with a “/” at the end of the tag.
  • 2. 5. Some data is not found completely inside the element you are looking at. It may refer to a different part of the file where it is more explicitly stated. • Rather than elaborating, how about an example? If you want to see what the work title is for a particular resource, that data is not fully contained within the Work element. Rather, it simply references a URI that is found further down in the file in a separate Title element. Brief glossary (terms adapted from Library Juice Academy) XML Structure: Here's a simple XML fragment as an example. <?xml version="1.0" encoding="UTF-8"?> <root xmlns:prefix = "namespace URI"> <parent> <child>some text</child> </parent> <parent> <child>some more text</child> </parent> </root> <?xml version="1.0" encoding="UTF-8"?> <booklist xmlns:dc = "http://purl.org/dc/elements/1.1/"> <book1> <dc:title>The paper mixtape</dc:title> </book1> <book2> <dc:title>Cakeboy</dc:title> </book2> </booklist> Element: An element consists of an opening tag, a closing tag, and anything in between the opening and closing tag… Example: <message>It was a dark and stormy night.</message> In this segment, the opening tag is <message> and the closing tag is </message> Attribute: An attribute provides more information about an element. [Note that both element and attribute are terms related to XML, not to linked data. They are only needed because XML is a commonly-used way to represent linked data graphs.] Root element, parent element, child element: It's useful to think of XML documents as a hierarchical tree. The root element is the first element to appear; the root encloses all other elements. Each XML file must have one and only one root. Below the root are parent, child, and subchild elements. Declaration: An XML declaration is a processing statement that appear at the top of an XML document. It must remain in any XML document Example: <?xml version="1.0" encoding="UTF-8" standalone="no" ?> Namespace: XML Namespaces provide a way to create uniquely named elements and attributes in an XML document. Namespaces have two primary uses: to avoid name collisions and to facilitate name recognition. Namespaces are declared by stating the prefix that will be used and a unique URI (commonly, but not exclusively, in the form of a URL).