2013-08-28 16:58:02 -04:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
|
|
|
|
|
|
|
<!-- See guidelines in vitro/doc/list_view_configuration_guidelines.txt -->
|
|
|
|
|
|
|
|
<list-view-config>
|
|
|
|
<query-select>
|
|
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
|
|
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
|
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
|
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
2014-05-14 16:47:13 -04:00
|
|
|
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
|
2014-08-27 13:18:53 -04:00
|
|
|
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
|
2013-08-28 16:58:02 -04:00
|
|
|
|
2014-06-13 12:22:47 -04:00
|
|
|
SELECT DISTINCT ?subclass
|
2013-08-28 16:58:02 -04:00
|
|
|
?authorship
|
2013-11-12 12:23:44 -05:00
|
|
|
?author ?authorName
|
2013-08-29 12:35:35 -04:00
|
|
|
WHERE {
|
|
|
|
?subject ?property ?authorship .
|
2013-09-18 17:01:26 -04:00
|
|
|
OPTIONAL { ?authorship core:rank ?rank }
|
2013-11-12 12:23:44 -05:00
|
|
|
OPTIONAL { ?authorship core:relates ?author .
|
|
|
|
?author a foaf:Agent .
|
|
|
|
?author rdfs:label ?authorName
|
2014-06-13 12:22:47 -04:00
|
|
|
|
2013-11-12 12:23:44 -05:00
|
|
|
OPTIONAL { ?authorship core:relates ?author .
|
|
|
|
?author a foaf:Agent .
|
|
|
|
?author vitro:mostSpecificType ?subclass .
|
|
|
|
?subclass rdfs:subClassOf foaf:Agent
|
2013-10-29 14:47:41 -04:00
|
|
|
}
|
2014-05-14 16:47:13 -04:00
|
|
|
}
|
|
|
|
OPTIONAL { ?authorship core:relates ?author .
|
|
|
|
?author a vcard:Kind .
|
2014-06-02 11:28:56 -04:00
|
|
|
?author vcard:hasName ?vName .
|
|
|
|
?vName vcard:givenName ?firstName .
|
|
|
|
?vName vcard:familyName ?lastName .
|
2014-06-06 11:04:23 -04:00
|
|
|
OPTIONAL { ?vName core:middleName ?middleName . }
|
2014-06-02 11:28:56 -04:00
|
|
|
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) .
|
2014-06-13 12:22:47 -04:00
|
|
|
|
2014-05-14 16:47:13 -04:00
|
|
|
OPTIONAL { ?authorship core:relates ?author .
|
|
|
|
?author a vcard:Kind .
|
|
|
|
?author vitro:mostSpecificType ?subclass .
|
|
|
|
?subclass rdfs:subClassOf vcard:Kind
|
|
|
|
}
|
2013-08-28 16:58:02 -04:00
|
|
|
}
|
|
|
|
<critical-data-required>
|
2013-11-12 12:23:44 -05:00
|
|
|
FILTER ( bound(?author) )
|
2013-08-28 16:58:02 -04:00
|
|
|
</critical-data-required>
|
2014-08-27 13:18:53 -04:00
|
|
|
} ORDER BY <collated> ?subclass </collated> ?rank (fn:lower-case(?authorName))
|
2013-08-28 16:58:02 -04:00
|
|
|
</query-select>
|
2013-10-29 14:47:41 -04:00
|
|
|
|
2013-08-28 16:58:02 -04:00
|
|
|
<query-construct>
|
|
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
2013-08-29 12:35:35 -04:00
|
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
|
|
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
2013-08-28 16:58:02 -04:00
|
|
|
CONSTRUCT {
|
|
|
|
?subject ?property ?authorship .
|
2013-10-01 16:46:13 -04:00
|
|
|
?authorship a core:Authorship .
|
2013-08-28 16:58:02 -04:00
|
|
|
?authorship ?authorshipProperty ?authorshipValue .
|
2013-11-12 12:23:44 -05:00
|
|
|
?authorship core:relates ?author .
|
|
|
|
?author a foaf:Agent .
|
|
|
|
?author rdfs:label ?authorName .
|
|
|
|
?author vitro:mostSpecificType ?subclass .
|
|
|
|
?subclass rdfs:subClassOf foaf:Agent
|
2013-08-28 16:58:02 -04:00
|
|
|
} WHERE {
|
|
|
|
{
|
2013-10-01 16:46:13 -04:00
|
|
|
?subject ?property ?authorship .
|
|
|
|
?authorship a core:Authorship
|
2013-08-28 16:58:02 -04:00
|
|
|
} UNION {
|
|
|
|
?subject ?property ?authorship .
|
2013-10-01 16:46:13 -04:00
|
|
|
?authorship a core:Authorship .
|
2013-08-28 16:58:02 -04:00
|
|
|
?authorship ?authorshipProperty ?authorshipValue
|
|
|
|
} UNION {
|
|
|
|
?subject ?property ?authorship .
|
2013-10-01 16:46:13 -04:00
|
|
|
?authorship a core:Authorship .
|
2013-11-12 12:23:44 -05:00
|
|
|
?authorship core:relates ?author .
|
|
|
|
?author a foaf:Agent .
|
|
|
|
?author rdfs:label ?authorName
|
2013-08-28 16:58:02 -04:00
|
|
|
} UNION {
|
|
|
|
?subject ?property ?authorship .
|
2013-10-01 16:46:13 -04:00
|
|
|
?authorship a core:Authorship .
|
2013-11-12 12:23:44 -05:00
|
|
|
?authorship core:relates ?author .
|
|
|
|
?author a foaf:Agent .
|
|
|
|
?author rdfs:label ?authorName .
|
|
|
|
?author vitro:mostSpecificType ?subclass .
|
|
|
|
?subclass rdfs:subClassOf foaf:Agent
|
2013-08-28 16:58:02 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</query-construct>
|
2014-05-14 16:47:13 -04:00
|
|
|
|
|
|
|
<query-construct>
|
|
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
|
|
|
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
|
|
|
|
CONSTRUCT {
|
|
|
|
?subject ?property ?authorship .
|
|
|
|
?authorship a core:Authorship .
|
|
|
|
?authorship ?authorshipProperty ?authorshipValue .
|
|
|
|
?authorship core:relates ?author .
|
|
|
|
?author a vcard:Kind .
|
2014-06-02 11:28:56 -04:00
|
|
|
?author vcard:hasName ?vName .
|
|
|
|
?vName vcard:familyName ?lastName .
|
|
|
|
?vName vcard:givenName ?firstName .
|
|
|
|
?vName core:middleName ?middleName .
|
2014-05-14 16:47:13 -04:00
|
|
|
?author vitro:mostSpecificType ?subclass .
|
|
|
|
?subclass rdfs:subClassOf vcard:Kind
|
|
|
|
} WHERE {
|
|
|
|
{
|
|
|
|
?subject ?property ?authorship .
|
|
|
|
?authorship a core:Authorship
|
|
|
|
} UNION {
|
|
|
|
?subject ?property ?authorship .
|
|
|
|
?authorship a core:Authorship .
|
|
|
|
?authorship ?authorshipProperty ?authorshipValue
|
|
|
|
} UNION {
|
|
|
|
?subject ?property ?authorship .
|
|
|
|
?authorship a core:Authorship .
|
|
|
|
?authorship core:relates ?author .
|
|
|
|
?author a vcard:Kind .
|
2014-06-02 11:28:56 -04:00
|
|
|
?author vcard:hasName ?vName .
|
|
|
|
?vName vcard:familyName ?lastName .
|
2014-05-14 16:47:13 -04:00
|
|
|
} UNION {
|
2014-06-02 11:28:56 -04:00
|
|
|
?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 {
|
2014-05-14 16:47:13 -04:00
|
|
|
?subject ?property ?authorship .
|
|
|
|
?authorship a core:Authorship .
|
|
|
|
?authorship core:relates ?author .
|
|
|
|
?author a vcard:Kind .
|
|
|
|
?author vitro:mostSpecificType ?subclass .
|
|
|
|
?subclass rdfs:subClassOf vcard:Kind
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</query-construct>
|
2013-08-28 16:58:02 -04:00
|
|
|
|
|
|
|
<template>propStatement-informationResourceInAuthorship.ftl</template>
|
|
|
|
</list-view-config>
|