} //read vocabulary information for mdc:resourceType $vocab = getVocabularyData("resourceType.rdf"); $properties_values["mdc:resourceType"] = array(); foreach ($vocab as $key => $value) { $properties_values["mdc:resourceType"][$key] = $value; } //read vocabulary information for mdc:resourceType $vocab = getVocabularyData("licenses.rdf"); $properties_values["mdc:rights"] = array(); foreach ($vocab as $key => $value) { $properties_values["mdc:rights"][$key] = $value; } //read vocabulary information for mdc:repurposingContexts $vocab = getVocabularyData("repurposing.rdf"); $properties_values["mdc:repurposingContexts"] = array(); foreach ($vocab as $key => $value) { $properties_values["mdc:repurposingContexts"][$key] = $value; } //read vocabulary information for mdc:educationalLevel $vocab = getVocabularyData("educationalLevel.rdf"); $properties_values["mdc:educationalLevel"] = array(); foreach ($vocab as $key => $value) { $properties_values["mdc:educationalLevel"][$key] = $value; } //read vocabulary information for mdc:educationalLevel $vocab = getVocabularyData("educationalOutcome.rdf"); $properties_values["mdc:educationalOutcomes"] = array(); foreach ($vocab as $key => $value) { $properties_values["mdc:educationalOutcomes"][$key] = $value; }
$properties_values["mdc:resourceType"] = extractVocabValues($vocab); $data_structure["mdc:resourceType"] = extractVocabStructure($entryPoint, $vocab); //read vocabulary information for mdc:resourceType $vocab = getVocabularyData("licenses.rdf"); $properties_values["mdc:rights"] = array(); $properties_values["mdc:rights"] = extractVocabValues($vocab); //read vocabulary information for mdc:repurposingContexts $vocab = getVocabularyData("repurposing.rdf"); $properties_values["mdc:repurposingContexts"] = array(); $properties_values["mdc:repurposingContexts"] = extractVocabValues($vocab); //read vocabulary information for mdc:educationalLevel $vocab = getVocabularyData("educationalOutcome.rdf"); $entryPoint = "http://purl.org/meducator/educationalOutcome/"; $properties_values["mdc:educationalOutcomes"] = array(); $data_structure["mdc:educationalOutcomes"] = array(); $properties_values["mdc:educationalOutcomes"] = extractVocabValues($vocab); $data_structure["mdc:educationalOutcomes"] = extractVocabStructure($entryPoint, $vocab); //read vocabulary information for mdc:educationalLevel $vocab = getVocabularyData("educationalLevel.rdf"); $properties_values["mdc:educationalLevel"] = array(); $properties_values["mdc:educationalLevel"] = extractVocabValues($vocab); /*$auxH = fopen("Koula.txt", "w"); foreach($properties_values as $key => $infos) { fwrite($auxH, $key . "\n\n"); foreach($infos as $info) fwrite($auxH, $info . "\n"); fwrite($auxH, "\n\n\n\n"); } fclose($auxH); //print_r($properties_values);*/