-
Notifications
You must be signed in to change notification settings - Fork 51
Direct look-up of resources with urlencoded URIs does not work #145
Comments
As noted in #145, direct lookup of URI's with international characters, i.e. containing urlencoded strings, does not work. Further investigation into the matter, as detailed in AKSW/RDFauthor#15, revealed that viewing these URI's from within OntoWiki is also problematic. Example: However, it seems that the URI is urlencoded twice, at least partially. When I paste
is correct, but the URL in the address bar is not, thus causing problems in the OntoWiki interface. The URL that appears in the address bar of the browser when clicking on the label "Ung må verden ennu være : roman" in the OntoWiki resource view OntoWiki Error
Supplied resource <http://data.bbib.no/data/Ung må verden ennu være : roman> is not a valid URI.
OntoWiki_Model_Exception
/usr/local/ontowiki/application/classes/OntoWiki/Model/TitleHelper.php@201
#0: OntoWiki_Model_TitleHelper->addResource@/usr/local/ontowiki/application/classes/OntoWiki/Resource.php:53
#1: OntoWiki_Resource->getTitle@/usr/local/ontowiki/application/classes/OntoWiki/Controller/Base.php:144
#2: OntoWiki_Controller_Base->init@/usr/local/ontowiki/libraries/Zend/Controller/Action.php:133
#3: Zend_Controller_Action->__construct@/usr/local/ontowiki/libraries/Zend/Controller/Dispatcher/Standard.php:268
#4: Zend_Controller_Dispatcher_Standard->dispatch@/usr/local/ontowiki/libraries/Zend/Controller/Front.php:954
#5: Zend_Controller_Front->dispatch@/usr/local/ontowiki/libraries/Zend/Application/Bootstrap/Bootstrap.php:97
#6: Zend_Application_Bootstrap_Bootstrap->run@/usr/local/ontowiki/libraries/Zend/Application.php:366
#7: Zend_Application->run@/usr/local/ontowiki/index.php:179
back home <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OntoWiki Error</title>
<style type="text/css">
body {
font-family: sans-serif;
line-height: 1.5;
background-color: #eff9ff;
}
.info {
margin: 0.5% 10%;
border: 1px solid #aaa;
padding: 1%;
background-color: #f9f9f9;
}
.error {
margin: 0.5% 10%;
border: 1px solid #f00;
padding: 1%;
background-color: #fcc;
}
</style>
</head>
<body>
<div class="error">
<h1>OntoWiki Error</h1>
<details>
<summary>Supplied resource <http://data.bbib.no/data/Ung må verden ennu være : roman> is not a valid URI.</summary>
<p><code>OntoWiki_Model_Exception</code></p>
<p>
<code>/usr/local/ontowiki/application/classes/OntoWiki/Model/TitleHelper.php@201</code>
<br/ ><code>#0: OntoWiki_Model_TitleHelper->addResource@/usr/local/ontowiki/application/classes/OntoWiki/Resource.php:53<br />#1: OntoWiki_Resource->getTitle@/usr/local/ontowiki/application/classes/OntoWiki/Controller/Base.php:144<br />#2: OntoWiki_Controller_Base->init@/usr/local/ontowiki/libraries/Zend/Controller/Action.php:133<br />#3: Zend_Controller_Action->__construct@/usr/local/ontowiki/libraries/Zend/Controller/Dispatcher/Standard.php:268<br />#4: Zend_Controller_Dispatcher_Standard->dispatch@/usr/local/ontowiki/libraries/Zend/Controller/Front.php:954<br />#5: Zend_Controller_Front->dispatch@/usr/local/ontowiki/libraries/Zend/Application/Bootstrap/Bootstrap.php:97<br />#6: Zend_Application_Bootstrap_Bootstrap->run@/usr/local/ontowiki/libraries/Zend/Application.php:366<br />#7: Zend_Application->run@/usr/local/ontowiki/index.php:179<br /></code>
</p>
</details>
<p>
<a href="http://data.bbib.no/view/r/Nordahl_Grieg">back</a>
<a href="http://data.bbib.no/">home</a>
</p>
</div>
</body>
</html> ;)Frode |
Interestingly, links to exsternal IRI's seems to be handled differently, albeit still wrong. I added
to my knowledge base by way of the Now, following the first of these links in OntoWiki points my browser to
However, following the latter of the two links lands my browser at ;)Frode |
To actually see what is represented at the different URL's you'd have to instantiate the model for your browser by visiting http://data.bbib.no/ once prior to following the links. This situation is due to some strange behaviour of the DefaultModel extention, possibly misconfiguration on my part. ;)Frode |
This issue is also in AKSW/Erfurt#59 |
I have the following URIs in my KB:
The first one works with fine in OntoWiki, the second does not, but rather produces the error message:
If I try to open http://data.bbib.no/data/Emmerich_K%C3%A1lm%C3%A1n with
lynx
I get aHTTP 404: Not found
warning, and then I am redirected to the above error page.Headers from cURL invocation:
Dvorak:
Emmerich Kálmán:
A working URL to confirm that the resource for Emmerich Kálmán is indeed in the KB:
http://data.bbib.no/resource/properties/?r=http%3A%2F%2Fdata.bbib.no%2Fdata%2FEmmerich_K%25C3%25A1lm%25C3%25A1n&m=http%3A%2F%2Fdata.bbib.no%2Fdata%2F
Nginx configuration:
Hmm ...
The text was updated successfully, but these errors were encountered: