You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Ian Dickinson <ia...@epimorphics.com> on 2012/01/22 01:46:28 UTC

Redirecting from openjena.org wiki

On 21/01/12 18:58, Andy Seaborne wrote (on jena-users):
> (there's various redirections but the old wiki isn't one of them).
One thing we could try would be to use .htaccess to redirect the 
top-level wiki categories:

In .htaccess:

Options FollowSymLinks
RewriteEngine on
rewritecond %{http_host} ^openjena.org [nc]
rewriterule ^(/wiki/tdb.*)$ 
http://incubator.apache.org/jena/documentation/tdb/ [r=301,nc]

... etc

It would require disabling the /wiki alias in the apache site 
configuration file.

Not perfect, but it might catch a reasonable number of cases. I'm happy 
to have a go at setting this up if we think it's the right thing to do.

Ian

Re: Redirecting from openjena.org wiki

Posted by Andy Seaborne <an...@apache.org>.
Excellent!

 >> http://openjena.org/wiki/SPARQL_Extensions ->
 >> http://openjena.org/wiki/JenaMulgara ->
 >> http://openjena.org/wiki/SDB/NotesPostgreSQL ->
 >> http://openjena.org/wiki/SDB/NotesMySQL ->
 >> http://openjena.org/wiki/SDB/NotesDerby ->
 >> http://openjena.org/wiki/SDB/NotesMSSQL ->
 >> http://openjena.org/wiki/SDB/NotesDB2 ->
 >> http://openjena.org/wiki/TDB/Concurrency ->

No problem.

On 25/01/12 11:31, Ian Dickinson wrote:
> Hi Damian,
>> Very minor, but you can simply use 'Redirect' [1] for these cases.
>> Maybe redirect ^/wiki to http://incubator.apache.org/jena as a catch
>> all for stray cases?
> Welcome to my evening yesterday! I tried that, but it turns out there's
> no prioritisation of the rules. So once you have one that redirects
> /wiki, it matches all /wiki/foo to i.a./jena/foo, which breaks. Using
> the ^ and $ anchors from RedirectMatch was the solution I came up with.

Yes .. I discovered that ...

>
> Ian

Putting a second .htaccess at that location may help.  I've not tried 
this technique.

	Andy

Re: Redirecting from openjena.org wiki

Posted by Ian Dickinson <ia...@epimorphics.com>.
Hi Damian,
> Very minor, but you can simply use 'Redirect' [1] for these cases.
> Maybe redirect ^/wiki to http://incubator.apache.org/jena as a catch
> all for stray cases?
Welcome to my evening yesterday! I tried that, but it turns out there's 
no prioritisation of the rules. So once you have one that redirects 
/wiki, it matches all /wiki/foo to i.a./jena/foo, which breaks. Using 
the ^ and $ anchors from RedirectMatch was the solution I came up with.

Ian

Re: Redirecting from openjena.org wiki

Posted by Damian Steer <d....@bristol.ac.uk>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 25/01/12 00:53, Ian Dickinson wrote:
> On 24/01/12 20:42, Damian Steer wrote:
>> I had a look at generating these using a little ruby crawling and
>> mahout. [1][2] Naturally this has taken a great deal more time
>> than comparing each page manually. Results are included at the
>> end of this email, and could easily be rejigged into an htaccess
>> file. The form is:
> Thanks Damian, that's really helpful. Using those results, I've 
> redirected the wiki as described below.

Glad it was useful. Having tried a few google searches it seems to be
catching most things. Presumably the permanent redirects will mean the
wiki vanishes from these searches?

(Annoying case: http://openjena.org/wiki/index.php?title=... came up
somehow)

> RedirectMatch ^/wiki/SSE$ 
> http://incubator.apache.org/jena/documentation/notes/sse.html

Very minor, but you can simply use 'Redirect' [1] for these cases.
Maybe redirect ^/wiki to http://incubator.apache.org/jena as a catch
all for stray cases?

Thansk Ian,

Damian

