Page MenuHomePhabricator

[Story] Create real URLs for wikidata ontology
Closed, ResolvedPublic

Description

Right now we have URL http://wikidata.org/entity/Q1 resolve to real data page. However, a lot of other URLs mentioned in RDF dumps do not correspond to anything. Specifically:

http://wikiba.se/ontology - ontology base
http://www.wikidata.org/prop/ - all property predicates
http://www.wikidata.org/entity/statement - all statements
http://www.wikidata.org/value/ - prefix for RDF values
http://www.wikidata.org/reference/ - prefix for RDF preferences

We should devise and implement URL scheme in which, at least on wikidata, all these URLs would exist and lead to a sensible place.

Event Timeline

Smalyshev raised the priority of this task from to Needs Triage.
Smalyshev updated the task description. (Show Details)
Smalyshev added a project: Wikidata.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 24 2015, 10:46 PM
Lydia_Pintscher triaged this task as Normal priority.Apr 29 2015, 1:07 PM
Lydia_Pintscher set Security to None.
Lydia_Pintscher moved this task from incoming to ready to go on the Wikidata board.

The ontology base URI is now decided: http://wikiba.se/ontology# (resp for now http://wikiba.se/ontology-beta#). That should redirect (303?) to the OWL document URL, http://wikiba.se/schema/ontology-0.0.1.owl

The base URI for entities on wikidata.org should remain inside the wikidata.org domain. The suggested paths seem fine:
http://www.wikidata.org/prop/ - all property predicates
http://www.wikidata.org/entity/statement - all statements
http://www.wikidata.org/value/ - prefix for RDF values
http://www.wikidata.org/reference/ - prefix for RDF preferences

Though I'm not quite sure whether we should be using http or https here. That disctinction is a bit silly for URIs. is there some Best Practice for dealing with this?

Sounds good.

I am not aware of any best practice re "http vs. https" but all URIs I know are using http as a protocol.

Should it be linked with docs/ontology.owl in Wikibase repo?

As for https, I don't see big need to do https - it's less cacheable and it's not something that contains sensitive non-public information.

daniel added a comment.EditedMay 11 2015, 5:40 PM

@Smalyshev http://wikiba.se/schema/ontology-0.0.1.owl should be docs/ontology.owl from the repo. I don't know what you mean by "linked to" though.

I suppose the file should be copied to https://github.com/wmde/Wikiba.se, an the appropriate redirect/rewrite should be configured there, too. I have filed an issue ticket there: https://github.com/wmde/Wikiba.se/issues/32

By linked I meant some automatic process that makes that happen between repos, but we also can do it manually for now.

Jonas renamed this task from Create real URLs for wikidata ontology to [Story] Create real URLs for wikidata ontology.Aug 15 2015, 12:35 PM
Smalyshev updated the task description. (Show Details)Sep 9 2015, 7:37 AM

Change 230483 had a related patch set uploaded (by Smalyshev):
Create real URIs for wikidata RDF URIs

https://gerrit.wikimedia.org/r/230483

wikiba.se part probably needs to be split out since it is a different site from wikidata.org with different codebase (and static one at that which also complicates things).

Another proposal from @mkroetzsch:

I don't know what the implementation status is for generated URIs like http://www.wikidata.org/value/8000228965cf554cf1baf641980f657d, since we cannot resolve them so easily. One way would be to redirect to a suitable DESCRIBE query result on the SPARQL endpoint. But this may require some more implementation work first. I think our main goal should be to have proper RDF replies for items and (all URI variants of) properties.

Change 230483 merged by RobH:
Create real URIs for wikidata RDF URIs

https://gerrit.wikimedia.org/r/230483