merging 4307 from the 1.5 maintenance branch
This commit is contained in:
parent
876bf71a74
commit
7a8d5d9d17
2 changed files with 43 additions and 76 deletions
|
@ -14,6 +14,7 @@
|
|||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
SELECT DISTINCT ?awardReceipt
|
||||
?receiptLabel
|
||||
?award
|
||||
?awardLabel
|
||||
?conferredBy
|
||||
|
@ -24,11 +25,13 @@
|
|||
|
||||
WHERE {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt core:receiptOf ?award .
|
||||
OPTIONAL { ?awardReceipt rdfs:label ?receiptLabel }
|
||||
OPTIONAL { ?awardReceipt core:receiptOf ?award .
|
||||
?award core:receipt ?awardReceipt
|
||||
OPTIONAL { ?award rdfs:label ?awardLabel }
|
||||
OPTIONAL { ?award core:awardConferredBy ?conferredBy .
|
||||
?conferredBy rdfs:label ?conferredByLabel
|
||||
OPTIONAL { ?award core:awardConferredBy ?conferredBy
|
||||
OPTIONAL { ?conferredBy rdfs:label ?conferredByLabel }
|
||||
}
|
||||
}
|
||||
OPTIONAL { ?awardReceipt core:dateTimeInterval ?dateTimeInterval
|
||||
OPTIONAL { ?dateTimeInterval core:start ?dateTimeStartValue .
|
||||
|
@ -41,51 +44,11 @@
|
|||
}
|
||||
}
|
||||
OPTIONAL { ?awardReceipt core:dateTimeValue ?dateTimeValue
|
||||
OPTIONAL { ?dateTimeValue core:dateTime ?dateTime
|
||||
|
||||
OPTIONAL { ?dateTimeValue core:dateTime ?dateTime }
|
||||
}
|
||||
}
|
||||
|
||||
} ORDER BY DESC(?dateTime) DESC(?dateTimeEnd)
|
||||
</query-select>
|
||||
|
||||
<query-construct>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
CONSTRUCT {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt ?awardReceiptProperty ?awardReceiptValue .
|
||||
?awardReceipt rdfs:label ?awardReceiptLabel .
|
||||
?awardReceipt core:receiptOf ?award .
|
||||
?award core:receipt ?awardReceipt .
|
||||
?award rdfs:label ?awardLabel
|
||||
} WHERE {
|
||||
{
|
||||
?subject ?property ?awardReceipt
|
||||
} UNION {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt ?awardReceiptProperty ?awardReceiptValue
|
||||
} UNION {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt ?awardReceiptProperty ?awardReceiptValue .
|
||||
?awardReceipt rdfs:label ?awardReceiptLabel
|
||||
} UNION {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt ?awardReceiptProperty ?awardReceiptValue .
|
||||
?awardReceipt rdfs:label ?awardReceiptLabel .
|
||||
?awardReceipt core:receiptOf ?award .
|
||||
?award core:receipt ?awardReceipt
|
||||
} UNION {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt ?awardReceiptProperty ?awardReceiptValue .
|
||||
?awardReceipt rdfs:label ?awardReceiptLabel .
|
||||
?awardReceipt core:receiptOf ?award .
|
||||
?award core:receipt ?awardReceipt .
|
||||
?award rdfs:label ?awardLabel
|
||||
}
|
||||
}
|
||||
</query-construct>
|
||||
|
||||
<query-construct>
|
||||
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
|
@ -94,10 +57,10 @@
|
|||
|
||||
CONSTRUCT {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt ?awardReceiptProperty ?awardReceiptValue .
|
||||
?awardReceipt rdfs:label ?awardReceiptLabel .
|
||||
?awardReceipt rdfs:label ?receiptLabel .
|
||||
?awardReceipt core:receiptOf ?award .
|
||||
?award core:receipt ?awardReceipt .
|
||||
?award rdfs:label ?awardLabel .
|
||||
?award core:awardConferredBy ?conferredBy .
|
||||
?conferredBy rdfs:label ?conferredByLabel
|
||||
} WHERE {
|
||||
|
@ -105,30 +68,31 @@
|
|||
?subject ?property ?awardReceipt
|
||||
} UNION {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt ?awardReceiptProperty ?awardReceiptValue
|
||||
?awardReceipt rdfs:label ?receiptLabel
|
||||
} UNION {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt ?awardReceiptProperty ?awardReceiptValue .
|
||||
?awardReceipt rdfs:label ?awardReceiptLabel
|
||||
} UNION {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt ?awardReceiptProperty ?awardReceiptValue .
|
||||
?awardReceipt rdfs:label ?awardReceiptLabel .
|
||||
?awardReceipt rdfs:label ?receiptLabel .
|
||||
?awardReceipt core:receiptOf ?award .
|
||||
?award core:receipt ?awardReceipt
|
||||
} UNION {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt ?awardReceiptProperty ?awardReceiptValue .
|
||||
?awardReceipt rdfs:label ?awardReceiptLabel .
|
||||
?awardReceipt rdfs:label ?receiptLabel .
|
||||
?awardReceipt core:receiptOf ?award .
|
||||
?award core:receipt ?awardReceipt .
|
||||
?award rdfs:label ?awardLabel
|
||||
} UNION {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt rdfs:label ?receiptLabel .
|
||||
?awardReceipt core:receiptOf ?award .
|
||||
?award core:receipt ?awardReceipt .
|
||||
?award rdfs:label ?awardLabel .
|
||||
?award core:awardConferredBy ?conferredBy
|
||||
} UNION {
|
||||
?subject ?property ?awardReceipt .
|
||||
?awardReceipt ?awardReceiptProperty ?awardReceiptValue .
|
||||
?awardReceipt rdfs:label ?awardReceiptLabel .
|
||||
?awardReceipt rdfs:label ?receiptLabel .
|
||||
?awardReceipt core:receiptOf ?award .
|
||||
?award core:receipt ?awardReceipt .
|
||||
?award rdfs:label ?awardLabel .
|
||||
?award core:awardConferredBy ?conferredBy .
|
||||
?conferredBy rdfs:label ?conferredByLabel
|
||||
}
|
||||
|
|
|
@ -15,7 +15,9 @@
|
|||
|
||||
<#local linkedIndividual>
|
||||
<#if statement.award??>
|
||||
<a href="${profileUrl(statement.uri("award"))}" title="award name">${statement.awardLabel!statement.localName!}</a>
|
||||
<a href="${profileUrl(statement.uri("award"))}" title="award name">${statement.awardLabel!statement.localName}</a>
|
||||
<#else>
|
||||
<a href="${profileUrl(statement.uri("awardReceipt"))}" title="award receipt name">${statement.receiptLabel!statement.localName}</a>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
|
@ -34,4 +36,5 @@
|
|||
</#local>
|
||||
|
||||
<@s.join [ linkedIndividual, conferredByOrg!, dateTimeVal! ] />
|
||||
|
||||
</#macro>
|
||||
|
|
Loading…
Add table
Reference in a new issue