[1] <http://httpd.apache.org/docs/2.2/mod/mod_alias.html#Redirect>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8f4KIACgkQAyLCB+mTtymPygCeK+IOKG7ALQbGJItL18ZMLwEl
AFYAoLzBPdNVPA4iv/EG3QGet+fiUnkc
=6s9t
-----END PGP SIGNATURE-----

Re: Redirecting from openjena.org wiki

Posted by Ian Dickinson <ia...@epimorphics.com>.
On 24/01/12 20:42, Damian Steer wrote:
> I had a look at generating these using a little
> ruby crawling and mahout. [1][2] Naturally this has taken
> a great deal more time than comparing each page manually.
> Results are included at the end of this email, and could easily
> be rejigged into an htaccess file. The form is:
Thanks Damian, that's really helpful. Using those results, I've 
redirected the wiki as described below.

I did not translate the following pages, as they were either blank or 
(it seems to me) very out of date:

> http://openjena.org/wiki/SPARQL_Extensions ->
> http://openjena.org/wiki/JenaMulgara ->
> http://openjena.org/wiki/SDB/NotesPostgreSQL ->
> http://openjena.org/wiki/SDB/NotesMySQL ->
> http://openjena.org/wiki/SDB/NotesDerby ->
> http://openjena.org/wiki/SDB/NotesMSSQL ->
> http://openjena.org/wiki/SDB/NotesDB2 ->
> http://openjena.org/wiki/TDB/Concurrency ->

As a side effect, there were a couple of pages that were missing from 
the original translation of the wiki content to the CMS. These have now 
been added to the i.a.o site.

Ian


