updates to list view to correctly access name parts

This commit is contained in:
Tim Worrall 2014-06-02 11:28:56 -04:00
parent 02a2fe600c
commit cf64f9cf85

View file

@ -31,7 +31,14 @@
}
OPTIONAL { ?authorship core:relates ?author .
?author a vcard:Kind .
?author rdfs:label ?authorName
?author vcard:hasName ?vName .
?vName vcard:givenName ?firstName .
?vName core:middleName ?middleName .
?vName vcard:familyName ?lastName .
bind ( COALESCE(?firstName, "") As ?firstName1) .
bind ( COALESCE(?middleName, "") As ?middleName1) .
bind ( COALESCE(?lastName, "") As ?lastName1) .
bind (concat(str(?lastName1 + ", "),str(?middleName1 + " "),str(?firstName1)) as ?authorName) .
<collated>
OPTIONAL { ?authorship core:relates ?author .
?author a vcard:Kind .
@ -97,7 +104,10 @@
?authorship ?authorshipProperty ?authorshipValue .
?authorship core:relates ?author .
?author a vcard:Kind .
?author rdfs:label ?authorName .
?author vcard:hasName ?vName .
?vName vcard:familyName ?lastName .
?vName vcard:givenName ?firstName .
?vName core:middleName ?middleName .
?author vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf vcard:Kind
} WHERE {
@ -113,13 +123,30 @@
?authorship a core:Authorship .
?authorship core:relates ?author .
?author a vcard:Kind .
?author rdfs:label ?authorName
?author vcard:hasName ?vName .
?vName vcard:familyName ?lastName .
} UNION {
?subject ?property ?authorship .
?authorship a core:Authorship .
?authorship core:relates ?author .
?author a vcard:Kind .
?author vcard:hasName ?vName .
?vName vcard:familyName ?lastName .
?vName vcard:givenName ?firstName .
} UNION {
?subject ?property ?authorship .
?authorship a core:Authorship .
?authorship core:relates ?author .
?author a vcard:Kind .
?author vcard:hasName ?vName .
?vName vcard:familyName ?lastName .
?vName vcard:givenName ?firstName .
?vName core:middleName ?middleName .
} UNION {
?subject ?property ?authorship .
?authorship a core:Authorship .
?authorship core:relates ?author .
?author a vcard:Kind .
?author rdfs:label ?authorName .
?author vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf vcard:Kind
}