NIHVIVO-714 Changes to ed background form and short view for ontology changes. More changes needed to restore full functionality.
This commit is contained in:
parent
1e127abac1
commit
7c83e693cc
3 changed files with 30 additions and 30 deletions
|
@ -2742,7 +2742,7 @@
|
||||||
<j.0:selectFromExistingAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</j.0:selectFromExistingAnnot>
|
<j.0:selectFromExistingAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</j.0:selectFromExistingAnnot>
|
||||||
</rdf:Description>
|
</rdf:Description>
|
||||||
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#EducationalTraining">
|
<rdf:Description rdf:about="http://vivoweb.org/ontology/core#EducationalTraining">
|
||||||
<j.0:customShortViewAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">educationalAttainmentShortView.jsp</j.0:customShortViewAnnot>
|
<j.0:customShortViewAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">educationalTrainingShortView.jsp</j.0:customShortViewAnnot>
|
||||||
<j.0:displayLimitAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">-1</j.0:displayLimitAnnot>
|
<j.0:displayLimitAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">-1</j.0:displayLimitAnnot>
|
||||||
<j.0:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">-1</j.0:displayRankAnnot>
|
<j.0:displayRankAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#int">-1</j.0:displayRankAnnot>
|
||||||
<j.0:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
<j.0:hiddenFromDisplayBelowRoleLevelAnnot rdf:resource="http://vitro.mannlib.cornell.edu/ns/vitro/role#public"/>
|
||||||
|
|
|
@ -3,29 +3,29 @@
|
||||||
<%-- Custom form for adding an educational attainment to an individual
|
<%-- Custom form for adding an educational attainment to an individual
|
||||||
|
|
||||||
Classes:
|
Classes:
|
||||||
core:EducationalAttainment - primary new individual being created
|
core:EducationalTraining - primary new individual being created
|
||||||
foaf:Person - existing individual
|
foaf:Person - existing individual
|
||||||
foaf:Organization - new or existing individual
|
foaf:Organization - new or existing individual
|
||||||
core:AcademicDegree - existing individual
|
core:AcademicDegree - existing individual
|
||||||
core:DateTimeValue
|
core:DateTimeValue
|
||||||
core:DateTimeValuePrecision
|
core:DateTimeValuePrecision
|
||||||
|
|
||||||
Data properties of EducationalAttainment:
|
Data properties of EducationalTraining:
|
||||||
core:majorField
|
core:majorField
|
||||||
core:departmentOrSchool
|
core:departmentOrSchool
|
||||||
core:supplementalInformation
|
core:supplementalInformation
|
||||||
|
|
||||||
Object properties (domain : range)
|
Object properties (domain : range)
|
||||||
|
|
||||||
core:educationalBackground (Person : EducationalAttainment) - inverse of educationalBackgroundOf
|
core:educationalBackground (Person : EducationalTraining) - inverse of educationalBackgroundOf
|
||||||
core:educationalBackgroundOf (EducationalAttainment : Person) - inverse of educationalBackground
|
core:educationalBackgroundOf (EducationalTraining : Person) - inverse of educationalBackground
|
||||||
|
|
||||||
core:degreeTypeAwarded (EducationalAttainment : AcademicDegree) - inverse of awardedTo
|
core:degreeTypeAwarded (EducationalTraining : AcademicDegree) - inverse of awardedTo
|
||||||
core:awardedTo (AcademicDegree : EducationalAttainment) - inverse of degreeTypeAwarded
|
core:awardedTo (AcademicDegree : EducationalTraining) - inverse of degreeTypeAwarded
|
||||||
|
|
||||||
core:organizationGrantingDegree (EducationalAttainment : Organization) - no inverse
|
core:organizationGrantingDegree (EducationalTraining : Organization) - no inverse
|
||||||
|
|
||||||
core:dateTimeValue (EducationalAttainment : DateTimeValue)
|
core:dateTimeValue (EducationalTraining : DateTimeValue)
|
||||||
core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
|
core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
|
||||||
--%>
|
--%>
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
|
||||||
<c:set var="vivoCore" value="http://vivoweb.org/ontology/core#" />
|
<c:set var="vivoCore" value="http://vivoweb.org/ontology/core#" />
|
||||||
<c:set var="rdfs" value="<%= VitroVocabulary.RDFS %>" />
|
<c:set var="rdfs" value="<%= VitroVocabulary.RDFS %>" />
|
||||||
<c:set var="label" value="${rdfs}label" />
|
<c:set var="label" value="${rdfs}label" />
|
||||||
<c:set var="edAttainmentClass" value="${vivoCore}EducationalAttainment" />
|
<c:set var="edAttainmentClass" value="${vivoCore}EducationalTraining" />
|
||||||
<c:set var="orgClass" value="http://xmlns.com/foaf/0.1/Organization" />
|
<c:set var="orgClass" value="http://xmlns.com/foaf/0.1/Organization" />
|
||||||
<c:set var="degreeClass" value="${vivoCore}AcademicDegree" />
|
<c:set var="degreeClass" value="${vivoCore}AcademicDegree" />
|
||||||
|
|
||||||
|
@ -85,14 +85,14 @@ core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
|
||||||
<c:set var="majorFieldPred" value="${vivoCore}majorField" />
|
<c:set var="majorFieldPred" value="${vivoCore}majorField" />
|
||||||
<v:jsonset var="majorFieldExisting" >
|
<v:jsonset var="majorFieldExisting" >
|
||||||
SELECT ?majorFieldExisting WHERE {
|
SELECT ?majorFieldExisting WHERE {
|
||||||
?edAttainmentUri <${majorFieldPred}> ?majorFieldExisting }
|
?edTrainingUri <${majorFieldPred}> ?majorFieldExisting }
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<%-- Pair the "existing" query with the skeleton of what will be asserted for a new statement involving this field.
|
<%-- Pair the "existing" query with the skeleton of what will be asserted for a new statement involving this field.
|
||||||
The actual assertion inserted in the model will be created via string substitution into the ? variables.
|
The actual assertion inserted in the model will be created via string substitution into the ? variables.
|
||||||
NOTE the pattern of punctuation (a period after the prefix URI and after the ?field) --%>
|
NOTE the pattern of punctuation (a period after the prefix URI and after the ?field) --%>
|
||||||
<v:jsonset var="majorFieldAssertion" >
|
<v:jsonset var="majorFieldAssertion" >
|
||||||
?edAttainmentUri <${majorFieldPred}> ?majorField .
|
?edTrainingUri <${majorFieldPred}> ?majorField .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<%--
|
<%--
|
||||||
|
@ -103,14 +103,14 @@ core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
|
||||||
|
|
||||||
<v:jsonset var="yearExisting" >
|
<v:jsonset var="yearExisting" >
|
||||||
SELECT ?existingYear WHERE {
|
SELECT ?existingYear WHERE {
|
||||||
?edAttainmentUri <${hasDateTimeValue}> ?existingYear }
|
?edTrainingUri <${hasDateTimeValue}> ?existingYear }
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
<v:jsonset var="yearAssertion" >
|
<v:jsonset var="yearAssertion" >
|
||||||
@prefix core: <${vivoCore}> .
|
@prefix core: <${vivoCore}> .
|
||||||
?dateTime a core:DateTimeValue ;
|
?dateTime a core:DateTimeValue ;
|
||||||
core:dateTime ?year ;
|
core:dateTime ?year ;
|
||||||
core:dateTimeValuePrecision core:YearPrecision .
|
core:dateTimeValuePrecision core:YearPrecision .
|
||||||
?edAttainmentUri core:dateTimeValue ?dateTime .
|
?edTrainingUri core:dateTimeValue ?dateTime .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
--%>
|
--%>
|
||||||
<%--
|
<%--
|
||||||
|
@ -126,19 +126,19 @@ core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
|
||||||
<c:set var="deptPred" value="${vivoCore}departmentOrSchool" />
|
<c:set var="deptPred" value="${vivoCore}departmentOrSchool" />
|
||||||
<v:jsonset var="deptExisting" >
|
<v:jsonset var="deptExisting" >
|
||||||
SELECT ?existingDept WHERE {
|
SELECT ?existingDept WHERE {
|
||||||
?edAttainmentUri <${deptPred}> ?existingDept }
|
?edTrainingUri <${deptPred}> ?existingDept }
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
<v:jsonset var="deptAssertion" >
|
<v:jsonset var="deptAssertion" >
|
||||||
?edAttainmentUri <${deptPred}> ?dept .
|
?edTrainingUri <${deptPred}> ?dept .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<c:set var="infoPred" value="${vivoCore}supplementalInformation" />
|
<c:set var="infoPred" value="${vivoCore}supplementalInformation" />
|
||||||
<v:jsonset var="infoExisting" >
|
<v:jsonset var="infoExisting" >
|
||||||
SELECT ?existingInfo WHERE {
|
SELECT ?existingInfo WHERE {
|
||||||
?edAttainmentUri <${infoPred}> ?existingInfo }
|
?edTrainingUri <${infoPred}> ?existingInfo }
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
<v:jsonset var="infoAssertion" >
|
<v:jsonset var="infoAssertion" >
|
||||||
?edAttainmentUri <${infoPred}> ?info .
|
?edTrainingUri <${infoPred}> ?info .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<%-- Object properties --%>
|
<%-- Object properties --%>
|
||||||
|
@ -149,21 +149,21 @@ core:dateTimePrecision (DateTimeValue : DateTimeValuePrecision)
|
||||||
<c:set var="degreeFor" value="${vivoCore}awardedTo" />
|
<c:set var="degreeFor" value="${vivoCore}awardedTo" />
|
||||||
<v:jsonset var="degreeExisting" >
|
<v:jsonset var="degreeExisting" >
|
||||||
SELECT ?existingDegreeUri WHERE {
|
SELECT ?existingDegreeUri WHERE {
|
||||||
?edAttainmentUri <${hasDegree}> ?existingDegreeUri }
|
?edTrainingUri <${hasDegree}> ?existingDegreeUri }
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
<v:jsonset var="degreeAssertion" >
|
<v:jsonset var="degreeAssertion" >
|
||||||
?edAttainmentUri <${hasDegree}> ?degreeUri .
|
?edTrainingUri <${hasDegree}> ?degreeUri .
|
||||||
?degreeUri <${degreeFor}> ?edAttainmentUri .
|
?degreeUri <${degreeFor}> ?edTrainingUri .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<c:set var="orgGrantingDegree" value="${vivoCore}organizationGrantingDegree" />
|
<c:set var="orgGrantingDegree" value="${vivoCore}organizationGrantingDegree" />
|
||||||
<%-- This property has no inverse --%>
|
<%-- This property has no inverse --%>
|
||||||
<v:jsonset var="organizationUriExisting" >
|
<v:jsonset var="organizationUriExisting" >
|
||||||
SELECT ?existingOrgUri WHERE {
|
SELECT ?existingOrgUri WHERE {
|
||||||
?edAttainmentUri <${orgGrantingDegree}> ?existingOrgUri }
|
?edTrainingUri <${orgGrantingDegree}> ?existingOrgUri }
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
<v:jsonset var="organizationUriAssertion" >
|
<v:jsonset var="organizationUriAssertion" >
|
||||||
?edAttainmentUri <${orgGrantingDegree}> ?organizationUri .
|
?edTrainingUri <${orgGrantingDegree}> ?organizationUri .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<v:jsonset var="newOrgNameAssertion">
|
<v:jsonset var="newOrgNameAssertion">
|
||||||
|
@ -178,10 +178,10 @@ the org type still gets asserted. --%>
|
||||||
<v:jsonset var="n3ForStmtToPerson">
|
<v:jsonset var="n3ForStmtToPerson">
|
||||||
@prefix core: <${vivoCore}> .
|
@prefix core: <${vivoCore}> .
|
||||||
|
|
||||||
?person core:educationalBackground ?edAttainmentUri .
|
?person core:educationalBackground ?edTrainingUri .
|
||||||
|
|
||||||
?edAttainmentUri core:educationalBackgroundOf ?person ;
|
?edTrainingUri core:educationalBackgroundOf ?person ;
|
||||||
a core:EducationalAttainment ,
|
a core:EducationalTraining ,
|
||||||
<${flagUri}> .
|
<${flagUri}> .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ the org type still gets asserted. --%>
|
||||||
a ?newOrgType ,
|
a ?newOrgType ,
|
||||||
<${flagUri}> .
|
<${flagUri}> .
|
||||||
|
|
||||||
?edAttainmentUri <${orgGrantingDegree}> ?newOrg .
|
?edTrainingUri <${orgGrantingDegree}> ?newOrg .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<v:jsonset var="edAttainmentClassUriJson">${edAttainmentClass}</v:jsonset>
|
<v:jsonset var="edAttainmentClassUriJson">${edAttainmentClass}</v:jsonset>
|
||||||
|
@ -205,7 +205,7 @@ the org type still gets asserted. --%>
|
||||||
|
|
||||||
"subject" : ["person", "${subjectUriJson}" ],
|
"subject" : ["person", "${subjectUriJson}" ],
|
||||||
"predicate" : ["predicate", "${predicateUriJson}" ],
|
"predicate" : ["predicate", "${predicateUriJson}" ],
|
||||||
"object" : ["edAttainmentUri", "${objectUriJson}", "URI" ],
|
"object" : ["edTrainingUri", "${objectUriJson}", "URI" ],
|
||||||
|
|
||||||
"n3required" : [ "${n3ForStmtToPerson}", "${degreeAssertion}", "${majorFieldAssertion}", "${yearAssertion}" ],
|
"n3required" : [ "${n3ForStmtToPerson}", "${degreeAssertion}", "${majorFieldAssertion}", "${yearAssertion}" ],
|
||||||
|
|
||||||
|
@ -213,7 +213,7 @@ the org type still gets asserted. --%>
|
||||||
"${n3ForNewOrg}", "${newOrgNameAssertion}", "${newOrgTypeAssertion}",
|
"${n3ForNewOrg}", "${newOrgNameAssertion}", "${newOrgTypeAssertion}",
|
||||||
"${deptAssertion}", "${infoAssertion}" ],
|
"${deptAssertion}", "${infoAssertion}" ],
|
||||||
|
|
||||||
"newResources" : { "edAttainmentUri" : "${defaultNamespace}",
|
"newResources" : { "edTrainingUri" : "${defaultNamespace}",
|
||||||
"newOrg" : "${defaultNamespace}" },
|
"newOrg" : "${defaultNamespace}" },
|
||||||
|
|
||||||
"urisInScope" : { },
|
"urisInScope" : { },
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<%--
|
<%--
|
||||||
This is a custom short view render for educational background.
|
This is a custom short view render for educational background.
|
||||||
The variable individual is the OBJECT of the property statement to be rendered. --
|
The variable individual is the OBJECT of the property statement to be rendered. --
|
||||||
In this JSP that is the Educational Attainment object, not the Person, Organization or DegreeType
|
In this JSP that is the Educational Training object, not the Person, Organization or DegreeType
|
||||||
--%>
|
--%>
|
||||||
|
|
||||||
<c:choose>
|
<c:choose>
|
Loading…
Add table
Reference in a new issue