NIHVIVO3232: updated to order by rank

This commit is contained in:
tworrall 2012-03-05 21:20:49 +00:00
parent 42cab346e6
commit b7b7607242

View file

@ -14,6 +14,7 @@
?position ?position
?positionTitle ?positionTitle
?hrJobTitle ?hrJobTitle
?rank
?org ?orgName ?org ?orgName
?middleOrg ?middleOrgName ?middleOrg ?middleOrgName
?outerOrg ?outerOrgName ?outerOrg ?outerOrgName
@ -30,6 +31,7 @@
} }
OPTIONAL { ?position rdfs:label ?positionTitle } OPTIONAL { ?position rdfs:label ?positionTitle }
OPTIONAL { ?position core:hrJobTitle ?hrJobTitle } OPTIONAL { ?position core:hrJobTitle ?hrJobTitle }
OPTIONAL { ?position core:rank ?rank }
OPTIONAL { ?position core:dateTimeInterval ?dateTimeInterval OPTIONAL { ?position core:dateTimeInterval ?dateTimeInterval
OPTIONAL { ?dateTimeInterval core:start ?dateTimeStartValue . OPTIONAL { ?dateTimeInterval core:start ?dateTimeStartValue .
?dateTimeStartValue core:dateTime ?dateTimeStart ?dateTimeStartValue core:dateTime ?dateTimeStart
@ -46,7 +48,7 @@
<critical-data-required> <critical-data-required>
FILTER ( bound(?org) ) FILTER ( bound(?org) )
</critical-data-required> </critical-data-required>
} ORDER BY <collated>?subclass</collated> DESC(?dateTimeEnd) DESC(?dateTimeStart) ?orgName } ORDER BY <collated>?subclass</collated> DESC(?dateTimeEnd) ?rank
</query-select> </query-select>
<query-construct> <query-construct>
@ -81,6 +83,9 @@
} UNION { } UNION {
?subject ?property ?position . ?subject ?property ?position .
?position ?positionProperty ?positionValue ?position ?positionProperty ?positionValue
} UNION {
?subject ?property ?position .
?position core:rank ?rank
} UNION { } UNION {
?subject ?property ?position . ?subject ?property ?position .
?position core:positionInOrganization ?org . ?position core:positionInOrganization ?org .