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

Re-map bf:language as a blank node and repeatable #316

Open
NancyL opened this issue Dec 3, 2023 · 2 comments · May be fixed by #322
Open

Re-map bf:language as a blank node and repeatable #316

NancyL opened this issue Dec 3, 2023 · 2 comments · May be fixed by #322
Assignees
Labels

Comments

@NancyL
Copy link

NancyL commented Dec 3, 2023

Type of change
This is a change to the existing mapping. bf:language currently goes directly to a lookup. Because we need to be able to qualify what aspect of the resource language applies to, we need to change it to a blank node. In addition, since the field should now be repeatable, we have to specify which language given should populate the 008 language code in MARC on conversion.

Example RDF records
[Please provide URIs or RDF of the bf:Instance. If providing RDF, Turtle is preferred.]
https://api.development.sinopia.io/resource/28368480-fbf6-4895-ba78-6095c8c600cb

Resource template
stanford:test:monograph:work (used for testing)
pcc:bf2:monograph:work
pcc:bf2:AdminMetadata

Expected MARC
What MARC did you expect to receive?

008/35-37 ukr

Actual MARC
What MARC did you actually receive (if mapped incorrectly)?
none. Work does not convert with blank node language

Expected mapping logic
Please describe the logic of the mapping.

bf:language [a bf:Language ;
rdfs:label "Ukrainian" ;
bf:part "Text" ] .
bf:language [a bf:Language ;
rdfs:label "English"
bf:part "Original" ] .

converts to 008 35/37 ukr
Logic: When there is more than one language given, read bf:part. If bf:part says "Text" or "Sung or Spoken Text" use to populate the 008 35/37 (Language) with the MARC language code

@NancyL NancyL added the mapping label Dec 3, 2023
@justinlittman justinlittman self-assigned this Dec 6, 2023
@justinlittman
Copy link
Contributor

@NancyL I'm really fuzzy on this stuff but for:

_:b29 a <http://id.loc.gov/ontologies/bibframe/Language>;
    <http://www.w3.org/2000/01/rdf-schema#label> <http://id.loc.gov/vocabulary/languages/ukr>;
    <http://id.loc.gov/ontologies/bibframe/part> "Text"@en.
<http://id.loc.gov/vocabulary/languages/ukr> <http://www.w3.org/2000/01/rdf-schema#label> "Ukrainian".
_:b30 a <http://id.loc.gov/ontologies/bibframe/Language>;
    <http://www.w3.org/2000/01/rdf-schema#label> <http://id.loc.gov/vocabulary/languages/eng>;
    <http://id.loc.gov/ontologies/bibframe/part> "Original"@en.
<http://id.loc.gov/vocabulary/languages/eng> <http://www.w3.org/2000/01/rdf-schema#label> "English".

(from https://api.development.sinopia.io/resource/40702c7a-7ccf-4c3b-ab8b-58aa4ecbd864) is <blank node> <http://www.w3.org/2000/01/rdf-schema#label> <http://id.loc.gov/vocabulary/languages/eng>; correct, in particular <http://www.w3.org/2000/01/rdf-schema#label> as the predicate?

@justinlittman justinlittman linked a pull request Dec 6, 2023 that will close this issue
@NancyL
Copy link
Author

NancyL commented Dec 12, 2023

ah, you are right, this is a problem. Have to think how to make it work properly.

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

Successfully merging a pull request may close this issue.

2 participants