RedirectMatch ^/wiki/SSE$ 
http://incubator.apache.org/jena/documentation/notes/sse.html
RedirectMatch ^/wiki/Fuseki$ 
http://incubator.apache.org/jena/documentation/serving_data/
RedirectMatch ^/wiki/RIOT$ 
http://incubator.apache.org/jena/documentation/io/riot.html
RedirectMatch ^/wiki/SOH$ 
http://incubator.apache.org/jena/documentation/serving_data/soh.html
RedirectMatch ^/wiki/SDB/Quickstart$ 
http://incubator.apache.org/jena/documentation/sdb/quickstart.html
RedirectMatch ^/wiki/SDB/Installation$ 
http://incubator.apache.org/jena/documentation/sdb/installation.html
RedirectMatch ^/wiki/SDB/Commands$ 
http://incubator.apache.org/jena/documentation/sdb/commands.html
RedirectMatch ^/wiki/SDB/Store_Description$ 
http://incubator.apache.org/jena/documentation/sdb/store_description.html
RedirectMatch ^/wiki/SDB/Dataset_Description$ 
http://incubator.apache.org/jena/documentation/sdb/dataset_description.html
RedirectMatch ^/wiki/SDB/Configuration$ 
http://incubator.apache.org/jena/documentation/sdb/configuration.html
RedirectMatch ^/wiki/SDB/JavaAPI$ 
http://incubator.apache.org/jena/documentation/sdb/javaapi.html
RedirectMatch ^/wiki/SDB/Database_Layouts$ 
http://incubator.apache.org/jena/documentation/sdb/database_layouts.html
RedirectMatch ^/wiki/SDB/Joseki_Integration$ 
http://incubator.apache.org/jena/documentation/sdb/joseki_integration.html
RedirectMatch ^/wiki/SDB/FAQ$ 
http://incubator.apache.org/jena/documentation/sdb/faq.html
RedirectMatch ^/wiki/SDB/Databases_Supported$ 
http://incubator.apache.org/jena/documentation/sdb/databases_supported.html
RedirectMatch ^/wiki/SDB/Support$ 
http://incubator.apache.org/jena/documentation/sdb/
RedirectMatch ^/wiki/SDB/Loading_performance$ 
http://incubator.apache.org/jena/documentation/sdb/loading_performance.html
RedirectMatch ^/wiki/SDB/Loading_data$ 
http://incubator.apache.org/jena/documentation/sdb/loading_data.html
RedirectMatch ^/wiki/SDB/Query$ 
http://incubator.apache.org/jena/documentation/sdb/
RedirectMatch ^/wiki/SDB/Query_performance$ 
http://incubator.apache.org/jena/documentation/sdb/query_performance.html
RedirectMatch ^/wiki/TDB/Requirements$ 
http://incubator.apache.org/jena/documentation/tdb/requirements.html
RedirectMatch ^/wiki/TDB/JVM-64-32$ 
http://incubator.apache.org/jena/documentation/tdb/jvm_64_32.html
RedirectMatch ^/wiki/TDB/JavaAPI$ 
http://incubator.apache.org/jena/documentation/tdb/java_api.html
RedirectMatch ^/wiki/TDB/Installation$ 
http://incubator.apache.org/jena/download/index.html
RedirectMatch ^/wiki/TDB/Commands$ 
http://incubator.apache.org/jena/documentation/tdb/commands.html
RedirectMatch ^/wiki/TDB/Datasets$ 
http://incubator.apache.org/jena/documentation/tdb/datasets.html
RedirectMatch ^/wiki/TDB/QuadFilter$ 
http://incubator.apache.org/jena/documentation/tdb/quadfilter.html
RedirectMatch ^/wiki/TDB/ValueCanonicalization$ 
http://incubator.apache.org/jena/documentation/tdb/value_canonicalization.html
RedirectMatch ^/wiki/TDB/DynamicDatasets$ 
http://incubator.apache.org/jena/documentation/tdb/dynamic_datasets.html
RedirectMatch ^/wiki/TDB/Assembler$ 
http://incubator.apache.org/jena/documentation/tdb/assembler.html
RedirectMatch ^/wiki/TDB/Optimizer$ 
http://incubator.apache.org/jena/documentation/tdb/optimizer.html
RedirectMatch ^/wiki/TDB/Architecture$ 
http://incubator.apache.org/jena/documentation/tdb/architecture.html
RedirectMatch ^/wiki/TDB/Configuration$ 
http://incubator.apache.org/jena/documentation/tdb/configuration.html
RedirectMatch ^/wiki/TDB/Joseki_Integration$ 
http://incubator.apache.org/jena/documentation/serving_data/index.html
RedirectMatch ^/wiki/ARQ/Logging$ 
http://incubator.apache.org/jena/documentation/query/logging.html
RedirectMatch ^/wiki/ARQ/Explain$ 
http://incubator.apache.org/jena/documentation/query/explain.html
RedirectMatch ^/wiki/ARQ/Manipulating_SPARQL_using_ARQ$ 
http://incubator.apache.org/jena/documentation/query/manipulating_sparql_using_arq.html
RedirectMatch ^/wiki/SDB$ 
http://incubator.apache.org/jena/documentation/sdb/index.html
RedirectMatch ^/wiki/TDB$ 
http://incubator.apache.org/jena/documentation/tdb/index.html
RedirectMatch ^/wiki/ARQ$ 
http://incubator.apache.org/jena/documentation/query/index.html
RedirectMatch ^/wiki/Main_Page$ http://incubator.apache.org/jena
RedirectMatch ^/wiki/$ http://incubator.apache.org/jena
RedirectMatch ^/wiki$ http://incubator.apache.org/jena

Re: Redirecting from openjena.org wiki

Posted by Damian Steer <d....@bristol.ac.uk>.
I had a look at generating these using a little ruby crawling and mahout. [1][2] Naturally this has taken a great deal more time than comparing each page manually. Results are included at the end of this email, and could easily be rejigged into an htaccess file. The form is:

<old uri> ->
   ...0 or more...
   <candidate apache uri> (<similarity score>)

The more astute reader will notice that I could have just compared the end of the uris :-)

Damian

[1] <http://mahout.apache.org/>
[2] <https://bitbucket.org/shellac/redirect-miner/overview>

