diff --git a/productMods/config/listViewConfig-informationResourceInAuthorship.xml b/productMods/config/listViewConfig-informationResourceInAuthorship.xml index 9934aa97..ad97811c 100644 --- a/productMods/config/listViewConfig-informationResourceInAuthorship.xml +++ b/productMods/config/listViewConfig-informationResourceInAuthorship.xml @@ -10,6 +10,7 @@ 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#> + PREFIX vcard: <http://www.w3.org/2006/vcard/ns#> SELECT DISTINCT ?subclass ?authorship @@ -27,6 +28,17 @@ ?subclass rdfs:subClassOf foaf:Agent } + } + OPTIONAL { ?authorship core:relates ?author . + ?author a vcard:Kind . + ?author rdfs:label ?authorName + + OPTIONAL { ?authorship core:relates ?author . + ?author a vcard:Kind . + ?author vitro:mostSpecificType ?subclass . + ?subclass rdfs:subClassOf vcard:Kind + } + } FILTER ( bound(?author) ) @@ -73,6 +85,46 @@ } } + + + 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 . + ?author rdfs:label ?authorName . + ?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 . + ?author rdfs:label ?authorName + } 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 + } + } +