r/semanticweb • • 1d ago

Just published some linked open data for tarot cards!

I just published a linked open dataset for tarot cards. I'm predominantly a web developer but I became really interested in RDF/Semantic web a few years ago and am finally getting around to starting some actual projects - this dataset is the first of a few things I've been working on;

https://mikeyhogarth.github.io/tarot-ontology/

It includes;

  • An ontology

  • Some correspondences (e.g. "this card corresponds to the water element")

  • Some symbolism (e.g. "this card has a dog on it") and a skos vocab relating symbols to each other (e.g. "animal is a broader term for dog")

...as well as a few other things. w3id merged my htaaccess in a few days ago so there is also a perma-id :)

Feeling pretty good about the project but there were a few things I was wondering if I could pick this community's brain about. Any feedback is good in terms of ways I could improve but these are the two things that I am pondering about;

Perma Ids

perma-id - when I published the perma ID to w3id, I set it up to redirect `ttl` or `jsonld` requests (in the accept headers) to the relevant data files, but just to send all other requests to the website I linked to above (except for the ontology itself, which redirects to the widoco docs). The thinking was that if someone's visiting the data in a browser they are probably more interested in learning about it as a human and will want something like the website, but I can't help but feel like I've done the wrong thing.

Interpretation properties

I have two propertise in the ontology: "hasInterpretation" and "hasPopularInterpretation" - i wanted to provide these for others to use, even though our data doesn't include any interpretations itself for a very specific reason.

I wanted to be very loose in terms of how people use these terms - e.g. you can say "I interpret that thing to mean X" where "X" can be anything - a string of text or a resource. It looks like, in OWL, you can't be non-commital in terms of what the object portion of a triple is allowed to be (must be dataproperty or objectproperty) - I eventually found "annotation properties" and they sounded like maybe they were the right thing, but these do not show up in widoco documentation by default. You can switch them on, but then it switches on ALL annotation properties and the docs get flooded with things like dcterms.

Does anyone have any advice for what I should do with these interpretation properties? I'm pretty new to all this so it's very likely I've messed up / not understood something!

5 Upvotes

6 comments sorted by

2

u/Traditional_Air_4639 1d ago

Have you considered using SKOS to capture the concepts you want to link to. Generally it is better to not mix literal values and IRI values. (Your object/data) issue. This is especially important when you want to handle multiple languages. One concept different descriptions in different languages.

1

u/MetalMikey666 1d ago

The symbolly bits in this are using skos - works really well. The interpretation thing was more of an after thought - we didn't really want to put it in because of how spicy that topic is in the tarot community.

1

u/Traditional_Air_4639 1d ago

If people are going to share their interpretation there could be a formal way by extending your Skos vocabulary and a less formal way through literal strings.

Then I suspect there is another level of interpretation of a collection of cards which is itself its own resource.

1

u/mark_ik 1d ago

This is super cool, I might use it in a project of mine! Thanks for sharing!

2

u/MetalMikey666 1d ago

Ooo let me know if you do! I actually span this out of a project of my own - the dataset was only supposed to be a small part of it but i'd eventually spent so much time on it, it didn't feel right to just have it be a sidecar to something else.

1

u/anasfkhan81 1d ago

very nice work, i think this would be worth opening up to crowdsourcing! an ontology/semantic web based approach could really help in building up a library of correspondences....for the interpretation part i don't know if there are any standard patterns you can re-use but there has been some work done on interpretations of literary texts that you might be interested in, but I don't know how deep you want to go into it: https://iris.cnr.it/retrieve/661a3cfa-f8d0-4b54-9809-c19f9b42c468/FOIS2024.pdf