NIHVIVO-193. Can now add a new position history entry with an existing organization from front end
This commit is contained in:
parent
e60a89f1cb
commit
982ea9537f
1 changed files with 12 additions and 4 deletions
|
@ -99,6 +99,14 @@
|
|||
?organizationUri <${orgForPositionPred}> ?positionUri .
|
||||
</v:jsonset>
|
||||
|
||||
<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">
|
||||
?newOrg <${label}> ?newOrgName .
|
||||
</v:jsonset>
|
||||
|
@ -150,7 +158,7 @@
|
|||
|
||||
"urisInScope" : { },
|
||||
"literalsInScope": { },
|
||||
"urisOnForm" : [ "organizationUri", "newOrgType" ],
|
||||
"urisOnForm" : [ "organizationUri", "newOrgType", "positionType" ],
|
||||
"literalsOnForm" : [ "title", "newOrgName",
|
||||
"startYear", "endYear" ],
|
||||
"filesOnForm" : [ ],
|
||||
|
@ -158,12 +166,12 @@
|
|||
"sparqlForUris" : { },
|
||||
"sparqlForExistingLiterals" : {
|
||||
"title" : "${titleExisting}",
|
||||
"organizationName" : "${organizationNameExisting}",
|
||||
"startYear" : "${startYearExisting}",
|
||||
"endYear" : "${endYearExisting}"
|
||||
},
|
||||
"sparqlForExistingUris" : {
|
||||
"organizationUri" : "${organizationUriExisting}"
|
||||
"organizationUri" : "${organizationUriExisting}",
|
||||
"positionType" : "${positionTypeExisting}"
|
||||
},
|
||||
"fields" : {
|
||||
"title" : {
|
||||
|
@ -186,7 +194,7 @@
|
|||
"objectClassUri" : "${positionClassUriJson}",
|
||||
"rangeDatatypeUri" : "",
|
||||
"rangeLang" : "",
|
||||
"assertions" : [ ]
|
||||
"assertions" : [ "${positionTypeAssertion}" ]
|
||||
},
|
||||
"organizationUri" : {
|
||||
"newResource" : "false",
|
||||
|
|
Loading…
Add table
Reference in a new issue