$value){ if ($comma){ $query .= ', '; } $query .= "($id,'$value')"; $comma = true; } pmb_mysql_query($query); $query = "UPDATE ".$table_tempo.", ".$table_tempo."_update SET " .$table_tempo.".".$property." = ".$table_tempo."_update.".$property. " WHERE ".$table_tempo.".id_authority = ".$table_tempo."_update.id_authority AND ".$table_tempo."_update.".$property." IS NOT NULL"; pmb_mysql_query($query); } return $table_tempo; } private static function get_property_from_id_item($id_item, $property){ $concept_uri = onto_common_uri::get_uri($id_item); $query = 'select ?property where { ?property pmb:name "'.$property.'" }'; skos_onto::query($query); if (skos_onto::num_rows()) { foreach (skos_onto::get_result() as $result) { $query = 'select ?value where { <'.$concept_uri.'> <'.$result->property.'> ?value }'; skos_datastore::query($query); if (skos_datastore::num_rows()) { foreach (skos_datastore::get_result() as $concept) { return $concept->value; } } } } return ""; } }