lvaudor / glitter

an R package which writes SPARQL queries
https://lvaudor.github.io/glitter
44 stars 5 forks source link

rdfs:name not systematic for labelling #168

Closed lvaudor closed 1 year ago

lvaudor commented 1 year ago

Hi, Just found a triplestore where labelling with rdfs:name does not work. HAL seems to use "skos:prefLabel" instead. Maybe we should take this into account in our spq_label() function ?

lvaudor commented 1 year ago

Maybe we could have an argument prop="rdfs:name" by default in spq_label hence we could put spq_label(prop="skos:prefLabel") for hal?

maelle commented 1 year ago

how about it's something done at the spq_init() stage, initializing an endpoint with more details (URL, name of label property).

For HAL we'd store the info in our internal data as an usual endpoint.

We'd remove the endpoint argument from spq_perform() because that'd be something defined in .query thanks to spq_init().

lvaudor commented 1 year ago

Yes, sounds perfect!

maelle commented 1 year ago

@lvaudor any query example?