JSON and Microdata: University of Florida Libraries, BIBFRAME Working Group, Tech Talk, 2015-07-21

10
Tech Talk BIBFRAME Working Group 21 July 2015 Allison Jai O’Dell, Metadata Librarian | [email protected] | (352) 273-2667 | 404 Library East

Transcript of JSON and Microdata: University of Florida Libraries, BIBFRAME Working Group, Tech Talk, 2015-07-21

Tech TalkBIBFRAME Working Group

21 July 2015

Allison Jai O’Dell, Metadata Librarian | [email protected] | (352) 273-2667 | 404 Library East

JSON

Why?

Data exchange format

Human-readable

Compact way to represent library data

Object-oriented = easier FRBRization

Examples

JSON:

{"employees":[{"firstName":"John", "lastName":"Doe"},{"firstName":"Anna", "lastName":"Smith"},{"firstName":"Peter", "lastName":"Jones"}

]}

XML:

<employees><employee>

<firstName>John</firstName> <lastName>Doe</lastName></employee><employee>

<firstName>Anna</firstName> <lastName>Smith</lastName></employee><employee>

<firstName>Peter</firstName> <lastName>Jones</lastName></employee>

</employees>

http://www.w3schools.com/json/ | http://json.org/

JSON-LD

Allows Linked Data to be serialized in a way similar to traditional JSON

Declare namespaces and URIs

{"@context": {"name": "http://xmlns.com/foaf/0.1/name","homepage": {"@id": "http://xmlns.com/foaf/0.1/workplaceHomepage","@type": "@id"

},"Person": "http://xmlns.com/foaf/0.1/Person"

},"@id": "http://me.markus-lanthaler.com","@type": "Person","name": "Markus Lanthaler","homepage": "http://www.tugraz.at/"

}

http://www.w3.org/TR/json-ld/ | http://json-ld.org/

Microdata

Why?

To add extra semantic meaning to HTML mark-up

To extend the HTML5 vocabulary

(so bots can understand, index, and use HTML documents –

read: Search Engine Optimization)

How?

Declare namespace for the element(s) you want to include

Add attributes to HTML elements• itemscope

• itemtype=“namespace”

• itemprop=“name”

Example:<section itemscope itemtype=“http://schema.org/CreativeWork”>

<p itemprop=“creator”>Allison Jai O’Dell</p>

</section>

Schema.org

Schema.org: “a collaborative, community activity with a mission to create, maintain, and promote schemas for structured data on the Internet, on web pages, in email messages, and beyond.”

CreativeWork, Book, Movie, MusicRecording, Person, Organization, Event,

Place, LocalBusiness, Product, Review + more

Bib Extend Community Group: “focused on establishing a consensus within the bibliographic community around proposals to submit to the WebSchemas Group for extending the Schema.org vocabulary”http://www.niso.org/apps/group_public/download.php/11936/IP_Wallis_Schema_Bib_Extend_isqv25no4.pdf

BIBFRAME

About: http://www.loc.gov/bibframe/

Technical: http://bibframe.org/

“In addition to being a replacement for MARC, BIBFRAME serves as a general model for expressing and connecting bibliographic data.”