From 40b25c7a550f47f82632b5e78252fef8435b8875 Mon Sep 17 00:00:00 2001 From: Alastair Porter Date: Fri, 12 Mar 2021 16:35:30 +0100 Subject: [PATCH] feat(schema): add skos:broader to DefinedTerm --- src/routes/helpers/jsonld/DefinedTerm.json | 3 +++ src/schema/type/DefinedTerm.graphql | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/src/routes/helpers/jsonld/DefinedTerm.json b/src/routes/helpers/jsonld/DefinedTerm.json index baf0c16..d1a2d85 100644 --- a/src/routes/helpers/jsonld/DefinedTerm.json +++ b/src/routes/helpers/jsonld/DefinedTerm.json @@ -98,6 +98,9 @@ ], "inDefinedTermSet": [ "https://pending.schema.org/inDefinedTermSet" + ], + "broader": [ + "http://www.w3.org/2004/02/skos/core#broader" ] } } \ No newline at end of file diff --git a/src/schema/type/DefinedTerm.graphql b/src/schema/type/DefinedTerm.graphql index 4fb32e1..24469fc 100644 --- a/src/schema/type/DefinedTerm.graphql +++ b/src/schema/type/DefinedTerm.graphql @@ -69,4 +69,12 @@ type DefinedTerm implements ThingInterface { # TODO: This should only be a relation to one DefinedTermSet "https://pending.schema.org/inDefinedTermSet" inDefinedTermSet: [DefinedTermSet] @relation(name: "HAS_DEFINED_TERM", direction: IN) + + ####################### + ### SKOS properties ### + # When we use a DefinedTerm to refer to an annotation motivation, we have to add the movitavtion + # of which this term is a more specific version of to skos:broader. If you do this, you should + # also add http://www.w3.org/ns/oa#Motivation as an additionalType + "http://www.w3.org/2004/02/skos/core#broader" + broader: String }