Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Benjamin R
Benjamin R
@briesenb@mas.to  ·  activity timestamp 4 weeks ago

After a year since last time, I got back to playing with our digital-collections RDF exports and writing about it -- this time, aggregating some descriptions from id.loc and Wikidata. It was fun.
https://blogs.uoregon.edu/digitallibraryservices/2025/12/22/od2-rdf-02/
I believe we still have a fair bit of work and cleanup before we'd expose the data publicly. Maybe that's what I'll write about next year...
#rdf #sparql #python #lod

https://digitallibrary.uoregon.edu

Querying Oregon Digital RDF*, Part 2

  • Copy link
  • Flag this post
  • Block
ink
ink
@ink@merveilles.town replied  ·  activity timestamp 5 days ago

@briesenb thanks for this! I happened to notice you were separately requesting the id.loc.gov resources and then passing the rdfxml to rdflib?

```
g = rdflib.Graph().parse(data=response.text, format="xml")
```

If id.loc.gov is configured correctly I think you should be able to give parse() the URI directly?

https://rdflib.readthedocs.io/en/7.1.1/intro_to_parsing.html#reading-remote-rdf

Loading and saving RDF — rdflib 7.1.1 documentation

  • Copy link
  • Flag this comment
  • Block
Benjamin R
Benjamin R
@briesenb@mas.to replied  ·  activity timestamp 5 days ago

@ink thank you! Funny, I know I've parsed remote data from a URL in that way before but... who knows why I felt the need to overly complicate things in that moment!? I appreciate the note; there's still so much rdflib functionality I haven't touched or comprehended.

  • Copy link
  • Flag this comment
  • Block
ink
ink
@ink@merveilles.town replied  ·  activity timestamp 5 days ago

@briesenb nice -- I love how when the stars are in alignment you can follow your nose can build the graph

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-beta.35 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct