
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
24 lines
851 B
SPARQL
24 lines
851 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 {
|
|
?agent <http://purl.obolibrary.org/obo/RO_0000053> _:adminRole .
|
|
_:adminRole a vivo:AdministratorRole .
|
|
_:adminRole <http://purl.obolibrary.org/obo/RO_0000052> ?agent .
|
|
_:adminRole vivo:relatedBy ?grant .
|
|
?grant vivo:relates _:adminRole .
|
|
?grant vivo:relates ?agent .
|
|
?agent vivo:relatedBy ?grant .
|
|
} WHERE {
|
|
{ ?agent vivo:administers ?grant }
|
|
UNION
|
|
{ ?grant vivo:administeredBy ?agent
|
|
FILTER NOT EXISTS { ?agent vivo:administers ?grant }
|
|
}
|
|
FILTER NOT EXISTS {
|
|
?agent <http://purl.obolibrary.org/obo/RO_0000053> ?adminRoleNode .
|
|
?adminRoleNode a vivo:AdministratorRole .
|
|
?adminRoleNode vivo:relatedBy ?grant .
|
|
}
|
|
}
|