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

Add "Braille" #899

Closed
wants to merge 1 commit into from
Closed

Add "Braille" #899

wants to merge 1 commit into from

Conversation

dr0i
Copy link
Member

@dr0i dr0i commented Aug 2, 2018

Using "name" instead of "label" makes the labels exported to context.json.

This seems strange because:

  1. we have many definitions of Uris using "label" instead of "name"
  2. I think somewhere in the code is a fallback for "name" when "name" is missing so "label" is used.

However I now I grasped once the idea of the difference between "name" and "label", but it's lost to me again. Maybe this "label-name" thing should be made simpler by dropping one definition, it seems superflous @jschnasse ?

See #897.

Using "name" instead of "label" makes the labels exported to context.json.

See #897.
@jschnasse
Copy link

jschnasse commented Aug 3, 2018

Hi there,

ok, I admit this is confusing. We have two cases here:

  1. Json-Ld shortenings (part of Json-Ld spec)
  2. Labels that are used within our JsonConverter to implement the sidecar approach

1. is part of the Json-LD spec and allows the introduction of shortenings into the context like:

type: @type

Which tolds the JSON-LD processor to replace occurrences of 'type' with '@type' in a Json-Ld document when processed as rdf .
Shortenings can also be introduced with etikett.
Example
etikett.json

 {
      "multilangLabel" : {},
      "uri" : "http://purl.org/lobid/lv#ArchivedWebPage",
      "name" : "ArchivedWebPage"
}

renders to
context.json

"ArchivedWebPage" : {
      "@id" : "http://purl.org/lobid/lv#ArchivedWebPage"
 }

Which the Json-Ld processor takes as a shortening to replace occurrences of ArchivedWebPagewith http://purl.org/lobid/lv#ArchivedWebPage

2. Is part of our own JsonConverter implementation
We use entries like

 {
        "uri": "http://marc21rdf.info/terms/continuingfre#d",
        "label": "täglich"
}

to add labels according to the sidecar approach

In your case you wanted to introduce a shortening to make the Json-Document more readable/indexable. In this case you have to define a name for the Json-Ld processor. Labels on the other hand are for the JsonConverter and will occur in form of label fields` to sidecar the actual rdf uri.

Sincerely yours
Jan

@ChristophEwertowski
Copy link
Contributor

Will be dealt with in #884.

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

Successfully merging this pull request may close these issues.

4 participants