various and sundry data migration changes

This commit is contained in:
brianjlowe 2013-09-19 14:18:49 -04:00
parent aca312b7cc
commit 6d77fc7871
12 changed files with 65 additions and 24 deletions

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 {
?person vivo:relatedBy _:Editorship .
_:Editorship a vivo:Editorship .
_:Editorship vivo:relates ?person .
_:Editorship vivo:relates ?document .
?document vivo:relatedBy _:Editorship .
} WHERE {
{
?person vivo:editorOf ?document
} UNION {
?document vivo:editor ?person
}
}

View file

@ -8,4 +8,5 @@ CONSTRUCT {
} WHERE {
?agent <ihttp://purl.obolibrary.org/obo/RO_0000053> ?role .
?role vivo:relatedBy ?grant
FILTER NOT EXISTS { ?grant vivo:relates ?agent }
}

View file

@ -2,6 +2,7 @@ PREFIX arg: <http://purl.obolibrary.org/obo/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX v: <http://www.w3.org/2006/vcard/ns#>
PREFIX vivo: <http://vivoweb.org/ontology/core#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
CONSTRUCT {
?vcard v:hasName _:name .
@ -9,6 +10,8 @@ CONSTRUCT {
_:name v:givenName ?firstName .
_:name vivo:middleName ?middleName .
_:name v:familyName ?lastName .
_:name v:honorificPrefix ?prefix .
_:name v:honorificSuffix ?suffix .
} WHERE {
?s arg:ARG_2000028 ?vcard .
OPTIONAL {
@ -23,5 +26,11 @@ CONSTRUCT {
?s vivo:middleName ?middleName
BIND("yes" as ?test)
}
OPTIONAL {
?s bibo:prefixName ?prefix
}
OPTIONAL {
?s bibo:suffixName ?suffix
}
FILTER(bound(?test))
}

View file

@ -0,0 +1,14 @@
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 {
?person vivo:editorOf ?document .
?document vivo:editor ?person
} WHERE {
{
?person vivo:editorOf ?document
} UNION {
?document vivo:editor ?person
}
}

View file

@ -8,11 +8,13 @@ CONSTRUCT {
?educationalProcess vivo:relates ?org .
?org vivo:relatedBy ?educationalProcess .
} WHERE {
?educationalProcess <http://purl.obolibrary.org/obo/RO_0002234> ?degree .
?person <http://purl.obolibrary.org/obo/RO_0000056> ?educationalProcess .
?educationalProcess a vivo:EducationalProcess .
?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 .
}

View file

@ -2,11 +2,14 @@ PREFIX arg: <http://purl.obolibrary.org/obo/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX v: <http://www.w3.org/2006/vcard/ns#>
PREFIX vivo: <http://vivoweb.org/ontology/core#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
CONSTRUCT {
?s foaf:firstName ?firstName .
?s foaf:lastName ?lastName .
?s vivo:middleName ?middleName .
?s bibo:prefixName ?prefix .
?s bibo:suffixName ?suffix .
?s vivo:email ?email .
?s vivo:primaryEmail ?primaryEmail .
?s vivo:phoneNumber ?phoneNumber .
@ -25,6 +28,12 @@ CONSTRUCT {
}
UNION {
?s vivo:middleName ?middleName
}
UNION {
?s bibo:prefixName ?prefix
}
UNION {
?s bibo:suffixName ?suffix
}
UNION {
?s vivo:email ?email