Ejemplo n.º 1
0
 public function execute()
 {
     $type = $this->getParameter('type');
     $actie = $this->getParameter('actie');
     $naamprefix = Uri::SMWuriNaarLeesbareTitel($this->getParameter('hoofdcontextUri'));
     $return = "";
     if ($type == 'context') {
         if ($actie == 'nieuw') {
             $naam = $naamprefix . ' ' . $this->getParameter('titel');
             $supercontext_uri = $this->getParameter('supercontext');
             Model::nieuweContext($naam);
             Model::nieuweVN($naam . ' VN', 'Context', $naam);
             Model::extraSupercontext($naam, $supercontext_uri);
         } elseif ($actie == 'extrasupercontext') {
             $context = $params['context'];
             $supercontext = $params['supercontext'];
             if ($context != $supercontext) {
                 Model::extraSupercontext($context, $supercontext);
             }
         } elseif ($actie == 'supercontextverwijderen') {
             list($context, $supercontext) = explode('|', $params['verwijder-supercontexten']);
             Model::supercontextVerwijderen($context, $supercontext);
         }
     } elseif ($type == 'ie') {
         if ($actie == 'contexttoevoegen') {
             $ie = $params['ie'];
             $context = $params['context'];
             Model::contextToevoegenAanIE($ie, $context);
         } elseif ($actie == 'nieuw') {
             $naam = $this->getParameter('titel');
             Model::nieuwIE($this->getParameter('instanceOf'), $this->getParameter('context'), $naam, $naamprefix);
             Model::nieuweVN($naam . ' VN', 'Intentional Element', $naamprefix . ' ' . $naam);
         } elseif ($actie == 'maakverband') {
             $eigenschappen = array();
             $linkType = ucfirst($this->getParameter('linkType'));
             if ($this->getParameter('notitie')) {
                 $eigenschappen['Element link note'] = $this->getParameter('notitie');
             }
             if ($linkType == 'Contributes') {
                 $eigenschappen['Element contribution value'] = $this->getParameter('contributionValue');
             }
             if ($linkType == 'Connects') {
                 $eigenschappen['Element connection type'] = $this->getParameter('connectionType');
                 $eigenschappen['Element link condition'] = $this->getParameter('linkCondition');
             }
             Model::maakVerband($this->getParameter('van'), $this->getParameter('naar'), $linkType, $eigenschappen);
         } elseif ($actie == 'verwijderverband') {
             $waardes = explode('|', $params['verwijder-verband']);
             Model::verwijderVerband($waardes[0], $waardes[2], $waardes[1]);
         }
     } elseif ($actie == 'naamNaarUri') {
         $naam = $this->getParameter('naam');
         $return = 'wiki:' . Uri::codeerSMWNaam($naamprefix . ' ' . $naam);
     }
     /*$formattedData = array();
     		$result = $this->getResult();
     		$result->setIndexedTagName($formattedData, 'p');
     		$result->addValue(null, $this->getModuleName(), $formattedData);*/
     $this->getResult()->addValue(null, $this->getModuleName(), $return);
 }
Ejemplo n.º 2
0
 public function testSMWuriNaarLeesbareTitel()
 {
     $uri = 'wiki:Effectief_met_sediment_suppleren-3A_Vooroeversuppletie';
     $correcte_titel = 'Effectief met sediment suppleren: Vooroeversuppletie';
     // Test het correct decoderen van speciale tekens en verwijderen prefix
     $this->assertEquals($correcte_titel, Uri::SMWuriNaarLeesbareTitel($uri));
 }
