<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.ext-9.eprints-hosting.org/w/index.php?action=history&amp;feed=atom&amp;title=Relation_field</id>
	<title>Relation field - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ext-9.eprints-hosting.org/w/index.php?action=history&amp;feed=atom&amp;title=Relation_field"/>
	<link rel="alternate" type="text/html" href="https://wiki.ext-9.eprints-hosting.org/w/index.php?title=Relation_field&amp;action=history"/>
	<updated>2026-05-10T21:26:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki.ext-9.eprints-hosting.org/w/index.php?title=Relation_field&amp;diff=15868&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk: Added relation metadata field type</title>
		<link rel="alternate" type="text/html" href="https://wiki.ext-9.eprints-hosting.org/w/index.php?title=Relation_field&amp;diff=15868&amp;oldid=prev"/>
		<updated>2023-04-10T23:29:17Z</updated>

		<summary type="html">&lt;p&gt;Added relation metadata field type&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{fieldtypes}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
This field is derived from a [[Compound field]] to store for relations.  It contains to sub-fields: &amp;lt;code&amp;gt;uri&amp;lt;/code&amp;gt; that store a URI for the object that is related and &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; for the type of relationship.&lt;br /&gt;
&lt;br /&gt;
== Inheritance ==&lt;br /&gt;
* [[Metadata]]&lt;br /&gt;
** [[Compound field]]&lt;br /&gt;
*** [[Relation field]]&lt;br /&gt;
&lt;br /&gt;
== Additional Properties ==&lt;br /&gt;
As for [[Compound field#Additional_Properties|Compound fields]].&lt;br /&gt;
&lt;br /&gt;
== Required Phrases ==&lt;br /&gt;
In addition to [[Compound field#Required_Phrases|Compound fields phrases]], sub-field name phrases are needed for &amp;lt;code&amp;gt;uri&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;.  In the forms:&lt;br /&gt;
 dataset_id + &amp;quot;_fieldname_&amp;quot; + fieldname + &amp;quot;_uri&amp;quot;&lt;br /&gt;
 dataset_id + &amp;quot;_fieldname_&amp;quot; + fieldname + &amp;quot;_type&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Database ==&lt;br /&gt;
Relation fields are stored in the database as:&lt;br /&gt;
 fieldname_uri VARCHAR(255)&lt;br /&gt;
 fieldname_type VARCHAR(255)&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
See [[API:EPrints/MetaField/Relation|API page]].&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Most basic example.&lt;br /&gt;
 {&lt;br /&gt;
     name =&amp;gt; &amp;#039;relation&amp;#039;,&lt;br /&gt;
     type =&amp;gt; &amp;#039;relation&amp;#039;,&lt;br /&gt;
 }&lt;br /&gt;
Storing multiple relations.&lt;br /&gt;
 {&lt;br /&gt;
     name =&amp;gt; &amp;#039;relations&amp;#039;,&lt;br /&gt;
     type =&amp;gt; &amp;#039;relation&amp;#039;,&lt;br /&gt;
     multiple =&amp;gt; 1,&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
	</entry>
</feed>