Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path to labels for IRI observation values #42

Open
bergos opened this issue Dec 2, 2021 · 2 comments
Open

Path to labels for IRI observation values #42

bergos opened this issue Dec 2, 2021 · 2 comments

Comments

@bergos
Copy link
Contributor

bergos commented Dec 2, 2021

Visualizations may want to use labels for IRI values of observations. A path to the label could be stored in the property shape of the dimension. Besides the path, the available languages should be stored.

Here is an example how it could look like:

[
  schema:name "Room"@en, "Raum"@de , "Pièce"@fr ;
  sh:path dh:room ;
  meta:labelLocation [
    meta:labelPath (schema:location schema:address schema:name);
    meta:labelLanguage "en", "de", ""
  ]
].

The nested structure can be used to share the location of the label like shown in this example:

<roomLabelLocation>
  meta:labelPath (schema:location schema:address schema:name);
  meta:labelLanguage "en", "de", "".

[
  schema:name "Room"@en, "Raum"@de , "Pièce"@fr ;
  sh:path dh:room ;
  meta:labelLocation <roomLabelLocation>
].

If no location for the label is given, optional fallbacks like schema:name or rdfs:label could be defined. The optional could ruin the query performance. Therefore the information about not having a label has some value. It can be described with a location pointing to cube:Undefined like in the following example:

[
  schema:name "Room"@en, "Raum"@de , "Pièce"@fr ;
  sh:path dh:room ;
  meta:labelLocation cube:Undefined
].
@l00mi
Copy link
Contributor

l00mi commented Dec 2, 2021

In regard of not ruining query performance. How about:

  • by default at least schema:name is expected, at least with an empty String with dataType cube:Undefined
  • if the meta:labelPath is provided schema:name is optional
    ?

@l00mi
Copy link
Contributor

l00mi commented Jan 26, 2022

@bergos ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants