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

Commit

Permalink
feat(schema): Use custom trompa type for additionalProperty field
Browse files Browse the repository at this point in the history
the additionalProperty field is only valid on a few schema.org types,
not all types as we implemented here. Because the field is useful for us
in a few ways, define our own custom type for this field so that we
don't break schema.org rules.
  • Loading branch information
alastair committed Apr 1, 2021
1 parent 2b03e1e commit e00caa9
Show file tree
Hide file tree
Showing 81 changed files with 81 additions and 81 deletions.
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Action.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/AddAction.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Article.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Audience.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/AudioObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/ControlAction.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/DataDownload.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Dataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/DefinedTerm.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/DefinedTermSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/DeleteAction.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/DigitalDocument.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/DigitalDocumentPermission.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/EntryPoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Event.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/ImageObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Intangible.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/ItemList.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/ListItem.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/MediaObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/MusicAlbum.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/MusicComposition.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/MusicGroup.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/MusicPlaylist.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/MusicRecording.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Occupation.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Person.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Property.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/PropertyValue.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/PropertyValueSpecification.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Rating.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/ReplaceAction.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/Review.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/SoftwareApplication.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/helpers/jsonld/VideoObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"https://schema.org/additionalType"
],
"additionalProperty": [
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
],
"alternateName": [
"https://schema.org/alternateName"
Expand Down
2 changes: 1 addition & 1 deletion src/schema/interface/ActionInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface ActionInterface {
### ThingInterface properties ###
"https://schema.org/additionalType"
additionalType: [String]
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
additionalProperty: [PropertyValue] @relation(name: "ADDITIONAL_PROPERTY", direction: OUT)
"https://schema.org/alternateName"
alternateName: String
Expand Down
2 changes: 1 addition & 1 deletion src/schema/interface/CreativeWorkInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface CreativeWorkInterface {
### ThingInterface properties ###
"https://schema.org/additionalType"
additionalType: [String]
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
additionalProperty: [PropertyValue] @relation(name: "ADDITIONAL_PROPERTY", direction: OUT)
"https://schema.org/alternateName"
alternateName: String
Expand Down
2 changes: 1 addition & 1 deletion src/schema/interface/LegalPersonInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface LegalPersonInterface {
### ThingInterface properties ###
"https://schema.org/additionalType"
additionalType: [String]
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
additionalProperty: [PropertyValue] @relation(name: "ADDITIONAL_PROPERTY", direction: OUT)
"https://schema.org/alternateName"
alternateName: String
Expand Down
2 changes: 1 addition & 1 deletion src/schema/interface/MediaObjectInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface MediaObjectInterface {
### ThingInterface properties ###
"https://schema.org/additionalType"
additionalType: [String]
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
additionalProperty: [PropertyValue] @relation(name: "ADDITIONAL_PROPERTY", direction: OUT)
"https://schema.org/alternateName"
alternateName: String
Expand Down
2 changes: 1 addition & 1 deletion src/schema/interface/OrganizationInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface OrganizationInterface {
### ThingInterface properties ###
"https://schema.org/additionalType"
additionalType: [String]
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
additionalProperty: [PropertyValue] @relation(name: "ADDITIONAL_PROPERTY", direction: OUT)
"https://schema.org/alternateName"
alternateName: String
Expand Down
2 changes: 1 addition & 1 deletion src/schema/interface/PerformerInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface PerformerInterface {
### ThingInterface properties ###
"https://schema.org/additionalType"
additionalType: [String]
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
additionalProperty: [PropertyValue] @relation(name: "ADDITIONAL_PROPERTY", direction: OUT)
"https://schema.org/alternateName"
alternateName: String
Expand Down
2 changes: 1 addition & 1 deletion src/schema/interface/SearchableInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface SearchableInterface {
identifier: ID
"https://schema.org/additionalType"
additionalType: [String]
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
additionalProperty: [PropertyValue] @relation(name: "ADDITIONAL_PROPERTY", direction: OUT)
"https://schema.org/alternateName"
alternateName: String
Expand Down
2 changes: 1 addition & 1 deletion src/schema/interface/ThingInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface ThingInterface {
identifier: ID
"https://schema.org/additionalType"
additionalType: [String]
"https://schema.org/additionalProperty"
"https://vocab.trompamusic.eu/vocab#AdditionalProperty"
additionalProperty: [PropertyValue] @relation(name: "ADDITIONAL_PROPERTY", direction: OUT)
"https://schema.org/alternateName"
alternateName: String
Expand Down
Loading

0 comments on commit e00caa9

Please sign in to comment.