Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
feat(schema): add skos:broader to DefinedTerm
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed Mar 12, 2021
1 parent d77f1b0 commit 40b25c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/helpers/jsonld/DefinedTerm.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@
],
"inDefinedTermSet": [
"https://pending.schema.org/inDefinedTermSet"
],
"broader": [
"http://www.w3.org/2004/02/skos/core#broader"
]
}
}
8 changes: 8 additions & 0 deletions src/schema/type/DefinedTerm.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 40b25c7

Please sign in to comment.