[VIVO-1031] Improve management ["hide these"] pages
This commit is contained in:
parent
b1979d24c9
commit
ce1bb9a9c9
2 changed files with 25 additions and 10 deletions
|
@ -71,13 +71,19 @@ public class ManageGrantsForIndividualController extends FreemarkerHttpServlet {
|
||||||
+ " ?subject <http://purl.obolibrary.org/obo/RO_0000053> ?role . \n"
|
+ " ?subject <http://purl.obolibrary.org/obo/RO_0000053> ?role . \n"
|
||||||
+ " ?role a core:ResearcherRole . \n"
|
+ " ?role a core:ResearcherRole . \n"
|
||||||
+ " ?role vitro:mostSpecificType ?subclass \n"
|
+ " ?role vitro:mostSpecificType ?subclass \n"
|
||||||
+ " OPTIONAL { ?role core:relatedBy ?activity . \n"
|
+ " OPTIONAL { \n"
|
||||||
|
+ " ?subject <http://purl.obolibrary.org/obo/RO_0000053> ?role . \n"
|
||||||
|
+ " ?role a core:ResearcherRole . \n"
|
||||||
|
+ " ?role core:relatedBy ?activity . \n"
|
||||||
+ " ?activity a core:Grant . \n"
|
+ " ?activity a core:Grant . \n"
|
||||||
+ " OPTIONAL {?activity rdfs:label ?label2} \n"
|
+ " ?activity rdfs:label ?label2 . \n"
|
||||||
+ " } \n"
|
+ " } \n"
|
||||||
+ " OPTIONAL { ?role <http://purl.obolibrary.org/obo/BFO_0000054> ?activity . \n"
|
+ " OPTIONAL { \n"
|
||||||
|
+ " ?subject <http://purl.obolibrary.org/obo/RO_0000053> ?role . \n"
|
||||||
|
+ " ?role a core:ResearcherRole . \n"
|
||||||
|
+ " ?role <http://purl.obolibrary.org/obo/BFO_0000054> ?activity . \n"
|
||||||
+ " ?activity a core:Project . \n"
|
+ " ?activity a core:Project . \n"
|
||||||
+ " OPTIONAL {?activity rdfs:label ?label2} \n"
|
+ " ?activity rdfs:label ?label2 . \n"
|
||||||
+ " } \n"
|
+ " } \n"
|
||||||
+ " OPTIONAL { ?role core:hideFromDisplay ?hideThis } \n"
|
+ " OPTIONAL { ?role core:hideFromDisplay ?hideThis } \n"
|
||||||
+ "} ORDER BY ?subclass ?label2";
|
+ "} ORDER BY ?subclass ?label2";
|
||||||
|
|
|
@ -70,10 +70,19 @@ public class ManagePublicationsForIndividualController extends FreemarkerHttpSer
|
||||||
+ "SELECT DISTINCT ?subclass ?authorship (str(?label) as ?title) ?pub ?hideThis WHERE { \n"
|
+ "SELECT DISTINCT ?subclass ?authorship (str(?label) as ?title) ?pub ?hideThis WHERE { \n"
|
||||||
+ " ?subject core:relatedBy ?authorship . \n"
|
+ " ?subject core:relatedBy ?authorship . \n"
|
||||||
+ " ?authorship a core:Authorship . \n"
|
+ " ?authorship a core:Authorship . \n"
|
||||||
+ " OPTIONAL { ?authorship core:relates ?pub . "
|
+ " OPTIONAL { \n "
|
||||||
|
+ " ?subject core:relatedBy ?authorship . \n"
|
||||||
|
+ " ?authorship a core:Authorship . \n"
|
||||||
|
+ " ?authorship core:relates ?pub . "
|
||||||
+ " ?pub a <http://purl.org/ontology/bibo/Document> . \n"
|
+ " ?pub a <http://purl.org/ontology/bibo/Document> . \n"
|
||||||
+ " ?pub rdfs:label ?label \n"
|
+ " ?pub rdfs:label ?label . \n"
|
||||||
+ " OPTIONAL { ?pub vitro:mostSpecificType ?subclass } \n"
|
+ " OPTIONAL { \n"
|
||||||
|
+ " ?subject core:relatedBy ?authorship . \n"
|
||||||
|
+ " ?authorship a core:Authorship . \n"
|
||||||
|
+ " ?authorship core:relates ?pub . "
|
||||||
|
+ " ?pub a <http://purl.org/ontology/bibo/Document> . \n"
|
||||||
|
+ " ?pub vitro:mostSpecificType ?subclass . \n"
|
||||||
|
+ " } \n"
|
||||||
+ " } \n"
|
+ " } \n"
|
||||||
+ " OPTIONAL { ?authorship core:hideFromDisplay ?hideThis } \n"
|
+ " OPTIONAL { ?authorship core:hideFromDisplay ?hideThis } \n"
|
||||||
+ "} ORDER BY ?subclass ?title";
|
+ "} ORDER BY ?subclass ?title";
|
||||||
|
|
Loading…
Add table
Reference in a new issue