HughP / simal

Automatically exported from code.google.com/p/simal
0 stars 0 forks source link

Errors in displaying projects that contain a homepage that doesn't fully respect URL protocol #305

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There are a few projects (currently) that have been imported via the PIMS 
import that contain homepages without a 'http://' specification.

For example : 
'e-Assessment in Higher Education' : www.southampton.ac.uk/easihe
'A Web-Based Interactive Visualisation (..)' : www.wecamp.group.shef.ac.uk 

As a consequence, on the project detail page the URL to the homepage is 
configured incorrectly, eg: 
http://registry.oss-watch.ac.uk/project/simalID/www.southampton.ac.uk/easihe

Also, when I try to view the RDF source I get an error message similar to: 
'Could not handle request for /project/source-simal/project-prj1387/xml'

Best solution I see is to make sure the homepage is always a valid URI, ie. 
with protocol specified. 

Workaround: Check and fix the Excel sheets before importing.

Original issue reported on code.google.com by sander.v...@oucs.ox.ac.uk on 29 Jun 2010 at 2:35

GoogleCodeExporter commented 9 years ago
There's also a problem with homepages in the PIMS import that contain a space 
before them, eg. < http://www.trics2.mmu.ac.uk/trics1>.

The space is preserved when stored in Jena which lead to an error when trying 
to display the project or person this URL is related to.

Stacktrace is of the form: 

com.hp.hpl.jena.shared.BadURIException: Only well-formed absolute URIrefs can 
be included in RDF/XML output: < http://www.sussex.ac.uk/skillclouds/> Code: 
0/ILLEGAL_CHARACTER in SCHEME: The character violates the grammar rules for 
URIs/IRIs.
        at com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.checkURI(BaseXMLWriter.java:829)
        at com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize(BaseXMLWriter.java:806)

(changed issue title to include this case)

Related to Issue 165

Original comment by sander.v...@oucs.ox.ac.uk on 1 Jul 2010 at 9:29

GoogleCodeExporter commented 9 years ago

Original comment by sander.v...@oucs.ox.ac.uk on 8 Jul 2010 at 11:21