various and sundry data migration changes

This commit is contained in:
brianjlowe 2013-09-19 14:18:49 -04:00
parent aca312b7cc
commit 6d77fc7871
12 changed files with 65 additions and 24 deletions

View file

@ -0,0 +1,12 @@
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
FILTER NOT EXISTS { ?grant vivo:relates ?agent }
}

View file

@ -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 {
?educationalProcess <http://purl.obolibrary.org/obo/RO_0002234> _:awardedDegree .
_:awardedDegree <http://purl.obolibrary.org/obo/RO_0002353> ?educationalProcess .
_:awardedDegree a vivo:AwardedDegree .
_:awardedDegree vivo:relates ?degree .
?degree vivo:relatedBy _:awardedDegree .
_:awardedDegree vivo:relates ?person .
?person vivo:relatedBy _:awardedDegree .
_:awardedDegree vivo:assignedBy ?org .
?org vivo:assigns _:awardedDegree .
} WHERE {
?person <http://purl.obolibrary.org/obo/RO_0000056> ?educationalProcess .
?educationalProcess a vivo:EducationalProcess .
?educationalProcess <http://purl.obolibrary.org/obo/RO_0002234> ?degree .
OPTIONAL {
?educationalProcess vivo:relates ?org .
?org a foaf:Organization
}
}