*Deprecated* See https://wiki.duraspace.org/display/VIVODOC/All+Documentation for current documentation

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.

locationForPosition.sparql
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX obo: <http://purl.obolibrary.org/obo/>

CONSTRUCT {
     ?organization core:hasGeographicLocation ?geographicLocation .
     ?geographicLocation rdfs:label ?label .
} WHERE {
     PERSON_URI core:relatedBy ?position . 
     ?position a core:Position .
     ?position core:relates ?organization .
     ?organization a foaf:Organization . 
     ?organization obo:RO_0001025 ?geographicLocation .
     ?geographicLocation rdfs:label ?label .
}
organizationForPosition.sparql
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

CONSTRUCT {
     ?position core:positionInOrganization ?organization .
     ?organization rdfs:label ?label .
} WHERE {
     PERSON_URI core:relatedBy ?position . 
     ?position a core:Position .
     ?position core:relates ?organization .
     ?organization a foaf:Organization . 
     ?organization rdfs:label ?label .
}
subOrganizationForPosition.sparql
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX obo: <http://purl.obolibrary.org/obo/>

CONSTRUCT {
     ?organization core:hasSubOrganization ?subOrganization .
     ?subOrganization rdfs:label ?label .
} WHERE {
     PERSON_URI core:relatedBy ?position . 
     ?position a core:Position .
     ?position core:relates ?organization .
     ?organization a foaf:Organization . 
     ?organization obo:BFO_0000050 ?subOrganization .
     ?subOrganization rdfs:label ?label .
}
superOrganizationForPosition.sparql
PREFIX core: <http://vivoweb.org/ontology/core#>

CONSTRUCT {
     ?superOrganization ?property ?object .
} WHERE {
     PERSON_URI core:relatedBy ?position . 
     ?position a core:Position .
     ?position core:relates ?organization .
     ?organization a foaf:Organization . 
     ?organization obo:BFO_0000051 ?superOrganization .
     ?superOrganization ?property ?object .
}
  • No labels