Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get deprecated statements with references #3

Open
nichtich opened this issue Feb 6, 2019 · 0 comments
Open

Get deprecated statements with references #3

nichtich opened this issue Feb 6, 2019 · 0 comments
Labels

Comments

@nichtich
Copy link
Contributor

nichtich commented Feb 6, 2019

Raised here:

SELECT ?item ?itemLabel ?reference ?refProp ?refPropLabel ?refValue ?refValueLabel
{
  ?item p:P170 [
    ps:P170 wd:Q825;
    wikibase:rank wikibase:DeprecatedRank ;
    prov:wasDerivedFrom ?reference
  ] .
  ?reference ?refP ?refValue .
  BIND (IRI(REPLACE(STR(?refP),"prop/reference", "entity")) AS ?refProp)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Something like this?

?item ~P463 Q825:
  reference: ?reference
?reference ?refProp ?refValue

# getting labels to be discussed. One way to optionally get English labels:
?itemLabel := ?item.labels.en
?refPropLabel := ?refProp.labels.en
?refValueLabel := ?refValue.labels.en
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant