NIHVIVO-356, NIHVIVO-362 Merging custom form fixes from rel-1.0-maint branch.
This commit is contained in:
parent
60f93a2875
commit
a8b39bf005
2 changed files with 38 additions and 28 deletions
|
@ -141,21 +141,15 @@ core:organizationGrantingDegree (EducationalBackground : Organization) - no inve
|
||||||
?edBackgroundUri <${orgGrantingDegree}> ?organizationUri .
|
?edBackgroundUri <${orgGrantingDegree}> ?organizationUri .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<%-- Do we need anything like this? EducationalBackground has no subtypes
|
|
||||||
<v:jsonset var="positionTypeExisting">
|
|
||||||
SELECT ?existingPositionType WHERE {
|
|
||||||
?positionUri <${type}> ?existingPositionType }
|
|
||||||
</v:jsonset>
|
|
||||||
<v:jsonset var="positionTypeAssertion">
|
|
||||||
?positionUri <${type}> ?positionType .
|
|
||||||
</v:jsonset>
|
|
||||||
--%>
|
|
||||||
|
|
||||||
<v:jsonset var="newOrgNameAssertion">
|
<v:jsonset var="newOrgNameAssertion">
|
||||||
?newOrg <${label}> ?newOrgName .
|
?newOrg <${label}> ?newOrgName .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
<%-- Break up the new org type and subclass assertions, so that if there is no subclass,
|
||||||
|
the org type still gets asserted. --%>
|
||||||
<v:jsonset var="newOrgTypeAssertion">
|
<v:jsonset var="newOrgTypeAssertion">
|
||||||
|
?newOrg a <${orgClass}> .
|
||||||
|
</v:jsonset>
|
||||||
|
<v:jsonset var="newOrgSubClassAssertion">
|
||||||
?newOrg a ?newOrgType .
|
?newOrg a ?newOrgType .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
|
@ -171,11 +165,16 @@ core:organizationGrantingDegree (EducationalBackground : Organization) - no inve
|
||||||
|
|
||||||
<v:jsonset var="n3ForNewOrg">
|
<v:jsonset var="n3ForNewOrg">
|
||||||
?newOrg <${label}> ?newOrgName ;
|
?newOrg <${label}> ?newOrgName ;
|
||||||
a ?newOrgType ;
|
a <${orgClass}> ,
|
||||||
a <${flagURI}> .
|
<${flagURI}> .
|
||||||
|
|
||||||
?edBackgroundUri <${orgGrantingDegree}> ?newOrg .
|
?edBackgroundUri <${orgGrantingDegree}> ?newOrg .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
<%-- Break up the new org type and subclass assertions, so that if there is no subclass,
|
||||||
|
the type still gets asserted. --%>
|
||||||
|
<v:jsonset var="n3ForNewOrgSubClass">
|
||||||
|
?newOrg a ?newOrgType .
|
||||||
|
</v:jsonset>
|
||||||
|
|
||||||
<v:jsonset var="edBackgroundClassUriJson">${edBackgroundClass}</v:jsonset>
|
<v:jsonset var="edBackgroundClassUriJson">${edBackgroundClass}</v:jsonset>
|
||||||
<v:jsonset var="orgClassUriJson">${orgClass}</v:jsonset>
|
<v:jsonset var="orgClassUriJson">${orgClass}</v:jsonset>
|
||||||
|
@ -194,8 +193,8 @@ core:organizationGrantingDegree (EducationalBackground : Organization) - no inve
|
||||||
"n3required" : [ "${n3ForStmtToPerson}", "${degreeAssertion}", "${majorFieldAssertion}", "${yearAssertion}" ],
|
"n3required" : [ "${n3ForStmtToPerson}", "${degreeAssertion}", "${majorFieldAssertion}", "${yearAssertion}" ],
|
||||||
|
|
||||||
"n3optional" : [ "${organizationUriAssertion}",
|
"n3optional" : [ "${organizationUriAssertion}",
|
||||||
"${n3ForNewOrg}", "${newOrgNameAssertion}", "${newOrgTypeAssertion}",
|
"${n3ForNewOrg}", "${n3ForNewOrgSubClass}", "${newOrgNameAssertion}", "${newOrgTypeAssertion}",
|
||||||
"${deptAssertion}", "${infoAssertion}" ],
|
"${newOrgSubClassAssertion}", "${deptAssertion}", "${infoAssertion}" ],
|
||||||
|
|
||||||
"newResources" : { "edBackgroundUri" : "${defaultNamespace}",
|
"newResources" : { "edBackgroundUri" : "${defaultNamespace}",
|
||||||
"newOrg" : "${defaultNamespace}" },
|
"newOrg" : "${defaultNamespace}" },
|
||||||
|
@ -271,7 +270,7 @@ core:organizationGrantingDegree (EducationalBackground : Organization) - no inve
|
||||||
"objectClassUri" : "",
|
"objectClassUri" : "",
|
||||||
"rangeDatatypeUri" : "${stringDatatypeUriJson}",
|
"rangeDatatypeUri" : "${stringDatatypeUriJson}",
|
||||||
"rangeLang" : "",
|
"rangeLang" : "",
|
||||||
"assertions" : [ "${n3ForNewOrg}" ]
|
"assertions" : [ "${n3ForNewOrg}", "${n3ForNewOrgSubClass}" ]
|
||||||
},
|
},
|
||||||
"newOrgType" : {
|
"newOrgType" : {
|
||||||
"newResource" : "false",
|
"newResource" : "false",
|
||||||
|
@ -282,7 +281,7 @@ core:organizationGrantingDegree (EducationalBackground : Organization) - no inve
|
||||||
"objectClassUri" : "${orgClassUriJson}",
|
"objectClassUri" : "${orgClassUriJson}",
|
||||||
"rangeDatatypeUri" : "",
|
"rangeDatatypeUri" : "",
|
||||||
"rangeLang" : "",
|
"rangeLang" : "",
|
||||||
"assertions" : [ "${newOrgTypeAssertion}" ]
|
"assertions" : [ "${newOrgTypeAssertion}", "${newOrgSubClassAssertion}" ]
|
||||||
},
|
},
|
||||||
"dept" : {
|
"dept" : {
|
||||||
"newResource" : "false",
|
"newResource" : "false",
|
||||||
|
|
|
@ -108,8 +108,12 @@
|
||||||
<v:jsonset var="newOrgNameAssertion">
|
<v:jsonset var="newOrgNameAssertion">
|
||||||
?newOrg <${label}> ?newOrgName .
|
?newOrg <${label}> ?newOrgName .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
<%-- Break up the new org type and subclass assertions, so that if there is no subclass,
|
||||||
|
the type still gets asserted. --%>
|
||||||
<v:jsonset var="newOrgTypeAssertion">
|
<v:jsonset var="newOrgTypeAssertion">
|
||||||
|
?newOrg a <${orgClass}> .
|
||||||
|
</v:jsonset>
|
||||||
|
<v:jsonset var="newOrgSubClassAssertion">
|
||||||
?newOrg a ?newOrgType .
|
?newOrg a ?newOrgType .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
|
@ -119,17 +123,24 @@
|
||||||
?person core:personInPosition ?positionUri .
|
?person core:personInPosition ?positionUri .
|
||||||
|
|
||||||
?positionUri core:positionForPerson ?person ;
|
?positionUri core:positionForPerson ?person ;
|
||||||
a ?positionType ;
|
a ?positionType ,
|
||||||
a <${flagURI}> .
|
<${flagURI}> .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<v:jsonset var="n3ForNewOrg">
|
<v:jsonset var="n3ForNewOrg">
|
||||||
?positionUri <${positionInOrgPred}> ?newOrg .
|
?positionUri <${positionInOrgPred}> ?newOrg .
|
||||||
|
|
||||||
?newOrg <${label}> ?newOrgName ;
|
?newOrg <${label}> ?newOrgName .
|
||||||
a ?newOrgType ;
|
|
||||||
<${orgForPositionPred}> ?positionUri ;
|
?newOrg a <${orgClass}> ,
|
||||||
a <${flagURI}> .
|
<${flagURI}> ;
|
||||||
|
<${orgForPositionPred}> ?positionUri .
|
||||||
|
|
||||||
|
</v:jsonset>
|
||||||
|
<%-- Break up the new org type and subclass assertions, so that if there is no subclass,
|
||||||
|
the type still gets asserted. --%>
|
||||||
|
<v:jsonset var="n3ForNewOrgSubClass">
|
||||||
|
?newOrg a ?newOrgType .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
|
||||||
<v:jsonset var="positionClassUriJson">${positionClass}</v:jsonset>
|
<v:jsonset var="positionClassUriJson">${positionClass}</v:jsonset>
|
||||||
|
@ -148,8 +159,8 @@
|
||||||
"n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}", "${startYearAssertion}" ],
|
"n3required" : [ "${n3ForStmtToPerson}", "${titleAssertion}", "${startYearAssertion}" ],
|
||||||
|
|
||||||
"n3optional" : [ "${organizationUriAssertion}",
|
"n3optional" : [ "${organizationUriAssertion}",
|
||||||
"${n3ForNewOrg}", "${newOrgNameAssertion}", "${newOrgTypeAssertion}",
|
"${n3ForNewOrg}", "${n3ForNewOrgSubClass}", "${newOrgNameAssertion}", "${newOrgTypeAssertion}",
|
||||||
"${endYearAssertion}"],
|
"${newOrgSubClassAssertion}", "${endYearAssertion}"],
|
||||||
|
|
||||||
"newResources" : { "positionUri" : "${defaultNamespace}",
|
"newResources" : { "positionUri" : "${defaultNamespace}",
|
||||||
"newOrg" : "${defaultNamespace}" },
|
"newOrg" : "${defaultNamespace}" },
|
||||||
|
@ -213,7 +224,7 @@
|
||||||
"objectClassUri" : "",
|
"objectClassUri" : "",
|
||||||
"rangeDatatypeUri" : "${stringDatatypeUriJson}",
|
"rangeDatatypeUri" : "${stringDatatypeUriJson}",
|
||||||
"rangeLang" : "",
|
"rangeLang" : "",
|
||||||
"assertions" : [ "${n3ForNewOrg}" ]
|
"assertions" : [ "${n3ForNewOrg}", "${n3ForNewOrgSubClass}" ]
|
||||||
},
|
},
|
||||||
"newOrgType" : {
|
"newOrgType" : {
|
||||||
"newResource" : "false",
|
"newResource" : "false",
|
||||||
|
@ -224,7 +235,7 @@
|
||||||
"objectClassUri" : "${orgClassUriJson}",
|
"objectClassUri" : "${orgClassUriJson}",
|
||||||
"rangeDatatypeUri" : "",
|
"rangeDatatypeUri" : "",
|
||||||
"rangeLang" : "",
|
"rangeLang" : "",
|
||||||
"assertions" : [ "${newOrgTypeAssertion}" ]
|
"assertions" : [ "${newOrgTypeAssertion}", "${newOrgSubClassAssertion}" ]
|
||||||
},
|
},
|
||||||
"startYear" : {
|
"startYear" : {
|
||||||
"newResource" : "false",
|
"newResource" : "false",
|
||||||
|
|
Loading…
Add table
Reference in a new issue