Ejemplo n.º 3
0
 function visit($visitee)
 {
     if ($visitee instanceof IntentionalElement) {
         $uri = $visitee->getUri();
         $node = array();
         $node['uri'] = $uri;
         $node['type'] = get_class($visitee);
         $node['name'] = Uri::SMWuriNaarLeesbareTitel($visitee->getUri());
         $node['heading'] = $visitee->getHeading();
         $node['decompositionType'] = $visitee->getDecompositionType();
         $links = array();
         $ies_contexten = array();
         foreach ($visitee->getInstanceOf() as $link) {
             $links[] = array('source' => $uri, 'type' => 'instanceOf', 'target' => $link->getUri());
         }
         foreach ($visitee->getPartOf() as $link) {
             $links[] = array('source' => $uri, 'type' => 'partOf', 'target' => $link->getUri());
         }
         foreach ($visitee->getContributes() as $link) {
             $links[] = array('source' => $uri, 'type' => 'contributes', 'target' => $link->getLink()->getUri(), 'note' => $link->getLinkNote(), 'extraInfo' => ': ' . $link->getContributionValue());
         }
         foreach ($visitee->getDepends() as $link) {
             $links[] = array('source' => $uri, 'type' => 'depends', 'target' => $link->getLink()->getUri(), 'note' => $link->getLinkNote(), 'extraInfo' => '');
         }
         foreach ($visitee->getContext() as $link) {
             $index = $link->getUri();
             $ies_contexten[$index][] = $uri;
         }
         if ($visitee instanceof Activity) {
             foreach ($visitee->getConnects() as $link) {
                 $links[] = array('source' => $uri, 'type' => 'connects', 'target' => $link->getLink()->getUri(), 'note' => $link->getLinkNote(), 'extraInfo' => ': ' . $link->getConnectionType() . ' ' . $link->getLinkCondition());
             }
         }
         $return['node'] = $node;
         $return['links'] = $links;
         $return['ies_contexten'] = $ies_contexten;
         return $return;
     } elseif ($visitee instanceof Context) {
         $context = array();
         $uri = $visitee->getUri();
         $context['description'] = $visitee->getDescription();
         $contextLinks = array();
         foreach ($visitee->getSupercontext() as $link) {
             $contextLinks[] = array('context' => $uri, 'supercontext' => $link->getUri());
         }
         $return['context'] = $context;
         $return['contextLinks'] = $contextLinks;
         return $return;
     }
 }
Ejemplo n.º 4
0
 function execute($par)
 {
     $output = $this->getOutput();
     // Parameters uit url
     $pars = explode('/', $par);
     // Bij geen parameters het overzicht tonen
     if (!$par) {
         require_once __DIR__ . '/includes/php/Modelselectie.class.php';
         $modelselectie = new Modelselectie();
         $output->setPageTitle('Modellen');
         $output->addHTML($modelselectie->geefInhoud());
     } else {
         $model_uri = 'wiki:' . $pars[1];
         $context_uri = Model::geefContextVanModel($model_uri);
         require_once __DIR__ . '/includes/php/Visualisatiepagina.class.php';
         $output->setPageTitle(Uri::SMWuriNaarLeesbareTitel($context_uri));
         $output->addModules('ext.EMontVisualisator');
         $visualisatiepagina = new Visualisatiepagina($model_uri);
         $output->addHTML($visualisatiepagina->geefInhoud());
     }
 }
