awardedDegree migration

This commit is contained in:
brianjlowe 2013-09-12 10:44:03 -04:00
parent 7fe3d8ea70
commit fd8de955f5
3 changed files with 42 additions and 127 deletions

File diff suppressed because one or more lines are too long

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
}
}

View file

@ -0,0 +1,18 @@
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> ?degree .
?degree <http://purl.obolibrary.org/obo/RO_0002353> ?educationalProcess .
?educationalProcess vivo:relates ?org .
?org vivo:relatedBy ?educationalProcess .
} WHERE {
?educationalProcess <http://purl.obolibrary.org/obo/RO_0002234> ?degree .
OPTIONAL { ?degree <http://purl.obolibrary.org/obo/RO_0002353> ?educationalProcess }
OPTIONAL {
?educationalProcess vivo:relates ?org .
?org a foaf:Organization .
}
?degree a vivo:AcademicDegree .
}