Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taalcode "dut" en "eng" in publicaties anders weergeven #148

Open
verwinv opened this issue Jan 26, 2025 · 2 comments
Open

Taalcode "dut" en "eng" in publicaties anders weergeven #148

verwinv opened this issue Jan 26, 2025 · 2 comments

Comments

@verwinv
Copy link

verwinv commented Jan 26, 2025

Gaat over: publicaties

Taalcode

De taal van een publicatie is weergegeven als code, bijv. ‘dut’. Is het mogelijk om dit in ‘gewone’ taal weer te geven, dus ‘Nederlands’?

@DannyGJdeJong
Copy link
Collaborator

Patternbook issue voor aangemaakt: https://github.com/Rijksmuseum/pattern_book/issues/692

@DannyGJdeJong
Copy link
Collaborator

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>

SELECT DISTINCT ?publicationLanguage ?nlLang ?enLang
WHERE {
    {
        SELECT DISTINCT ?publicationLanguage
        WHERE {
            ?objectUri rdf:type schema:CreativeWork.
            ?objectUri schema:inLanguage ?publicationLanguage.
        }
    }
    
    OPTIONAL {
       SERVICE <https://query.wikidata.org/bigdata/namespace/wdq/sparql> {
            ?wdUri wdt:P219 ?publicationLanguage.
            
            ?wdUri rdfs:label ?nlLang.
            FILTER(LANG(?nlLang) = "nl")
            ?wdUri rdfs:label ?enLang.
            FILTER(LANG(?enLang) = "en")
        }
    }
}

Met dit patroon kunnen we zelf de taallabels ophalen mits de goede niet-discontinued MARC codes gebruikt zijn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants