Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers...
Transcript of Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers...
![Page 1: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/1.jpg)
Linked Data Demos: The plot thickens
IGELU 2018 Developers Day | Prague Czech Republic
Laura AkermanDiscovery Systems and Metadata Librarian, Emory University
Josh WeismanVP Development, Ex Libris
![Page 2: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/2.jpg)
Linked Data Harvest A brief exploration of things to do with BIBFRAME from Alma
![Page 3: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/3.jpg)
I am not a farmer developer
![Page 4: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/4.jpg)
BIBFRAME - an RDF ontology and vocabulary
![Page 5: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/5.jpg)
BIBFRAME is on the move...
• July 24, 2018 - at ALA Annual Meeting, Beacher Wiggins, Director for Acquisitions and Bibliographic access said "With this update, the library is announcing that it is committed to implementing BIBFRAME as a viable replacement for MARC."
• Quoted as saying elsewhere -- "within 2-5 years."
![Page 6: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/6.jpg)
Gathering BIBFRAME from Alma web client
![Page 7: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/7.jpg)
Using Alma API to get BIBFRAME - so easy
● Activate the linked data profile● Example request
https://open-na.hosted.exlibrisgroup.com/alma/01GALI_EMORY/bf/entity/instance/990006022220302486
*Documented on Developer Network: https://developers.exlibrisgroup.com/alma/apis/bibs/GET/gwPcGly021om4RTvtjbPlc5mU+8DB2nncwZbtvBJcCRbmJlr9MLGJF78JRyq7vUf/af2fb69d-64f4-42bc-bb05-d8a0ae56936e
![Page 8: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/8.jpg)
Publishing BIBFRAME from Alma
![Page 9: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/9.jpg)
...publishing details
![Page 10: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/10.jpg)
Triplestore... so many choices... ?
https://ontotext.com/prod
ucts/graphdb/
![Page 11: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/11.jpg)
Databases
![Page 12: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/12.jpg)
Test import copy/pasted from Alma cataloging
![Page 13: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/13.jpg)
BIBFRAME in GraphDB
![Page 14: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/14.jpg)
Add more triples about G. W. Carver
• Bibframe -> Bibframe ontology• Bibframe -> id.loc.gov authority data for Carver• id.loc.gov authority -> VIAF• no VIAF link to dbpedia or wikidata 🙁 -skip it! • Wikidata – Carver• Added (manually) an owl:sameAs between the authority ID and
Wikidata ID for Carver.
<http://id.loc.gov/authorities/names/n50034776> <http://www.w3.org/2002/07/owl#sameAs> <http://www.wikidata.org/entity/Q296898>
• No way to get Primo ID from Alma BIBFRAME directly...
![Page 15: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/15.jpg)
Queries
• SPARQL endpoint allows simple and complex queries
• A simple query is "give me all your triples with the LC URI for Carver as object".
• PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT DISTINCT ?s ?p
WHERE {
?s ?p <http://id.loc.gov/authorities/names/n50034776>.
} LIMIT 1000
![Page 16: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/16.jpg)
SPARQL result
![Page 17: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/17.jpg)
![Page 18: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/18.jpg)
What could we do with these triples?
![Page 19: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/19.jpg)
Thanks for your attention! Now, what do YOU want to do?
Laura AkermanDiscovery Systems and Metadata LibrarianEmory [email protected]
BIBFRAME: https://www.loc.gov/bibframe/
GraphDB: https://rdf.ontotext.com
RDFlib (Javascript library): https://github.com/linkeddata/rdflib.js
IGELU/ELUNA Linked Open Data Working Grouphttps://igelu.org/special-interests/lod
![Page 20: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/20.jpg)
Author Cards made easy with LD
![Page 21: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/21.jpg)
“Classic” Linked Data Scenario
1 2 3
![Page 23: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/23.jpg)
UW Madison BibCard
● Encapsulates following of the links
● Hides issues such as:
○ Lack of outbound links from LC records
○ Resolving LC ID to VIAF
![Page 24: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/24.jpg)
UW Madison BibCard
https://github.com/UW-Madison-Library/bibcard
![Page 25: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/25.jpg)
So how hard would it be….
… to implement the “classic” LD scenario?
Toolbox:
● Alma JSON-LD API● Madison BibCard ● Ruby script
![Page 26: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/26.jpg)
Step 1: Alma JSON-LD API
● Activate the Linked Data integration profile
● Access the record URI (sample):https://open-na.hosted.exlibrisgroup.com/alma/{INST_CODE}/bibs/{MMS_ID}.jsonld
![Page 27: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/27.jpg)
Step 2: Get BibCard
● To install the gem, follow the instructions at:https://github.com/UW-Madison-Library/bibcard
![Page 28: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/28.jpg)
Step 3- Short Ruby Script
● Retrieve JSON LD
RestClient.get(JSONLD_URL + ARGV[0])
● Create BibCard object
person = BibCard.person(lcnaf_uri)
● Populate ViewModel
● Write file
![Page 29: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/29.jpg)
Simple as that….
![Page 30: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/30.jpg)
Resources & What’s next
● Gist: http://bit.ly/2HDpVw5
● More use cases!
● More usage!
● Feedback!
![Page 31: Linked Data Demos: The plot thickens · Linked Data Demos: The plot thickens IGELU 2018 Developers Day | Prague Czech Republic Laura Akerman ... •Bibframe -> id.loc.gov authority](https://reader034.fdocuments.in/reader034/viewer/2022042709/5f42e10b8d2ae433b35e75a6/html5/thumbnails/31.jpg)
Questions?