Grant and AdvisingRelationship migration
This commit is contained in:
parent
fd8de955f5
commit
a60c4ff048
3 changed files with 53 additions and 0 deletions
|
@ -0,0 +1,23 @@
|
||||||
|
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||||
|
PREFIX owl: <http://www.w3.org/2002/07/owl#Thing>
|
||||||
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
|
|
||||||
|
CONSTRUCT {
|
||||||
|
?advisee <ihttp://purl.obolibrary.org/obo/RO_0000053> _:AdviseeRole .
|
||||||
|
_:AdviseeRole <http://purl.obolibrary.org/obo/RO_0000052> ?advisee .
|
||||||
|
_:AdviseeRole a vivo:AdviseeRole .
|
||||||
|
?advisor <http://purl.obolibrary.org/obo/RO_0000053> _:AdvisorRole .
|
||||||
|
_:AdvisorRole <http://purl.obolibrary.org/obo/RO_0000052> ?advisor .
|
||||||
|
_:AdvisorRole a vivo:AdvisorRole .
|
||||||
|
_:AdviseeRole vivo:relatedBy ?advisingRelationship .
|
||||||
|
?advisingRelationship vivo:relates _:AdviseeRole .
|
||||||
|
_:AdvisorRole vivo:relatedBy ?advisingRelationship .
|
||||||
|
?advisingRelationship vivo:relates _:AdvisorRole .
|
||||||
|
?advisingRelationship vivo:relates ?advisee .
|
||||||
|
?advisingRelationship vivo:relates ?advisor .
|
||||||
|
?advisee vivo:relatedBy ?advisingRelationship .
|
||||||
|
?advisor vivo:relatedBy ?advisingRelationship .
|
||||||
|
} WHERE {
|
||||||
|
?advisee vivo:adviseeIn ?advisingRelationship .
|
||||||
|
?advisor vivo:advisorIn ?advisingRelationship .
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||||
|
PREFIX owl: <http://www.w3.org/2002/07/owl#Thing>
|
||||||
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
|
|
||||||
|
CONSTRUCT {
|
||||||
|
?agent vivo:relatedBy ?grant .
|
||||||
|
?grant vivo:relates ?agent
|
||||||
|
} WHERE {
|
||||||
|
?agent <ihttp://purl.obolibrary.org/obo/RO_0000053> ?role .
|
||||||
|
?role vivo:relatedBy ?grant
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||||
|
PREFIX owl: <http://www.w3.org/2002/07/owl#Thing>
|
||||||
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
|
|
||||||
|
CONSTRUCT {
|
||||||
|
?advisee vivo:adviseeIn ?advisingRelationship .
|
||||||
|
?advisingRelationship vivo:advisee ?advisee .
|
||||||
|
?advisor vivo:advisorIn ?advisingRelationship .
|
||||||
|
?advisingRelationship vivo:advisor ?advisor
|
||||||
|
} WHERE {
|
||||||
|
?advisee vivo:adviseeIn ?advisingRelationship .
|
||||||
|
OPTIONAL {
|
||||||
|
?advisingRelationship vivo:advisee ?advisee .
|
||||||
|
}
|
||||||
|
?advisor vivo:advisorIn ?advisingRelationship .
|
||||||
|
OPTIONAL {
|
||||||
|
?advisingRelationship vivo:advisor ?advisor
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue