NIHVIVO-1923 Modify orgType query so it only returns subclasses of foaf:Organization. Otherwise form breaks in edit mode.
This commit is contained in:
parent
facea76266
commit
24e4432076
2 changed files with 10 additions and 2 deletions
|
@ -192,10 +192,14 @@ core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
|
|||
}
|
||||
</v:jsonset>
|
||||
|
||||
<%-- Limit type to subclasses of foaf:Organization. Otherwise, sometimes owl:Thing or another
|
||||
type is returned and we don't get a match to the select element options. --%>
|
||||
<v:jsonset var="orgTypeQuery" >
|
||||
PREFIX rdfs: <${rdfs}>
|
||||
SELECT ?existingOrgType WHERE {
|
||||
?edTraining <${trainingAtOrg}> ?existingOrg .
|
||||
?existingOrg a ?existingOrgType .
|
||||
?existingOrgType rdfs:subClassOf <${orgClass}> .
|
||||
}
|
||||
</v:jsonset>
|
||||
|
||||
|
|
|
@ -152,10 +152,14 @@
|
|||
}
|
||||
</v:jsonset>
|
||||
|
||||
<%-- Limit type to subclasses of foaf:Organization. Otherwise, sometimes owl:Thing or another
|
||||
type is returned and we don't get a match to the select element options. --%>
|
||||
<v:jsonset var="orgTypeQuery" >
|
||||
PREFIX rdfs: <${rdfs}>
|
||||
SELECT ?existingOrgType WHERE {
|
||||
?position <${positionInOrgPred}> ?existingOrg .
|
||||
?existingOrg a ?existingOrgType .
|
||||
# ?existingOrgType rdfs:subClassOf <${orgClass}> .
|
||||
}
|
||||
</v:jsonset>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue