VIVO-785: make middle name optional in list view and fix advisor genertor to clarify role
This commit is contained in:
parent
8c1e3cde93
commit
a9b3bfd9c2
2 changed files with 3 additions and 1 deletions
|
@ -33,8 +33,8 @@
|
||||||
?author a vcard:Kind .
|
?author a vcard:Kind .
|
||||||
?author vcard:hasName ?vName .
|
?author vcard:hasName ?vName .
|
||||||
?vName vcard:givenName ?firstName .
|
?vName vcard:givenName ?firstName .
|
||||||
?vName core:middleName ?middleName .
|
|
||||||
?vName vcard:familyName ?lastName .
|
?vName vcard:familyName ?lastName .
|
||||||
|
OPTIONAL { ?vName core:middleName ?middleName . }
|
||||||
bind ( COALESCE(?firstName, "") As ?firstName1) .
|
bind ( COALESCE(?firstName, "") As ?firstName1) .
|
||||||
bind ( COALESCE(?middleName, "") As ?middleName1) .
|
bind ( COALESCE(?middleName, "") As ?middleName1) .
|
||||||
bind ( COALESCE(?lastName, "") As ?lastName1) .
|
bind ( COALESCE(?lastName, "") As ?lastName1) .
|
||||||
|
|
|
@ -315,6 +315,7 @@ public class PersonHasAdvisorRelationshipGenerator extends VivoBaseGenerator imp
|
||||||
" ?existingAdvisee <http://vivoweb.org/ontology/core#relatedBy> ?advisingRelationship . \n" +
|
" ?existingAdvisee <http://vivoweb.org/ontology/core#relatedBy> ?advisingRelationship . \n" +
|
||||||
" ?existingAdvisee a <" + adviseeClass + "> . \n" +
|
" ?existingAdvisee a <" + adviseeClass + "> . \n" +
|
||||||
" ?existingAdvisee <http://purl.obolibrary.org/obo/RO_0000053> ?existingAdviseeRole . \n" +
|
" ?existingAdvisee <http://purl.obolibrary.org/obo/RO_0000053> ?existingAdviseeRole . \n" +
|
||||||
|
" ?existingAdviseeRole <http://vivoweb.org/ontology/core#relatedBy> ?advisingRelationship . \n" +
|
||||||
" ?existingAdviseeRole a <" + adviseeRoleClass + "> . \n" +
|
" ?existingAdviseeRole a <" + adviseeRoleClass + "> . \n" +
|
||||||
"}";
|
"}";
|
||||||
|
|
||||||
|
@ -327,6 +328,7 @@ public class PersonHasAdvisorRelationshipGenerator extends VivoBaseGenerator imp
|
||||||
" ?existingAdvisee a <" + adviseeClass + "> . \n" +
|
" ?existingAdvisee a <" + adviseeClass + "> . \n" +
|
||||||
" ?existingAdvisee <" + label + "> ?existingAdviseeLabel . \n" +
|
" ?existingAdvisee <" + label + "> ?existingAdviseeLabel . \n" +
|
||||||
" ?existingAdvisee <http://purl.obolibrary.org/obo/RO_0000053> ?existingAdviseeRole . \n" +
|
" ?existingAdvisee <http://purl.obolibrary.org/obo/RO_0000053> ?existingAdviseeRole . \n" +
|
||||||
|
" ?existingAdviseeRole <http://vivoweb.org/ontology/core#relatedBy> ?advisingRelationship . \n" +
|
||||||
" ?existingAdviseeRole a <" + adviseeRoleClass + "> . \n" +
|
" ?existingAdviseeRole a <" + adviseeRoleClass + "> . \n" +
|
||||||
"}";
|
"}";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue