Page MenuHomePhabricator

Support SDC URIs in WDQS URI schemes
Closed, ResolvedPublic

Description

Right now, WDQS assumes for it's default prefix/URL system that entity and predicate prefixes come from the same host. This influences both default prefixes and more importantly, URIs for dictionaries and inlining. We should enable WDQS to be able to handle scheme where entity URIs may come from different places, e.g. mixing entity with wd: prefix for wikidata and sdc: prefix for commons.
For default prefixes, we can just add a config, but we also may want the inlining to work for both URI schemes, which may require some additional support.

The goals to achieve are:

  1. Have sdc: items and data triples recognized by Munger/Updater as proper entities.
  2. Have all SDC URIs be properly inlined.
  3. Have Updater handle all statements properly
  4. Have sdc: and sdcs: prefixes to work by default.

We still need to have single URI for:

  • statement prefix (Updater assumes there's single statement prefix)
  • property prefixes

Needs refactoring:

  • Entity ID <-> URI conversion, can be different for different URIs.

Event Timeline

Smalyshev created this task.Aug 1 2019, 6:51 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 1 2019, 6:51 PM
Smalyshev triaged this task as Normal priority.Aug 1 2019, 6:52 PM
Smalyshev added a project: User-Smalyshev.
Smalyshev updated the task description. (Show Details)Aug 2 2019, 8:49 PM
Smalyshev updated the task description. (Show Details)Aug 2 2019, 9:27 PM

Change 527663 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[wikidata/query/rdf@master] Refactor URIs to use specialized methods instead of strings

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

Smalyshev moved this task from Backlog to Doing on the User-Smalyshev board.Aug 2 2019, 10:20 PM

Change 528293 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[wikidata/query/rdf@master] Implement SDC URI scheme

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

Change 527663 merged by jenkins-bot:
[wikidata/query/rdf@master] Refactor URIs to use specialized methods instead of strings

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

Change 529323 had a related patch set uploaded (by Gehel; owner: Gehel):
[wikidata/query/rdf@master] Extract UrisScheme interface.

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

Change 529351 had a related patch set uploaded (by Gehel; owner: Gehel):
[wikidata/query/rdf@master] Refactor the various URIs scheme to be more symetric.

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

Change 528293 merged by jenkins-bot:
[wikidata/query/rdf@master] Implement SDC URI scheme

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

Smalyshev moved this task from Doing to Done on the User-Smalyshev board.

Change 530984 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[wikidata/query/rdf@master] Add support for SDC URIs to Updater

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

Change 531024 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[wikidata/query/gui@master] Allow adding more prefixes to RdfNamespaces

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

Change 530984 merged by jenkins-bot:
[wikidata/query/rdf@master] Add support for SDC URIs to Updater

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

Smalyshev renamed this task from Allow WDQS default prefixes to work with federated data to Support SDC URIs in WDQS URI schemes.Wed, Aug 21, 7:28 AM
Smalyshev updated the task description. (Show Details)
Smalyshev moved this task from Done to In review on the User-Smalyshev board.

Change 529323 merged by jenkins-bot:
[wikidata/query/rdf@master] Extract UrisScheme interface.

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

Change 529351 merged by jenkins-bot:
[wikidata/query/rdf@master] Refactor the various URIs scheme to be more symetric.

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

Smalyshev closed this task as Resolved.Fri, Aug 23, 12:07 AM

@Multichill eventually yes, but since they are not being used anywhere yet it's too early to document them. Once RDF export is properly set up to use these prefixes then we can document them officially.