$t('conStruct Views Connector Tool'), 'value' => ' ', ); $annotationPropertyLabels = variable_get("structviews_annotationproperty_labels", NULL); $objectPropertyLabels = variable_get("structviews_objectproperty_labels", NULL); $classLabels = variable_get("structviews_class_labels", NULL); $datatypePropertyLabels = variable_get("structviews_datatypeproperty_labels", NULL); $undefinedPropertyLabels = variable_get("structviews_undefinedproperty_labels", NULL); if($annotationPropertyLabels === NULL || $objectPropertyLabels === NULL || $datatypePropertyLabels === NULL || $undefinedPropertyLabels === NULL) { $requirements['structviews_sync_ontologies']['value'] = $t('Synchronize Ontologies'); $requirements['structviews_sync_ontologies']['description'] = $t('You must synchronize the ontologies structures in order to use Views for structWSF'); $requirements['structviews_sync_ontologies']['severity'] = REQUIREMENT_WARNING; } else { $throwError = FALSE; foreach($annotationPropertyLabels as $network => $labels) { if(count($labels) == 0) { $throwError = TRUE; } } if($throwError) { foreach($objectPropertyLabels as $network => $labels) { if(count($labels) == 0) { $throwError = TRUE; } } } if($throwError) { foreach($classLabels as $network => $labels) { if(count($labels) == 0) { $throwError = TRUE; } } } if($throwError) { foreach($datatypePropertyLabels as $network => $labels) { if(count($labels) == 0) { $throwError = TRUE; } } } if($throwError) { foreach($undefinedPropertyLabels as $network => $labels) { if(count($labels) == 0) { $throwError = TRUE; } } } if(!$throwError) { $requirements['structviews_sync_ontologies']['value'] = $t('Ontologies Synchronized'); $requirements['structviews_sync_ontologies']['severity'] = REQUIREMENT_OK; } else { $requirements['structviews_sync_ontologies']['value'] = $t('Synchronize Ontologies'); $requirements['structviews_sync_ontologies']['description'] = $t('Make sure ontologies are loaded in structOntology and synchronize the ontologies structures in order to use Views for structWSF'); $requirements['structviews_sync_ontologies']['severity'] = REQUIREMENT_WARNING; } } return $requirements; }