vivo/productMods/WEB-INF/ontologies/update15to16/sparqlConstructs/additions/AdviseeRole.sparql
j2blake 061db63d75 VIVO-958 Accommodate a migration directly from 1.5 data to 1.8
Move data directory from ontologies/update to version-specific directory ontologies/update17to18
Create ontologies/update15to16 and ontologies/update16to17 from previous update data directories.

Revise UpdateKnowledgeBase to accept the data directory as a parameter instead of having it hard-coded.
Create classes like Release18Migrator that will call UpdateKnowledgeBase with the appropriate directory, and do other release-specific migration tasks.

Make corresponding changes in startup_listeners.txt
2015-03-13 12:14:57 -04:00

19 lines
788 B
SPARQL

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 {
?advisee <http://purl.obolibrary.org/obo/RO_0000053> _:AdviseeRole .
_:AdviseeRole <http://purl.obolibrary.org/obo/RO_0000052> ?advisee .
_:AdviseeRole a vivo:AdviseeRole .
_:AdviseeRole vivo:relatedBy ?advisingRelationship .
?advisingRelationship vivo:relates _:AdviseeRole .
?advisingRelationship vivo:relates ?advisee .
?advisee vivo:relatedBy ?advisingRelationship .
} WHERE {
?advisee vivo:adviseeIn ?advisingRelationship .
FILTER NOT EXISTS {
?advisee <http://purl.obolibrary.org/obo/RO_0000053> ?adviseeRoleNode .
?adviseeRoleNode vivo:relatedBy ?advisingRelationship .
}
}