From 19982aad2288485b09d001714c20f6646048f9df Mon Sep 17 00:00:00 2001 From: tworrall Date: Wed, 14 May 2014 16:47:13 -0400 Subject: [PATCH] updated list view to include cases where only a vcard individual exists and not the foaf:Person: --- ...Config-informationResourceInAuthorship.xml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) 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 + } + } +