Skip to content

Commit

Permalink
Updated for the to.php changes: key is now a code, and the label is a…
Browse files Browse the repository at this point in the history
… field; Also now outputs an example and a scope.
  • Loading branch information
egonw committed Jul 10, 2012
1 parent dc77178 commit c9cde40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion targetOntology2.php
Expand Up @@ -8,13 +8,17 @@
include 'to.php';

# classifications
foreach ($array as $desc => $array2) {
foreach ($array as $code => $array2) {
$higher = $array2["higher"];
$uri = $array2["uri"];
$desc = $array2["label"];
$example = $array2["classification"];
echo triple($uri, $RDF . "type", $SKOS . "Concept");
echo triple($uri, $RDFS . "subClassOf", $higher);
echo triple($higher, $SKOS . "narrower", $uri);
echo data_triple($uri, $SKOS . "prefLabel", $desc);
echo data_triple($uri, $SKOS . "scopeNote", $code);
echo data_triple($uri, $SKOS . "example", $example);
}

?>

0 comments on commit c9cde40

Please sign in to comment.