Submissions for Culture Knowledge Graph

Description

large-scale semantic infrastructure developed within NFDI4Culture to interconnect heterogeneous cultural heritage and humanities research data — including musicology, art history, performance, archives, and audiovisual collections. It aggregates metadata from distributed repositories into a shared graph based on ontologies such as NFDIcore and the NFDI4Culture Ontology (CTO), enabling cross-collection discovery, SPARQL querying, interoperability, and AI-driven exploration of cultural data across institutions and domains.

2 of 2 submissions
#242

Natural Language Question

Show me sample resources from RISM Online related to the musicians Beethoven, Rossini, Liszt and Mendelssohn Bartholdy, from the same year that Ferdinand Gregorovius dealt with the musicians in his letters.

Source

https://nfdi4culture.de/shmarql/?query=PREFIX%20cto%3A%20%3Chttps%3A%2F%2Fnfdi4culture.de%2Fontology%2F%3E%0APREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX%20schema%3A%20%3Chttp%3A%2F%2Fschema.org%2F%3E%0APREFIX%20nfdicore%3A%20%3Chttps%3A%2F%2Fnfdi.fiz-karlsruhe.de%2Fontology%2F%3E%0APREFIX%20n4c%3A%20%3Chttps%3A%2F%2Fnfdi4culture.de%2Fid%2F%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX%20gnd%3A%20%3Chttps%3A%2F%2Fd-nb.info%2Fgnd%2F%3E%0A%0A%23%20Show%20me%20sample%20resources%20from%20RISM%20Online%20related%20to%20the%20musicians%20Beethoven%2C%20Rossini%2C%20Liszt%20and%20Mendelssohn%20Bartholdy%2C%20from%20the%20same%20year%20that%20Ferdinand%20Gregorovius%20dealt%20with%20the%20musicians%20in%20his%20letters.%0A%0ASELECT%20DISTINCT%20%0A%3Fyear%20%0A%3Fmusician%0A%3Fletter%0A%3FletterID%0A%23%20Just%20show%20one%20musical%20example%20source%20from%20RISM%20Online%0A(SAMPLE(%3FmusicalSourceLabel)%20AS%20%3FmusicalSource)%0A(SAMPLE(%3Fpattern)%20AS%20%3FmusicIncipitPattern)%0A(SAMPLE(%3FrismResource)%20AS%20%3FrismID)%0AWHERE%20%7B%0A%20%20VALUES%20%3Fgnd%20%7B%20%3Chttps%3A%2F%2Fd-nb.info%2Fgnd%2F118573527%3E%20%3Chttp%3A%2F%2Fd-nb.info%2Fgnd%2F118573527%3E%20%3Chttps%3A%2F%2Fd-nb.info%2Fgnd%2F118580779%3E%20%3Chttp%3A%2F%2Fd-nb.info%2Fgnd%2F118580779%3E%20%3Chttp%3A%2F%2Fd-nb.info%2Fgnd%2F118602985%3E%20%3Chttps%3A%2F%2Fd-nb.info%2Fgnd%2F118602985%3E%20%3Chttps%3A%2F%2Fd-nb.info%2Fgnd%2F118508288%3E%20%3Chttp%3A%2F%2Fd-nb.info%2Fgnd%2F118508288%3E%20%7D%0A%20%20%09%23%20cto%3Ais%20referenced%20in%0A%09%3FletterID%20cto%3ACTO_0001006%20n4c%3AE5378.%0A%20%20%09%3FletterID%20rdfs%3Alabel%20%3FletterLabel%20%3B%0A%20%20%20%20%23%20cto%3Ahas%20related%20person%2Fnfdicore%3Ahas%20external%20identifier%20%20%20%20%20%20%20%20%20%0A%20%20%09cto%3ACTO_0001009%2Fnfdicore%3ANFDI_0001006%20%3Fgnd%20%3B%0A%20%20%20%09%23%20cto%3Ahas%20creation%20date%0A%20%20%20%20cto%3ACTO_0001072%20%3Fdate%20.%0A%20%20%09bind(year(xsd%3Adate(%3Fdate))%20as%20%3Fyear)%20.%0A%20%20%09%23%20cto%3Ais%20referenced%20in%0A%09%3FrismResource%20cto%3ACTO_0001006%20n4c%3AE5313%20.%0A%20%20%20%20%23%20cto%3Ahas%20related%20person%2Fnfdicore%3Ahas%20external%20identifier%20%0A%20%20%20%20%3FrismResource%20cto%3ACTO_0001009%20%3Fperson%20.%20%0A%20%20%09%3Fperson%20nfdicore%3ANFDI_0001006%20%3Fgnd%20.%0A%09%3FrismResource%20rdfs%3Alabel%20%3FrismLabel%20%3B%0A%09%09%23%20cto%3Ahas%20creation%20period%0A%09%09cto%3ACTO_0001073%20%3FtempCover%20%3B%0A%09%09%23%20cto%3Ahas%20incipit%0A%09%09cto%3ACTO_0001065%20%3Fincipit%20.%0A%20%20%09%09%23%20cto%3Ahas%20incipit%20pattern%0A%09%3Fincipit%20cto%3ACTO_0001063%20%3Fpattern%20.%0A%20%20%20%20%3Fperson%20rdfs%3Alabel%20%3Fmusician%20.%0A%20%20%09%23%20Filter%20for%20a%20musical%20source%20of%20the%20same%20year%20from%20RISM%20Online%0A%20%20%09FILTER(regex(str(%3FtempCover)%2C%20str(%3Fyear)))%0A%20%20%09%23%20Concat%20label%20of%20letters%2Fmusical%20sources%20with%20date%0A%20%20%09BIND(CONCAT(%3FletterLabel%2C%20%22%20(%22%2C%20%3Fdate%2C%20%22)%22)%20AS%20%3Fletter)%0A%20%20%09BIND(CONCAT(%3FrismLabel%2C%20%22%20(%22%2C%20%3FtempCover%2C%20%22)%22)%20AS%20%3FmusicalSourceLabel)%0A%7D%20%0A%0AORDER%20BY%20%3Fyear

