Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDF version of the OpenMath CDs broken when accessed via canonical URIs #141

Closed
jbs1 opened this issue Jul 6, 2016 · 2 comments
Closed
Assignees

Comments

@jbs1
Copy link

jbs1 commented Jul 6, 2016

migrated from Trac, where originally posted by clange on 19-Mar-2012 10:40pm

It is not currently possible to access the RDF version of the OpenMath CDs via their canonical URIs (i.e. in a linked data compliant way):

$ wget --header='Accept: application/rdf+xml' -S -O - http://www
.openmath.org/cd/arith1
--2012-03-19 23:44:32--  http://www.openmath.org/cd/arith1
Resolving www.openmath.org... 134.96.191.184
Connecting to www.openmath.org|134.96.191.184|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 303 See Other
  Date: Mon, 19 Mar 2012 22:44:30 GMT
  Server: Apache/2.2.3 (Unix) PHP/5.2.0
  Location: http://www-back.activemath.org/cd/arith1.rdf
  Content-Length: 251
  Content-Type: text/html; charset=iso-8859-1
  Via: 1.0 openmath.org
  Vary: Accept-Encoding
  Keep-Alive: timeout=15, max=100
  Connection: Keep-Alive
Location: http://www-back.activemath.org/cd/arith1.rdf [following]
--2012-03-19 23:44:33--  http://www-back.activemath.org/cd/arith1.rdf
Resolving www-back.activemath.org... 134.96.184.245
Connecting to www-back.activemath.org|134.96.184.245|:80... failed: Connection timed out.
Retrying.

On the other hand, accessing them via their actual physical URI works (same for the *.ocd and *.xhtml files):

$ wget --header='Accept: application/rdf+xml' -S -O - http
://www.openmath.org/cd/arith1.rdf
--2012-03-19 23:46:15--  http://www.openmath.org/cd/arith1.rdf
Resolving www.openmath.org... 134.96.191.184
Connecting to www.openmath.org|134.96.191.184|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK
  Date: Mon, 19 Mar 2012 22:46:12 GMT
  Server: Apache/2.2.3 (Unix) PHP/5.2.0
  Last-Modified: Tue, 30 Aug 2011 15:17:29 GMT
  ETag: "b94459-1080a-82871440"
  Accept-Ranges: bytes
  Content-Length: 67594
  Content-Type: application/rdf+xml
  Via: 1.0 openmath.org
  Keep-Alive: timeout=15, max=100
  Connection: Keep-Alive
Length: 67594 (66K) [application/rdf+xml]
Saving to: `STDOUT'

 0% [                                                       ] 0           --.-K/s              <
?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
...

http://svn.openmath.org/OpenMath/www/dot_htaccess_cd hasn't changed for a long time – or maybe this has already been broken for a long time?

Paul, in revision 1243 you made the following change – which looks OK to me, but depends on a server directory layout that maybe no longer exists (?):

-RewriteRule ^(.+)(?<!\.rdf)(?<!\.xhtml)(?<!\.ocd)$ $1.xhtml [L]
+RewriteRule ^(.+)(?<!\.rdf)(?<!\.xhtml)(?<!\.ocd)$ /opt/local/activemath/www/www.openmath.org/www/$1.xhtml [L]

Do you have an idea?

@jbs1
Copy link
Author

jbs1 commented Jul 6, 2016

migrated from Trac, where originally posted by clange on 16-May-2014 12:44am

I would be willing to fix this but I will only be able to do so if someone gives me access to the web server. In practice this will only work if the web server is moved somewhere else. Or, who is currently hosting it?

@kohlhase
Copy link
Member

kohlhase commented Oct 3, 2017

moved to OpenMath/OpenMath.github.io#50

@kohlhase kohlhase closed this as completed Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants