NIHVIVO-3271 list view for internal and external concepts
This commit is contained in:
parent
12d80e0a3f
commit
4aa5c90b5e
2 changed files with 10 additions and 10 deletions
|
@ -8,12 +8,14 @@
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||||
|
|
||||||
SELECT ?conceptLabel ?concept
|
SELECT ?concept ?conceptLabel ?conceptName
|
||||||
WHERE {
|
WHERE {
|
||||||
?subject ?property ?concept .
|
?subject ?property ?concept .
|
||||||
?concept rdfs:label ?conceptLabel
|
LET (?conceptName := afn:localname(?concept))
|
||||||
} ORDER BY ?conceptLabel
|
optional {?concept rdfs:label ?conceptLabel}
|
||||||
|
} ORDER BY ?conceptLabel ?conceptName
|
||||||
</query-select>
|
</query-select>
|
||||||
|
|
||||||
<query-construct>
|
<query-construct>
|
||||||
|
@ -23,7 +25,7 @@
|
||||||
?concept rdfs:label ?conceptLabel
|
?concept rdfs:label ?conceptLabel
|
||||||
} WHERE {
|
} WHERE {
|
||||||
?subject ?property ?concept .
|
?subject ?property ?concept .
|
||||||
?concept rdfs:label ?conceptLabel
|
optional {?concept rdfs:label ?conceptLabel}
|
||||||
}
|
}
|
||||||
</query-construct>
|
</query-construct>
|
||||||
<template>propStatement-hasAssociatedConcept.ftl</template>
|
<template>propStatement-hasAssociatedConcept.ftl</template>
|
||||||
|
|
|
@ -6,13 +6,11 @@
|
||||||
is also used to generate the property statement during a deletion.
|
is also used to generate the property statement during a deletion.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<#import "lib-sequence.ftl" as s>
|
|
||||||
<#import "lib-datetime.ftl" as dt>
|
|
||||||
|
|
||||||
<@showTerm statement />
|
<@showConcept statement />
|
||||||
|
|
||||||
<#-- Use a macro to keep variable assignments local; otherwise the values carry over to the
|
<#-- Use a macro to keep variable assignments local; otherwise the values carry over to the
|
||||||
next statement -->
|
next statement -->
|
||||||
<#macro showTerm statement>
|
<#macro showConcept statement>
|
||||||
<a href="${statement.concept}">${statement.conceptLabel}</a>
|
<a href="${statement.concept}">${statement.conceptLabel!statement.conceptName}</a>
|
||||||
</#macro>
|
</#macro>
|
||||||
|
|
Loading…
Add table
Reference in a new issue