Skip to content

Instantly share code, notes, and snippets.

@baskaufs
Last active October 3, 2023 01:58
Show Gist options
  • Save baskaufs/2d6e7fe1b4f6bf7c2805ade31d341523 to your computer and use it in GitHub Desktop.
Save baskaufs/2d6e7fe1b4f6bf7c2805ade31d341523 to your computer and use it in GitHub Desktop.
JSON structure for names consistent with the SKOS-XL extension
{
"@context": {
"literalForm": "http://www.w3.org/2008/05/skos-xl#literalForm",
"prefLabel": "http://www.w3.org/2008/05/skos-xl#prefLabel",
"altLabel": "http://www.w3.org/2008/05/skos-xl#altLabel",
"identifier": "@id",
"language": "http://purl.org/dc/elements/1.1/language",
"source": "http://purl.org/dc/elements/1.1/source",
"nameType": "http://rs.tdwg.org/min/terms/nameType"
},
"@graph": [
{
"identifier": "http://mineral/123",
"prefLabel":
{
"literalForm": "Quartz",
"identifier": "https://mindat.org/api/v1/resource?guid=4ca61d6f-75f8-4208-8fb2-3b0eecbcd8f0",
"language": "en",
"source": "Nickel-Strunz 10th edition",
"nameType": "classification"
},
"altLabel": [
{
"literalForm": "Smoky Quartz",
"identifier": "https://mindat.org/api/v1/resource?guid=5cc8f406-3000-4ee4-a224-26d8758a843a",
"language": "en",
"source": "MinDat",
"nameType": "variety"
},
{
"literalForm": "Quartzy stuff",
"identifier": "https://mindat.org/api/v1/resource?guid=12345678-3000-4ee4-a224-26d8758a843a",
"language": "en",
"source": "MinDat",
"nameType": "historical name"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment