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 .
|
?organizationUri <${orgForPositionPred}> ?positionUri .
|
||||||
</v:jsonset>
|
</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">
|
<v:jsonset var="newOrgNameAssertion">
|
||||||
?newOrg <${label}> ?newOrgName .
|
?newOrg <${label}> ?newOrgName .
|
||||||
</v:jsonset>
|
</v:jsonset>
|
||||||
|
@ -150,7 +158,7 @@
|
||||||
|
|
||||||
"urisInScope" : { },
|
"urisInScope" : { },
|
||||||
"literalsInScope": { },
|
"literalsInScope": { },
|
||||||
"urisOnForm" : [ "organizationUri", "newOrgType" ],
|
"urisOnForm" : [ "organizationUri", "newOrgType", "positionType" ],
|
||||||
"literalsOnForm" : [ "title", "newOrgName",
|
"literalsOnForm" : [ "title", "newOrgName",
|
||||||
"startYear", "endYear" ],
|
"startYear", "endYear" ],
|
||||||
"filesOnForm" : [ ],
|
"filesOnForm" : [ ],
|
||||||
|
@ -158,12 +166,12 @@
|
||||||
"sparqlForUris" : { },
|
"sparqlForUris" : { },
|
||||||
"sparqlForExistingLiterals" : {
|
"sparqlForExistingLiterals" : {
|
||||||
"title" : "${titleExisting}",
|
"title" : "${titleExisting}",
|
||||||
"organizationName" : "${organizationNameExisting}",
|
|
||||||
"startYear" : "${startYearExisting}",
|
"startYear" : "${startYearExisting}",
|
||||||
"endYear" : "${endYearExisting}"
|
"endYear" : "${endYearExisting}"
|
||||||
},
|
},
|
||||||
"sparqlForExistingUris" : {
|
"sparqlForExistingUris" : {
|
||||||
"organizationUri" : "${organizationUriExisting}"
|
"organizationUri" : "${organizationUriExisting}",
|
||||||
|
"positionType" : "${positionTypeExisting}"
|
||||||
},
|
},
|
||||||
"fields" : {
|
"fields" : {
|
||||||
"title" : {
|
"title" : {
|
||||||
|
@ -186,7 +194,7 @@
|
||||||
"objectClassUri" : "${positionClassUriJson}",
|
"objectClassUri" : "${positionClassUriJson}",
|
||||||
"rangeDatatypeUri" : "",
|
"rangeDatatypeUri" : "",
|
||||||
"rangeLang" : "",
|
"rangeLang" : "",
|
||||||
"assertions" : [ ]
|
"assertions" : [ "${positionTypeAssertion}" ]
|
||||||
},
|
},
|
||||||
"organizationUri" : {
|
"organizationUri" : {
|
||||||
"newResource" : "false",
|
"newResource" : "false",
|
||||||
|
|
Loading…
Add table
Reference in a new issue