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

Commit

Permalink
Merge pull request #158 from trompamusic/feat/definedterm-broader
Browse files Browse the repository at this point in the history
feat(schema): add skos:broader to DefinedTerm
  • Loading branch information
ChristiaanScheermeijer authored Mar 15, 2021
2 parents 2d0d125 + 40b25c7 commit 836a01f
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 836a01f

Please sign in to comment.