{"action":"created","issue":{"url":"https://api.github.com/repos/hbz/lobid-organisations/issues/250","repository_url":"https://api.github.com/repos/hbz/lobid-organisations","labels_url":"https://api.github.com/repos/hbz/lobid-organisations/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/hbz/lobid-organisations/issues/250/comments","events_url":"https://api.github.com/repos/hbz/lobid-organisations/issues/250/events","html_url":"https://github.com/hbz/lobid-organisations/issues/250","id":173430489,"number":250,"title":"Use language maps approach for string internationalization","user":{"login":"acka47","id":160292,"avatar_url":"https://avatars.githubusercontent.com/u/160292?v=3","gravatar_id":"","url":"https://api.github.com/users/acka47","html_url":"https://github.com/acka47","followers_url":"https://api.github.com/users/acka47/followers","following_url":"https://api.github.com/users/acka47/following{/other_user}","gists_url":"https://api.github.com/users/acka47/gists{/gist_id}","starred_url":"https://api.github.com/users/acka47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acka47/subscriptions","organizations_url":"https://api.github.com/users/acka47/orgs","repos_url":"https://api.github.com/users/acka47/repos","events_url":"https://api.github.com/users/acka47/events{/privacy}","received_events_url":"https://api.github.com/users/acka47/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hbz/lobid-organisations/labels/org-launch","name":"org-launch","color":"b60205"},{"url":"https://api.github.com/repos/hbz/lobid-organisations/labels/review","name":"review","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"acka47","id":160292,"avatar_url":"https://avatars.githubusercontent.com/u/160292?v=3","gravatar_id":"","url":"https://api.github.com/users/acka47","html_url":"https://github.com/acka47","followers_url":"https://api.github.com/users/acka47/followers","following_url":"https://api.github.com/users/acka47/following{/other_user}","gists_url":"https://api.github.com/users/acka47/gists{/gist_id}","starred_url":"https://api.github.com/users/acka47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acka47/subscriptions","organizations_url":"https://api.github.com/users/acka47/orgs","repos_url":"https://api.github.com/users/acka47/repos","events_url":"https://api.github.com/users/acka47/events{/privacy}","received_events_url":"https://api.github.com/users/acka47/received_events","type":"User","site_admin":false},"assignees":[{"login":"acka47","id":160292,"avatar_url":"https://avatars.githubusercontent.com/u/160292?v=3","gravatar_id":"","url":"https://api.github.com/users/acka47","html_url":"https://github.com/acka47","followers_url":"https://api.github.com/users/acka47/followers","following_url":"https://api.github.com/users/acka47/following{/other_user}","gists_url":"https://api.github.com/users/acka47/gists{/gist_id}","starred_url":"https://api.github.com/users/acka47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acka47/subscriptions","organizations_url":"https://api.github.com/users/acka47/orgs","repos_url":"https://api.github.com/users/acka47/repos","events_url":"https://api.github.com/users/acka47/events{/privacy}","received_events_url":"https://api.github.com/users/acka47/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-08-26T11:20:49Z","updated_at":"2016-09-05T07:35:37Z","closed_at":null,"body":"We currently represent German and English values for the properties `classification`, `fundertype` and `stocksize` in the following way using what the JSON-LD spec calls a \"expanded term definition\". Example:\r\n\r\n```json\r\n  \"classification\" : {\r\n    \"id\" : \"http://purl.org/lobid/libtype#n15\",\r\n    \"label\" : \"Zentrale Fachbibliothek\",\r\n    \"label_en\" : \"Central Subject Library\"\r\n  }\r\n```\r\n\r\nThere is another approach defined in the spec that is more developer friendly: language maps. It reads in [section 6.9 of the JSON-LD spec](https://www.w3.org/TR/json-ld/#string-internationalization):\r\n\r\n> ... systems often need to express the value of a property in multiple languages. Typically, such systems also try to ensure that developers have a programmatically easy way to navigate the data structures for the language-specific data. In this case, language maps may be utilized.\r\n\r\nFor the example above this would look like this:\r\n\r\n```json\r\n{\r\n   \"@context\": {\r\n      \"label\": {\r\n         \"@id\": \"http://www.w3.org/2000/01/rdf-schema#label\",\r\n         \"@container\": \"@language\"\r\n      }\r\n   },\r\n   \"classification\":{\r\n      \"id\": \"http://purl.org/lobid/libtype#n15\",\r\n      \"label\": {\r\n         \"de\": \"Zentrale Fachbibliothek\",\r\n         \"en\": \"Central Subject Library\"\r\n      }\r\n   }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/hbz/lobid-organisations/issues/comments/244677792","html_url":"https://github.com/hbz/lobid-organisations/issues/250#issuecomment-244677792","issue_url":"https://api.github.com/repos/hbz/lobid-organisations/issues/250","id":244677792,"user":{"login":"acka47","id":160292,"avatar_url":"https://avatars.githubusercontent.com/u/160292?v=3","gravatar_id":"","url":"https://api.github.com/users/acka47","html_url":"https://github.com/acka47","followers_url":"https://api.github.com/users/acka47/followers","following_url":"https://api.github.com/users/acka47/following{/other_user}","gists_url":"https://api.github.com/users/acka47/gists{/gist_id}","starred_url":"https://api.github.com/users/acka47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acka47/subscriptions","organizations_url":"https://api.github.com/users/acka47/orgs","repos_url":"https://api.github.com/users/acka47/repos","events_url":"https://api.github.com/users/acka47/events{/privacy}","received_events_url":"https://api.github.com/users/acka47/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T07:35:37Z","updated_at":"2016-09-05T07:35:37Z","body":"> `altLabel` is not included in the current context document, it should be a language map too, right?\r\n\r\nWe don't have any alternate Labels in lobid-organisations so we don't need it in the context.(We will have to add it to lobid-resources, though, see https://github.com/hbz/lobid-resources/issues/103.)\r\n\r\n> it should be a language map too, right? In JSKOS this is also named `altLabel` and its value MUST be an array, because it is repeatable.\r\n\r\nYes, we will do it like this in lobid-resources but without language maps as we don't have any language tags in the data (mainly GND) we use there. Out of curiosity: If we used language maps on `altLabel` it should look something like this:\r\n\r\n```json\r\n{\r\n  \"@context\": {\r\n    \"id\": \"@id\",\r\n    \"type\": \"@type\",\r\n    \"label\": \"http://www.w3.org/2000/01/rdf-schema#label\",\r\n    \"altLabel\": {\r\n      \"@id\": \"http://www.w3.org/2004/02/skos/core#altLabel\",\r\n      \"@container\": \"@language\"\r\n      },\r\n    \"subject\": {\r\n      \"@type\": \"@id\",\r\n      \"@id\": \"http://purl.org/dc/terms/subject\",\r\n      \"@container\": \"@list\"\r\n    }\r\n  },\r\n  \"@id\" : \"http://lobid.org/resources/HT018843259#!\",\r\n  \"subject\": [ {\r\n     \"id\" : \"http://d-nb.info/gnd/4031485-6\",\r\n     \"type\": \"PlaceOrGeographicName\",\r\n     \"label\": \"Erzstift Köln\",\r\n     \"altLabel\": {\r\n      \"de\": [ \"Kölner Krieg\", \"Truchsessischer Krieg\" ]\r\n     }\r\n  } ]\r\n}\r\n```\r\n\r\nThis seems to be valid JSON-LD (see https://www.w3.org/TR/json-ld/#language-maps). Is it also what you envision for JSKOS?"}}
{"actor":{"display_login":"acka47"}}