VIVO-403 safeguards against duplicate context node creation in migration

This commit is contained in:
brianjlowe 2013-11-05 10:01:46 -05:00
parent 6ef8cb6b80
commit a68ef819ee
54 changed files with 599 additions and 117 deletions

View file

@ -10,6 +10,10 @@ CONSTRUCT {
_:primaryTelephone a v:Work .
_:primaryTelephone v:telephone ?primaryPhoneNumber .
} WHERE {
?s vivo:primaryPhoneNumber ?primaryPhoneNumber .
?s arg:ARG_2000028 ?vcard .
?s vivo:primaryPhoneNumber ?primaryPhoneNumber
FILTER NOT EXISTS {
?vcard v:hasTelephone ?telephoneNode .
?vcard a v:Work .
}
}