various migration fixes

This commit is contained in:
brianjlowe 2013-09-27 13:44:21 -04:00
parent b8cff8458a
commit d71c995e0e
8 changed files with 50 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -13,5 +13,6 @@ CONSTRUCT {
?person vivo:editorOf ?document ?person vivo:editorOf ?document
} UNION { } UNION {
?document vivo:editor ?person ?document vivo:editor ?person
FILTER NOT EXISTS { ?person vivo:editorOf ?document }
} }
} }

View file

@ -11,5 +11,7 @@ CONSTRUCT {
} WHERE { } WHERE {
{ ?person vivo:currentlyHeadOf ?org } { ?person vivo:currentlyHeadOf ?org }
UNION UNION
{ ?org vivo:currentlyHeadedBy ?person } { ?org vivo:currentlyHeadedBy ?person
FILTER NOT EXISTS { ?person vivo:currentlyHeadOf ?org }
}
} }

View file

@ -11,5 +11,7 @@ CONSTRUCT {
} WHERE { } WHERE {
{ ?person vivo:currentMemberOf ?org } { ?person vivo:currentMemberOf ?org }
UNION UNION
{ ?org vivo:hasCurrentMember ?person } { ?org vivo:hasCurrentMember ?person
FILTER NOT EXISTS { ?person vivo:currentMemberOf ?org }
}
} }

View file

@ -0,0 +1,17 @@
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 {
?person1 vivo:relatedBy _:relationship .
?person2 vivo:relatedBy _:relationship .
_:relationship vivo:relates ?person1 .
_:relationship vivo:relates ?person2 .
} WHERE {
{ ?person1 vivo:hasCollaborator ?person2
FILTER NOT EXISTS {
?person1 vivo:relatedBy ?relationship .
?relationship vivo:relates ?person2
}
}
}

View file

@ -0,0 +1,11 @@
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 {
?role vivo:relatedBy ?grant .
?grant vivo:relates ?role
} WHERE {
?role vivo:roleContributesTo ?grant .
?grant a vivo:Grant .
}

View file

@ -13,5 +13,7 @@ CONSTRUCT {
} WHERE { } WHERE {
{ ?agent vivo:administers ?grant } { ?agent vivo:administers ?grant }
UNION UNION
{ ?grant vivo:administeredBy ?agent } { ?grant vivo:administeredBy ?agent
FILTER NOT EXISTS { ?agent vivo:administers ?grant }
}
} }

View file

@ -0,0 +1,11 @@
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 {
?role vivo:roleContributesTo ?grant .
?grant vivo:contributingRole ?role .
} WHERE {
?role vivo:roleContributesTo ?grant .
?grant a vivo:Grant .
}