get_ontology(); $pmb_namespace = 'http://www.pmbservices.fr/ontology#'; foreach ($assertions as $assertion) { $property = $ontology->get_property($pmb_namespace.$entity_type, $assertion->get_predicate()); $value = array( 'value' => $assertion->get_object(), 'display_label' => '' ); $object_properties = $assertion->get_object_properties(); if ($object_properties['type'] == 'uri') { $value['display_label'] = $object_properties['display_label']; } $return[$property->pmb_name] = $value; } break; case 'get_fields': default: $computed_fields = computed_field::get_area_computed_fields($area_id); foreach ($computed_fields as $computed_field) { $return[] = $computed_field->get_data(); } break; } print encoding_normalize::json_encode($return);