http://openjena.org/wiki/Main_Page ->
http://openjena.org/wiki/SDB ->
http://openjena.org/wiki/TDB ->
http://openjena.org/wiki/SPARQL_Extensions ->
http://openjena.org/wiki/ARQ ->
http://openjena.org/wiki/JenaMulgara ->
http://openjena.org/wiki/SSE ->
    http://incubator.apache.org/jena/documentation/notes/sse.html (0.940895209383557)
    http://incubator.apache.org/jena/documentation/query/algebra.html (0.251858984739002)
    http://incubator.apache.org/jena/documentation/query/arq-query-eval.html (0.247283196667233)
http://openjena.org/wiki/Fuseki ->
    http://incubator.apache.org/jena/documentation/serving_data/ (0.865087874887867)
    http://incubator.apache.org/jena/documentation/serving_data/index.html (0.865087874887866)
    http://incubator.apache.org/jena/documentation/serving_data/soh.html (0.372591848747247)
    http://incubator.apache.org/jena/documentation/tdb/assembler.html (0.337512617542261)
http://openjena.org/wiki/RIOT ->
    http://incubator.apache.org/jena/documentation/io/riot.html (0.819405587343479)
http://openjena.org/wiki/SOH ->
    http://incubator.apache.org/jena/documentation/serving_data/soh.html (0.802637364456163)
http://openjena.org/wiki/SDB/Quickstart ->
    http://incubator.apache.org/jena/documentation/sdb/quickstart.html (0.708293359964489)
http://openjena.org/wiki/SDB/Installation ->
    http://incubator.apache.org/jena/documentation/sdb/installation.html (0.643619808497736)
http://openjena.org/wiki/SDB/Commands ->
    http://incubator.apache.org/jena/documentation/sdb/commands.html (0.876295810427175)
http://openjena.org/wiki/SDB/Store_Description ->
    http://incubator.apache.org/jena/documentation/sdb/store_description.html (0.817560977427525)
http://openjena.org/wiki/SDB/Dataset_Description ->
    http://incubator.apache.org/jena/documentation/sdb/dataset_description.html (0.75380772694568)
http://openjena.org/wiki/SDB/Configuration ->
    http://incubator.apache.org/jena/documentation/sdb/configuration.html (0.851370601516982)
    http://incubator.apache.org/jena/documentation/tdb/configuration.html (0.379339281677876)
http://openjena.org/wiki/SDB/JavaAPI ->
    http://incubator.apache.org/jena/documentation/sdb/javaapi.html (0.900273404120858)
    http://incubator.apache.org/jena/documentation/sdb/store_description.html (0.335630109753941)
http://openjena.org/wiki/SDB/Database_Layouts ->
    http://incubator.apache.org/jena/documentation/sdb/database_layouts.html (0.745030654801725)
http://openjena.org/wiki/SDB/Joseki_Integration ->
    http://incubator.apache.org/jena/documentation/sdb/joseki_integration.html (0.766100908909383)
http://openjena.org/wiki/SDB/FAQ ->
    http://incubator.apache.org/jena/documentation/sdb/faq.html (0.627237320546457)
http://openjena.org/wiki/SDB/Databases_Supported ->
    http://incubator.apache.org/jena/documentation/sdb/databases_supported.html (0.527626049308696)
http://openjena.org/wiki/SDB/Support ->
http://openjena.org/wiki/SDB/Loading_performance ->
    http://incubator.apache.org/jena/documentation/sdb/loading_performance.html (0.861511376797829)
http://openjena.org/wiki/SDB/Loading_data ->
    http://incubator.apache.org/jena/documentation/sdb/loading_data.html (0.90451825247527)
http://openjena.org/wiki/SDB/Query ->
http://openjena.org/wiki/SDB/Query_performance ->
    http://incubator.apache.org/jena/documentation/sdb/query_performance.html (0.83331910761654)
http://openjena.org/wiki/SDB/NotesPostgreSQL ->
http://openjena.org/wiki/SDB/NotesMySQL ->
http://openjena.org/wiki/SDB/NotesDerby ->
http://openjena.org/wiki/SDB/NotesMSSQL ->
http://openjena.org/wiki/SDB/NotesDB2 ->
http://openjena.org/wiki/TDB/Requirements ->
    http://incubator.apache.org/jena/documentation/tdb/requirements.html (0.680413570081196)