Ejemplo n.º 5
0
    // een string om ze vervolgens om te zetten in een leesbare titel.
    $post['groups'][$index]['titel'] = Uri::SMWuriNaarLeesbareTitel(implode("", array_slice($contextindex, $index, 1)));
    $post['groups'][$index]['langbijschrift'] = array();
    // Gewoon bijschrift wordt bovenaan de context getoond, lang bijschrift als tooltip.
    if (isset($gebruikteSubcontexten[$index])) {
        foreach ($gebruikteSubcontexten[$index] as $supercontextindex) {
            $post['groups'][$index]['langbijschrift'][] = Uri::SMWuriNaarLeesbareTitel(implode("", array_slice($contextindex, $supercontextindex, 1))) . ': ' . $post['groups'][$index]['titel'];
        }
        $post['groups'][$index]['bijschrift'] = implode(', ', $post['groups'][$index]['langbijschrift']);
        if (strlen($post['groups'][$index]['bijschrift']) > 50) {
            $post['groups'][$index]['bijschrift'] = "";
            foreach ($gebruikteSubcontexten[$index] as $supercontextindex) {
                if ($post['groups'][$index]['bijschrift']) {
                    $post['groups'][$index]['bijschrift'] .= ", ";
                }
                $supercontextvermelding = geefInitialen(Uri::SMWuriNaarLeesbareTitel(implode("", array_slice($contextindex, $supercontextindex, 1))));
                $post['groups'][$index]['bijschrift'] .= $supercontextvermelding . ': ' . $post['groups'][$index]['titel'];
            }
        }
    } else {
        $post['groups'][$index]['langbijschrift'][] = $post['groups'][$index]['titel'];
        $post['groups'][$index]['bijschrift'] = $post['groups'][$index]['titel'];
    }
    $post['groups'][$index]['tooltip'] = implode('<br />', $post['groups'][$index]['langbijschrift']);
}
$groups = $post['groups'];
$post['groups'] = array();
foreach ($groups as $group) {
    // Als de groep leeg is, maak dan een dummy-ie aan en voeg het volgnummer
    // toe aan deze groep.
    if (!(count($group['leaves']) > 0 && count($group['groups']) > 0)) {
Ejemplo n.º 6
0
 static function contextToevoegenAanIE($ie_uri, $context_uri)
 {
     $ie = Uri::SMWuriNaarLeesbareTitel($ie_uri);
     $context = Uri::SMWuriNaarLeesbareTitel($context_uri);
     $ie_type = SPARQLConnection::geefEersteResultaat($ie_uri, 'property:Intentional_Element_type');
     self::voegToeAanBlokargumentVanArtikel($ie, $ie_type, 'Context', $context, 'Context toegevoegd via EMontVisualisator');
 }
Ejemplo n.º 7
0
    public function __construct($model_uri)
    {
        if (!$model_uri) {
            $model_uri = 'wiki:Building_with_Nature-2Dinterventies_op_het_systeem_practice';
        }
        $url = explode('?', rtrim($_SERVER['REQUEST_URI'], '/'));
        $hoofdvisualisatie_id = 'visualisatie-' . Uri::stripSMWuriPadEnPrefixes($model_uri);
        if ($_POST) {
            $type = $_GET['type'];
            $actie = $_GET['actie'];
            if ($type == 'context') {
                if ($actie == 'extrasupercontext') {
                    $context = $_POST['context'];
                    $supercontext = $_POST['supercontext'];
                    if ($context != $supercontext) {
                        Model::extraSupercontext($context, $supercontext);
                    }
                } elseif ($actie == 'supercontextverwijderen') {
                    list($context, $supercontext) = explode('|', $_POST['verwijder-supercontexten']);
                    Model::supercontextVerwijderen($context, $supercontext);
                }
            } elseif ($type == 'ie') {
                if ($actie == 'contexttoevoegen') {
                    $ie = $_POST['ie'];
                    $context = $_POST['context'];
                    Model::contextToevoegenAanIE($ie, $context);
                } elseif ($actie == 'verwijderverband') {
                    $waardes = explode('|', $_POST['verwijder-verband']);
                    Model::verwijderVerband($waardes[0], $waardes[2], $waardes[1]);
                }
            }
        }
        $this->inhoud .= sprintf('
			<p>U kunt elementen verslepen om het overzicht te verbeteren. Dubbelklik op een element om de wikipagina ervan weer te geven.</p>

			<button title="Terug naar modellenoverzicht" onclick="window.location=\'%1$s/../../\'">⮤</button>
			<button title="Herladen" onclick="window.location=\'%1$s\';">⟳</button>
			<button title="Naar hoofdcontext scrollen" onclick="adjustScrollbars(visualisatieId,true,0);">⯐</button>', $url[0]);
        if (Model::modelIsExperience($model_uri)) {
            $this->inhoud .= ' <button title="Nieuw Intentional Element" onclick="toggleL1modelDiv(true);">➕ IE</button>';
            $this->inhoud .= ' <button title="Nieuwe Context" onclick="nieuweContextPopup();">➕ Context</button>';
        }
        $this->inhoud .= sprintf('
		<div id="visualisatiepaginacontainer">
			<div id="div-%1$s"></div>
		</div>
			<script type="text/javascript">

				$("#visualisatiepaginacontainer").height($("#mw-content-text").width()*0.75);

				var domeinprefix = "%2$s";

				var contextUri = "%3$s";
				var visualisatieId = "%1$s";

				startVisualisatie(visualisatieId, contextUri);
			</script>', $hoofdvisualisatie_id, Uri::geefDomeinPrefix(), Model::geefContextVanModel($model_uri));
        if (Model::modelIsExperience($model_uri)) {
            $l1model = Model::geefL1modelVanCase($model_uri);
            $l1hoofdcontext = Model::geefContextVanModel($l1model);
            $context_uri = Model::geefContextVanModel($model_uri);
            $contexten = Model::geefUrisVanContextEnSubcontexten($context_uri);
            $contextenlijst = '';
            foreach ($contexten as $context) {
                $contextenlijst .= '<option value="' . $context . '">' . Uri::SMWuriNaarLeesbareTitel($context) . '</option>';
            }
            $data = Model::geefElementenUitContextEnSubcontexten($context_uri);
            $ie_lijst = '';
            $verbandenlijst = array();
            $ie_contexten = array();
            foreach ($data['@graph'] as $item) {
                if ($item['@id']) {
                    $ie_lijst .= '<option value="' . $item['@id'] . '">' . $item['label'] . '</option>';
                    $elementen = Model::elementenNaarArrays(Model::geefArtikelTekst($item['@id']));
                    foreach ($elementen as $element) {
                        if ($element['Element link']) {
                            $verbandenlijst[] = array('van' => $item['label'], 'type' => $element['type'], 'naar' => $element['Element link']);
                        } elseif ($element['type'] == 'Intentional Element links' || $element['type'] == 'Activity links') {
                            $linksverbanden = array();
                            if ($element['Part of']) {
                                $linksverbanden = explode(',', $element['Part of']);
                                foreach ($linksverbanden as $linksverband) {
                                    if (trim($linksverband)) {
                                        $verbandenlijst[] = array('van' => $item['label'], 'type' => 'Part of', 'naar' => trim($linksverband));
                                    }
                                }
                            }
                            if ($element['Consumes']) {
                                $linksverbanden = explode(',', $element['Consumes']);
                                foreach ($linksverbanden as $linksverband) {
                                    if (trim($linksverband)) {
                                        $verbandenlijst[] = array('van' => $item['label'], 'type' => 'Consumes', 'naar' => trim($linksverband));
                                    }
                                }
                            }
                            if ($element['Produces']) {
                                $linksverbanden = explode(',', $element['Produces']);
                                foreach ($linksverbanden as $linksverband) {
                                    if (trim($linksverband)) {
                                        $verbandenlijst[] = array('van' => $item['label'], 'type' => 'Produces', 'naar' => trim($linksverband));
                                    }
                                }
                            }
                        }
                    }
                    if ($item['Eigenschap-3AContext']) {
                        if (is_array($item['Eigenschap-3AContext'])) {
                            foreach ($item['Eigenschap-3AContext'] as $ie_context) {
                                $ie_contexten[$item['@id']][] = $ie_context;
                            }
                        } else {
                            $ie_contexten[$item['@id']][] = $item['Eigenschap-3AContext'];
                        }
                    }
                }
            }
            $sec_visualisatie_id = 'visualisatie-' . Uri::stripSMWuriPadEnPrefixes($l1model);
            ////
            $this->inhoud .= '<h2>Verband verwijderen</h2>';
            $this->inhoud .= '<form method="post" action="?actie=verwijderverband&amp;type=ie"><table>';
            foreach ($verbandenlijst as $verband) {
                $this->inhoud .= '<tr><td><input type="radio" name="verwijder-verband" value="' . $verband['van'] . '|' . $verband['type'] . '|' . $verband['naar'] . '"/>&nbsp;</td><td>' . $verband['van'] . '&nbsp;</td><td>' . $verband['type'] . '&nbsp;</td><td>' . $verband['naar'] . '</td></tr>';
            }
            $this->inhoud .= '</table><input type="submit" value="Verwijderen"></form>';
            ////
            $this->inhoud .= '<h2>Supercontext toevoegen aan context</h2>';
            $this->inhoud .= '<form method="post" action="?actie=extrasupercontext&amp;type=context">';
            $this->inhoud .= 'Context: <select name="context">' . $contextenlijst . '</select><br />';
            $this->inhoud .= 'Supercontext: <select name="supercontext">' . $contextenlijst . '</select><br />';
            $this->inhoud .= '<input type="submit" value="Toevoegen"></form>';
            ////
            $this->inhoud .= '<h2>Supercontext verwijderen van context</h2>';
            $this->inhoud .= '<form method="post" action="?actie=supercontextverwijderen&amp;type=context"><table><tr><th></th><th>Context</th><th>Supercontext</th></tr>';
            foreach ($contexten as $context) {
                $supercontexten = Model::zoekSupercontexten($context);
                foreach ($supercontexten as $supercontext) {
                    $this->inhoud .= '<tr><td><input type="radio" name="verwijder-supercontexten" value="' . $context . '|' . $supercontext . '">&nbsp;</td><td>' . Uri::SMWuriNaarLeesbareTitel($context) . '&nbsp;</td><td>' . Uri::SMWuriNaarLeesbareTitel($supercontext) . '</td></tr>';
                }
            }
            $this->inhoud .= '</table><input type="submit" value="Verwijderen" /></form>';
            ////
            $this->inhoud .= '<h2>Context aan Intentional Element toevoegen</h2>';
            $this->inhoud .= '<form method="post" action="?actie=contexttoevoegen&amp;type=ie">';
            $this->inhoud .= '<table><tr><td>Intentional Element</td><td><select name="ie">';
            $this->inhoud .= $ie_lijst;
            $this->inhoud .= '</select></td></tr><tr><td>Context</td><td><select name="context">';
            $this->inhoud .= $contextenlijst;
            $this->inhoud .= '</select></td></tr></table><input type="submit" value="Toevoegen" /></form>';
            ////
            $this->inhoud .= '<h2>Context van Intentional Element verwijderen</h2>';
            ////
            $this->inhoud .= '<h2>Context van Intentional Element vervangen</h2>';
            $this->inhoud .= '<table>';
            $this->inhoud .= '<tr><th>IE</th><th>Context</th><th>Vervangen door</th></tr>';
            foreach ($ie_contexten as $ie => $contextlijst) {
                foreach ($contextlijst as $context) {
                    $this->inhoud .= '<form method="post" action="?actie=contextvervangen&amp;type=ie&amp;ie=' . $ie . '&amp;context=' . $context . '">';
                    $this->inhoud .= '<tr><td>' . Uri::SMWuriNaarLeesbareTitel($ie) . '</td><td>' . Uri::SMWuriNaarLeesbareTitel($context) . '</td><td><select name="nieuwecontext">';
                    foreach ($contexten as $beschikbarecontext) {
                        if ($beschikbarecontext != $context) {
                            $this->inhoud .= '<option value="' . $beschikbarecontext . '">' . Uri::SMWuriNaarLeesbareTitel($beschikbarecontext) . '</option>';
                        }
                    }
                    $this->inhoud .= '</select></td><td><input type="submit" value="Vervangen"/></td></tr></form>';
                }
            }
            $this->inhoud .= '</table>';
            $this->inhoud .= '
				<script type="text/javascript">
					var secContextUri = "' . Model::geefContextVanModel($l1model) . '";
					var secVisualisatieId = "' . $sec_visualisatie_id . '";

					createL1hoverPopup(secVisualisatieId);
					startVisualisatie(secVisualisatieId, secContextUri);
				</script>
				<div id="popupOverlay"></div>';
        }
    }
Ejemplo n.º 8
0
 static function geefContextbeschrijving($context_uri)
 {
     $description = SPARQLConnection::geefEersteResultaat($context_uri, 'property:Description');
     if ($description != "") {
         return $description;
     } else {
         return Uri::SMWuriNaarLeesbareTitel($context_uri);
     }
 }
Ejemplo n.º 9
0
    public function __construct($model_uri)
    {
        if (!$model_uri) {
            $model_uri = 'wiki:Building_with_Nature-2Dinterventies_op_het_systeem_practice';
        }
        $this->inhoud .= '<script type="text/javascript">
		function toggleL1modelframe()
		{
			var l1modelframe=document.getElementById(\'l1modelframe\');
			if (l1modelframe.style.display==\'none\')
			{
				l1modelframe.style.display=\'block\';
			}
			else
			{
				l1modelframe.style.display=\'none\';
			}
		}
		</script>';
        $url = explode('?', rtrim($_SERVER['REQUEST_URI'], '/'));
        $this->inhoud .= '<a href="' . $url[0] . '/../../">Terug naar het modellenoverzicht</a>';
        $this->inhoud .= '<h2 id="visualisatiekop">Visualisatie</h2>
		<p><a href="' . $url[0] . '">Herladen</a></p>
		<p>U kunt elementen verslepen om het overzicht te verbeteren. Dubbelklik op een element om de wikipagina ervan weer te geven.</p>';
        $visualisatie = new Visualisatie($model_uri);
        $this->inhoud .= $visualisatie->geefInhoud();
        if (Model::modelIsExperience($model_uri)) {
            $l1model = Model::geefL1modelVanCase($model_uri);
            $l1hoofdcontext = Model::geefContextVanModel($l1model);
            $context_uri = Model::geefContextVanModel($model_uri);
            $contexten = Model::geefUrisVanContextEnSubcontexten($context_uri);
            $contextenlijst = '';
            foreach ($contexten as $context) {
                $contextenlijst .= '<option value="' . $context . '">' . Uri::SMWuriNaarLeesbareTitel($context) . '</option>';
            }
            $data = Model::geefElementenUitContextEnSubcontexten($context_uri);
            $ie_lijst = '';
            $verbandenlijst = array();
            $ie_contexten = array();
            foreach ($data['@graph'] as $item) {
                if ($item['@id']) {
                    $ie_lijst .= '<option value="' . $item['@id'] . '">' . $item['label'] . '</option>';
                    $elementen = Model::elementenNaarArrays(Model::geefArtikelTekst($item['@id']));
                    foreach ($elementen as $element) {
                        if ($element['Element link']) {
                            $verbandenlijst[] = array('van' => $item['label'], 'type' => $element['type'], 'naar' => $element['Element link']);
                        } elseif ($element['type'] == 'Intentional Element links' || $element['type'] == 'Activity links') {
                            $linksverbanden = array();
                            if ($element['Part of']) {
                                $linksverbanden = explode(',', $element['Part of']);
                                foreach ($linksverbanden as $linksverband) {
                                    if (trim($linksverband)) {
                                        $verbandenlijst[] = array('van' => $item['label'], 'type' => 'Part of', 'naar' => trim($linksverband));
                                    }
                                }
                            }
                            if ($element['Consumes']) {
                                $linksverbanden = explode(',', $element['Consumes']);
                                foreach ($linksverbanden as $linksverband) {
                                    if (trim($linksverband)) {
                                        $verbandenlijst[] = array('van' => $item['label'], 'type' => 'Consumes', 'naar' => trim($linksverband));
                                    }
                                }
                            }
                            if ($element['Produces']) {
                                $linksverbanden = explode(',', $element['Produces']);
                                foreach ($linksverbanden as $linksverband) {
                                    if (trim($linksverband)) {
                                        $verbandenlijst[] = array('van' => $item['label'], 'type' => 'Produces', 'naar' => trim($linksverband));
                                    }
                                }
                            }
                        }
                    }
                    if ($item['Eigenschap-3AContext']) {
                        if (is_array($item['Eigenschap-3AContext'])) {
                            foreach ($item['Eigenschap-3AContext'] as $ie_context) {
                                $ie_contexten[$item['@id']][] = $ie_context;
                            }
                        } else {
                            $ie_contexten[$item['@id']][] = $item['Eigenschap-3AContext'];
                        }
                    }
                }
            }
            $this->inhoud .= '<h2>L1-model: ' . Uri::SMWuriNaarLeesbareTitel($l1hoofdcontext) . '</h2>';
            $this->inhoud .= '<button onclick="toggleL1modelframe();">Open/dichtklappen</button>';
            $this->inhoud .= '<iframe style="display:none;" id="l1modelframe" width="100%" height="800" src="/mediawiki/extensions/EMontVisualisator/includes/php/Visualisatie.class.php?echo=true&amp;model_uri=' . urlencode($l1model) . '"></iframe>';
            ////
            $this->inhoud .= '<h2>Nieuw Intentional Element</h2>';
            $this->inhoud .= '<form action="?actie=nieuw&amp;type=ie" method="post"><table>';
            $this->inhoud .= '<tr><td>Naam: ' . Uri::SMWuriNaarLeesbareTitel($context_uri) . '</td><td><input type="text" style="width: 300px;" name="titel"/></td></tr>';
            $this->inhoud .= '<tr><td>Instance of:</td><td><select name="ie">';
            $data = Model::geefElementenUitContextEnSubcontexten($l1hoofdcontext);
            if (isset($data['@graph'])) {
                foreach ($data['@graph'] as $item) {
                    $this->inhoud .= '<option value="' . $item['@id'] . '">' . $item['label'] . '</option>';
                }
            }
            $this->inhoud .= '</select></td></tr>';
            $this->inhoud .= '<tr><td>Context:</td><td><select name="context">' . $contextenlijst . '</select></td></tr>';
            $this->inhoud .= '</table><input type="submit" value="Aanmaken"/></form>';
            ////
            $this->inhoud .= '<h2>Nieuw verband aanbrengen</h2>';
            $this->inhoud .= '<form method="post" action="?actie=maakverband&amp;type=ie"><table>';
            $this->inhoud .= '<tr><th>Van:</th><th>Type:</th><th>Naar:</th><tr>';
            $this->inhoud .= '<tr><td><select name="van">' . $ie_lijst . '</select></td>';
            $this->inhoud .= '<td><select name="type"><option value="Contributes">Contributes</option><option value="Depends">Depends</option><option value="Connects">Connects</option><option value="Produces">Produces</option><option value="Consumes">Consumes</option><option value="Part of">Part of</option></select></td>';
            $this->inhoud .= '<td><select name="naar">' . $ie_lijst . '</select></td></tr>';
            $this->inhoud .= '<tr><td></td><td>Notitie:</td><td><input name="notitie" type="text" style="width:300px;"></td></tr>';
            $this->inhoud .= '<tr><td></td><td>CV/CT:</td><td><input name="subtype" type="text" style="width:300px;"/></td></tr>';
            $this->inhoud .= '</table><input type="submit" value="Aanmaken" /></form>';
            ////
            $this->inhoud .= '<h2>Verband verwijderen</h2>';
            $this->inhoud .= '<form method="post" action="?actie=verwijderverband&amp;type=ie"><table>';
            foreach ($verbandenlijst as $verband) {
                $this->inhoud .= '<tr><td><input type="radio" name="verwijder-verband" value="' . $verband['van'] . '|' . $verband['type'] . '|' . $verband['naar'] . '"/>&nbsp;</td><td>' . $verband['van'] . '&nbsp;</td><td>' . $verband['type'] . '&nbsp;</td><td>' . $verband['naar'] . '</td></tr>';
            }
            $this->inhoud .= '</table><input type="submit" value="Verwijderen"></form>';
            ////
            $this->inhoud .= '<h2>Nieuwe context</h2>';
            $this->inhoud .= '<form method="post" action="?actie=nieuw&amp;type=context">';
            $this->inhoud .= 'Naam: ' . Uri::SMWuriNaarLeesbareTitel($context_uri) . '<input type="text" name="naam-nieuwe-context" /><br />';
            $this->inhoud .= 'Supercontext: <select name="supercontext">' . $contextenlijst . '</select>';
            $this->inhoud .= '<input type="submit" value="Aanmaken"></form>';
            ////
            $this->inhoud .= '<h2>Context verwijderen</h2>';
            ////
            $this->inhoud .= '<h2>Supercontext toevoegen aan context</h2>';
            $this->inhoud .= '<form method="post" action="?actie=extrasupercontext&amp;type=context">';
            $this->inhoud .= 'Context: <select name="context">' . $contextenlijst . '</select><br />';
            $this->inhoud .= 'Supercontext: <select name="supercontext">' . $contextenlijst . '</select><br />';
            $this->inhoud .= '<input type="submit" value="Toevoegen"></form>';
            ////
            $this->inhoud .= '<h2>Supercontext verwijderen van context</h2>';
            $this->inhoud .= '<form method="post" action="?actie=supercontextverwijderen&amp;type=context"><table><tr><th></th><th>Context</th><th>Supercontext</th></tr>';
            foreach ($contexten as $context) {
                $supercontexten = Model::zoekSupercontexten($context);
                foreach ($supercontexten as $supercontext) {
                    $this->inhoud .= '<tr><td><input type="radio" name="verwijder-supercontexten" value="' . $context . '|' . $supercontext . '">&nbsp;</td><td>' . Uri::SMWuriNaarLeesbareTitel($context) . '&nbsp;</td><td>' . Uri::SMWuriNaarLeesbareTitel($supercontext) . '</td></tr>';
                }
            }
            $this->inhoud .= '</table><input type="submit" value="Verwijderen" /></form>';
            ////
            $this->inhoud .= '<h2>Context aan Intentional Element toevoegen</h2>';
            $this->inhoud .= '<form method="post" action="?actie=contexttoevoegen&amp;type=ie">';
            $this->inhoud .= '<table><tr><td>Intentional Element</td><td><select name="ie">';
            $this->inhoud .= $ie_lijst;
            $this->inhoud .= '</select></td></tr><tr><td>Context</td><td><select name="context">';
            $this->inhoud .= $contextenlijst;
            $this->inhoud .= '</select></td></tr></table><input type="submit" value="Toevoegen" /></form>';
            ////
            $this->inhoud .= '<h2>Context van Intentional Element verwijderen</h2>';
            ////
            $this->inhoud .= '<h2>Context van Intentional Element vervangen</h2>';
            $this->inhoud .= '<table>';
            $this->inhoud .= '<tr><th>IE</th><th>Context</th><th>Vervangen door</th></tr>';
            foreach ($ie_contexten as $ie => $contextlijst) {
                foreach ($contextlijst as $context) {
                    $this->inhoud .= '<form method="post" action="?actie=contextvervangen&amp;type=ie&amp;ie=' . $ie . '&amp;context=' . $context . '">';
                    $this->inhoud .= '<tr><td>' . Uri::SMWuriNaarLeesbareTitel($ie) . '</td><td>' . Uri::SMWuriNaarLeesbareTitel($context) . '</td><td><select name="nieuwecontext">';
                    foreach ($contexten as $beschikbarecontext) {
                        if ($beschikbarecontext != $context) {
                            $this->inhoud .= '<option value="' . $beschikbarecontext . '">' . Uri::SMWuriNaarLeesbareTitel($beschikbarecontext) . '</option>';
                        }
                    }
                    $this->inhoud .= '</select></td><td><input type="submit" value="Vervangen"/></td></tr></form>';
                }
            }
            $this->inhoud .= '</table>';
        }
    }