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

Add Parliamentary Term qualifier to items with single-term P39 items #19

Open
5 of 6 tasks
tmtmtmtm opened this issue Nov 14, 2017 · 1 comment
Open
5 of 6 tasks
Labels

Comments

@tmtmtmtm
Copy link

tmtmtmtm commented Nov 14, 2017

Where the target of a P39 is a term-specific membership item (e.g. Member of the 4th Welsh Assembly) we should also set a parliamentary term: 4th Welsh Assembly onto the membership, so that queries can be consistent across multiple legislatures, rather than needing to know which model was chosen.

  • UK
  • Wales
  • Scotland
  • Northern Ireland
  • Pakistan
  • Iceland
@tmtmtmtm tmtmtmtm added the to run label Dec 1, 2017
@tmtmtmtm
Copy link
Author

tmtmtmtm commented Dec 4, 2017

Query:

SELECT ?item ("P39" AS ?p39) ?statement ("P2937" AS ?p2937) ?term 
WHERE 
{
  ?item p:P39 ?statement .
  ?statement ps:P39/wdt:P279* wd:Q3406079 ; ps:P39/p:P279/pq:P2937 ?term .
  FILTER NOT EXISTS { ?statement pq:P2937 [] } .
}

Statements

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