diff src/de/mpiwg/itgroup/nimanager/persons/IDQueryStringFull_tmp @ 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/IDQueryStringFull_tmp	Thu Dec 29 15:20:37 2011 +0100
@@ -0,0 +1,63 @@
+sparql
+
+select distinct * 
+FROM <file://mpiwg_persons_dnb.rdf>  
+FROM <file://mpiwg_persons_2.rdf> 
+FROM <file:///GND.rdf> 
+FROM <http://identifiedNames>
+where {{
+<http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/Person:581130> <http://xmlns.com/foaf/0.1/name> ?name. 
+
+{{?ident <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/Person:581130>. 
+
+?gnd crm:P1_is_identified_by ?ident.} UNION {
+?person2 <http://www.w3.org/2002/07/owl#sameAs> <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/Person:581130>.
+?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
+ {
+?person <http://xmlns.com/foaf/0.1/name> ?name. 
+
+{{?ident <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person. 
+
+<http://d-nb.info/gnd/118529579> 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. 
+<http://d-nb.info/gnd/118529579> crm:P1_is_identified_by ?ident2.
+}}
+
+optional {<http://d-nb.info/gnd/118529579> <http://RDVocab.info/ElementsGr2/dateOfBirth> ?birthDate.}
+optional {<http://d-nb.info/gnd/118529579> <http://RDVocab.info/ElementsGr2/dateOfDeath> ?deathDate.} 
+
+optional { {<http://d-nb.info/gnd/118529579> <http://www.w3.org/2002/07/owl#sameAs> ?gndSame.}  UNION
+{?gndSame <http://www.w3.org/2002/07/owl#sameAs> 
+<http://d-nb.info/gnd/118529579>.}}
+}
+union 
+
+{
+?person <http://xmlns.com/foaf/0.1/name> ?name. 
+
+?ident <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person. 
+?gnd crm:P1_is_identified_by ?ident.
+?person2 <http://www.w3.org/2002/07/owl#sameAs> ?person.
+?ident2 <http://ontologies.mpiwg-berlin.mpg.de/authorities/namedIdentities/identifies_NamedEntity> ?person2. 
+<http://dbpedia.org/resource/Albert_Einstein> 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.}}
+}
+}
\ No newline at end of file