Wikidata RDF export uses wikiba.se/ontology as ontology base. However, http://wikiba.se/ontology does not lead to any page. It should lead to OWL description of the ontology or at least to some page that describes it.
|Open||None||T88728 Improve Wikimedia dumping infrastructure|
|Open||None||T88991 improve Wikidata dumps [tracking]|
|Open||None||T46581 Partial RDF dumps|
|Resolved||Smalyshev||T46580 Script for creating RDF dumps of all entities|
|Open||None||T211495 Dump(s) of Wikidata classes|
|Open||None||T211497 Dump(s) of Wikidata instances of Q5|
|Open||None||T162351 Create a "page prop" RDF dump for Wikidata entities ("pagePropertiesRdf")|
|Open||None||T98320 [Task] Create dump of entity redirects (JSON or n-triples)|
|Open||cscott||T44063 [Epic] Provide a plain linked data interface for accessing entities|
|Resolved||hoo||T101837 [Story] switch default rdf format to full (include statements)|
|Open||None||T50143 Implement complete RDF mapping for entities (tracking)|
|Resolved||Smalyshev||T99820 [Task] Add reference to ontology.owl to the RDF output|
|Resolved||Smalyshev||T112042 [Story] http://wikiba.se/ontology should lead to documentation for the ontology|
Wikiba.se is built on sculpin which I have no idea how to make do redirects. Does it actually run sculpin or sculpin just being used as page generator and there's some real webserver we could use to make redirects?
Currently the webserver only has the Sculpin output. PHP is installed on it, so we can make use of PHP if we want.
This ticket and https://github.com/wmde/Wikiba.se/issues/32 mention the need for redirects. It is not clear to me where to these redirects need to point. Is the OWL description of the ontology already available somewhere?
@JeroenDeDauw right now the ontology lives at docs/ontology.owl in Wikibase repo. We need to figure out two things:
- How to expose it to the outside as an URL
- How to make versions of it, so we could have ontology-1.0.owl, ontology-1.1.owl etc.
I think probably the best way to do it is this:
- Put current ontology under http://wikiba.se/ontology/ontology-1.0.owl as static file (just copy it)
- Make a 302 redirect from http://wikiba.se/ontology to http://wikiba.se/ontology/ontology-1.0.owl (important - not 301 since it will always point to the latest one)
- Manually add new versions each time we change something in the ontology and move redirects.
This involves some manual work, and I'm not sure how to make redirects work in Sculpin, so if you have a better idea I'd be glad to hear.
Sounds like a reasonable approach to me.
AFAIK you cannot do 302 redirects with Sculpin. Then again, Sculpin does not prevent you from doing redirects on your own, so we could create some trivial PHP script that does it.