dsp-api
dsp-api copied to clipboard
Custom Object Class Constraints for Standoff Links
Currently, standoff links have the object class constraint of knora-base:Resource
.
Would it make sense to add the possibility to make a subclass of StandoffLink
whose linking property is more specific? E.g., one could make a PersonStandoffLink
linking to a beol:Person
.
The advantage would be that Knora not only makes sure that the target exists and is a knora-base:Resource
, but also that it has the correct type.
I think that it would make sense.
Standoff is so flexible and accessible that it defeats an otherwise well structured data model with constraints on links.
And it could end up making some searches impossible, like give me resources that have a link to a resource class Person.
On the other hand, if you have a given person (a Person
instance), you can ask for linked resources and find them.
As another example: if you link Notes
to Person
with standoff links, you might want to distinguish between different kind of links like character, author, etc.
I agree, and I think this goes in the same direction as #438.