NIHVIVO-2883 Fix construct query in Vivo default list view so mostSpecificType can be retrieved by the select query
This commit is contained in:
parent
9633d73a1a
commit
a6de169135
1 changed files with 5 additions and 3 deletions
|
@ -30,9 +30,7 @@
|
||||||
?object a foaf:Person .
|
?object a foaf:Person .
|
||||||
?object vitro:mostSpecificType ?typeUri .
|
?object vitro:mostSpecificType ?typeUri .
|
||||||
?typeUri rdfs:label ?type .
|
?typeUri rdfs:label ?type .
|
||||||
# Since we're only getting one (others removed during postprocessing),
|
# Display only a mostSpecificType that belongs to a classgroup.
|
||||||
# make sure it's one that's in a classgroup. This elimates types like
|
|
||||||
# the internal institutional class, etc.
|
|
||||||
?typeUri vitro:inClassGroup ?classGroup .
|
?typeUri vitro:inClassGroup ?classGroup .
|
||||||
?classGroup a vitro:ClassGroup
|
?classGroup a vitro:ClassGroup
|
||||||
}
|
}
|
||||||
|
@ -79,6 +77,8 @@
|
||||||
CONSTRUCT {
|
CONSTRUCT {
|
||||||
?subject ?property ?object .
|
?subject ?property ?object .
|
||||||
?object vitro:mostSpecificType ?typeUri .
|
?object vitro:mostSpecificType ?typeUri .
|
||||||
|
?typeUri vitro:inClassGroup ?classGroup .
|
||||||
|
?classGroup a vitro:ClassGroup .
|
||||||
?typeUri rdfs:label ?type .
|
?typeUri rdfs:label ?type .
|
||||||
?object core:preferredTitle ?title .
|
?object core:preferredTitle ?title .
|
||||||
} WHERE {
|
} WHERE {
|
||||||
|
@ -86,6 +86,8 @@
|
||||||
?subject ?property ?object .
|
?subject ?property ?object .
|
||||||
?object vitro:mostSpecificType ?typeUri .
|
?object vitro:mostSpecificType ?typeUri .
|
||||||
?typeUri rdfs:label ?type .
|
?typeUri rdfs:label ?type .
|
||||||
|
?typeUri vitro:inClassGroup ?classGroup .
|
||||||
|
?classGroup a vitro:ClassGroup
|
||||||
} UNION {
|
} UNION {
|
||||||
?subject ?property ?object .
|
?subject ?property ?object .
|
||||||
?object core:preferredTitle ?title .
|
?object core:preferredTitle ?title .
|
||||||
|
|
Loading…
Add table
Reference in a new issue