SPARQL Query

PREFIX cto: <https://nfdi4culture.de/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX nfdicore: <https://nfdi.fiz-karlsruhe.de/ontology/>
PREFIX n4c: <https://nfdi4culture.de/id/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX gnd: <https://d-nb.info/gnd/>

SELECT DISTINCT 
?year 
?musician
?letter
?letterID
# Just show one musical example source from RISM Online
(SAMPLE(?musicalSourceLabel) AS ?musicalSource)
(SAMPLE(?pattern) AS ?musicIncipitPattern)
(SAMPLE(?rismResource) AS ?rismID)
WHERE {
  VALUES ?gnd { <https://d-nb.info/gnd/118573527> <http://d-nb.info/gnd/118573527> <https://d-nb.info/gnd/118580779> <http://d-nb.info/gnd/118580779> <http://d-nb.info/gnd/118602985> <https://d-nb.info/gnd/118602985> <https://d-nb.info/gnd/118508288> <http://d-nb.info/gnd/118508288> }
  	# cto:is referenced in
	?letterID cto:CTO_0001006 n4c:E5378.
  	?letterID rdfs:label ?letterLabel ;
    # cto:has related person/nfdicore:has external identifier         
  	cto:CTO_0001009/nfdicore:NFDI_0001006 ?gnd ;
   	# cto:has creation date
    cto:CTO_0001072 ?date .
  	bind(year(xsd:date(?date)) as ?year) .
  	# cto:is referenced in
	?rismResource cto:CTO_0001006 n4c:E5313 .
    # cto:has related person/nfdicore:has external identifier 
    ?rismResource cto:CTO_0001009 ?person . 
  	?person nfdicore:NFDI_0001006 ?gnd .
	?rismResource rdfs:label ?rismLabel ;
		# cto:has creation period
		cto:CTO_0001073 ?tempCover ;
		# cto:has incipit
		cto:CTO_0001065 ?incipit .
  		# cto:has incipit pattern
	?incipit cto:CTO_0001063 ?pattern .
    ?person rdfs:label ?musician .
  	# Filter for a musical source of the same year from RISM Online
  	FILTER(regex(str(?tempCover), str(?year)))
  	# Concat label of letters/musical sources with date
  	BIND(CONCAT(?letterLabel, " (", ?date, ")") AS ?letter)
  	BIND(CONCAT(?rismLabel, " (", ?tempCover, ")") AS ?musicalSourceLabel)
} 

ORDER BY ?year
#243

Natural Language Question

Where and when was Yair Bacharach born, when did he die and where is he buried?

Source

https://nfdi4culture.de/shmarql/?query=PREFIX%20wdtn%3A%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fprop%2Fdirect-normalized%2F%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX%20schema%3A%20%3Chttp%3A%2F%2Fschema.org%2F%3E%0APREFIX%20n4c%3A%20%3Chttps%3A%2F%2Fnfdi4culture.de%2Fid%2F%3E%0APREFIX%20cto%3A%20%3Chttps%3A%2F%2Fnfdi4culture.de%2Fontology%2F%3E%0APREFIX%20nfdicore%3A%20%3Chttps%3A%2F%2Fnfdi.fiz-karlsruhe.de%2Fontology%2F%3E%0APREFIX%20wd%3A%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fentity%2F%3E%0APREFIX%20wdt%3A%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fprop%2Fdirect%2F%3E%0APREFIX%20wikibase%3A%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23%3E%0APREFIX%20bd%3A%20%3Chttp%3A%2F%2Fwww.bigdata.com%2Frdf%23%3E%0A%0ASELECT%0A%3Fheadstone%0A%3FheadstoneLabel%0A%23%3FheadstoneLocation%0A%23%3FwikidataIDheadstoneLocation%0A%3FwikidataIDheadstoneLocationLabel%0A%3FheadstoneDate%0A%3FheadstoneYear%0A%3FwikidataIDPerson%0A(SAMPLE(%3FwikidataIDPersonLabel)%20AS%20%3FpersonLabel)%0A%23%3Fgender%0A%3FgenderLabel%0A%23%3FplaceOfBirth%0A%3FplaceOfBirthLabel%0A(SAMPLE(%3FdateOfBirth)%20AS%20%3FbirthDate)%0A(SAMPLE(%3FbirthYear)%20AS%20%3FyearOfBirth)%0A%0AWHERE%20%7B%0A%20%20BIND(%3Chttps%3A%2F%2Fd-nb.info%2Fgnd%2F173368786%3E%20AS%20%3Fperson)%0A%20%20%23cto%3Ais%20referenced%20in%0A%20%20%3Fheadstone%20cto%3ACTO_0001006%20n4c%3AE6317%20%3B%0A%20%20%20%20%20%20%09%09%20%23%20cto%3Ahas%20related%20person%2Fnfdicore%3Ahas%20external%20identifier%0A%20%20%20%20%09%09%20cto%3ACTO_0001009%2Fnfdicore%3ANFDI_0001006%20%3Fperson%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20rdfs%3Alabel%20%3FheadstoneLabel%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20cto%3Ahas%20related%20location%2Fnfdicore%3Ahas%20external%20identifier%0A%20%20%20%20%20%20%20%20%20%20%20%20%20cto%3ACTO_0001011%2Fnfdicore%3ANFDI_0001006%20%3FheadstoneLocation%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20cto%3Ahas%20approximate%20period%0A%20%20%20%20%20%20%20%20%20%20%20%20%20cto%3ACTO_0001071%20%3FheadstoneDate%20.%0A%20%20%23%20a%20nfdicore%3AGND%20identifier%0A%20%20%3Fperson%20a%20nfdicore%3ANFDI_0001009%20.%0A%20%20%23%20a%20nfdicore%3ATGN%20identifier%0A%20%20%3Flocation%20a%20nfdicore%3ANFDI_0001055%20.%0A%20%20FILTER(lang(%3FheadstoneLabel)%20%3D%20%27en%27)%0A%20%20BIND(REPLACE(STR(%3Fperson)%2C%20%22%5E.*%2F%22%2C%20%22%22)%20AS%20%3FpersonGNDid)%0A%20%20BIND(REPLACE(STR(%3FheadstoneLocation)%2C%20%22%5E.*%2F%22%2C%20%22%22)%20AS%20%3FheadstoneLocationTGNid)%0A%20%20FILTER%20(datatype(%3FheadstoneDate)%20%3D%20xsd%3Adate)%0A%20%20bind(year(xsd%3Adate(%3FheadstoneDate))%20as%20%3FheadstoneYear)%20%0A%20%20SERVICE%20%3Chttps%3A%2F%2Fquery.wikidata.org%2Fsparql%3E%20%7B%0A%20%20%20%20%3FwikidataIDPerson%20wdt%3AP227%20%3FpersonGNDid%20.%0A%20%20%20%20OPTIONAL%20%7B%20%3FwikidataIDPerson%20rdfs%3Alabel%20%3FwikidataIDPersonLabel%20.%20FILTER(lang(%3FwikidataIDPersonLabel)%20%3D%20%22en%22%20%7C%7C%20lang(%3FwikidataIDPersonLabel)%20%3D%20%22mul%22)%20%7D%0A%20%20%20%20%3FwikidataIDheadstoneLocation%20wdt%3AP1667%20%3FheadstoneLocationTGNid%20.%0A%20%20%20%20OPTIONAL%20%7B%20%3FwikidataIDheadstoneLocation%20rdfs%3Alabel%20%3FwikidataIDheadstoneLocationLabel%20.%20FILTER(LANG(%3FwikidataIDheadstoneLocationLabel)%20%3D%20%22en%22)%20%7D%0A%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%3FwikidataIDPerson%20wdt%3AP21%20%3Fgender%20%0A%20%20%20%20%20%20OPTIONAL%20%7B%20%3Fgender%20rdfs%3Alabel%20%3FgenderLabel%20.%20FILTER(LANG(%3FgenderLabel)%20%3D%20%22en%22)%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%3FwikidataIDPerson%20wdt%3AP19%20%3FplaceOfBirth%20%0A%20%20%20%20%20%20OPTIONAL%20%7B%20%3FplaceOfBirth%20rdfs%3Alabel%20%3FplaceOfBirthLabel%20.%20FILTER(LANG(%3FplaceOfBirthLabel)%20%3D%20%22en%22)%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%3FwikidataIDPerson%20wdt%3AP569%20%3FdateOfBirth%0A%09%20%20BIND(YEAR(%3FdateOfBirth)%20AS%20%3FbirthYear)%20%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%20ORDER%20BY%20%3FheadstoneDate%0A

SPARQL Query

PREFIX wdtn: <http://www.wikidata.org/prop/direct-normalized/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX schema: <http://schema.org/>
PREFIX n4c: <https://nfdi4culture.de/id/>
PREFIX cto: <https://nfdi4culture.de/ontology/>
PREFIX nfdicore: <https://nfdi.fiz-karlsruhe.de/ontology/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>

SELECT
?headstone
?headstoneLabel
#?headstoneLocation
#?wikidataIDheadstoneLocation
?wikidataIDheadstoneLocationLabel
?headstoneDate
?headstoneYear
?wikidataIDPerson
(SAMPLE(?wikidataIDPersonLabel) AS ?personLabel)
#?gender
?genderLabel
#?placeOfBirth
?placeOfBirthLabel
(SAMPLE(?dateOfBirth) AS ?birthDate)
(SAMPLE(?birthYear) AS ?yearOfBirth)

WHERE {
  BIND(<https://d-nb.info/gnd/173368786> AS ?person)
  #cto:is referenced in
  ?headstone cto:CTO_0001006 n4c:E6317 ;
      		 # cto:has related person/nfdicore:has external identifier
    		 cto:CTO_0001009/nfdicore:NFDI_0001006 ?person ;
             rdfs:label ?headstoneLabel ;
             # cto:has related location/nfdicore:has external identifier
             cto:CTO_0001011/nfdicore:NFDI_0001006 ?headstoneLocation ;
             # cto:has approximate period
             cto:CTO_0001071 ?headstoneDate .
  # a nfdicore:GND identifier
  ?person a nfdicore:NFDI_0001009 .
  # a nfdicore:TGN identifier
  ?location a nfdicore:NFDI_0001055 .
  FILTER(lang(?headstoneLabel) = 'en')
  BIND(REPLACE(STR(?person), "^.*/", "") AS ?personGNDid)
  BIND(REPLACE(STR(?headstoneLocation), "^.*/", "") AS ?headstoneLocationTGNid)
  FILTER (datatype(?headstoneDate) = xsd:date)
  bind(year(xsd:date(?headstoneDate)) as ?headstoneYear) 
  SERVICE <https://query.wikidata.org/sparql> {
    ?wikidataIDPerson wdt:P227 ?personGNDid .
    OPTIONAL { ?wikidataIDPerson rdfs:label ?wikidataIDPersonLabel . FILTER(lang(?wikidataIDPersonLabel) = "en" || lang(?wikidataIDPersonLabel) = "mul") }
    ?wikidataIDheadstoneLocation wdt:P1667 ?headstoneLocationTGNid .
    OPTIONAL { ?wikidataIDheadstoneLocation rdfs:label ?wikidataIDheadstoneLocationLabel . FILTER(LANG(?wikidataIDheadstoneLocationLabel) = "en") }
    OPTIONAL {
      ?wikidataIDPerson wdt:P21 ?gender 
      OPTIONAL { ?gender rdfs:label ?genderLabel . FILTER(LANG(?genderLabel) = "en") }
    }
    OPTIONAL {
      ?wikidataIDPerson wdt:P19 ?placeOfBirth 
      OPTIONAL { ?placeOfBirth rdfs:label ?placeOfBirthLabel . FILTER(LANG(?placeOfBirthLabel) = "en") }
    }
    OPTIONAL {
      ?wikidataIDPerson wdt:P569 ?dateOfBirth
	  BIND(YEAR(?dateOfBirth) AS ?birthYear) 
    }
  }
} ORDER BY ?headstoneDate
Odoma and Graphia logos

Quagga has been developed by Odoma ↗ for Graphia ↗

Funded by the European Union (grant ID: 101188018 ↗)

and by the Swiss State Secretariat for Education, Research and Innovation (SERI).

Contact Github FAQ