Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that these are CONSTRUCT queries designed to create a small Jena model for export as a whole after a series of queries has been run.  The PERSON_URI variable is substituted by VIVO at runtime.

Code Block
titleAddress
collapsetrue
address.sparql
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX rdfvcard: <http://www.w3.org/19992006/02/22-rdf-syntax-vcard/ns#>


CONSTRUCT {
     ?grantaddress ?property ?object .
     ?investigatorRole core:relatedBy ?grant .
} WHERE {
     {
       { PERSON_URI coreobo:relatedByARG_2000028 ?investigatorRolevcard .
         ?investigatorRolevcard a core:PrincipalInvestigatorRole
       }vcard:hasAddress ?address .
     ?address ?property ?object  union
       { PERSON_URI core:relatedBy ?investigatorRole ..
}
Code Block
titlelocationOfAddress.sparql
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>

CONSTRUCT {

      ?geographicLocation ?property  ?investigatorRole a core:CoPrincipalInvestigatorRole
       object .
} WHERE  {
     }
     PERSON_URI obo:ARG_2000028 ?vcard .
     ?investigatorRolevcard corevcard:relatedByhasAddress ?grantaddress .
     ?grant a core:Grantaddress obo:RO_0001025 ?geographicLocation .
     ?grantgeographicLocation ?property ?object .
}

 

...