Define "allowed" relationship data types?

Hi everyone :smile:

I’m amazed how swiftly I can create resource templates (loving the RDF-triple thing!).
However, in some cases I’d like to focus the choices for related “data type = item” to a specific resource template.

For example, I have “has related agent of item” - which I limit to “Data types = Item”, but I /know/ I prefer Items of class “Agent”.

Is that possible?
Thank you very much in advance :cake:

I can use the “select item” feature.
Is it possible to predefine the “Filter search” options in the resource template property?

Like: “Filter by class = Agent”?

That would be amazing!
Grateful for any hints :smile:

You might try the DataTypeClass module, if I understand you correctly, it does what you want…

Also looking at AdvanceResourceTemplate may help. I have no knowledge of the current capabilities of this great module.

Greetings, John

Hi,

I would avoid DataTypeClass which breaks some core functionality as I found out the hard way (see DataTypeClass module doesn't work with InverseProperties (and possibly elsewhere too...)).

Instead I am using AdvanceResourceTemplate to fake it by setting “Filter linked resources with a query” to only show the required Class in the item search sidebar that pops up.

John.

1 Like

Yes, if the filtering works in AdvanceResourceTemplate, I would certainly encourage to this instead of DataTypeClass.
John(the other one…)

Thank you both for your suggestions and input!
I’ll try the AdvanceResourceTemplate, and see how it goes :smile: