comparison src/de/mpiwg/itgroup/nimanager/persons/IDQueryStringFull @ 6:290d859f036b

ID search
author dwinter
date Thu, 29 Dec 2011 15:20:37 +0100
parents
children
comparison
equal deleted inserted replaced
5:cdc4c12262b1 6:290d859f036b
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 <%s> <http://xmlns.com/foaf/0.1/name> ?name.
10
11 {{?ident <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> <%s>.
12
13 ?gnd crm:P1_is_identified_by ?ident.} UNION {
14 ?person2 <http://www.w3.org/2002/07/owl#sameAs> <%s>.
15 ?ident2 <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person2.
16 ?gnd crm:P1_is_identified_by ?ident2.
17 }}
18
19 optional {?gnd <http://RDVocab.info/ElementsGr2/dateOfBirth> ?birthDate.}
20 optional {?gnd <http://RDVocab.info/ElementsGr2/dateOfDeath> ?deathDate.}
21
22 optional { {?gnd <http://www.w3.org/2002/07/owl#sameAs> ?gndSame.} UNION
23 {?gndSame <http://www.w3.org/2002/07/owl#sameAs> ?gnd.}}
24 }
25
26 union
27 {
28 ?person <http://xmlns.com/foaf/0.1/name> ?name.
29
30 {{?ident <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person.
31
32 <%s> crm:P1_is_identified_by ?ident.} UNION {
33 ?person2 <http://www.w3.org/2002/07/owl#sameAs> ?person.
34 ?ident2 <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person2.
35 ?gndSame crm:P1_is_identified_by ?ident2.
36 }}
37
38 optional {<%s> <http://RDVocab.info/ElementsGr2/dateOfBirth> ?birthDate.}
39 optional {<%s> <http://RDVocab.info/ElementsGr2/dateOfDeath> ?deathDate.}
40
41 { {<%s> <http://www.w3.org/2002/07/owl#sameAs> ?gndSame.} UNION
42 {?gndSame <http://www.w3.org/2002/07/owl#sameAs>
43 <%s>.}}
44 }
45 union
46
47 {
48 ?person <http://xmlns.com/foaf/0.1/name> ?name.
49
50 ?ident <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person.
51 ?gnd crm:P1_is_identified_by ?ident.
52 ?person2 <http://www.w3.org/2002/07/owl#sameAs> ?person.
53 ?ident2 <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person2.
54 <%s> crm:P1_is_identified_by ?ident2.
55
56
57 optional {?gnd <http://RDVocab.info/ElementsGr2/dateOfBirth> ?birthDate.}
58 optional {?gnd <http://RDVocab.info/ElementsGr2/dateOfDeath> ?deathDate.}
59
60 optional { {?gnd <http://www.w3.org/2002/07/owl#sameAs> ?gndSame.} UNION
61 {?gndSame <http://www.w3.org/2002/07/owl#sameAs> ?gnd.}}
62 }
63 }