6
|
1 sparql
|
|
2
|
|
3 select distinct *
|
|
4 FROM <file://mpiwg_persons_dnb.rdf>
|
|
5 FROM <file://mpiwg_persons_2.rdf>
|
|
6 FROM <file:///GND.rdf>
|
|
7 FROM <http://identifiedNames>
|
|
8 where {{
|
|
9 ?person <http://xmlns.com/foaf/0.1/name> "%s".
|
|
10
|
|
11 {{?ident <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person. ?gnd crm:P1_is_identified_by ?ident.} UNION {
|
|
12 ?person2 <http://www.w3.org/2002/07/owl#sameAs> ?person.
|
|
13 ?ident2 <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person2.
|
|
14 ?gnd crm:P1_is_identified_by ?ident2.
|
|
15 }}
|
|
16
|
|
17 optional {?gnd <http://RDVocab.info/ElementsGr2/dateOfBirth> ?birthDate.}
|
|
18 optional {?gnd <http://RDVocab.info/ElementsGr2/dateOfDeath> ?deathDate.}
|
|
19
|
|
20 optional { {?gnd <http://www.w3.org/2002/07/owl#sameAs> ?gndSame.} UNION
|
|
21 {?gndSame <http://www.w3.org/2002/07/owl#sameAs> ?gnd.}}
|
|
22 }
|
|
23 UNION {GRAPH <file://newpersonsFromProjects> {?person <http://xmlns.com/foaf/0.1/name> "%s"}}
|
|
24 } |