VIVO-472 updated the rich-export sparql queries
This commit is contained in:
parent
4e7bfbf783
commit
23e0a4d390
55 changed files with 305 additions and 157 deletions
|
@ -1,20 +1,23 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
|
||||
CONSTRUCT {
|
||||
?investigatorRole core:roleContributesTo ?grant .
|
||||
?grant core:grantAwardedBy ?awardingOrganization .
|
||||
?awardingOrganization rdfs:label ?label
|
||||
} WHERE {
|
||||
{
|
||||
{PERSON_URI core:hasPrincipalInvestigatorRole ?investigatorRole }
|
||||
{PERSON_URI core:relatedBy ?investigatorRole .
|
||||
?investigatorRole a core:PrincipalInvestigatorRole
|
||||
}
|
||||
union
|
||||
{PERSON_URI core:hasCo-PrincipalInvestigatorRole ?investigatorRole }
|
||||
{PERSON_URI core:relatedBy ?investigatorRole .
|
||||
?investigatorRole a core:CoPrincipalInvestigatorRole
|
||||
}
|
||||
}
|
||||
|
||||
?investigatorRole core:roleContributesTo ?grant .
|
||||
?investigatorRole core:relatedBy ?grant .
|
||||
?grant a core:Grant .
|
||||
?grant core:grantAwardedBy ?awardingOrganization .
|
||||
?grant core:assignedBy ?awardingOrganization .
|
||||
?awardingOrganization a foaf:Organization .
|
||||
?awardingOrganization rdfs:label ?label
|
||||
}
|
|
@ -3,15 +3,19 @@ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|||
|
||||
CONSTRUCT {
|
||||
?grant ?property ?object .
|
||||
?investigatorRole core:roleContributesTo ?grant .
|
||||
?investigatorRole core:relatedBy ?grant .
|
||||
} WHERE {
|
||||
{
|
||||
{PERSON_URI core:hasPrincipalInvestigatorRole ?investigatorRole }
|
||||
union
|
||||
{PERSON_URI core:hasCo-PrincipalInvestigatorRole ?investigatorRole }
|
||||
{
|
||||
{ PERSON_URI core:relatedBy ?investigatorRole .
|
||||
?investigatorRole a core:PrincipalInvestigatorRole
|
||||
}
|
||||
union
|
||||
{ PERSON_URI core:relatedBy ?investigatorRole .
|
||||
?investigatorRole a core:CoPrincipalInvestigatorRole
|
||||
}
|
||||
}
|
||||
|
||||
?investigatorRole core:roleContributesTo ?grant .
|
||||
?investigatorRole core:relatedBy ?grant .
|
||||
?grant a core:Grant .
|
||||
?grant ?property ?object
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue