Skip to content

Commit

Permalink
entities properties: add BookBrainz series ID (wdt:P12048)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlath committed Jan 26, 2024
1 parent 909f884 commit 8f5ad4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions server/controllers/entities/lib/properties/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ export const properties = {
'wdt:P8513': {
subjectTypes: [ 'serie' ],
},
// BookBrainz series ID
'wdt:P12048': {
subjectTypes: [ 'serie' ],
},
// Babelio serial ID
'wdt:P12319': {
subjectTypes: [ 'serie' ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const propertiesValuesConstraints = {
'wdt:P2013': externalId(/^(\d+|[.\w]+)$/),
// YouTube channel ID
'wdt:P2397': externalId(/^UC[\w-]{21}[AQgw]$/),
// BookBrainz author ID"
// BookBrainz author ID
'wdt:P2607': externalId(uuidPattern),
// number of volumes
'wdt:P2635': positiveInteger,
Expand Down Expand Up @@ -231,7 +231,7 @@ export const propertiesValuesConstraints = {
'wdt:P6947': externalId(strictlyPositiveIntegerPattern),
// Librarything author ID
'wdt:P7400': externalId(/^[^\s/]+$/),
// BookBrainz work ID"
// BookBrainz work ID
'wdt:P7823': externalId(uuidPattern),
// LibraryThing series ID
'wdt:P8513': externalId(/^[1-9]\d{0,7}$/),
Expand All @@ -247,6 +247,8 @@ export const propertiesValuesConstraints = {
'wdt:P10837': humanEntity,
// Babelio serial ID
'wdt:P12319': externalId(strictlyPositiveIntegerPattern),
// BookBrainz series ID
'wdt:P12048': externalId(uuidPattern),
}

export default propertiesValuesConstraints

0 comments on commit 8f5ad4c

Please sign in to comment.