updates to list view to correctly access name parts
This commit is contained in:
parent
02a2fe600c
commit
cf64f9cf85
1 changed files with 31 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue