DigitalCommons / open-data

0 stars 0 forks source link

Identify a good way of specifying a generic 'All' for the Object in a triple #19

Closed ColmMassey closed 2 years ago

ColmMassey commented 4 years ago

Moving from chat


In a triple, is there a generic way of saying that the object is all of the possible values it could be? It only makes sense when the range of values supported is a finite list or set?

so triplets work by specifying a Subject Predicate Object they do not allow specifying multiple values within the same entry, i.e. this is not allowed: Dean Likes Exams, Sleep, Work

But this is allowed:

Dean Likes Exams Dean Likes Sleep Dean Likes Work

The only thing you can do to specify some values is when making an ontology, you can specify what kind of values can go into the range and the domain of the Predicate and put in limits like that, but i guess that is not your specific problem But yeah, doing that pretty much would not make much sense, I think.

why would you want to do it? [01:41, 04/06/2020] Dean Samarjiev: aah [01:41, 04/06/2020] Dean Samarjiev: just saw your comment in the mapping document [01:42, 04/06/2020] Dean Samarjiev: how do we do all? (in the context of mapping the all category in the ICA dataset) What's the idea behind that though? [01:42, 04/06/2020] Dean Samarjiev: an "all" category

ColmMassey commented 4 years ago

I want to say and Dean Likes Everything ICA hasMembers OffAllTypes

without having to define a new 'All' term each time.

wu-lee commented 4 years ago

I'm not an expert, but skimming some docs on semantic triples, maybe this is how:

Where X is a what they call a blank node, and "anything" is rdf:Resource. Here in the Wikipedia page for RDFS it says "rdfs:Resource is the class of everything. All things described by RDF are resources."

Or in pseudo-TTL:

Possibly this could be reduced to:

Or "ex:Dean ex:likes rdfs:Resource" - although I'm not certain this means the same thing exactly, it sounds like it might mean he likes the idea (reference) than examples of it (the referents).

In Colm's use case it might be

Or

I see that Stack Overflow has a tag for RDF, so I've asked there. I suspect it might involve RDFS.