Mercurial > hg > NamedIdentityManager
diff src/de/mpiwg/itgroup/nimanager/persons/personQueryStringFull @ 6:290d859f036b
ID search
author | dwinter |
---|---|
date | Thu, 29 Dec 2011 15:20:37 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/de/mpiwg/itgroup/nimanager/persons/personQueryStringFull Thu Dec 29 15:20:37 2011 +0100 @@ -0,0 +1,24 @@ +sparql + +select distinct * +FROM <file://mpiwg_persons_dnb.rdf> +FROM <file://mpiwg_persons_2.rdf> +FROM <file:///GND.rdf> +FROM <http://identifiedNames> +where {{ +?person <http://xmlns.com/foaf/0.1/name> "%s". + +{{?ident <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person. ?gnd crm:P1_is_identified_by ?ident.} UNION { +?person2 <http://www.w3.org/2002/07/owl#sameAs> ?person. +?ident2 <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person2. +?gnd crm:P1_is_identified_by ?ident2. +}} + +optional {?gnd <http://RDVocab.info/ElementsGr2/dateOfBirth> ?birthDate.} +optional {?gnd <http://RDVocab.info/ElementsGr2/dateOfDeath> ?deathDate.} + +optional { {?gnd <http://www.w3.org/2002/07/owl#sameAs> ?gndSame.} UNION +{?gndSame <http://www.w3.org/2002/07/owl#sameAs> ?gnd.}} +} +UNION {GRAPH <file://newpersonsFromProjects> {?person <http://xmlns.com/foaf/0.1/name> "%s"}} +} \ No newline at end of file