data migration work

This commit is contained in:
brianjlowe 2013-09-23 15:57:28 -04:00
parent fca87953d2
commit 1149ab273b
13 changed files with 4507 additions and 13 deletions

View file

@ -3,9 +3,6 @@ PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK { ASK {
graph <http://vitro.mannlib.cornell.edu/default/vitro-kb-applicationMetadata> {
<http://vitro.mannlib.cornell.edu/default/vitro-kb-2> vitro:updatedToOntology ?u . <http://vitro.mannlib.cornell.edu/default/vitro-kb-2> vitro:updatedToOntology ?u .
?u vitro:updatedOntology <http://vivoweb.org/ontology/core> .
?u vitro:toOntologyVersion "1.6" . ?u vitro:toOntologyVersion "1.6" .
}
} }

File diff suppressed because one or more lines are too long

View file

@ -3,7 +3,7 @@ PREFIX owl: <http://www.w3.org/2002/07/owl#Thing>
PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX foaf: <http://xmlns.com/foaf/0.1/>
CONSTRUCT { CONSTRUCT {
?advisee <ihttp://purl.obolibrary.org/obo/RO_0000053> _:AdviseeRole . ?advisee <http://purl.obolibrary.org/obo/RO_0000053> _:AdviseeRole .
_:AdviseeRole <http://purl.obolibrary.org/obo/RO_0000052> ?advisee . _:AdviseeRole <http://purl.obolibrary.org/obo/RO_0000052> ?advisee .
_:AdviseeRole a vivo:AdviseeRole . _:AdviseeRole a vivo:AdviseeRole .
?advisor <http://purl.obolibrary.org/obo/RO_0000053> _:AdvisorRole . ?advisor <http://purl.obolibrary.org/obo/RO_0000053> _:AdvisorRole .

View file

@ -0,0 +1,15 @@
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 <http://purl.obolibrary.org/obo/RO_0000053> _:leaderRole .
_:leaderRole <http://purl.obolibrary.org/obo/RO_0000052> ?person .
_:leaderRole a vivo:LeaderRole .
_:leaderRole vivo:roleContributesTo ?org .
?org vivo:contributingRole _:leaderRole .
} WHERE {
{ ?person vivo:currentlyHeadOf ?org }
UNION
{ ?org vivo:currentlyHeadedBy ?person }
}

View file

@ -0,0 +1,15 @@
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 <http://purl.obolibrary.org/obo/RO_0000053> _:memberRole .
_:memberRole <http://purl.obolibrary.org/obo/RO_0000052> ?person .
_:memberRole a vivo:MemberRole .
_:memberRole vivo:roleContributesTo ?org .
?org vivo:contributingRole _:memberRole .
} WHERE {
{ ?person vivo:currentMemberOf ?org }
UNION
{ ?org vivo:hasCurrentMember ?person }
}

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 {
?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 }
}

View file

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

View file

@ -12,6 +12,8 @@ CONSTRUCT {
?person vivo:relatedBy _:awardedDegree . ?person vivo:relatedBy _:awardedDegree .
_:awardedDegree vivo:assignedBy ?org . _:awardedDegree vivo:assignedBy ?org .
?org vivo:assigns _:awardedDegree . ?org vivo:assigns _:awardedDegree .
?educationalProcess <http://purl.obolibrary.org/obo/BFO_0000055> ?role .
?role <http://purl.obolibrary.org/obo/BFO_0000054> ?educationalProcess .
} WHERE { } WHERE {
?person <http://purl.obolibrary.org/obo/RO_0000056> ?educationalProcess . ?person <http://purl.obolibrary.org/obo/RO_0000056> ?educationalProcess .
?educationalProcess a vivo:EducationalProcess . ?educationalProcess a vivo:EducationalProcess .
@ -21,4 +23,9 @@ CONSTRUCT {
?educationalProcess <http://purl.obolibrary.org/obo/RO_0000057> ?org . ?educationalProcess <http://purl.obolibrary.org/obo/RO_0000057> ?org .
?org a foaf:Organization ?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,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 {
?vcard v:hasTitle _:title .
_:title a v:Title .
_:title v:title ?preferredTitle .
} WHERE {
?s arg:ARG_2000028 ?vcard .
?s <http://vivoweb.org/ontology/core#preferredTitle> ?preferredTitle .
}

View file

@ -2,9 +2,9 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<http://vitro.mannlib.cornell.edu/default/vitro-kb-2> vitro:updatedToOntology <http://vitro.mannlib.cornell.edu/ns/vitro/metadata/migration/v1.5> . <http://vitro.mannlib.cornell.edu/default/vitro-kb-2> vitro:updatedToOntology <http://vitro.mannlib.cornell.edu/ns/vitro/metadata/migration/v1.6> .
<http://vitro.mannlib.cornell.edu/ns/vitro/metadata/migration/v1.5> rdf:type owl:Thing . <http://vitro.mannlib.cornell.edu/ns/vitro/metadata/migration/v1.6> rdf:type owl:Thing .
<http://vitro.mannlib.cornell.edu/ns/vitro/metadata/migration/v1.5> vitro:updatedOntology <http://vivoweb.org/ontology/core> . <http://vitro.mannlib.cornell.edu/ns/vitro/metadata/migration/v1.6> vitro:updatedOntology <http://vivoweb.org/ontology/core> .
<http://vitro.mannlib.cornell.edu/ns/vitro/metadata/migration/v1.5> vitro:fromOntologyVersion "1.5" . <http://vitro.mannlib.cornell.edu/ns/vitro/metadata/migration/v1.6> vitro:fromOntologyVersion "1.5" .
<http://vitro.mannlib.cornell.edu/ns/vitro/metadata/migration/v1.5> vitro:toOntologyVersion "1.6" . <http://vitro.mannlib.cornell.edu/ns/vitro/metadata/migration/v1.6> vitro:toOntologyVersion "1.6" .

File diff suppressed because it is too large Load diff

View file

@ -1117,6 +1117,7 @@ there is a measurement process p that has specified output m, a measurement datu
<owl:ObjectProperty rdf:about="http://purl.obolibrary.org/obo/RO_0002350"> <owl:ObjectProperty rdf:about="http://purl.obolibrary.org/obo/RO_0002350">
<rdfs:label xml:lang="en">member of</rdfs:label> <rdfs:label xml:lang="en">member of</rdfs:label>
<owl:inverseOf rdf:resource="http://purl.obolibrary.org/obo/RO_0002351"/>
</owl:ObjectProperty> </owl:ObjectProperty>
@ -1125,8 +1126,6 @@ there is a measurement process p that has specified output m, a measurement datu
<owl:ObjectProperty rdf:about="http://purl.obolibrary.org/obo/RO_0002351"> <owl:ObjectProperty rdf:about="http://purl.obolibrary.org/obo/RO_0002351">
<rdfs:label xml:lang="en">has_member</rdfs:label> <rdfs:label xml:lang="en">has_member</rdfs:label>
<rdfs:domain rdf:resource="http://xmlns.com/foaf/0.1/Organization"/>
<rdfs:range rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
</owl:ObjectProperty> </owl:ObjectProperty>

File diff suppressed because it is too large Load diff