http://openjena.org/wiki/TDB/JVM-64-32 ->
    http://incubator.apache.org/jena/documentation/tdb/jvm_64_32.html (0.732310846150155)
http://openjena.org/wiki/TDB/JavaAPI ->
    http://incubator.apache.org/jena/documentation/tdb/java_api.html (0.76568185957999)
http://openjena.org/wiki/TDB/Installation ->
http://openjena.org/wiki/TDB/Commands ->
    http://incubator.apache.org/jena/documentation/tdb/commands.html (0.72947603230751)
http://openjena.org/wiki/TDB/Datasets ->
    http://incubator.apache.org/jena/documentation/tdb/datasets.html (0.761534103091479)
http://openjena.org/wiki/TDB/QuadFilter ->
    http://incubator.apache.org/jena/documentation/tdb/quadfilter.html (0.831796876191203)
http://openjena.org/wiki/TDB/ValueCanonicalization ->
    http://incubator.apache.org/jena/documentation/tdb/value_canonicalization.html (0.761273159113877)
http://openjena.org/wiki/TDB/DynamicDatasets ->
    http://incubator.apache.org/jena/documentation/tdb/dynamic_datasets.html (0.708953988076054)
http://openjena.org/wiki/TDB/Assembler ->
    http://incubator.apache.org/jena/documentation/tdb/assembler.html (0.889383733892633)
http://openjena.org/wiki/TDB/Optimizer ->
    http://incubator.apache.org/jena/documentation/tdb/optimizer.html (0.941873402152256)
http://openjena.org/wiki/TDB/Architecture ->
    http://incubator.apache.org/jena/documentation/tdb/architecture.html (0.894742673843093)
    http://incubator.apache.org/jena/documentation/tdb/jvm_64_32.html (0.437922833349563)
http://openjena.org/wiki/TDB/Configuration ->
    http://incubator.apache.org/jena/documentation/tdb/configuration.html (0.807278273651406)
    http://incubator.apache.org/jena/documentation/sdb/configuration.html (0.377209580591843)
http://openjena.org/wiki/TDB/Joseki_Integration ->
http://openjena.org/wiki/ARQ/Explain ->
http://openjena.org/wiki/ARQ/Manipulating_SPARQL_using_ARQ ->
    http://incubator.apache.org/jena/documentation/query/arq-query-eval.html (0.246126793420272)
http://openjena.org/wiki/ARQ/Logging ->
http://openjena.org/wiki/TDB/Concurrency ->


Re: Redirecting from openjena.org wiki

Posted by Andy Seaborne <an...@apache.org>.
On 22/01/12 00:46, Ian Dickinson wrote:
> On 21/01/12 18:58, Andy Seaborne wrote (on jena-users):
>> (there's various redirections but the old wiki isn't one of them).
> One thing we could try would be to use .htaccess to redirect the
> top-level wiki categories:
>
> In .htaccess:
>
> Options FollowSymLinks
> RewriteEngine on
> rewritecond %{http_host} ^openjena.org [nc]
> rewriterule ^(/wiki/tdb.*)$
> http://incubator.apache.org/jena/documentation/tdb/ [r=301,nc]
>
> ... etc
>
> It would require disabling the /wiki alias in the apache site
> configuration file.
>
> Not perfect, but it might catch a reasonable number of cases. I'm happy
> to have a go at setting this up if we think it's the right thing to do.
>
> Ian

Good plan - go for it.

I have a backup of the wiki so the whole thing can be killed now.  Feel 
free to remove all the Aliases for the wiki.

When we graduate and get a domain name, we can simply change 
openjena.org to CNAME to jena.a.o.  By that time, the fact it's brutal 
will not matter.  Anyone visiting would not have done so for a while so 
change is reasonable.

One softening would be to add a redirection landing page "You have 
arrived at this page because to visited openjena.org or 
jena.sourceforge.net - we've moved ...."

	Andy

PS I used 302 while testing and switched to 301 when I thought it 
worked.  Various things remember 301 and take the "permanently" part 
seriously.