You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a schema with two levels of inheritance. When I define a @oneOf property choice on the top-level abstract class, an error is thrown when I try to import an instance document for an inheriting class. I am able to import the instance document if I remove the intermediate class.
To Reproduce
Import the schema below.
Try to add the instance document that follows.
See error below.
Change the schema so that the PersonName class inherits directly from the Entity class.
The instance document is added as expected.
Expected behavior
It should be possible to add an instance document that inherits a @oneOf property choice from an arbitrary level of inheritance.
{
"@type":"PersonalName",
"@id":"PersonalName/a070ee3fd744b7d518ec0af9afada22a5900477479695ce4324f9292f949883f",
"entityIRI":"http://id.loc.gov/authorities/names/no94012141",
"authLabel":"dolph joseph n joseph norton 1835-1897"
}
Error:
{
"name": "Server request error",
"message": "Type error for \"dolph joseph n joseph norton 1835-1897\" which should be dict",
"data": {
"api:message": "Type error for \"dolph joseph n joseph norton 1835-1897\" which should be dict",
"api:status": "api:failure",
"system:witnesses": [
{
"@type": "vio:ViolationWithDatatypeObject",
"vio:literal": "\"dolph joseph n joseph norton 1835-1897\"",
"vio:message": "Type error for \"dolph joseph n joseph norton 1835-1897\" which should be dict",
"vio:type": "dict"
}
]
}
}
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a schema with two levels of inheritance. When I define a
@oneOf
property choice on the top-level abstract class, an error is thrown when I try to import an instance document for an inheriting class. I am able to import the instance document if I remove the intermediate class.To Reproduce
PersonName
class inherits directly from theEntity
class.Expected behavior
It should be possible to add an instance document that inherits a
@oneOf
property choice from an arbitrary level of inheritance.Info
Additional context
Schema:
Instance doc:
Error:
The text was updated successfully, but these errors were encountered: