Skip to content

Commit

Permalink
added label and scopeNote
Browse files Browse the repository at this point in the history
  • Loading branch information
sgort committed Dec 15, 2024
1 parent 2309f8c commit 8baa311
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apps/web/src/app/termen/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ export default async function TermenPage({ params }: { params: { slug: string[]
value: 'nl',
});

const nlLabelNode = findNodeWithField({
input: rootNode?.['http://www.w3.org/2000/01/rdf-schema#label'] || {},
key: '@language',
value: 'nl',
});

const nlScopeNoteNode = findNodeWithField({
input: rootNode?.['http://www.w3.org/2004/02/skos/core#scopeNote'] || {},
key: '@language',
value: 'nl',
});

const nlDefinitionNode = findNodeWithField({
input: rootNode?.['http://www.w3.org/2004/02/skos/core#definition'] || {},
key: '@language',
Expand All @@ -78,8 +90,12 @@ export default async function TermenPage({ params }: { params: { slug: string[]
<Typography variant="h1">{nlPrefLabel}</Typography>
<Pill label="Term" className="justify-self-start" />
</div>
<Typography variant="h2">Label</Typography>
<Typography>{nlLabelNode?.['@value']}</Typography>
<Typography variant="h2">Definitie</Typography>
<Typography>{nlDefinitionNode?.['@value']}</Typography>
<Typography variant="h2">Scope notitie</Typography>
<Typography>{nlScopeNoteNode?.['@value']}</Typography>
<Typography variant="h3">Download</Typography>
<div className="mt-4 flex gap-x-2">
<Button component="a" href={`/termen/download/rdf${slug}`}>
Expand Down

0 comments on commit 8baa311

Please sign in to comment.