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

Update BIBFRAME SPARQL to FOLIO Records #195

Open
jermnelson opened this issue Feb 26, 2024 · 2 comments · May be fixed by #203
Open

Update BIBFRAME SPARQL to FOLIO Records #195

jermnelson opened this issue Feb 26, 2024 · 2 comments · May be fixed by #203

Comments

@jermnelson
Copy link
Contributor

jermnelson commented Feb 26, 2024

Based on @kallimathios (see attached) new SPARQL queries, update/add to the SPARQL query templates at:

SPARQL queries for Sinopia to FOLIO_26-02-2024.txt

@kallimathios
Copy link
Collaborator

kallimathios commented Aug 16, 2024

Hi Jeremy - just adding a note here as I was going through these queries, I found a typo where I duplicated a line under #Administrative data - cataloger id and cataloged_date. Sorry about that. They should read:

#Administrative data - cataloger id
PREFIX bf: http://id.loc.gov/ontologies/bibframe/
PREFIX bflc: http://id.loc.gov/ontologies/bflc/
PREFIX sinopia: http://sinopia.io/vocabulary/
PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#

SELECT ?subject ?administrative_note
WHERE {
?subject a bf:Instance ;
bf:adminMetadata ?admin_wild .
?admin_wild bflc:catalogerId ?administrative_note .
}

#Administrative data - cataloged date
PREFIX bf: http://id.loc.gov/ontologies/bibframe/
PREFIX sinopia: http://sinopia.io/vocabulary/
PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#

SELECT ?subject ?cataloged_date
WHERE {
?subject a bf:Instance ;
bf:adminMetadata ?admin_wild .
?admin_wild bf:creationDate ?cataloged_date .
}

Thanks!

@kallimathios
Copy link
Collaborator

Another update for the addition of bf:OclcNumber class:

#Resource identifier - OCLC
PREFIX bf: http://id.loc.gov/ontologies/bibframe/
PREFIX sinopia: http://sinopia.io/vocabulary/
PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#

SELECT ?subject ?oclc
WHERE {
?subject a bf:Instance ;
bf:identifiedBy ?id .
?id a bf:OclcNumber ;
rdf:value ?oclc .
}

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

Successfully merging a pull request may close this issue.

2 participants