
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
29 lines
1.1 KiB
SPARQL
29 lines
1.1 KiB
SPARQL
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 arg:ARG_2000028 _:vcard .
|
|
_:vcard arg:ARG_2000029 ?s .
|
|
_:vcard a v:Individual .
|
|
} WHERE {
|
|
?s a foaf:Person
|
|
FILTER (
|
|
EXISTS { ?s foaf:firstName ?firstName } ||
|
|
EXISTS { ?s foaf:lastName ?lastName } ||
|
|
EXISTS { ?s vivo:middleName ?middleName } ||
|
|
EXISTS { ?s vivo:email ?email } ||
|
|
EXISTS { ?s vivo:primaryEmail ?primaryEmail } ||
|
|
EXISTS { ?s vivo:phoneNumber ?phoneNumber } ||
|
|
EXISTS { ?s vivo:primaryPhoneNumber ?primaryPhoneNumber } ||
|
|
EXISTS { ?s vivo:faxNumber ?faxNumber } ||
|
|
EXISTS { ?s vivo:mailingAddress ?address } ||
|
|
EXISTS { ?s vivo:webpage ?webpage } ||
|
|
EXISTS { ?s vivo:preferredTitle ?preferredTitle } ||
|
|
EXISTS { ?s bibo:prefixName ?prefixName } ||
|
|
EXISTS { ?s bibo:suffixName ?suffixName }
|
|
)
|
|
FILTER NOT EXISTS { ?s arg:ARG_2000028 ?vcardNode }
|
|
}
|