fixing duplicated awarded degrees in migration

This commit is contained in:
brianjlowe 2013-10-16 16:42:45 -04:00
parent 902fbbc4cd
commit bd74865d43
2 changed files with 16 additions and 7 deletions

View file

@ -12,10 +12,9 @@ CONSTRUCT {
?person vivo:relatedBy _:awardedDegree .
_:awardedDegree vivo:assignedBy ?org .
?org vivo:assigns _:awardedDegree .
?educationalProcess <http://purl.obolibrary.org/obo/BFO_0000055> ?role .
?role <http://purl.obolibrary.org/obo/BFO_0000054> ?educationalProcess .
} WHERE {
?person <http://purl.obolibrary.org/obo/RO_0000056> ?educationalProcess .
?person a foaf:Person .
?educationalProcess a vivo:EducationalProcess .
?educationalProcess <http://purl.obolibrary.org/obo/RO_0002234> ?degree .
?degree a vivo:AcademicDegree .
@ -23,9 +22,4 @@ CONSTRUCT {
?educationalProcess <http://purl.obolibrary.org/obo/RO_0000057> ?org .
?org a foaf:Organization
}
OPTIONAL {
?educationalProcess vivo:contributingAdvising ?advising .
?advising vivo:relates ?role .
?role a <http://purl.obolibrary.org/obo/BFO_0000023> .
}
}

View file

@ -0,0 +1,15 @@
PREFIX vivo: <http://vivoweb.org/ontology/core#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
CONSTRUCT {
?educationalProcess <http://purl.obolibrary.org/obo/BFO_0000055> ?role .
?role <http://purl.obolibrary.org/obo/BFO_0000054> ?educationalProcess .
} WHERE {
?person <http://purl.obolibrary.org/obo/RO_0000056> ?educationalProcess .
?person a foaf:Person .
?educationalProcess a vivo:EducationalProcess .
?educationalProcess vivo:contributingAdvising ?advising .
?advising vivo:relates ?role .
?role a <http://purl.obolibrary.org/obo/BFO_0000023> .
}