Warning: session_start() expects parameter 1 to be array, string given in /home/heuristn/public_html/wp-includes/class-wp-hook.php on line 324

Warning: Cannot modify header information - headers already sent by (output started at /home/heuristn/public_html/wp-includes/class-wp-hook.php:324) in /home/heuristn/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/heuristn/public_html/wp-includes/class-wp-hook.php:324) in /home/heuristn/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/heuristn/public_html/wp-includes/class-wp-hook.php:324) in /home/heuristn/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/heuristn/public_html/wp-includes/class-wp-hook.php:324) in /home/heuristn/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/heuristn/public_html/wp-includes/class-wp-hook.php:324) in /home/heuristn/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/heuristn/public_html/wp-includes/class-wp-hook.php:324) in /home/heuristn/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/heuristn/public_html/wp-includes/class-wp-hook.php:324) in /home/heuristn/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/heuristn/public_html/wp-includes/class-wp-hook.php:324) in /home/heuristn/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":6197,"date":"2018-09-30T09:30:12","date_gmt":"2018-09-30T09:30:12","guid":{"rendered":"http:\/\/heuristnetwork.org\/?p=6197"},"modified":"2021-09-14T16:54:45","modified_gmt":"2021-09-14T06:54:45","slug":"importing-relationships-into-relationship-marker-fields","status":"publish","type":"post","link":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/","title":{"rendered":"Importing Relationships for Relationship Marker fields"},"content":{"rendered":"

Relationship markers can be a powerful tool for adding detail about a relationship between two records. Relationship markers are discussed elsewhere, however, a detailed description of the mechanism for importing relationships from a CSV file has not been outlined (for more on importing data into Heurist see here).<\/p>\n

Relationship markers are simply that –\u00a0markers<\/strong> of where a relationship is meant to exist. They cannot, in themselves, be imported since they contain no data. What you are actually importing is a\u00a0relationship<\/strong> record. In order to import relationship records, you need a CSV file which at a minimum contains Heurist IDs<\/strong> (H-IDs) for the source<\/strong> and target<\/strong> records, as well as the terms<\/strong> describing the relationship (they may also contain dates and other information). These terms should generally match terms in the vocabulary of a relationship marker field linking the source and target record types – we strongly recommend that all relationships in a single import file are between the same two types of record – so that the relationships will show up in that field. New terms can be added on-the-fly whilst importing, but you won’t have control of which vocabulary they end up in and they will then need moving to the appropriate vocabulary so that they show up in the relationship marker field.<\/p>\n

\"\"<\/a><\/p>\n

In the example shown above, we can see that Hamlet is the nephew of Claudius and the son of Gertrude.<\/p>\n

The Heurist IDs (H-IDs) can be obtained by exporting records to CSV file(s), using the\u00a0Export <\/strong>tab\u00a0and selecting CSV file. You should also include any additional fields that will assist you to identify your records (such as Name<\/strong>). This will enable you to identify which H-ID belongs with which record. Once you have the H-IDs, create a CSV file which has a column for the Source H-ID<\/strong> and a column for the Target H-ID<\/strong>. You should make sure that the source and target record types fit the model you’ve defined and implemented using relationship marker field(s). The source and target record types can be the same, eg. Persons can relate to Persons with family relationship types. Person’s can relate to Employment records, in which case the Source H-ID would refer to the Person record, whilst the Target record would be an Employment record. The columns for Source H-ID and Target H-ID must<\/strong> have a column name which includes “H-ID” somewhere in the name so that Heurist recognises it as a Heurist ID column.<\/p>\n

As well as Source H-ID<\/strong> and Target H-ID<\/strong>, it is necessary to include a column term<\/strong> which defines the relationship. These terms depend on the vocabulary used by the appropriate relationship marker. For example, “Related Persons” uses the Family vocabulary and records family relationships, such as “ParentOf”, “ChildOf”, “SpouseOf”, “CousinOf” etc. An employment field might use a different vocabulary which uses terms such as “was employee at”, “was manager at”, “owned” etc. Only these three columns are required, although, of course one can include more if desired. It is possible to add data to match other fields in the “Record relationship” record type, including Start Date and End Date for the relationship, a Short Description etc.<\/p>\n

\"Record<\/a><\/p>\n

Before importing the CSV file created for the relationships, it is important to ensure that the record type “Record relationship<\/strong>” is active (i.e. able to be displayed – it does, of course, function regardless). You will find this record type in the tab called “System Internals” in any Heurist database. To make the record type active, click on the checkbox under “Show” (see screenshot above). This will also change the background of record type from grey to white, as shown above. This will enable “Record relationship” to be selected as the Primary record type for the CSV import.<\/p>\n

\"Identify<\/a><\/p>\n

Once the CSV file is ready then select Import Delimited text (csv, tsv) in the Add Data tab. The CSV Import wizard will open in a popup window. Upload the CSV file and select Analyse data<\/strong>. As shown in the screenshot above, Heurist will automatically select the checkboxes next to the H-ID columns<\/strong> in the CSV file; you should then identify the record type associated with both the Source and Target H-IDs. In the example shown above, both H-ID columns refer to the record type “Character”. Note that additional columns of data are present in this file, although they are not needed for this import. These additional columns can be ignored.<\/p>\n

\"Primary<\/a><\/p>\n

Continue to select the Primary record type<\/strong>. It is important the “Record relationship” record type is selected from the System Internals<\/strong> group (see above). Do not select the record types associated with either the source or target records. In this example, we are not importing any dependencies, therefore the dependencies can be left unchecked. It is probably best to match on the Source records, using the Source record pointer, however, any non-ambiguous match is fine. Then match the fields for import. At a minimum these need to be the Source records (as a pointer field), the Target records (as a pointer field) and the column containing the relationship vocabulary terms. Continue with the import process as for other CSV files.<\/p>\n

\"Relationship<\/a><\/p>\n

The screenshot above shows the resulting relationship records imported into the database. Note that the filter “t:1” returns all relationship records.<\/p>\n

As stated above, Start<\/strong> and End dates<\/strong> for the relationship can also be added. These can be imported as separate fields in the CSV file. If edited manually, times<\/strong> can also be attached to the start and end dates.<\/p>\n<\/span>","protected":false},"excerpt":{"rendered":"

Relationship markers can be a powerful tool for adding detail about a relationship between two records. Relationship markers are discussed elsewhere, however, a detailed description of the mechanism for importing […]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[23],"tags":[53,25,29,34,40],"yoast_head":"\nImporting Relationships for Relationship Marker fields - Heurist Network<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Importing Relationships for Relationship Marker fields - Heurist Network\" \/>\n<meta property=\"og:description\" content=\"Relationship markers can be a powerful tool for adding detail about a relationship between two records. Relationship markers are discussed elsewhere, however, a detailed description of the mechanism for importing […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/\" \/>\n<meta property=\"og:site_name\" content=\"Heurist Network\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-30T09:30:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-14T06:54:45+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/heuristnetwork.org\/wp-content\/uploads\/2018\/06\/RelationshipMarkerExample-1-276x300.png\" \/>\n<meta name=\"author\" content=\"Claire Reeler\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@HeuristNetwork\" \/>\n<meta name=\"twitter:site\" content=\"@HeuristNetwork\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Claire Reeler\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/\"},\"author\":{\"name\":\"Claire Reeler\",\"@id\":\"https:\/\/heuristnetwork.org\/#\/schema\/person\/ea3732a91266d3439d510e6d0a186c51\"},\"headline\":\"Importing Relationships for Relationship Marker fields\",\"datePublished\":\"2018-09-30T09:30:12+00:00\",\"dateModified\":\"2021-09-14T06:54:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/\"},\"wordCount\":924,\"publisher\":{\"@id\":\"https:\/\/heuristnetwork.org\/#organization\"},\"image\":{\"@id\":\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/heuristnetwork.org\/wp-content\/uploads\/2018\/06\/RelationshipMarkerExample-1-276x300.png\",\"keywords\":[\"CSV import\",\"Heurist\",\"linked record\",\"relationship marker\",\"relationships\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/\",\"url\":\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/\",\"name\":\"Importing Relationships for Relationship Marker fields - Heurist Network\",\"isPartOf\":{\"@id\":\"https:\/\/heuristnetwork.org\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/heuristnetwork.org\/wp-content\/uploads\/2018\/06\/RelationshipMarkerExample-1-276x300.png\",\"datePublished\":\"2018-09-30T09:30:12+00:00\",\"dateModified\":\"2021-09-14T06:54:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#primaryimage\",\"url\":\"http:\/\/heuristnetwork.org\/wp-content\/uploads\/2018\/06\/RelationshipMarkerExample-1-276x300.png\",\"contentUrl\":\"http:\/\/heuristnetwork.org\/wp-content\/uploads\/2018\/06\/RelationshipMarkerExample-1-276x300.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/heuristnetwork.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Importing Relationships for Relationship Marker fields\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/heuristnetwork.org\/#website\",\"url\":\"https:\/\/heuristnetwork.org\/\",\"name\":\"Heurist Network\",\"description\":\"Building a community of Heurist users\",\"publisher\":{\"@id\":\"https:\/\/heuristnetwork.org\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/heuristnetwork.org\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/heuristnetwork.org\/#organization\",\"name\":\"Heurist\",\"url\":\"https:\/\/heuristnetwork.org\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/heuristnetwork.org\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/heuristnetwork.org\/wp-content\/uploads\/2015\/01\/HeuristFaviconTransparant.png\",\"contentUrl\":\"https:\/\/heuristnetwork.org\/wp-content\/uploads\/2015\/01\/HeuristFaviconTransparant.png\",\"width\":66,\"height\":66,\"caption\":\"Heurist\"},\"image\":{\"@id\":\"https:\/\/heuristnetwork.org\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/HeuristNetwork\",\"https:\/\/www.youtube.com\/channel\/UCuXxTPFSyqoPRoEb5HzDiBw\",\"https:\/\/en.wikipedia.org\/wiki\/Heurist\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/heuristnetwork.org\/#\/schema\/person\/ea3732a91266d3439d510e6d0a186c51\",\"name\":\"Claire Reeler\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/heuristnetwork.org\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/acafa130ae616145182786083b2f7b63?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/acafa130ae616145182786083b2f7b63?s=96&r=g\",\"caption\":\"Claire Reeler\"},\"url\":\"https:\/\/heuristnetwork.org\/author\/creeler\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Importing Relationships for Relationship Marker fields - Heurist Network","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"Importing Relationships for Relationship Marker fields - Heurist Network","og_description":"Relationship markers can be a powerful tool for adding detail about a relationship between two records. Relationship markers are discussed elsewhere, however, a detailed description of the mechanism for importing […]","og_url":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/","og_site_name":"Heurist Network","article_published_time":"2018-09-30T09:30:12+00:00","article_modified_time":"2021-09-14T06:54:45+00:00","og_image":[{"url":"http:\/\/heuristnetwork.org\/wp-content\/uploads\/2018\/06\/RelationshipMarkerExample-1-276x300.png"}],"author":"Claire Reeler","twitter_card":"summary_large_image","twitter_creator":"@HeuristNetwork","twitter_site":"@HeuristNetwork","twitter_misc":{"Written by":"Claire Reeler","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#article","isPartOf":{"@id":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/"},"author":{"name":"Claire Reeler","@id":"https:\/\/heuristnetwork.org\/#\/schema\/person\/ea3732a91266d3439d510e6d0a186c51"},"headline":"Importing Relationships for Relationship Marker fields","datePublished":"2018-09-30T09:30:12+00:00","dateModified":"2021-09-14T06:54:45+00:00","mainEntityOfPage":{"@id":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/"},"wordCount":924,"publisher":{"@id":"https:\/\/heuristnetwork.org\/#organization"},"image":{"@id":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#primaryimage"},"thumbnailUrl":"http:\/\/heuristnetwork.org\/wp-content\/uploads\/2018\/06\/RelationshipMarkerExample-1-276x300.png","keywords":["CSV import","Heurist","linked record","relationship marker","relationships"],"articleSection":["Blog"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/","url":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/","name":"Importing Relationships for Relationship Marker fields - Heurist Network","isPartOf":{"@id":"https:\/\/heuristnetwork.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#primaryimage"},"image":{"@id":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#primaryimage"},"thumbnailUrl":"http:\/\/heuristnetwork.org\/wp-content\/uploads\/2018\/06\/RelationshipMarkerExample-1-276x300.png","datePublished":"2018-09-30T09:30:12+00:00","dateModified":"2021-09-14T06:54:45+00:00","breadcrumb":{"@id":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#primaryimage","url":"http:\/\/heuristnetwork.org\/wp-content\/uploads\/2018\/06\/RelationshipMarkerExample-1-276x300.png","contentUrl":"http:\/\/heuristnetwork.org\/wp-content\/uploads\/2018\/06\/RelationshipMarkerExample-1-276x300.png"},{"@type":"BreadcrumbList","@id":"https:\/\/heuristnetwork.org\/importing-relationships-into-relationship-marker-fields\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/heuristnetwork.org\/"},{"@type":"ListItem","position":2,"name":"Importing Relationships for Relationship Marker fields"}]},{"@type":"WebSite","@id":"https:\/\/heuristnetwork.org\/#website","url":"https:\/\/heuristnetwork.org\/","name":"Heurist Network","description":"Building a community of Heurist users","publisher":{"@id":"https:\/\/heuristnetwork.org\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/heuristnetwork.org\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/heuristnetwork.org\/#organization","name":"Heurist","url":"https:\/\/heuristnetwork.org\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/heuristnetwork.org\/#\/schema\/logo\/image\/","url":"https:\/\/heuristnetwork.org\/wp-content\/uploads\/2015\/01\/HeuristFaviconTransparant.png","contentUrl":"https:\/\/heuristnetwork.org\/wp-content\/uploads\/2015\/01\/HeuristFaviconTransparant.png","width":66,"height":66,"caption":"Heurist"},"image":{"@id":"https:\/\/heuristnetwork.org\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/HeuristNetwork","https:\/\/www.youtube.com\/channel\/UCuXxTPFSyqoPRoEb5HzDiBw","https:\/\/en.wikipedia.org\/wiki\/Heurist"]},{"@type":"Person","@id":"https:\/\/heuristnetwork.org\/#\/schema\/person\/ea3732a91266d3439d510e6d0a186c51","name":"Claire Reeler","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/heuristnetwork.org\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/acafa130ae616145182786083b2f7b63?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/acafa130ae616145182786083b2f7b63?s=96&r=g","caption":"Claire Reeler"},"url":"https:\/\/heuristnetwork.org\/author\/creeler\/"}]}},"_links":{"self":[{"href":"https:\/\/heuristnetwork.org\/wp-json\/wp\/v2\/posts\/6197"}],"collection":[{"href":"https:\/\/heuristnetwork.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/heuristnetwork.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/heuristnetwork.org\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/heuristnetwork.org\/wp-json\/wp\/v2\/comments?post=6197"}],"version-history":[{"count":19,"href":"https:\/\/heuristnetwork.org\/wp-json\/wp\/v2\/posts\/6197\/revisions"}],"predecessor-version":[{"id":25570,"href":"https:\/\/heuristnetwork.org\/wp-json\/wp\/v2\/posts\/6197\/revisions\/25570"}],"wp:attachment":[{"href":"https:\/\/heuristnetwork.org\/wp-json\/wp\/v2\/media?parent=6197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/heuristnetwork.org\/wp-json\/wp\/v2\/categories?post=6197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/heuristnetwork.org\/wp-json\/wp\/v2\/tags?post=6197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}