PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#> SELECT ?placelabel WHERE { ?person gndo:preferredNameEntityForThePerson ?nameNode . ?nameNode gndo:forename "Barack" ; gndo:surname "Obama" . ?person gndo:placeOfBirth ?place . ?place gndo:preferredNameForThePlaceOrGeographicName ?placelabel . } |
Falls die ID der Entität nicht bekannt ist muss nach dem String in den properties gesucht werden. Das sähe dann so aus:
?person gndo:preferredNameForThePerson "Obama, Barack" . #Achtung Reihenfolge der Namen: Nachname, Vorname
Oder
?person gndo:preferredNameEntityForThePerson ?nameNode .
?nameNode gndo:forename "Barack" ; gndo:surname "Obama" .
Zusätzlich die varianten Namen durchsuchen mit:
?person gndo:variantNameForThePerson "Ūbāmā, Bārāk" ;
Und
?person gndo:variantNameEntityForThePerson ?nameNode .
?nameNode gndo:forename "Barack Hussein" ; gndo:surname "Obama" .
(Die Ergebnisse wirken etwas wenig, das hat aber mit unserer Katalogisierung zu tun. Vielleicht finde ich noch eine bessere Lösung)
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX gnd: <https://d-nb.info/gnd/> PREFIX bibo: <http://purl.org/ontology/bibo/> PREFIX schema: <http://schema.org/> SELECT DISTINCT ?lang (COUNT(?lang) AS ?count) WHERE { ?work schema:exampleOfWork <https://d-nb.info/gnd/4128140-8> ; optional { ?work dcterms:language ?lang . } } group by ?lang |
PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX dbc: <http://dbpedia.org/resource/Category:> PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#> PREFIX dc: <http://purl.org/dc/elements/1.1/> SELECT DISTINCT ?otherAuthors ?otherAuthorsId ?title ?dnbitem WHERE { SERVICE <https://dbpedia.org/sparql> { ?s rdfs:label "Friedrich Schiller"@de . ?s dbo:movement ?movement . ?other dbo:movement ?othermovement . ?other owl:sameAs ?otherAuthorsId . ?other rdfs:label ?otherAuthors FILTER (LANG(?otherAuthors)="de") . FILTER regex(?otherAuthorsId, "^http://viaf", "i") FILTER ((?movement = ?othermovement) && (?other != ?s)) } ?dnbitem dc:title ?title ; dcterms:creator ?creator . ?creator owl:sameAs ?otherAuthorsId . } |
PREFIX gnd: <https://d-nb.info/gnd/> PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?job (COUNT(?job) AS ?count) (GROUP_CONCAT(DISTINCT ?jobAlternative; SEPARATOR=", ") AS ?alternatives) WHERE { ?person ?georef gnd:4018118-2 ; # Person mit irgendeinem geografischem Bezug zu Frankfurt gndo:professionOrOccupation ?jobnode . ?jobnode (rdf:_1|rdf:_2|rdf:_3|rdf:_4|rdf:_5|rdf:_6|rdf:_7|rdf:_8) ?jobId . ?jobId gndo:preferredNameForTheSubjectHeading ?job . OPTIONAL { ?jobId gndo:variantNameForTheSubjectHeading ?jobAlternative . } } GROUP BY ?job ORDER BY DESC(?count) |
PREFIX gnd: <https://d-nb.info/gnd/> PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?job (COUNT(?job) AS ?count) (GROUP_CONCAT(DISTINCT ?jobAlternative; SEPARATOR=", ") AS ?alternatives) WHERE { ?person ?georef gnd:4042742-0 ; # Person mit irgendeinem geografischem Bezug zu Nürnberg gndo:professionOrOccupation ?jobnode . ?jobnode (rdf:_1|rdf:_2|rdf:_3|rdf:_4|rdf:_5|rdf:_6|rdf:_7|rdf:_8) ?jobId . ?jobId gndo:preferredNameForTheSubjectHeading ?job . OPTIONAL { ?jobId gndo:variantNameForTheSubjectHeading ?jobAlternative . } OPTIONAL { ?person gndo:dateOfBirth ?birthDay . } OPTIONAL { ?person gndo:dateOfDeath ?deathDay . } FILTER ( bound(?birthDay) || bound(?deathDay) ) . FILTER ( bound(?birthDay) && ?birthDay >= "1501-01-01"^^xsd:date && ?birthDay < "1701-01-01"^^xsd:date ) . FILTER ( bound(?deathDay) && ?deathDay >= "1601-01-01"^^xsd:date && ?deathDay < "1801-01-01"^^xsd:date ) . } GROUP BY ?job |
keine genaue Suche mit Schlagworten möglich, da keine Formschlagwörter wie „Geschichte“ ausgeliefert werden – deshalb über Dewey Klassifikation „Klassifiziere Geschichte und Biografien bezogen auf Bibliotheken in 027.009 „ [aktuell Spezialwissen]
enthält nur gedruckte Werke, da elektronisch nicht mit Dewey Klassifikation erschlossen wird
PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX dcterms: <http://purl.org/dc/terms/> SELECT ?work ?title WHERE { ?work dc:title ?title . ?work dcterms:subject ?deweyclass . filter( regex( str(?deweyclass), "^http://dewey.info/class/027.009" ) ) } |
(siehe Q5 -> Weg über Dewey Klassifikation)
PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX dcterms: <http://purl.org/dc/terms/> SELECT distinct ?SWname (COUNT(?SWname) AS ?count) WHERE { ?work dc:title ?title . ?work dcterms:subject ?deweyclass . filter( regex( str(?deweyclass), "^http://dewey.info/class/944.04" ) ) ?work dcterms:subject ?gndSW . ?gndSW gndo:preferredNameForTheSubjectHeading ?SWname . } GROUP BY ?SWname ORDER BY DESC(?count) |
PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX gnd: <https://d-nb.info/gnd/> SELECT distinct ?creator ?name WHERE { ?gnd gndo:geographicAreaCode <https://d-nb.info/standards/vocab/gnd/geographic-area-code#XA-IT> . ?work dcterms:subject ?gnd . ?work dcterms:creator ?creator . ?creator gndo:preferredNameForThePerson ?name . } |
PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX dbc: <http://dbpedia.org/resource/Category:> PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX gnd: <https://d-nb.info/gnd/> SELECT DISTINCT ?gnd ?name WHERE { SERVICE <https://dbpedia.org/sparql> { ?movement rdfs:label "Romantik"@de . ?person dbo:movement ?movement . ?person owl:sameAs ?personId . FILTER regex(?personId, "^http://viaf", "i") } ?gnd owl:sameAs ?personId . ?gnd gndo:professionOrOccupation ?jobnode . ?jobnode (rdf:_1|rdf:_2|rdf:_3|rdf:_4|rdf:_5|rdf:_6|rdf:_7|rdf:_8) ?job . ?gnd gndo:preferredNameForThePerson ?name . FILTER (?job = gnd:4033423-5 || ?job = gnd:4033430-2 || ?job = gnd:4066567-7 || ?job = gnd:4136652-9) } |
Beispielstruktur der Daten