Here are a series of examples of what information can be represented by LongSpine data. Some of the examples are just static "this is how you show X" scenarios, others are queries that, with given inputs, yield particular answers.
Portfolios responsible for each Matter for a particular period of governmentLongSpine includes a model for AAOs and also a static dataset of all AAOs' content. This query uses only these two resources.
Matters for AAO 60.The query gnerated is:
PREFIX aao:
PREFIX dct:
SELECT ?dept ?title ?matter ?desc
WHERE {
?aaoPart a aao:AAO-Part ;
dct:isPartOf ;
aao:matterDealtWith ?matter ;
aao:responsibleDepartment ?dept .
?matter dct:description ?desc .
?dept dct:title ?title .
}
ORDER BY ?dept
AAOs are comprised of Parts which contain the Matters, so find parts within A60 (identified by URI). AAO Parts are have Departments responsible for them with Depts indicated at a Portfolio level.
Portfolios for a Matter over timeFor a given Matter, find the Portfolios that are responsible for that Matter over a particular timespan.
Inputs:
MatterAAO periods or particular Governments)
Government Structural Units, from all Datasets, assigned a particular Government Function in a particular EpochThis query uses the fact that all component datasets' content is aligned to the LongSpine Overarching Data Model to allow a single query to retrieve content from multiple, differently presented, datasets.
Inputs:
Government FunctionEpochSPARQL Query:
PREFIX time: <http://www.w3.org/2006/time#> .
PREFIX long: <http://linked.data.gov.au/def/longspine#> .
SELECT *
WHERE {
?gsu a long:GovernmentStructuralUnit ;
long:assigned <INPUT-GOVERNMENT-FUNCTION> ;
time:hasTime <INPUT-EPOCH> .
}