You are here

function rdfui_extract_curies in RDF Extensions 7.2

Generates an array of CURIE values from a string.

Explodes a string with CURIES separated with , and with each a value on its own line.

2 calls to rdfui_extract_curies()
_rdfui_mapping_save in rdfui/rdfui.module
Saves the mapping
_rdfui_validate_terms in rdfui/rdfui.module
Sets a form error if predicates don't validate.

File

rdfui/rdfui.module, line 629

Code

function rdfui_extract_curies($string_values) {
  $list = explode(", ", $string_values);
  $last = array_pop($list);
  $last = str_replace(',', '', $last);
  array_push($list, $last);
  $list = array_map('trim', $list);
  $list = array_filter($list, 'strlen');
  $list = array_unique($list);
  return $list;
}