Page MenuHomePhabricator

Querying WCQS should allow me to use prefixes for MediaInfo items
Closed, ResolvedPublic5 Estimated Story Points


As a WMCS user I should be able to run

select * {
  sdc:M80570743 ?p ?o .
} limit 10

without having to use full IRIs for MediaInfo items.

AC: The list of prefixes supported should be (esp. sdc, sdcv, sdcref):

@prefix sdc: <> .
@prefix sdcdata: <> .
@prefix sdcs: <> .
@prefix sdcref: <> .
@prefix sdcv: <> .
@prefix sdct: <> .
@prefix sdctn: <> .
@prefix sdcp: <> .
@prefix sdcps: <> .
@prefix sdcpsv: <> .
@prefix sdcpsn: <> .
@prefix sdcpq: <> .
@prefix sdcpqv: <> .
@prefix sdcpqn: <> .
@prefix sdcpr: <> .
@prefix sdcprv: <> .
@prefix sdcprn: <> .
@prefix sdcno: <> .

The sparql query pasted should work.

Related Objects

Event Timeline

Most of the above prefixes will be unnecessary, unless we propose to create any new properties local to Commons not defined on Wikidata.

If not then sdcref, sdcv, sdct, sdctn etc etc will all be unneeded.

Even though some prefixes are not needed I suggest to add all of them anyways to conform with what's done in the RDF dumps.
The RDF output emits all of them despite only writing: sdoc, sdocdata, sdcs, sdocv (sdocref? haven't seen it yet, can you add references from the UI?)

The answer is, we ought to remove the unused ones from the RDF dump too, as discussed at T258474

It is confusing and distracting to add a whole lot of prefixes that we do not use, and have no intention of using; and distracts from the reality, that SDC introduces very *few* new prefixes, beyond what are already used on WD.

Change 618237 had a related patch set uploaded (by ZPapierski; owner: ZPapierski):
[operations/puppet@production] Additional prefixes for sdoc for wcqs

Change 618237 merged by Ryan Kemper:
[operations/puppet@production] Additional prefixes for sdoc for wcqs

Prefixes, as defined in mediainfo dumps, are available in WCQS.