Skip to content

Instantly share code, notes, and snippets.

@ioggstream
Created October 4, 2022 17:01
Show Gist options
  • Save ioggstream/e9c4748208728c5abca34a7c6e309284 to your computer and use it in GitHub Desktop.
Save ioggstream/e9c4748208728c5abca34a7c6e309284 to your computer and use it in GitHub Desktop.
---
# Data
{
"@graph": [
{
"@id": "_:b0",
"skos:prefLabel": [
{"@language": "fr", "@value": "France" },
{"@language": "it", "@value": "Italia" }
]
}
]
}
---
# Frame
{
"label_it": {"@language": "it", "@value": {}},
"label_fr": {"@language": "fr", "@value": {}},
"@context": {
"label_it": {"@id": "skos:prefLabel","@language": "it" },
"label_fr": {"@id": "skos:prefLabel","@language": "fr" },
}
}
---
# Actual framed
{
"label_fr": "France" # ONLY the last "label" is shown
}
---
# Expected framed
{
"label_fr": "France",
"label_it": "Italy"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment