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

Write Wikidata query to provide bibliographic metadata in Dublin Core format #39

Open
Daniel-Mietchen opened this issue Jan 21, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request oai-pmh things related to the OAI-PMH protocol SPARQL things related to SPARQL queries Wikidata things related to Wikidata

Comments

@Daniel-Mietchen
Copy link
Member

This builds on

@Daniel-Mietchen Daniel-Mietchen added the enhancement New feature or request label Jan 21, 2022
@Daniel-Mietchen Daniel-Mietchen added this to the Q-02--2022-02-28 milestone Jan 21, 2022
@Daniel-Mietchen Daniel-Mietchen self-assigned this Jan 21, 2022
@Daniel-Mietchen Daniel-Mietchen added oai-pmh things related to the OAI-PMH protocol Wikidata things related to Wikidata labels Jan 21, 2022
@Daniel-Mietchen
Copy link
Member Author

The main idea here is to query Wikidata for the information pertaining to all the Dublin Core fields we need, and then to do the file conversion via an external script. We could, however, look into doing it all in SPARQL.

@Daniel-Mietchen Daniel-Mietchen added the SPARQL things related to SPARQL queries label Jan 21, 2022
@Daniel-Mietchen Daniel-Mietchen pinned this issue Jan 21, 2022
@Daniel-Mietchen
Copy link
Member Author

A first version of that query now exists in https://github.com/InvasionBiologyHypotheses/enKORE-corpus-processor/blob/main/.github/workflows/flat.yml :

SELECT DISTINCT ?item ?itemLabel ?license ?licenseLabel ?entryUpdatedDate WHERE {
  ?item wdt:P5008 wd:Q56241615;
    wdt:P275 ?license.
  ?license ((wdt:P31*)/(wdt:P279*)) wd:Q30939938.
  OPTIONAL { ?item schema:dateModified ?entryUpdatedDate ; }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en". }
}
GROUP BY ?item ?itemLabel ?license ?licenseLabel ?entryUpdatedDate
ORDER BY (?item)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request oai-pmh things related to the OAI-PMH protocol SPARQL things related to SPARQL queries Wikidata things related to Wikidata
Projects
None yet
Development

No branches or pull requests

1 participant